提交 95e010f5 authored 作者: Razvan Pascanu's avatar Razvan Pascanu

fix bug in equal computation

Is the shape of the data that should match.
上级 17bc0839
......@@ -324,7 +324,7 @@ def equal_computations(xs,ys, in_xs = None, in_ys = None, strict=True):
isinstance(dy, tensor.Constant)):
if not ( numpy.all(dx.data == dy.data) and
dx.dtype == dy.dtype and
dx.shape == dy.shape):
dx.data.shape == dy.data.shape):
return False
else:
pass
......@@ -353,7 +353,7 @@ def equal_computations(xs,ys, in_xs = None, in_ys = None, strict=True):
isinstance(dy, tensor.Constant)):
if not (numpy.all(dx.data == dy.data) and
dx.dtype == dy.dtype and
dx.shape == dy.shape):
dx.data.shape == dy.data.shape):
return False
else:
pass
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论