Skip to content

Commit

Permalink
Update include/tvm/relay/attrs/annotation.h
Browse files Browse the repository at this point in the history
Co-Authored-By: 雾雨魔理沙 <lolisa@marisa.moe>
  • Loading branch information
2 people authored and zhiics committed Jan 1, 2020
1 parent 3228135 commit 23154bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/tvm/relay/attrs/annotation.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ struct CompilerAttrs : public tvm::AttrsNode<CompilerAttrs> {

TVM_DECLARE_ATTRS(CompilerAttrs, "relay.attrs.CompilerAttrs") {
TVM_ATTR_FIELD(compiler)
.describe("A 3rd compiler used for code generation.");
.describe("A 3rd party compiler used for code generation.");
}
};

Expand Down
4 changes: 2 additions & 2 deletions src/relay/op/annotation/annotation.cc
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ Beginning of a region that is handled by a given compiler.

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

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

0 comments on commit 23154bd

Please sign in to comment.