mindspore.nn.PipelineCell
- class mindspore.nn.PipelineCell(network, micro_size)[source]
Wrap the network with Micro Batch.
Note
micro_size must be greater or equal to pipeline stages.
- Supported Platforms:
Ascend
GPU
Examples
>>> # Define the network structure of LeNet5. Refer to >>> # https://gitee.com/mindspore/docs/blob/r2.0/docs/mindspore/code/lenet.py >>> net = LeNet5() >>> net = PipelineCell(net, 4)