Skip to content

Commit

Permalink
fix missing input names in squeeze layers
Browse files Browse the repository at this point in the history
  • Loading branch information
JanFSchulte committed Dec 13, 2024
1 parent f58ed42 commit 3e5b7eb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hls4ml/converters/pytorch/reshape.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def parse_squeeze_layer(operation, layer_name, input_names, input_shapes, node,
layer = {}
layer['class_name'] = 'Reshape'
layer['name'] = layer_name
layer['inputs'] = input_names

if len(node.args) > 1 or len(node.kwargs) > 0: # 'dim' argument is specified
output_shape = [i for i in input_shapes[0]]
Expand Down

0 comments on commit 3e5b7eb

Please sign in to comment.