Skip to content

Commit ca449a9

Browse files
committed
lint
Signed-off-by: xadupre <[email protected]>
1 parent 672f7d8 commit ca449a9

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

tests/run_pretrained_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ def run_tflite():
492492
tf.profiler.experimental.start(self.tf_profile)
493493
while time.time() < stop:
494494
for _ in range(PERF_STEP):
495-
_ = concrete_func(**inputs)
495+
_ = self.concrete_function(**inputs)
496496
n += PERF_STEP
497497
if self.tf_profile is not None:
498498
tf.profiler.experimental.stop()

tf2onnx/onnx_opset/nn.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1793,6 +1793,7 @@ def version_11(cls, ctx, node, **kwargs):
17931793
node.type = "Identity"
17941794
ctx.replace_inputs(node, [data])
17951795
return
1796+
cond = None
17961797
if len(conditions) == 1:
17971798
cond = conditions[0]
17981799
if len(conditions) == 2:

tf2onnx/tf_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,9 +351,9 @@ def read_tf_node_def_attrs(node_def, input_dtypes, input_shapes):
351351
# ignore the following attributes
352352
TF_IGNORED_NODE_ATTRS = {
353353
"T", "unknown_rank", "_class", "Tshape", "use_cudnn_on_gpu", "Index", "Tpaddings",
354-
"TI", "Tparams", "Tindices", "Tlen", "Tdim", "Tin", "dynamic_size", "Tmultiples",
354+
"TI", "Tparams", "Tindices", "Tlen", "Tdim", "dynamic_size", "Tmultiples",
355355
"Tblock_shape", "Tcrops", "index_type", "Taxis", "U", "maxval",
356-
"Tout", "Tlabels", "Tindex", "element_shape", "Targmax", "Tperm", "Tcond",
356+
"Tlabels", "Tindex", "element_shape", "Targmax", "Tperm", "Tcond",
357357
"T_threshold", "shape_type", "_lower_using_switch_merge",
358358
"parallel_iterations", "_num_original_outputs", "output_types", "output_shapes",
359359
"key_dtype", "value_dtype", "Tin", "Tout", "capacity", "component_types", "shapes",

tf2onnx/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
onnx_pb.TensorProto.UINT32: np.uint32,
4747
onnx_pb.TensorProto.UINT64: np.uint64,
4848
onnx_pb.TensorProto.INT64: np.int64,
49-
onnx_pb.TensorProto.UINT64: np.uint64,
49+
onnx_pb.TensorProto.INT64: np.int64,
5050
onnx_pb.TensorProto.BOOL: bool,
5151
onnx_pb.TensorProto.COMPLEX64: np.complex64,
5252
onnx_pb.TensorProto.COMPLEX128: np.complex128,

0 commit comments

Comments
 (0)