You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

mindspore.nn.PipelineCell.rst 432 B

4 years ago
4 years ago
12345678910111213141516
  1. .. py:class:: mindspore.nn.PipelineCell(network, micro_size)
  2. 将MiniBatch切分成更细粒度的MicroBatch,用于流水线并行的训练中。
  3. .. note::
  4. micro_size必须大于或等于流水线stage的个数。
  5. ** 参数:**
  6. - **network** (Cell) - 要修饰的目标网络。
  7. - **micro_size** (int) - MicroBatch大小。
  8. **示例:**
  9. >>> net = Net()
  10. >>> net = PipelineCell(net, 4)