Skip to content

Commit f42247e

Browse files
committed
change to int to compatible with py3
1 parent 0707abb commit f42247e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/paddle/fluid/transpiler/distribute_transpiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,7 @@ def _create_table_optimize_block(self, pserver_index, pserver_program,
878878
origin_param_var = self.origin_program.global_block().vars[
879879
self.table_name]
880880

881-
zero_dim = long(
881+
zero_dim = int(
882882
math.ceil(origin_param_var.shape[0] / len(self.pserver_endpoints)))
883883
table_shape = list(origin_param_var.shape)
884884
table_shape[0] = zero_dim

0 commit comments

Comments
 (0)