MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / NameRangesHelper

Function NameRangesHelper

tensorflow/core/framework/node_def_util.cc:700–711  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

698}
699
700Status NameRangesHelper(const AttrSlice& attrs,
701 const protobuf::RepeatedPtrField<OpDef::ArgDef>& args,
702 const OpDef& op_def, NameRangeMap* result) {
703 int start = 0;
704 int num;
705 for (const auto& arg : args) {
706 TF_RETURN_IF_ERROR(ComputeArgRange(attrs, arg, op_def, &num));
707 (*result)[arg.name()] = std::make_pair(start, start + num);
708 start += num;
709 }
710 return Status::OK();
711}
712
713} // namespace
714

Callers 1

NameRangesForNodeFunction · 0.85

Calls 2

ComputeArgRangeFunction · 0.85
nameMethod · 0.65

Tested by

no test coverage detected