Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tic
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenyuanbo
tic
Commits
53643bdb
Unverified
Commit
53643bdb
authored
Mar 20, 2020
by
Zhi
Committed by
GitHub
Mar 20, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Fix] Fix CompilerAttrs (#5109)
* fix CompilerAttrs * retrigger ci
parent
2e8f3a91
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
python/tvm/relay/op/op_attrs.py
+7
-2
src/relay/op/annotation/annotation.cc
+2
-0
No files found.
python/tvm/relay/op/op_attrs.py
View file @
53643bdb
...
...
@@ -143,9 +143,14 @@ class DebugAttrs(Attrs):
"""Attributes for debug"""
@tvm._ffi.register_object
(
"relay.attrs.OnDeviceAttrs"
)
@tvm._ffi.register_object
(
"relay.attrs.CompilerAttrs"
)
class
CompilerAttrs
(
Attrs
):
"""Attributes for compiler"""
@tvm._ffi.register_object
(
"relay.attrs.DeviceCopyAttrs"
)
class
DeviceCopyAttrs
(
Attrs
):
"""Attributes for
tensor
.device_copy"""
"""Attributes for
annotation
.device_copy"""
@tvm._ffi.register_object
(
"relay.attrs.CastAttrs"
)
...
...
src/relay/op/annotation/annotation.cc
View file @
53643bdb
...
...
@@ -171,6 +171,8 @@ Mark a checkpoint for checkpointing memory optimization.
return
outputs
;
});
TVM_REGISTER_NODE_TYPE
(
CompilerAttrs
);
RELAY_REGISTER_OP
(
"annotation.compiler_begin"
)
.
describe
(
R"code(
Beginning of a region that is handled by a given compiler.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment