Overview

Inherited from InferShapeContext, CtInferShapeContext is used for shape 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 CtInferShapeContext during compilation.

The following figure shows the inheritance relationship of CtInferShapeContext.

KernelContext Class

Header Files to Be Included

1
#include <ct_infer_shape_context.h>