Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
magicwindyyd
mindspore
提交
1dc7bdb6
M
mindspore
项目概览
magicwindyyd
/
mindspore
与 Fork 源项目一致
Fork自
MindSpore / mindspore
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
mindspore
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
1dc7bdb6
编写于
5月 18, 2020
作者:
M
mindspore-ci-bot
提交者:
Gitee
5月 18, 2020
浏览文件
操作
浏览文件
下载
差异文件
!863 Modify operator information description
Merge pull request !863 from zjun/fix_codedex
上级
e17c7d2c
3f8dfb70
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
18 addition
and
18 deletion
+18
-18
mindspore/ops/op_info_register.py
mindspore/ops/op_info_register.py
+18
-18
未找到文件。
mindspore/ops/op_info_register.py
浏览文件 @
1dc7bdb6
...
...
@@ -156,7 +156,7 @@ class RegOp:
def
fusion_type
(
self
,
fusion_type
):
"""
Register fusion type
.
Fusion type of the operator
.
Args:
fusion_type (str): Value of fusion type.
...
...
@@ -167,7 +167,7 @@ class RegOp:
def
dtype_format
(
self
,
*
args
):
"""
Register dtype and format
.
A dtype and format supported by the operator
.
Args:
args (tuple): Value of dtype and format.
...
...
@@ -206,7 +206,7 @@ class RegOp:
class
AkgRegOp
(
RegOp
):
"""Class for Akg op info register"""
"""Class for Akg op info register
.
"""
def
__init__
(
self
,
op_name
):
super
(
AkgRegOp
,
self
).
__init__
(
op_name
)
...
...
@@ -325,7 +325,7 @@ class AiCPURegOp(RegOp):
class
TBERegOp
(
RegOp
):
"""Class for TBE op info register."""
def
__init__
(
self
,
op_name
=
""
):
def
__init__
(
self
,
op_name
):
super
(
TBERegOp
,
self
).
__init__
(
op_name
)
self
.
imply_type
=
"TBE"
self
.
async_flag_
=
False
...
...
@@ -339,10 +339,10 @@ class TBERegOp(RegOp):
def
async_flag
(
self
,
async_flag
):
"""
Register async flag
.
Define the calculation efficiency of operator, whether to support asynchronous calculation
.
Args:
async_flag (bool): Value of async flag.
async_flag (bool): Value of async flag.
Default: false.
"""
self
.
_is_bool
(
async_flag
)
self
.
async_flag_
=
async_flag
...
...
@@ -350,10 +350,10 @@ class TBERegOp(RegOp):
def
binfile_name
(
self
,
binfile_name
):
"""
Register binfile name
.
Binary file name of operator. The option is optional
.
Args:
binfile_name (str):
Name of op binfile
.
binfile_name (str):
File name of operator binary
.
"""
self
.
_is_string
(
binfile_name
)
self
.
binfile_name_
=
binfile_name
...
...
@@ -361,10 +361,10 @@ class TBERegOp(RegOp):
def
compute_cost
(
self
,
compute_cost
):
"""
Register compute cost
.
Define the calculation efficiency of operator, which refers to cost model value of the tiling module
.
Args:
compute_cost (int): Value of compute cost.
compute_cost (int): Value of compute cost.
Default: 10.
"""
self
.
_is_int
(
compute_cost
)
self
.
compute_cost_
=
compute_cost
...
...
@@ -372,10 +372,10 @@ class TBERegOp(RegOp):
def
kernel_name
(
self
,
kernel_name
):
"""
Register kernel name
.
The name of operator kernel
.
Args:
kernel_name (str): Name of op kernel.
kernel_name (str): Name of op
erator
kernel.
"""
self
.
_is_string
(
kernel_name
)
self
.
kernel_name_
=
kernel_name
...
...
@@ -383,10 +383,10 @@ class TBERegOp(RegOp):
def
partial_flag
(
self
,
partial_flag
):
"""
Register partial flag
.
Define the calculation efficiency of operator, whether to support partial calculation
.
Args:
partial_flag (bool): Value of partial flag.
partial_flag (bool): Value of partial flag.
Default: true.
"""
self
.
_is_bool
(
partial_flag
)
self
.
partial_flag_
=
partial_flag
...
...
@@ -394,7 +394,7 @@ class TBERegOp(RegOp):
def
reshape_type
(
self
,
reshape_type
):
"""
Re
gister reshape type
.
Re
shape type of operator
.
Args:
reshape_type (str): Value of reshape type.
...
...
@@ -405,10 +405,10 @@ class TBERegOp(RegOp):
def
dynamic_format
(
self
,
dynamic_format
):
"""
Register dynamic format
.
Whether the operator supports dynamic selection of format and dtype
.
Args:
reshape_type (bool): Value of dynamic format
.
dynamic_format (bool): Value of dynamic format. Default: false
.
"""
self
.
_is_bool
(
dynamic_format
)
self
.
dynamic_format_
=
dynamic_format
...
...
@@ -416,7 +416,7 @@ class TBERegOp(RegOp):
def
op_pattern
(
self
,
pattern
=
None
):
"""
Register TBE op pattern informati
on.
The behavior type of opeator, such as broadcast, reduce and so
on.
Args:
pattern (str): Value of op pattern.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录