View source on GitHub |
Expand the shape of a tensor.
tf.keras.ops.expand_dims(
x, axis
)
Insert a new axis at the axis
position in the expanded tensor shape.
Args | |
---|---|
x
|
Input tensor. |
axis
|
Position in the expanded axes where the new axis (or axes) is placed. |
Returns | |
---|---|
Output tensor with the number of dimensions increased. |