提交 d763c819 authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Remove last reference to inplace_increment.

上级 fd9d1e65
...@@ -2936,10 +2936,7 @@ def test_local_IncSubtensor_serialize(): ...@@ -2936,10 +2936,7 @@ def test_local_IncSubtensor_serialize():
i = T.vector('i', dtype='int64') i = T.vector('i', dtype='int64')
j = T.vector('j', dtype='int64') j = T.vector('j', dtype='int64')
t = T.scalar('t') t = T.scalar('t')
if theano.tensor.subtensor.inplace_increment:
y = (W[i] + W[j] + W[1] + W[i, j]).sum() y = (W[i] + W[j] + W[1] + W[i, j]).sum()
else:
y = (W[i] + W[j] + W[1]).sum()
cost = T.sqr(t - y) cost = T.sqr(t - y)
dW = theano.grad(cost, W) dW = theano.grad(cost, W)
mode = theano.compile.mode.get_default_mode().excluding('fusion') mode = theano.compile.mode.get_default_mode().excluding('fusion')
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论