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

Method OutputRange

tensorflow/core/framework/op_kernel.cc:151–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149}
150
151Status OpKernel::OutputRange(StringPiece output_name, int* start,
152 int* stop) const {
153 const auto result = output_name_map_.find(output_name);
154 if (result == output_name_map_.end()) {
155 return errors::InvalidArgument("Unknown output name: ", output_name);
156 } else {
157 *start = result->second.first;
158 *stop = result->second.second;
159 return Status::OK();
160 }
161}
162
163Status OpKernel::MakeShape(const Tensor& shape, TensorShape* out) const {
164 if (!IsLegacyVector(shape.shape())) {

Callers 6

output_listMethod · 0.80
allocate_outputMethod · 0.80
set_outputMethod · 0.80
set_output_refMethod · 0.80
mutable_outputMethod · 0.80

Calls 3

InvalidArgumentFunction · 0.85
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected