Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding documentation for multi-device in Tensorflow #5412

Closed

Conversation

kavyasrinet
Copy link

Adding a document to explain how multi-device works in Tensorflow.

Copy link
Collaborator

@wangkuiyi wangkuiyi left a comment

Choose a reason for hiding this comment

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

Super awesome review! I am not sure if it is proper to put such a document in PaddlePaddle' official repo. Should we move it from this PR into a Wiki page? Thanks!

```
Here we are running the same operation(MatMul) on two different GPUs : '/gpu:2' and '/gpu:3', and on the CPU ('/cpu:0') the operation `tf.add_n` which adds all input tensors element-wise. This operation would collect the output of MatMulfrom the GPUs and aggregate them on the CPU.

The [tutorial](https://www.TensorFlow.org/tutorials/deep_cnn) on CIFAR10 is a good example demonstrating how to do training with multiple GPUs on TensorFlow.
Copy link
Collaborator

Choose a reason for hiding this comment

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

We might need more information about Device Contexts and how they are used to build new operators/kernels?

Copy link
Author

Choose a reason for hiding this comment

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

That's a good suggestion. Will dig up more on this and add a section.

@kavyasrinet
Copy link
Author

Thank you for the review. I think Wiki page is a good idea, since it is meant for our educational purpose anyway. I will create a page and close this PR.

@kavyasrinet
Copy link
Author

Closing this PR and created the Wiki page: https://github.com/PaddlePaddle/Paddle/wiki/Understanding-Multi-device-training-in-TensorFlow as per @wangkuiyi 's review.

@kavyasrinet kavyasrinet deleted the multi_device_tf branch February 8, 2018 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants