Skip to content

Commit d08ea05

Browse files
committed
fix[hardware_predict]: Fixed hardcoded output directory
1 parent 71ee2fd commit d08ea05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hls4ml/backends/vitis_accelerator/vitis_accelerator_backend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def hardware_predict(self, model, x, target="hw", debug=False, profilingRepeat=-
157157
X_test_flat = X_test_flat.ctypes.data_as(ctypes.POINTER(ctypes.c_double))
158158

159159
# Change working directory to the HLS project directory
160-
os.chdir('model_va/hls4ml_prj')
160+
os.chdir(model.config.get_output_dir())
161161

162162
# Check if the shared library exists
163163
if not os.path.exists('./lib_host.so'):

0 commit comments

Comments
 (0)