From 852969ea97924d51f139cb837c2fa56cefecc501 Mon Sep 17 00:00:00 2001 From: hlu1 <14827759+hlu1@users.noreply.github.com> Date: Thu, 23 Jan 2020 16:48:25 -0800 Subject: [PATCH] [Doc] TVM_REGISTER_API -> TVM_REGISTER_GLOBAL (#4768) --- docs/dev/relay_add_pass.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/dev/relay_add_pass.rst b/docs/dev/relay_add_pass.rst index 0910f9cfecf41..e842664eaad0e 100644 --- a/docs/dev/relay_add_pass.rst +++ b/docs/dev/relay_add_pass.rst @@ -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