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

Method SetGraph

tensorflow/lite/arena_planner_test.cc:165–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163class 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);

Callers

nothing calls this directly

Calls 3

ResetAllocationsMethod · 0.80
PlanAllocationsMethod · 0.80
resetMethod · 0.45

Tested by

no test coverage detected