GetInferenceContext
Applicability
Product |
Supported or Not |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Header File
#include <graph/ct_infer_shape_context.h>
Function Usage
Obtains the InferenceContext pointer.
Prototype
1 | ge::InferenceContext *GetInferenceContext() const |
Parameters
None
Returns
InferenceContext pointer.
For details about the definition of the InferenceContext type, see InferenceContext.
Constraints
None
Examples
1 2 3 4 | ge::graphStatus InferShapeForXXX(CtInferShapeContext *context) { const auto &read_inference_context = ct_context->GetInferenceContext(); // ... } |
Parent topic: CtInferShapeContext