Spec-Zone.ru › TensorFlow 2.9

tf.experimental.dtensor.device_name

Возвращает имя устройства DTensor.

tf.experimental.dtensor.device_name() -> str

Эта функция может быть использована следующим образом:

import tensorflow as tf

with tf.device(dtensor.device_name()):
  # ...

© 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.9/api_docs/python/tf/experimental/dtensor/device_name

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API