mindspore.ops.ExpandDims

class mindspore.ops.ExpandDims[源代码]
prim = ops.ExpandDims()
out = prim(input_x, axis)

等价于

ops.expand_dims(input_x, axis)

更多详情请查看: mindspore.ops.expand_dims()