From: Leyuan Wang Date: Thu, 10 Oct 2019 19:55:59 +0000 (-0700) Subject: correct error (#4093) X-Git-Tag: upstream/0.7.0~1801 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f312288734e0784a0200804dcf1cf5ef8ecb864f;p=platform%2Fupstream%2Ftvm.git correct error (#4093) --- diff --git a/topi/python/topi/intel_graphics/conv2d.py b/topi/python/topi/intel_graphics/conv2d.py index f8bb16f..9b0ad0c 100644 --- a/topi/python/topi/intel_graphics/conv2d.py +++ b/topi/python/topi/intel_graphics/conv2d.py @@ -237,7 +237,8 @@ def _alter_conv2d_layout(attrs, inputs, tinfo, F): if cfg.is_fallback: _get_default_config(cfg, data, kernel, strides, padding, out_dtype, is_depthwise) - ic_bn, oc_bn = cfg["tile_ic"].size[-1], cfg["tile_oc"].size[-1] + ic_bn = cfg["tile_ic"].val if hasattr(cfg["tile_ic"], "val") else cfg["tile_ic"].size[-1] + oc_bn = cfg["tile_oc"].val if hasattr(cfg["tile_oc"], "val") else cfg["tile_oc"].size[-1] new_attrs[layout_name] = 'NCHW%dc' % ic_bn new_attrs['out_layout'] = 'NCHW%dc' % oc_bn