Skip to content

Commit 7e8464c

Browse files
committed
lint
1 parent d7247b0 commit 7e8464c

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

tf2onnx/convert.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -433,10 +433,7 @@ def from_keras3(model, input_signature=None, opset=None, custom_ops=None, custom
433433
Returns:
434434
A tuple (model_proto, external_tensor_storage_dict)
435435
"""
436-
437-
438436
if not input_signature:
439-
440437
input_signature = [
441438
tf.TensorSpec(tensor.shape, tensor.dtype, name=tensor.name.split(":")[0])
442439
for tensor in model.inputs
@@ -457,12 +454,9 @@ def from_keras3(model, input_signature=None, opset=None, custom_ops=None, custom
457454
if input_tensor.name not in captured_inputs]
458455
output_names = [output_tensor.name for output_tensor in concrete_func.outputs
459456
if output_tensor.dtype != tf.dtypes.resource]
460-
461457

462458
tensors_to_rename = tensor_names_from_structed(concrete_func, input_names, output_names)
463459
reverse_lookup = {v: k for k, v in tensors_to_rename.items()}
464-
465-
466460

467461
valid_names = []
468462
for out in [t.name for t in model.outputs]:

0 commit comments

Comments
 (0)