提交 74ee8c36 authored 作者: Mohammad Pezeshki's avatar Mohammad Pezeshki 提交者: Pascal Lamblin

value is now replace with get_scalar_constant_value

上级 64c9ceeb
...@@ -4185,7 +4185,7 @@ def local_useless_reshape(node): ...@@ -4185,7 +4185,7 @@ def local_useless_reshape(node):
dimshuffle_new_order = [] dimshuffle_new_order = []
new_output_shape = [] new_output_shape = []
i = 0 # index over the output of the new reshape i = 0 # index over the output of the new reshape
for dim in output_shape.value: for dim in output_shape.get_scalar_constant_value():
if dim == 1: if dim == 1:
dimshuffle_new_order.append('x') dimshuffle_new_order.append('x')
else: else:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论