Skip to content

Commit 3f1d42b

Browse files
committed
fix[hardware_predict]: fixed x input for file based
1 parent 10fbba0 commit 3f1d42b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hls4ml/backends/vitis_accelerator/vitis_accelerator_backend.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ def hardware_predict(self, model, x, target="hw", debug=False, profilingRepeat=-
132132
if isinstance(profilingRepeat, int) and profilingRepeat > 0:
133133
command += "PROFILING_DATA_REPEAT_COUNT=" + profilingRepeat + " "
134134
self._validate_target(target)
135-
135+
136+
x = np.array(x)
136137
self.numpy_to_dat(model, x)
137138

138139
currdir = os.getcwd()

0 commit comments

Comments
 (0)