| 454 | } |
| 455 | |
| 456 | void 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 | |
| 466 | void TfLiteDriver::Invoke() { |
| 467 | if (!IsValid()) return; |