| 28 | if (has_nd_sbp_conf) { CHECK_EQ(conf.nd_sbp_size(), num_axes); } |
| 29 | nd_sbp->clear_sbp_parallel(); |
| 30 | FOR_RANGE(int64_t, i, 0, num_axes) { |
| 31 | if (has_nd_sbp_conf) { |
| 32 | CHECK_OR_RETURN(ParseSbpParallelFromString(conf.nd_sbp(i), nd_sbp->add_sbp_parallel())); |
| 33 | } else { |
| 34 | nd_sbp->add_sbp_parallel()->mutable_broadcast_parallel(); |
| 35 | } |
| 36 | } |
| 37 | return Maybe<void>::Ok(); |
| 38 | } |
| 39 |
nothing calls this directly
no test coverage detected