提交 17d1d592 authored 作者: Razvan Pascanu's avatar Razvan Pascanu

add flag because of possible unused inputs

上级 c5882c7d
......@@ -2507,7 +2507,8 @@ class T_Scan(unittest.TestCase):
nwo_h0 = theano.tensor.Rop(o, _h0, eh0)
nwo_W = theano.tensor.Rop(o, _W, eW)
fn_rop = theano.function([u, h0, W, eu, eh0, eW],
[nwo_u, nwo_h0, nwo_W])
[nwo_u, nwo_h0, nwo_W],
on_unused_input='ignore')
n2o_u, _ = theano.scan(lambda i, o, u, h0, W, eu: \
(theano.tensor.grad(o[i], u) * eu).sum(),
......@@ -2528,7 +2529,8 @@ class T_Scan(unittest.TestCase):
name='jacobW')
fn_test = theano.function([u, h0, W, eu, eh0, eW],
[n2o_u, n2o_h0, n2o_W])
[n2o_u, n2o_h0, n2o_W],
on_unused_input='ignore')
vnu, vnh0, vnW = fn_rop(v_u, v_h0, v_W, v_eu, v_eh0, v_eW)
tnu, tnh0, tnW = fn_test(v_u, v_h0, v_W, v_eu, v_eh0, v_eW)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论