From 084f7ce0abdd9449f96b3155259947c2bd51e7bd Mon Sep 17 00:00:00 2001 From: yingchen Date: Tue, 14 Dec 2021 15:24:52 +0800 Subject: [PATCH] update comment epscification --- security/comments_specification_en.md | 13 +++++++++++++ security/comments_specification_zh_cn.md | 13 +++++++++++++ 2 files changed, 26 insertions(+) diff --git a/security/comments_specification_en.md b/security/comments_specification_en.md index aed62d3..7d1fff4 100644 --- a/security/comments_specification_en.md +++ b/security/comments_specification_en.md @@ -436,6 +436,19 @@ Supported Platforms: If `reduction` is not one of 'none', 'mean', 'sum'. ``` +- The deprecated operator needs to specify the recommended api, and "Deprecated" needs to be added in the Supported Platforms. + + ```python + class BasicLSTMCell(PrimitiveWithInfer): + """ + It's similar to operator :class:`DynamicRNN`. BasicLSTMCell will be deprecated in the future. + Please use DynamicRNN instead. + + Supported Platforms: + Deprecated + """ + ``` + ### Python Example #### Class diff --git a/security/comments_specification_zh_cn.md b/security/comments_specification_zh_cn.md index c76b964..6d0f537 100644 --- a/security/comments_specification_zh_cn.md +++ b/security/comments_specification_zh_cn.md @@ -435,6 +435,19 @@ Supported Platforms: If `reduction` is not one of 'none', 'mean', 'sum'. ``` +- 废弃算子需要写明建议使用的接口,以及需要在支持平台中写上Deprecated。 + + ```python + class BasicLSTMCell(PrimitiveWithInfer): + """ + It's similar to operator :class:`DynamicRNN`. BasicLSTMCell will be deprecated in the future. + Please use DynamicRNN instead. + + Supported Platforms: + Deprecated + """ + ``` + ### Python示例 #### 类