Spec-Zone.ru › TensorFlow 2.3

tf.experimental.dlpack.from_dlpack

Возвращает тензор TensorFlow eager.

tf.experimental.dlpack.from_dlpack(
    dlcapsule
)

Возвращаемый тензор использует память, общую для dlpack-капсул из других фреймворков.

a = tf.experimental.dlpack.from_dlpack(dlcapsule)
# `a` uses the memory shared by dlpack
Аргументы
dlcapsule PyCapsule с именем dltensor
Возвращаемое значение
Тензор TensorFlow eager

© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.3/api_docs/python/tf/experimental/dlpack/from_dlpack

Spec-Zone.ru

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