Skip to content

Commit

Permalink
[Doc] TVM_REGISTER_API -> TVM_REGISTER_GLOBAL (apache#4768)
Browse files Browse the repository at this point in the history
  • Loading branch information
hlu1 authored and zhiics committed Mar 2, 2020
1 parent 9f29fba commit 1792059
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/dev/relay_add_pass.rst
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ also add a Python binding for the pass, as in this code snippet:

.. code:: c
TVM_REGISTER_API("relay._transform.FoldConstant")
TVM_REGISTER_GLOBAL("relay._transform.FoldConstant")
.set_body_typed(FoldConstant);
Once ``Pass`` objects are defined in the above fashion, they can be invoked using the
Expand Down

0 comments on commit 1792059

Please sign in to comment.