---
title: 函数：create_repo_range
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/others/fvsearch/aclpythondevg_01_0837.html
sourcePath: /source/zh/canncommercial/900/others/fvsearch/aclpythondevg_01_0837.html
indexId: 6943a7d2b33fa8070eea23355f302178bf0a0d7fbf66eeba7b3008cca560559272
---
# 函数：create_repo_range

#### 产品支持情况

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


#### 功能说明

创建aclfvRepoRange类型的数据，表示创建特征库范围的参数。

如需销毁aclfvRepoRange类型的数据，请参见函数：destroy_repo_range。

Atlas 推理系列产品 中的 Atlas 推理系列加速模块产品 不支持该接口。


#### 函数原型

- C函数原型
  1 aclfvRepoRange *aclfvCreateRepoRange(uint32_t id0Min, uint32_t id0Max, uint32_t id1Min, uint32_t id1Max)

- python函数
  1 repo_range = acl.fv.create_repo_range(id0min, id0max, id1min, id1max)


#### 参数说明

| 参数名 | 说明 |
| --- | --- |
| id0min | int，id0起始值，取值范围：[0,1023]，需小于等于id0Max。 |
| id0max | int，id0最大值，取值范围：[0,1023]。 |
| id1min | int，id1起始值，取值范围：[0,1023]，需小于等于id1Max。 |
| id1max | int，id1最大值，取值范围：[0,1023]。 |


#### 返回值说明

| 返回值 | 说明 |
| --- | --- |
| repo\_range | int，指针地址。 返回aclfvRepoRange类型，表示成功。 返回0，表示失败。 |


#### 资源参考

接口调用流程及示例代码，参见特征向量检索(https://www.hiascend.comdocument/detail/zh/canncommercial/900/programug/acldevg/aclpythondevg_0079.html)。
