Skip to content

Commit bfb0644

Browse files
authored
Merge pull request #627 from zhijxu-MS/support_batchmatmulv2
Support batchmatmulv2, and fix tf2onnx logging problem
2 parents 9644fe6 + 330b414 commit bfb0644

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

tf2onnx/onnx_opset/math.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ def version_1(cls, ctx, node, **kwargs):
271271
name=op_name, shapes=shapes, dtypes=dtypes)
272272

273273

274-
@tf_op(["MatMul", "BatchMatMul"])
274+
@tf_op(["MatMul", "BatchMatMul", "BatchMatMulV2"])
275275
class MatMul:
276276
@classmethod
277277
def version_1(cls, ctx, node, **kwargs):

tf2onnx/verbose_logging.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ def basicConfig(**kwargs): # pylint: disable=invalid-name, function-redefined
4242
if "format" not in kwargs:
4343
level = kwargs.get("level", _logging.root.level)
4444
kwargs["format"] = _BASIC_LOG_FORMAT if level >= INFO else _VERBOSE_LOG_FORMAT
45-
45+
# config will make effect only when root.handlers is empty, so add the following statement to make sure it
46+
_logging.root.handlers = []
4647
_logging.basicConfig(**kwargs)
4748
set_tf_verbosity(_logging.getLogger().getEffectiveLevel())
4849

0 commit comments

Comments
 (0)