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

Function FOR_RANGE

oneflow/core/kernel/slice_boxing_kernel.cpp:90–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88 Blob* out = ctx->BnInOp2Blob("out");
89 if (out->shape_view().elem_cnt() == 0) { return; }
90 FOR_RANGE(int64_t, i, 0, this->op_attribute().input_bns().size()) {
91 const Blob* in_i = ctx->BnInOp2Blob(GenRepeatedBn("in", i));
92 this->tensor_slice_copier_vec().at(i)->Copy(ctx->stream(), out, in_i);
93 }
94}
95
96const SliceBoxingConf& SliceBoxingAddKernel::GetCustomizedBoxingConf() const {

Callers

nothing calls this directly

Calls 14

GenRepeatedBnFunction · 0.85
AutoMemcpyFunction · 0.85
GetSizeOfDataTypeFunction · 0.85
BnInOp2BlobMethod · 0.45
CopyMethod · 0.45
atMethod · 0.45
streamMethod · 0.45
NumAxesMethod · 0.45
shapeMethod · 0.45
LaunchMethod · 0.45
dptrMethod · 0.45
mut_dptrMethod · 0.45

Tested by

no test coverage detected