Skip to content

Commit

Permalink
Read layer name from config dict
Browse files Browse the repository at this point in the history
  • Loading branch information
vloncar committed Jun 17, 2020
1 parent 645fae8 commit e492ae7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hls4ml/converters/keras_to_hls.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,9 @@ def keras_to_hls_old(yamlConfig):
inputs_map[name] = inputs_map.get(parent_input, parent_input)

if keras_layer["class_name"] == 'Flatten':
output_shapes[keras_layer['name']] = [input_shapes[0][0], np.prod(input_shapes[0][1:])]
output_shapes[keras_layer['config']['name']] = [input_shapes[0][0], np.prod(input_shapes[0][1:])]
else:
output_shapes[keras_layer['name']] = input_shapes[0]
output_shapes[keras_layer['config']['name']] = input_shapes[0]

continue

Expand Down

0 comments on commit e492ae7

Please sign in to comment.