We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf7485f commit 48562b1Copy full SHA for 48562b1
hls4ml/converters/onnx_to_hls.py
@@ -75,6 +75,7 @@ def get_input_shape(graph, node):
75
76
def get_constant_value(graph, constant_name):
77
from onnx import numpy_helper
78
+
79
tensor = next((x for x in graph.initializer if x.name == constant_name), None)
80
return numpy_helper.to_array(tensor) # type: ignore
81
0 commit comments