Skip to content

Commit

Permalink
[Frontend] Unnecessary default warning msg changed to debug (apache#7119
Browse files Browse the repository at this point in the history
)
  • Loading branch information
ANSHUMAN TRIPATHY authored and trevor-m committed Jan 21, 2021
1 parent 3ec68dd commit 6641e00
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions python/tvm/relay/frontend/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"""
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 6641e00

Please sign in to comment.