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

Method SetShapeExpectation

tensorflow/lite/testing/tflite_driver.cc:456–464  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

454}
455
456void TfLiteDriver::SetShapeExpectation(int id, const string& csv_values) {
457 if (!IsValid()) return;
458 if (expected_output_shape_.count(id) != 0) {
459 Invalidate(
460 absl::StrCat("Overridden shape expectation for tensor '", id, "'"));
461 }
462 expected_output_shape_[id].reset(new Expectation);
463 expected_output_shape_[id]->SetData<int32_t>(csv_values);
464}
465
466void TfLiteDriver::Invoke() {
467 if (!IsValid()) return;

Callers 1

SetFieldMethod · 0.45

Calls 4

IsValidFunction · 0.85
StrCatFunction · 0.50
countMethod · 0.45
resetMethod · 0.45

Tested by 1

SetFieldMethod · 0.36