Skip to content

Commit

Permalink
Use output itself rather than index for unnamed outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
sovrasov committed Jan 17, 2024
1 parent 5e64d0b commit 3bc2cda
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ def get_output_layers(self):
else output.shape
)

output_name = output.get_any_name() if output.get_names() else i
output_name = output.get_any_name() if output.get_names() else output
outputs[output_name] = Metadata(
output.get_names(),
list(output_shape),
Expand Down

0 comments on commit 3bc2cda

Please sign in to comment.