mindspore.ops.ExpandDims

class mindspore.ops.ExpandDims[source]
prim = ops.ExpandDims()
out = prim(input_x, axis)

is equivalent to

ops.expand_dims(input_x, axis)

Refer to mindspore.ops.expand_dims() for more details.