未验证 提交 3e1e1fee 编写于 作者: H Huihuang Zheng 提交者: GitHub

Return correct currrent block of a var (#19850)

上级 1bc285a5
......@@ -40,7 +40,7 @@ def monkey_patch_variable():
return dtype
def current_block(var):
return var.block.program.current_block()
return var.block
def create_new_tmp_var(block, dtype):
tmp_name = unique_tmp_name()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册