Skip to content

Commit 14c5735

Browse files
committed
pylint
1 parent 133d12e commit 14c5735

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

tests/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class TestConfig(object):
2424
def __init__(self):
2525
self.platform = sys.platform
2626
self.tf_version = self._get_tf_version()
27-
self.opset = int(os.environ.get("TF2ONNX_TEST_OPSET", 9))
27+
self.opset = int(os.environ.get("TF2ONNX_TEST_OPSET", 7))
2828
self.target = os.environ.get("TF2ONNX_TEST_TARGET", ",".join(DEFAULT_TARGET)).split(',')
2929
self.backend = os.environ.get("TF2ONNX_TEST_BACKEND", "onnxruntime")
3030
self.backend_version = self._get_backend_version()

tf2onnx/rewriter/cond_rewriter.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
from collections import OrderedDict
1313
from enum import Enum
1414
from tf2onnx import utils
15-
from tf2onnx.utils import TensorValueInfo
1615

1716
logging.basicConfig(level=logging.INFO)
1817
log = logging.getLogger("tf2onnx.rewriter.cond_rewriter_base")

tf2onnx/tfonnx.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,6 @@ def broadcast_op(ctx, node, name, args):
199199
node.input[1] = tmp
200200
else:
201201
node.set_attr("broadcast", 0)
202-
return node
203202

204203

205204
def broadcast_op7(ctx, node, name, args):
@@ -221,7 +220,6 @@ def broadcast_op7(ctx, node, name, args):
221220
tmp = node.input[0]
222221
node.input[0] = node.input[1]
223222
node.input[1] = tmp
224-
return node
225223

226224

227225
def arg_minmax_op(ctx, node, name, args):
@@ -682,7 +680,7 @@ def biasadd_op7(ctx, node, name, args):
682680
# T output = BiasAddV1(T value, T bias)
683681
# According TF bias_add definition, the input dim is always only 1.
684682
node.type = "Add"
685-
node = broadcast_op7(ctx, node, name, args)
683+
broadcast_op7(ctx, node, name, args)
686684

687685
# on NHWC, bias will broadcast from largest dim, which is default onnx Add op broadcast behavior.
688686
if not node.is_nhwc():

0 commit comments

Comments
 (0)