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.ops.Broadcast.rst 796 B

1234567891011121314151617181920212223242526
  1. mindspore.ops.Broadcast
  2. ========================
  3. .. py:class:: mindspore.ops.Broadcast(root_rank, group=GlobalComm.WORLD_COMM_GROUP)
  4. 对输入数据整组广播。
  5. .. note::
  6. 集合中的所有进程的Tensor的shape和数据格式相同。
  7. **参数:**
  8. - **root_rank** (int) - 表示发送源的进程编号。除发送数据的进程外,存在于所有进程中。
  9. - **group** (str) - 表示通信域。默认值:"hccl_world_group"。
  10. **输入:**
  11. - **input_x** (Tensor) - Tensor的shape为 :math:`(x_1, x_2, ..., x_R)` 。
  12. **输出:**
  13. Tensor,shape与输入相同,即 :math:`(x_1, x_2, ..., x_R)` 。内容取决于 `root_rank` device的数据。
  14. **异常:**
  15. - **TypeError** - root_rank不是int或group不是str。