Skip to content

Commit

Permalink
rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiics committed Jan 5, 2020
1 parent 3673927 commit d502341
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/relay/op/annotation/annotation.cc
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ Beginning of a region that is handled by a given compiler.
return {topi::identity(inputs[0])};
});

TVM_REGISTER_API("relay.op.annotation._make.compiler_begin")
TVM_REGISTER_GLOBAL("relay.op.annotation._make.compiler_begin")
.set_body_typed<Expr(Expr, std::string)>([](Expr expr, std::string compiler) {
auto attrs = make_object<CompilerAttrs>();
attrs->compiler = compiler;
Expand All @@ -213,7 +213,7 @@ End of a region that is handled by a given compiler.
return {topi::identity(inputs[0])};
});

TVM_REGISTER_API("relay.op.annotation._make.compiler_end")
TVM_REGISTER_GLOBAL("relay.op.annotation._make.compiler_end")
.set_body_typed<Expr(Expr, std::string)>([](Expr expr, std::string compiler) {
auto attrs = make_object<CompilerAttrs>();
attrs->compiler = compiler;
Expand Down
2 changes: 1 addition & 1 deletion src/relay/pass/annotate_compiler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ Pass AnnotateCompiler(const std::string& compiler) {
return transform::Sequential({func_pass, InferType()}, "AnnotateCompiler");
}

TVM_REGISTER_API("relay._transform.AnnotateCompiler")
TVM_REGISTER_GLOBAL("relay._transform.AnnotateCompiler")
.set_body_typed(AnnotateCompiler);

} // namespace transform
Expand Down
2 changes: 1 addition & 1 deletion src/relay/pass/partition_graph.cc
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ Pass PartitionGraph() {
return Sequential({partitioned, InferType()});
}

TVM_REGISTER_API("relay._transform.PartitionGraph")
TVM_REGISTER_GLOBAL("relay._transform.PartitionGraph")
.set_body_typed(transform::PartitionGraph);

} // namespace transform
Expand Down

0 comments on commit d502341

Please sign in to comment.