Browse Source

!273 update security/comments_specification_zh_cn.md.

Merge pull request !273 from zhaoyu/N/A
pull/275/head
charlotte77_hu Gitee 2 years ago
parent
commit
c078e44034
No known key found for this signature in database GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      security/comments_specification_zh_cn.md

+ 1
- 1
security/comments_specification_zh_cn.md View File

@@ -69,7 +69,7 @@ Examples:
- `Raises`:异常信息,包含异常类型、含义等。
- `Examples`:样例代码。

针对算子和Cell的注释,需要在`Examples`前添加`Inputs`、`Outputs`和`Supported Platforms`三项内容。
**针对算子和Cell的注释,需要在`Examples`前添加`Inputs`、`Outputs`和`Supported Platforms`三项内容。**

- `Inputs`和`Outputs`:用于描述实例化后,算子的输入和输出的类型和shape,输入名可以和样例相同。建议在注释中给出对应的数学公式。
- `Supported Platforms`:用于描述算子支持的硬件平台,名称前后需添加``,存在多个时使用空格隔开。


Loading…
Cancel
Save