From d9ab23e70126fbb1b444cd76f7e1c664e9e3a330 Mon Sep 17 00:00:00 2001 From: Wei Chen Date: Thu, 20 Jun 2019 06:58:38 -0700 Subject: [PATCH] Fix global var in prelude --- python/tvm/relay/prelude.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/tvm/relay/prelude.py b/python/tvm/relay/prelude.py index 17df61750afd..af0497e3801a 100644 --- a/python/tvm/relay/prelude.py +++ b/python/tvm/relay/prelude.py @@ -482,8 +482,8 @@ def load_prelude(self): with open(prelude_file) as prelude: prelude = fromtext(prelude.read()) self.mod.update(prelude) - self.id = self.mod["id"] - self.compose = self.mod["compose"] + self.id = self.mod.get_global_var("id") + self.compose = self.mod.get_global_var("compose") def __init__(self, mod):