Skip to content

Commit 48562b1

Browse files
committed
pre-commit
1 parent bf7485f commit 48562b1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

hls4ml/converters/onnx_to_hls.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ def get_input_shape(graph, node):
7575

7676
def get_constant_value(graph, constant_name):
7777
from onnx import numpy_helper
78+
7879
tensor = next((x for x in graph.initializer if x.name == constant_name), None)
7980
return numpy_helper.to_array(tensor) # type: ignore
8081

0 commit comments

Comments
 (0)