[Relay] use transform instead of ir_pass for CPS (#3485)
author雾雨魔理沙 <lolisa@marisa.moe>
Wed, 3 Jul 2019 14:21:44 +0000 (07:21 -0700)
committerWuwei Lin <vincentl13x@gmail.com>
Wed, 3 Jul 2019 14:21:44 +0000 (22:21 +0800)
python/tvm/relay/transform.py

index f77a532..2805e0b 100644 (file)
@@ -457,7 +457,7 @@ def ToCPS(expr, mod=None):
     result: tvm.relay.Pass
         The registered pass that transforms an expression into CPS.
     """
-    return _ir_pass.to_cps(expr, mod)
+    return _transform.to_cps(expr, mod)
 
 
 def EtaExpand():