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

Method SetField

tensorflow/lite/testing/parse_testdata.cc:314–322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

312 }
313
314 void SetField(const std::string& name, const std::string& value) override {
315 if (name == "input") {
316 if (expected_inputs_.empty()) {
317 return test_runner_->Invalidate("Too many inputs to reshape");
318 }
319 test_runner_->ReshapeTensor(*expected_inputs_.begin(), value);
320 expected_inputs_.erase(expected_inputs_.begin());
321 }
322 }
323
324 private:
325 std::vector<int> expected_inputs_;

Callers

nothing calls this directly

Calls 5

emptyMethod · 0.45
InvalidateMethod · 0.45
ReshapeTensorMethod · 0.45
beginMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected