tf.keras.ops.expand_dims
Расширить форму тензора.
tf.keras.ops.expand_dims(
x, axis
)
Вставить новую ось в позицию axis в форме расширенного тензора.
| Аргументы | |
|---|---|
x | Входной тензор. |
axis | Позиция в расширенных осях, где размещается новая ось (или оси). |
| Возвращает | |
|---|---|
| Выходной тензор с увеличенным количеством измерений. |
© 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/keras/ops/expand_dims