mindspore.ops.concat
======================

.. image:: https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.3.q1/resource/_static/logo_source.svg
    :target: https://gitee.com/mindspore/mindspore/blob/r2.3.q1/docs/api/api_python/ops/mindspore.ops.func_concat.rst
    :alt: 查看源文件


.. py:function:: mindspore.ops.concat(tensors, axis=0)

    在指定轴上拼接输入Tensor。

    :func:`mindspore.ops.cat()` 的别名。

    教程样例:
        - `张量 Tensor - 张量运算 <https://mindspore.cn/tutorials/zh-CN/r2.3.0rc1/beginner/tensor.html#张量运算>`_
        - `Vision Transformer图像分类 - 整体构建ViT <https://mindspore.cn/tutorials/application/zh-CN/r2.3.0rc1/cv/vit.html#整体构建vit>`_
        - `RNN实现情感分类 - Dense
          <https://mindspore.cn/tutorials/application/zh-CN/r2.3.0rc1/nlp/sentiment_analysis.html#dense>`_