tf.experimental.dtensor.preferred_device_type
Возвращает предпочтительный тип устройства для ускорителей.
tf.experimental.dtensor.preferred_device_type() -> str
Возвращаемый тип устройства определяется путем проверки первого присутствующего типа устройства из всех поддерживаемых типов устройств в порядке 'TPU', 'GPU', 'CPU'.
© 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/api_docs/python/tf/experimental/dtensor/preferred_device_type