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

Method InputRange

tensorflow/core/framework/op_kernel.cc:139–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139Status OpKernel::InputRange(StringPiece input_name, int* start,
140 int* stop) const {
141 const auto result = input_name_map_.find(input_name);
142 if (result == input_name_map_.end()) {
143 return errors::InvalidArgument("Unknown input name: ", input_name);
144 } else {
145 *start = result->second.first;
146 *stop = result->second.second;
147 return Status::OK();
148 }
149}
150
151Status OpKernel::OutputRange(StringPiece output_name, int* start,
152 int* stop) const {

Callers 12

InputIndexFunction · 0.80
ConstantInputListMethod · 0.80
inputMethod · 0.80
input_dtypeMethod · 0.80
input_ref_mutexMethod · 0.80
mutable_inputMethod · 0.80
replace_ref_inputMethod · 0.80
input_listMethod · 0.80
mutable_input_listMethod · 0.80
BM_InputRangeHelperFunction · 0.80

Calls 3

InvalidArgumentFunction · 0.85
findMethod · 0.45
endMethod · 0.45

Tested by 1

BM_InputRangeHelperFunction · 0.64