MCPcopy Create free account
hub / github.com/OAID/Tengine / CreateFromStatic

Method CreateFromStatic

core/lib/graph.cpp:353–363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

351}
352
353Graph* Graph::CreateFromStatic(const std::string& graph_name, const StaticGraphPtr& static_graph)
354{
355 Graph* new_graph = new Graph(graph_name);
356
357 if(new_graph->RealCreateFromStatic(static_graph))
358 return new_graph;
359
360 delete new_graph;
361
362 return nullptr;
363}
364
365bool Graph::RemoveTensor(Tensor* tensor)
366{

Callers

nothing calls this directly

Calls 1

RealCreateFromStaticMethod · 0.80

Tested by

no test coverage detected