| 163 | class ArenaPlannerTest : public ::testing::Test { |
| 164 | protected: |
| 165 | void SetGraph(TestGraph* graph, bool preserve_inputs = false) { |
| 166 | graph_ = graph; |
| 167 | context_.ReportError = ReportError; |
| 168 | planner_.reset(new ArenaPlanner( |
| 169 | &context_, std::unique_ptr<GraphInfo>(new TestGraphInfo(graph)), |
| 170 | preserve_inputs, /*preserve intermediates*/ false, kTensorAlignment)); |
| 171 | CHECK(planner_->ResetAllocations() == kTfLiteOk); |
| 172 | CHECK(planner_->PlanAllocations() == kTfLiteOk); |
| 173 | } |
| 174 | |
| 175 | void SwapGraph(TestGraph* graph) { |
| 176 | graph_->Swap(graph); |
nothing calls this directly
no test coverage detected