Skip to content

Commit

Permalink
pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
calad0i committed Nov 8, 2024
1 parent bf7485f commit 48562b1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hls4ml/converters/onnx_to_hls.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ def get_input_shape(graph, node):

def get_constant_value(graph, constant_name):
from onnx import numpy_helper

tensor = next((x for x in graph.initializer if x.name == constant_name), None)
return numpy_helper.to_array(tensor) # type: ignore

Expand Down

0 comments on commit 48562b1

Please sign in to comment.