mindspore.ops.shuffle ===================== .. 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_shuffle.rst :alt: 查看源文件 .. py:function:: mindspore.ops.shuffle(x, seed=None) 沿着第一维随机打乱tensor。 参数: - **x** (Tensor) - 输入tensor。 - **seed** (int, 可选) - 随机种子,默认 ``None`` ,等同于 ``0`` 。 返回: Tensor