tf.raw_ops.VariableShape
Возвращает форму переменной, на которую указывает resource.
tf.raw_ops.VariableShape(
input,
out_type=tf.dtypes.int32,
name=None
)
Данная операция возвращает 1-мерный целочисленный тензор, представляющий форму input.
Например:
# 't' is [[[1, 1, 1], [2, 2, 2]], [[3, 3, 3], [4, 4, 4]]] shape(t) ==> [2, 2, 3]
| Аргументы | |
|---|---|
input | Tensor типа resource. |
out_type | Необязательный tf.DType из: tf.int32, tf.int64. По умолчанию tf.int32. |
name | Имя операции (необязательно). |
| Возвращаемое значение | |
|---|---|
Tensor типа out_type. |
© 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/raw_ops/VariableShape