From 1792059fe62c44731a5b5a4ab464edb5f4b1b209 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 0910f9cfecf4..e842664eaad0 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