sponge.function.stack_penulti
=================================

.. image:: https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/master/resource/_static/logo_source.svg
    :target: https://gitee.com/mindspore/mindscience/blob/master/MindSPONGE/docs/api/api_python/function/sponge.function.stack_penulti.rst
    :alt: 查看源文件


.. py:function:: sponge.function.stack_penulti(input_x: Tensor)

    堆叠倒数第二根轴上的张量列表(axis=-2)。

    参数:
        - **input_x** (Union[tuple, list]) - 具有相同 shape 和类型的张量对象的元组或列表。

    返回:
        Tensor。与 `input_x` 类型相同的堆叠张量。