mindspore.nn.PipelineCell ========================= .. 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/nn/mindspore.nn.PipelineCell.rst :alt: 查看源文件 .. py:class:: mindspore.nn.PipelineCell(network, micro_size, stage_config=None, segment_config=None) 将MiniBatch切分成更细粒度的MicroBatch,用于流水线并行的训练中。 .. note:: - micro_size必须大于或等于流水线stage的个数。 - 接口即将废弃,请使用接口 :class:`mindspore.parallel.nn.Pipeline` 代替。 参数: - **network** (Cell) - 要修饰的目标网络。 - **micro_size** (int) - MicroBatch大小。 - **stage_config** (dict,可选) - 流水线并行对于每个cell的stage配置。默认值: ``None``。 - **segment_config** (dict,可选) - 流水线并行对于每个cell的segment配置。默认值: ``None``。