From 6641e001d1ea3e8bc620d47d0544a23d568b73c4 Mon Sep 17 00:00:00 2001 From: ANSHUMAN TRIPATHY Date: Sat, 19 Dec 2020 05:38:09 +0530 Subject: [PATCH] [Frontend] Unnecessary default warning msg changed to debug (#7119) --- python/tvm/relay/frontend/common.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/python/tvm/relay/frontend/common.py b/python/tvm/relay/frontend/common.py index 8c74f3a54138..6323c63ab9b3 100644 --- a/python/tvm/relay/frontend/common.py +++ b/python/tvm/relay/frontend/common.py @@ -30,6 +30,11 @@ from .. import op as _op from .. import analysis +# pylint: disable=invalid-name +logger = logging.getLogger("Common") +# Uncomment below line to print all debug msgs +# logger.setLevel(logging.DEBUG) + class RequiredAttr(object): """Dummpy class to represent required attr""" @@ -408,10 +413,10 @@ def __call__(self, inputs, attrs, *args): "Attribute %s in operator %s is not" + " supported.", k, op_name ) if k in self._disables: - logging.warning("Attribute %s is disabled in relay.sym.%s", k, op_name) + logger.debug("Attribute %s is disabled in relay.sym.%s", k, op_name) elif k in self._ignores: if k != "tvm_custom": - logging.warning("Attribute %s is ignored in relay.sym.%s", k, op_name) + logger.debug("Attribute %s is ignored in relay.sym.%s", k, op_name) elif k in self._transforms: new_name, defaults, transform = self._parse_default(self._transforms[k]) if defaults is None: