Introduction

InferShapeRangeContext inherits from ExtendedKernelContext and is mainly used to obtain the input and output ShapeRange and the input TensorRange of an operator. ShapeRange and TensorRange are specialization types of the Range<T> template, recording the upper and lower bounds of the operator's shape and tensor values. For some operators (for example, the NonZero operator), the specific output shape cannot be inferred during shape inference, and only the maximum shape can be estimated through the ShapeRange information.

The inheritance relationship of InferShapeRangeContext is as follows:

Header File to Include

#include <infer_shape_range_context.h>