--
You received this message because you are subscribed to the Google Groups "Rust for TensorFlow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rust+uns...@tensorflow.org.
To view this discussion on the web visit https://groups.google.com/a/tensorflow.org/d/msgid/rust/7f41c05f-764d-4323-9f8a-ca55936538fco%40tensorflow.org.
| 11:34 PM (0 minutes ago) | |||
How are you building the op? Are you using the low-level code (Graph::new_operation) or the high-level code (e.g. ops::add)? This isn't supported by the high-level code yet (although it shouldn't be too difficult to add), but you can call OperationDescription::set_device when building the op with the low-level code.If you don't need to place individual ops on GPUs and want to run an entire session on a particular GPU (which is what it sounds like), you can try creating a ConfigProto proto, setting gpu_options.visible_device_list (see https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/protobuf/config.proto), serializing it, and passing that to SessionOptions::set_config.
On Wed, Jul 8, 2020 at 4:50 AM Kriti Tulsian <kriti.t...@gmail.com> wrote:
--
Hi,
I created 2 virtual GPU's from a physical GPU. I want to run two sessions each on 1 virtual GPU. But I'm not able to select the GPU I want to use.
In python something like this is used - tf.device('/gpu:2')How can I achieve the same behavior in rust?
You received this message because you are subscribed to the Google Groups "Rust for TensorFlow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ru...@tensorflow.org.
To unsubscribe from this group and stop receiving emails from it, send an email to rust+uns...@tensorflow.org.
To view this discussion on the web visit https://groups.google.com/a/tensorflow.org/d/msgid/rust/67f8ff18-7e72-42aa-8298-f9455c9deff5o%40tensorflow.org.
InvalidArgument: 'visible_device_list' listed an invalid GPU id '1' but visible device count is 1'