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

Method GetContext

tensorflow/core/common_runtime/shape_refiner.h:129–135  ·  view source on GitHub ↗

Returns the InferenceContext for 'node', if present.

Source from the content-addressed store, hash-verified

127
128 // Returns the InferenceContext for 'node', if present.
129 shape_inference::InferenceContext* GetContext(const Node* node) const {
130 auto it = node_to_context_.find(node);
131 if (it == node_to_context_.end()) {
132 return nullptr;
133 }
134 return it->second->get_context();
135 }
136
137 // Returns the ExtendedInferenceContext for 'node', if present.
138 ExtendedInferenceContext* GetExtendedContext(const Node* node) const {

Callers 15

FoldConstantsFunction · 0.45
PropagateShapesFunction · 0.45
StoreOutputShapesFunction · 0.45
TestStridedSliceMethod · 0.45
TEST_FFunction · 0.45
RegisterConstantNodeMethod · 0.45

Calls 3

get_contextMethod · 0.80
findMethod · 0.45
endMethod · 0.45

Tested by 2

TestStridedSliceMethod · 0.36
TEST_FFunction · 0.36