Skip to content

Conversation

@abhinavarora
Copy link
Contributor

Fixes #9085

@abhinavarora abhinavarora self-assigned this Mar 15, 2018
cs2be
cs2be previously approved these changes Mar 15, 2018
capacity=value.capacity)

assign_op = channel_send_block.append_op(
type="assign_op", inputs={"X": value, }, outputs={"Out": copied_X})
Copy link
Contributor

Choose a reason for hiding this comment

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

although this is valid python syntax, I'm wondering if we can remove the extra "," after value

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

`make_channel`.
value (Variable): Value to send to channel
copy (bool): Copy data while channel send. If False, then data
is moved. The input cannot be used after move.
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add the default value of copy at the end of line145.
Maybe replacing copy with copy_mode is better.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry, I just realized that I missed your comment and merged the PR. I agree with you. Let me correct it and send you the review separately.

Copy link
Contributor

Choose a reason for hiding this comment

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

it doesn't matter, the current scenario for using channel is still less.

@abhinavarora abhinavarora merged commit 35c373d into PaddlePaddle:develop Mar 19, 2018
@abhinavarora abhinavarora deleted the copy_channel branch March 19, 2018 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants