Skip to content

Commit 5d65283

Browse files
author
zxy844288792
committed
modify assert
1 parent 0e1281a commit 5d65283

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/tvm/relay/frontend/tensorflow2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ def _convert_operator(self, graph, op_name, node_name, inputs, attrs):
475475
)
476476
elif op_name in _convert_map_common:
477477
# assert op are exclusive
478-
assert (not set(_convert_map_common.keys()) & set(_convert_map_tf2.keys())) == True
478+
assert not set(_convert_map_common.keys()) & set(_convert_map_tf2.keys())
479479
if _need_prelude_for_shape_inference(op_name):
480480
sym = _convert_map_common[op_name](inputs, attrs, self._params, self._prelude)
481481
else:

0 commit comments

Comments
 (0)