---
title: aclblasCreateHandleForGemvEx
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/ascendgraphapi/aclcppdevg_03_0268.html
sourcePath: /source/zh/canncommercial/900/API/ascendgraphapi/aclcppdevg_03_0268.html
indexId: 33ee8ea10e6893a00f9a0c0bc8ebefb88b6ad182de00f4e33b5cb15ac15da43872
---
# aclblasCreateHandleForGemvEx

#### 产品支持情况

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


#### 功能说明

创建矩阵-向量乘的handle，输入数据、输出数据的数据类型通过入参设置。创建handle成功后，需调用aclopExecWithHandle接口执行算子。

A、x、y的数据类型仅支持以下组合：

| A的数据类型 | x的数据类型 | y的数据类型 |
| --- | --- | --- |
| aclFloat16(https://www.hiascend.comdocument/detail/zh/canncommercial/900/API/runtimeapi/aclcppdevg\_03\_1347.html) | aclFloat16(https://www.hiascend.comdocument/detail/zh/canncommercial/900/API/runtimeapi/aclcppdevg\_03\_1347.html) | aclFloat16(https://www.hiascend.comdocument/detail/zh/canncommercial/900/API/runtimeapi/aclcppdevg\_03\_1347.html) |
| aclFloat16(https://www.hiascend.comdocument/detail/zh/canncommercial/900/API/runtimeapi/aclcppdevg\_03\_1347.html) | aclFloat16(https://www.hiascend.comdocument/detail/zh/canncommercial/900/API/runtimeapi/aclcppdevg\_03\_1347.html) | float(float32) |
| int8\_t | int8\_t | float(float32) |
| int8\_t | int8\_t | int32\_t |


#### 函数原型

```
aclError aclblasCreateHandleForGemvEx(aclTransType transA,
int m,
int n,
aclDataType dataTypeA,
aclDataType dataTypeX,
aclDataType dataTypeY,
aclComputeType type,
aclopHandle **handle)
```


#### 参数说明

| 参数名 | 输入/输出 | 说明 |
| --- | --- | --- |
| transA | 输入 | A矩阵是否转置的标记。类型定义请参见aclTransType。 |
| m | 输入 | 矩阵A的行数，存储矩阵乘数据时，行优先。 |
| n | 输入 | 矩阵A的列数。 |
| dataTypeA | 输入 | 矩阵A的数据类型。类型定义请参见aclDataType(https://www.hiascend.comdocument/detail/zh/canncommercial/900/API/runtimeapi/aclcppdevg\_03\_1346.html)。 |
| dataTypeX | 输入 | 向量x的数据类型。类型定义请参见aclDataType(https://www.hiascend.comdocument/detail/zh/canncommercial/900/API/runtimeapi/aclcppdevg\_03\_1346.html)。 |
| dataTypeY | 输入 | 向量y的数据类型。类型定义请参见aclDataType(https://www.hiascend.comdocument/detail/zh/canncommercial/900/API/runtimeapi/aclcppdevg\_03\_1346.html)。 |
| type | 输入 | 计算精度，默认高精度。类型定义请参见aclComputeType。 |
| handle | 输出 | “算子执行handle的指针”的指针。类型定义请参见aclopHandle。 |


#### 返回值说明

返回0表示成功，返回其他值表示失败，请参见aclError。
