mindspore.ops.unsqueeze ========================= .. image:: https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/br_base/resource/_static/logo_source.svg :target: https://gitee.com/mindspore/mindspore/blob/br_base/docs/api/api_python/ops/mindspore.ops.func_unsqueeze.rst :alt: 查看源文件 .. py:function:: mindspore.ops.unsqueeze(input, dim) 在输入tensor的指定维度上增加一维。 参数: - **input** (Tensor) - 输入tensor。 - **dim** (int) - 指定维度。 返回: Tensor