Skip to content

Conversation

@gongweibao
Copy link
Contributor

  1. Add some python docstring.
  2. According to Performance comparison of some frameworks. #10120 , Change default split minimize value to speed up transport data to pserver.
We need to have a minimal block size so that the calculations in
the parameter server side can gain better performance. By default
minimum block size is 1024.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By default, the minimum block size is 16k elements (maybe 16bit or 32bit or 64bit).

Copy link
Contributor Author

@gongweibao gongweibao May 15, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.Done.

Copy link
Contributor

@typhoonzero typhoonzero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, need to rerun the CI.

def _append_split_op(self, program, gradblocks):
# Split variables that need to be split and append respective ops
"""
Split variables that need to be split and append respective ops
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Split variables with the size larger than the minimum size, and append split_byref_op and concat_op for them.

@gongweibao gongweibao merged commit 13836b0 into PaddlePaddle:develop May 15, 2018
@gongweibao gongweibao deleted the grpcports branch June 11, 2018 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants