提交 a11d4f30 编写于 作者: Q Qiao Longfei

use len instead of size for python list

上级 fa84ba23
...@@ -767,7 +767,7 @@ in a single call.") ...@@ -767,7 +767,7 @@ in a single call.")
prefetch_var_name_to_block_id.extend( prefetch_var_name_to_block_id.extend(
lookup_table_var_name_to_block_id) lookup_table_var_name_to_block_id)
if optimize_blocks.size() == 0: if len(optimize_blocks) == 0:
pre_block_idx = pserver_program.num_blocks - 1 pre_block_idx = pserver_program.num_blocks - 1
empty_block = pserver_program._create_block(pre_block_idx) empty_block = pserver_program._create_block(pre_block_idx)
optimize_blocks.append(empty_block) optimize_blocks.append(empty_block)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册