Skip to content

Commit 79f3534

Browse files
committed
fix(vitis_backend.py): command variable not initialized on hardware_predict
1 parent 22401ba commit 79f3534

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

hls4ml/backends/vitis_accelerator/vitis_accelerator_backend.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,10 @@ def dat_to_numpy(self, model):
115115
return y
116116

117117
def hardware_predict(self, model, x, target="hw", debug=False, profilingRepeat=-1):
118+
command = ""
119+
118120
if debug:
119-
command = "DEBUG=1 "
121+
command += "DEBUG=1 "
120122
if isinstance(profilingRepeat, int) and profilingRepeat > 0:
121123
command += "PROFILING_DATA_REPEAT_COUNT=" + profilingRepeat + " "
122124
self._validate_target(target)

0 commit comments

Comments
 (0)