提交 f42247e5 编写于 作者: T tangwei12

change to int to compatible with py3

上级 0707abb5
...@@ -878,7 +878,7 @@ class DistributeTranspiler(object): ...@@ -878,7 +878,7 @@ class DistributeTranspiler(object):
origin_param_var = self.origin_program.global_block().vars[ origin_param_var = self.origin_program.global_block().vars[
self.table_name] self.table_name]
zero_dim = long( zero_dim = int(
math.ceil(origin_param_var.shape[0] / len(self.pserver_endpoints))) math.ceil(origin_param_var.shape[0] / len(self.pserver_endpoints)))
table_shape = list(origin_param_var.shape) table_shape = list(origin_param_var.shape)
table_shape[0] = zero_dim table_shape[0] = zero_dim
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册