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

Function FOR_RANGE

oneflow/core/framework/op_kernel_infer_cache.cpp:53–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51 };
52 const auto& inputs = ctx->inputs();
53 FOR_RANGE(int, i, 0, inputs.size()) {
54 const auto& arg_pair = inputs.at(i);
55 cache_key_.ibn_idx2shape_sym.at(i) = GetSymbolOfShape(arg_pair.first, arg_pair.second);
56 }
57}
58
59void OpKernelInferCache::UpdateCacheValue(KernelInferContext* ctx) {

Callers

nothing calls this directly

Calls 5

atMethod · 0.45
outputsMethod · 0.45
ToShapeMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected