MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / FOR_RANGE

Function FOR_RANGE

oneflow/core/operator/variable_op.cpp:30–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

nd_sbpMethod · 0.45

Tested by

no test coverage detected