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

Add #device to place ops on specific named devices #67

Open
chrhansen opened this issue Aug 28, 2016 · 0 comments
Open

Add #device to place ops on specific named devices #67

chrhansen opened this issue Aug 28, 2016 · 0 comments
Milestone

Comments

@chrhansen
Copy link
Collaborator

chrhansen commented Aug 28, 2016

Used in "Basic Usage" here: https://www.tensorflow.org/versions/r0.10/get_started/basic_usage.html e.g.:

with tf.device('/gpu:2'):
  tf.constant([1.0, 2.0, 3.0], shape=[3], name='a')

Could be something like (using default-graph if not explicitly specified) this in Ruby:

Tensorflow.device('/gpu:2') do
  graph.constant([1.0, 2.0, 3.0], shape: [3], name : 'a')
end

Python API: https://www.tensorflow.org/versions/r0.10/how_tos/using_gpu/index.html#supported-devices

@chrhansen chrhansen added this to the 0.1.0 milestone Aug 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant