From 595c2b745ff13d4997402e4b71662ebf2e54ae47 Mon Sep 17 00:00:00 2001 From: Yong Wu Date: Fri, 6 Sep 2019 08:30:04 -0700 Subject: [PATCH] [bugfix] remove duplicate resize (#3902) --- src/relay/backend/vm/compiler.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/relay/backend/vm/compiler.cc b/src/relay/backend/vm/compiler.cc index 39508d2c1007..8c60fe6d0ee7 100644 --- a/src/relay/backend/vm/compiler.cc +++ b/src/relay/backend/vm/compiler.cc @@ -815,10 +815,6 @@ void VMCompiler::Compile(const Module& mod_ref, // the global state. vm_->functions.resize(context_.module->functions.size()); - // Next we get ready by allocating space for - // the global state. - vm_->functions.resize(context_.module->functions.size()); - for (auto named_func : context_.module->functions) { auto gvar = named_func.first; auto func = named_func.second;