Overview

Inherited from InferShapeRangeContext, CtInferShapeRangeContext is used for ShapeRange inference during compilation and provides APIs for compilation.

This class is mainly used for resource operators, which are classified into resource creation operators and resource utilization operators. The operators of the two types associate resources by transferring the DT_RESOURCE handle. The handle information is obtained through an API provided by CtInferShapeRangeContext during compilation.

The following figure shows the inheritance relationship of CtInferShapeRangeContext.

KernelContext Class

Header Files to Be Included

1
#include <ct_infer_shape_range_context.h>