---
title: InferValueRangeFuncRegister构造函数和析构函数
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/ascendgraphapi/atlasgeapi_07_0615.html
sourcePath: /source/zh/canncommercial/900/API/ascendgraphapi/atlasgeapi_07_0615.html
indexId: 18300903d75b47fbcc9592918c5d124cfe864654fc8ff14a13651ab758f7e50a72
---
# InferValueRangeFuncRegister构造函数和析构函数

#### 产品支持情况

| 产品 | 是否支持 |
| --- | --- |
| Atlas 350 加速卡 | √ |
| Atlas A3 训练系列产品 / Atlas A3 推理系列产品 | √ |
| Atlas A2 训练系列产品 / Atlas A2 推理系列产品 | √ |
| Atlas 200I/500 A2 推理产品 | √ |
| Atlas 推理系列产品 | √ |
| Atlas 训练系列产品 | √ |


#### 头文件

#include <graph/operator_factory.h>


#### 功能说明

InferValueRangeFuncRegister构造函数和析构函数。


#### 函数原型

```
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
```


#### 参数说明

| 参数名 | 输入/输出 | 描述 |
| --- | --- | --- |
| operator\_type | 输入 | 算子类型。 |
| when\_call | 输入 | infer函数的调用场景。 |
| infer\_value\_range\_func | 输入 | 算子InferValueRange函数。 |


#### 返回值说明

InferValueRangeFuncRegister构造函数返回InferValueRangeFuncRegister类型的对象。


#### 约束说明

算子InferValueRangeFuncRegister函数注册接口，此接口被其他头文件引用，一般不由算子开发者直接调用。
