From 0af45793254fcbe732df43256c5f6626c7b20aef Mon Sep 17 00:00:00 2001 From: Cody Yu Date: Tue, 21 Jul 2020 07:52:17 -0700 Subject: [PATCH] load empty config (#6100) --- python/tvm/autotvm/record.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/python/tvm/autotvm/record.py b/python/tvm/autotvm/record.py index 260edbb183fc7..5a61c344f72b8 100644 --- a/python/tvm/autotvm/record.py +++ b/python/tvm/autotvm/record.py @@ -209,13 +209,7 @@ def load_from_file(filename): ret = decode(row) if ret is None: continue - inp, res = ret - # Avoid loading the record with an empty config. The TOPI schedule with no entities - # will result in an empty entity map (e.g., depthwise_conv2d_nchw on x86). - # Using an empty config will cause problems when applying alter op like NCHW to NCHWc. - if not inp.config._entity_map: - continue - yield (inp, res) + yield ret def split_workload(in_file, clean=True):