Skip to content

Make output 1 of ConcatTraining Optional and place on CPU#7199

Merged
ashbhandare merged 2 commits intomasterfrom
aibhanda/concat_training
Apr 1, 2021
Merged

Make output 1 of ConcatTraining Optional and place on CPU#7199
ashbhandare merged 2 commits intomasterfrom
aibhanda/concat_training

Conversation

@ashbhandare
Copy link
Copy Markdown
Contributor

The Output1 of ConcatTraining is consumed by SplitTraining in the gradient graph, which expects it on host, while ConcatTraining places it on the device. To avoid the DtoH memcpy, this PR places the output1 on host and also makes its computation optional in case it is not consumed by any other node.

@ashbhandare ashbhandare requested a review from a team as a code owner March 31, 2021 19:59
mrry
mrry previously approved these changes Mar 31, 2021
Copy link
Copy Markdown
Contributor

@mrry mrry left a comment

Choose a reason for hiding this comment

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

Awesome, thank you!

SherlockNoMad
SherlockNoMad previously approved these changes Mar 31, 2021
Copy link
Copy Markdown
Contributor

@SherlockNoMad SherlockNoMad left a comment

Choose a reason for hiding this comment

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

looks good, but let's still update the name.

@ytaous
Copy link
Copy Markdown
Contributor

ytaous commented Mar 31, 2021

looking good on the testing, collecting number shortly

@ashbhandare ashbhandare dismissed stale reviews from SherlockNoMad and mrry via 7d66cc0 March 31, 2021 22:59
@ashbhandare ashbhandare force-pushed the aibhanda/concat_training branch from 7d66cc0 to 2224a35 Compare March 31, 2021 23:53
SherlockNoMad
SherlockNoMad previously approved these changes Apr 1, 2021
ytaous
ytaous previously approved these changes Apr 1, 2021
@ashbhandare ashbhandare dismissed stale reviews from ytaous and SherlockNoMad via 48da6d4 April 1, 2021 16:49
@ashbhandare ashbhandare force-pushed the aibhanda/concat_training branch from 2224a35 to 48da6d4 Compare April 1, 2021 16:49
@ashbhandare ashbhandare merged commit 15c67dd into master Apr 1, 2021
@ashbhandare ashbhandare deleted the aibhanda/concat_training branch April 1, 2021 23:05
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.

4 participants