[Doc] TVM_REGISTER_API -> TVM_REGISTER_GLOBAL (#4768)
authorhlu1 <14827759+hlu1@users.noreply.github.com>
Fri, 24 Jan 2020 00:48:25 +0000 (16:48 -0800)
committerTianqi Chen <tqchen@users.noreply.github.com>
Fri, 24 Jan 2020 00:48:25 +0000 (08:48 +0800)
docs/dev/relay_add_pass.rst

index 0910f9c..e842664 100644 (file)
@@ -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