mindspore.nn.PipelineCell
=========================

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


.. py:class:: mindspore.nn.PipelineCell(network, micro_size)

    将MiniBatch切分成更细粒度的MicroBatch,用于流水线并行的训练中。

    .. note::
        micro_size必须大于或等于流水线stage的个数。

    参数:
        - **network** (Cell) - 要修饰的目标网络。
        - **micro_size** (int) - MicroBatch大小。