tf.raw_ops.CompositeTensorVariantFromComponents
Кодирует значение ExtensionType в скалярный тензор типа variant.
tf.raw_ops.CompositeTensorVariantFromComponents(
components, metadata, name=None
)
Возвращает скалярный тензор типа variant, содержащий одно значение CompositeTensorVariant со специфицированными тензорными компонентами и TypeSpec.
| Аргументы | |
|---|---|
components | Список объектов Tensor. Тензорные компоненты значения типа расширения. |
metadata | string. Строковое представление TypeSpec. (Обратите внимание: кодирование TypeSpec может измениться в будущих версиях TensorFlow.) |
name | Имя операции (необязательно). |
| Возвращаемое значение | |
|---|---|
Тензор типа Tensor типа variant. |
© 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/raw_ops/CompositeTensorVariantFromComponents