提交 fb24e3b7 authored 作者: Frederic's avatar Frederic

remove var not used.

上级 887cfc58
...@@ -837,7 +837,6 @@ class GpuReshape(HideC, tensor.Reshape): ...@@ -837,7 +837,6 @@ class GpuReshape(HideC, tensor.Reshape):
raise ValueError('shape argument to GpuReshape.perform' raise ValueError('shape argument to GpuReshape.perform'
' has incorrect length %i' ' has incorrect length %i'
', should be %i' % (len(shp), self.ndim), shp) ', should be %i' % (len(shp), self.ndim), shp)
s = shp.prod()
if shp.prod() != x.size: if shp.prod() != x.size:
# We need to do check here to raise the same error as NumPy. # We need to do check here to raise the same error as NumPy.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论