InferValueRangeFuncRegister Constructor and Destructor

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

Header File

#include <graph/operator_factory.h>

Function Usage

Constructs and destructs an object of class InferValueRangeFuncRegister.

Prototype

1
2
3
4
InferValueRangeFuncRegister(const char_t *const operator_type, const WHEN_CALL when_call,
const InferValueRangeFunc &infer_value_range_func)
InferValueRangeFuncRegister(const char_t *const operator_type)
~InferValueRangeFuncRegister() = default

Parameters

Parameter

Input/Output

Description

operator_type

Input

Operator type.

when_call

Input

Scenario where the Infer function is called.

infer_value_range_func

Input

InferValueRange function of the operator.

Returns

Object of class InferValueRangeFuncRegister.

Restrictions

This API registers the operator InferValueRangeFuncRegister function. It is referenced by other header files and is not directly called by operator developers.