Return correct currrent block of a var (#19850)

expand_as_op_1
Huihuang Zheng 5 years ago committed by GitHub
parent 1bc285a53a
commit 3e1e1fee26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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()

Loading…
Cancel
Save