Change is to == to avoid warning (#4683)

This commit is contained in:
John Gibson 2021-03-10 02:03:55 -05:00 committed by GitHub
parent f8ccc4f39e
commit 3330ef3da3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -86,7 +86,7 @@ def print_argv(argv: argparse.Namespace, is_caffe: bool, is_tf: bool, is_mxnet:
if isinstance(desc, list):
lines.append('\t{}: \t{}'.format(desc[0], desc[1](getattr(argv, op, 'NONE'))))
else:
if op is 'k':
if op == 'k':
default_path = os.path.join(os.path.dirname(sys.argv[0]),
'extensions/front/caffe/CustomLayersMapping.xml')
if getattr(argv, op, 'NONE') == default_path: