Returns the InferenceContext for 'node', if present.
| 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 { |