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

Method input

tensorflow/core/framework/shape_inference.cc:196–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194}
195
196Status InferenceContext::input(StringPiece input_name,
197 std::vector<ShapeHandle>* output) const {
198 const auto result = input_name_map_.find(input_name);
199 if (result == input_name_map_.end()) {
200 return errors::InvalidArgument("Unknown input name: ", input_name);
201 } else {
202 output->clear();
203 for (int i = result->second.first; i < result->second.second; ++i) {
204 output->push_back(inputs_[i]);
205 }
206 }
207 return Status::OK();
208}
209
210Status InferenceContext::output(StringPiece output_name,
211 std::vector<ShapeHandle>* output) const {

Callers

nothing calls this directly

Calls 5

InvalidArgumentFunction · 0.85
findMethod · 0.45
endMethod · 0.45
clearMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected