Skip to content

Commit 23154bd

Browse files
comaniacMarisaKirisame
authored andcommitted
Update include/tvm/relay/attrs/annotation.h
Co-Authored-By: 雾雨魔理沙 <[email protected]>
1 parent 3228135 commit 23154bd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

include/tvm/relay/attrs/annotation.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ struct CompilerAttrs : public tvm::AttrsNode<CompilerAttrs> {
6666

6767
TVM_DECLARE_ATTRS(CompilerAttrs, "relay.attrs.CompilerAttrs") {
6868
TVM_ATTR_FIELD(compiler)
69-
.describe("A 3rd compiler used for code generation.");
69+
.describe("A 3rd party compiler used for code generation.");
7070
}
7171
};
7272

src/relay/op/annotation/annotation.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ Beginning of a region that is handled by a given compiler.
190190

191191
TVM_REGISTER_API("relay.op.annotation._make.compiler_begin")
192192
.set_body_typed<Expr(Expr, std::string)>([](Expr expr, std::string compiler) {
193-
auto attrs = make_node<CompilerAttrs>();
193+
auto attrs = make_object<CompilerAttrs>();
194194
attrs->compiler = compiler;
195195
static const Op& op = Op::Get("annotation.compiler_begin");
196196
return CallNode::make(op, {expr}, Attrs(attrs), {});
@@ -215,7 +215,7 @@ End of a region that is handled by a given compiler.
215215

216216
TVM_REGISTER_API("relay.op.annotation._make.compiler_end")
217217
.set_body_typed<Expr(Expr, std::string)>([](Expr expr, std::string compiler) {
218-
auto attrs = make_node<CompilerAttrs>();
218+
auto attrs = make_object<CompilerAttrs>();
219219
attrs->compiler = compiler;
220220
static const Op& op = Op::Get("annotation.compiler_end");
221221
return CallNode::make(op, {expr}, Attrs(attrs), {});

0 commit comments

Comments
 (0)