tf.raw_ops.ShapeN
Возвращает форму тензоров.
tf.raw_ops.ShapeN(
input,
out_type=tf.dtypes.int32,
name=None
)
Эта операция возвращает N целочисленных тензоров размерности 1, представляющих форму input[i]s.
| Аргументы | |
|---|---|
input | Список как минимум из 1 объектов Tensor одного типа. |
out_type | Необязательный tf.DType из: tf.int32, tf.int64. По умолчанию используется tf.int32. |
name | Имя операции (необязательно). |
| Возвращает | |
|---|---|
Список той же длины, что и input, содержащий объекты 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/ShapeN