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

Method NewRootScope

tensorflow/cc/framework/scope.cc:66–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64 disable_shape_inference_(refiner_ == nullptr) {}
65
66Scope Scope::NewRootScope() {
67 Graph* graph = new Graph(OpRegistry::Global());
68 ShapeRefiner* refiner =
69 new ShapeRefiner(graph->versions(), graph->op_registry());
70 return Scope(new Impl(graph, new Status, new Impl::NameMap, refiner,
71 /* disable_shape_inference */ false));
72}
73
74Scope Scope::DisabledShapeInferenceScope() {
75 Graph* graph = new Graph(OpRegistry::Global());

Callers

nothing calls this directly

Calls 3

ScopeClass · 0.70
versionsMethod · 0.45
op_registryMethod · 0.45

Tested by

no test coverage detected