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

Function FOR_RANGE

oneflow/core/framework/sbp_context.cpp:125–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123 for (const auto& input_arg : ctx->inputs()) {
124 NdSbp* input_nd_sbp = ctx->NdSbp4ArgNameAndIndex(input_arg.first, input_arg.second);
125 FOR_RANGE(int, i, 0, hierarchy.NumAxes()) {
126 input_nd_sbp->add_sbp_parallel()->mutable_broadcast_parallel();
127 }
128 }
129
130 for (const auto& output_arg : ctx->outputs()) {

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45

Tested by

no test coverage detected