未验证 提交 7db017b0 编写于 作者: X xiongkun 提交者: GitHub

fix bugs (#45551)

上级 750abc2c
...@@ -32,7 +32,7 @@ def convert_attr(x, attr): ...@@ -32,7 +32,7 @@ def convert_attr(x, attr):
if isinstance(x, Variable) and attr == "size": if isinstance(x, Variable) and attr == "size":
return x.size() return x.size()
else: else:
return getattr(value, attr) return getattr(x, attr)
def indexable(x, code=None): def indexable(x, code=None):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册