---
title: 函数：create_handle_for_hgemv
description: "| C函数原型 | aclError aclblasCreateHandleForHgemv(aclTransType transA, int m, int n, aclComputeType type, aclopHandle \*\*handle) |"
url: https://www.hiascend.com/document/detail/zh/Atlas200IDKA2DeveloperKit/latest/Application%20Development%20Guide/aadgp/aclpythondevg_01_0790.html
sourcePath: /source/zh/Atlas200IDKA2DeveloperKit/23.0.RC2/Application Development Guide/aadgp/aclpythondevg_01_0790.html
indexId: 35fa554f01443302dd1378c8cd2df676b7ea3a9f6e6bc330a14f9a1e8433e709108
---
# 函数：create_handle_for_hgemv

| C函数原型 | aclError aclblasCreateHandleForHgemv(aclTransType transA, int m, int n, aclComputeType type, aclopHandle \*\*handle) |
| --- | --- |
| Python函数 | handle, ret = acl.blas.create\_handle\_for\_hgemv(trans\_a, m, n, type) |
| 函数功能 | 创建矩阵\-向量乘的handle，输入数据和输出数据的数据类型为aclFloat16，同步接口。 创建handle成功后，需调用acl.op.execute\_with\_handle接口执行算子。 |
| 输入说明 | trans\_a：int，矩阵A是否转置的标记。 m：int，矩阵A的行数，存储矩阵乘数据时，行优先。 n：int，矩阵A的列数。 type：int，计算精度。 |
| 返回值说明 | handle：int，执行算子的handle数据的指针地址。 ret：int，错误码。 返回0表示成功。 返回其它值表示失败。 |
| 约束说明 | 无 |
