GetInferenceContext

Applicable Products

All processors

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.

Restrictions

None

Example

1
2
3
4
ge::graphStatus InferShapeForXXX(CtInferShapeContext *context) {
  const auto &read_inference_context = ct_context->GetInferenceContext();
  // ...
}