---
title: pyACL表达约定
description: "接口命名同时满足如下规则："
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/ascendgraphapi/aclpythondevg_01_1018.html
sourcePath: /source/zh/canncommercial/900/API/ascendgraphapi/aclpythondevg_01_1018.html
indexId: 13b5d5ebc2c9607151dae6b201025d98d9dce058a9c61ae4faa8f648dcf14caa75
---
# pyACL表达约定

#### 接口命名规则

接口命名同时满足如下规则：

1. acl+  接口类别缩写
+  操作动词
+  对象

2. 操作动词和对象均采用首字母大写。


#### 接口类别

| 接口类别 | 缩写 | 描述 |
| --- | --- | --- |
| CBLAS | blas | 表示blas类的接口 |
| model | mdl | 表示模型推理类的接口 |
| OP | op | 表示算子执行类的接口 |


- 缩写原则上不超过4个字母。
- 在接口命名中，如果类别与操作对象重叠时，操作动词后的对象将省略。如：acl.mdl.load_from_file_with_mem，表示model类接口，这个接口表示含义是load model from file，因此在接口命名中Load后面mdl将被省略。


#### 变量命名

本文代码示例中涉及的变量，其中，命名带下划线的变量（例如：_deviceId_）表示类的私有变量。
