hls4ml icon indicating copy to clipboard operation
hls4ml copied to clipboard

RuntimeError: No active memories in design

Open liuhao-97 opened this issue 3 years ago • 0 comments

Thank you for your work!

I manage to generate .xclbin file with hls4ml. But when I try to execute it on FPGA, it shows 'RuntimeError: No active memories in design'. My code is below. Can you pls help me with that? ''' X_test = np.load("X_test.npy") X_test = np.asarray(X_test, dtype=np.float32)

ol = NeuralNetworkOverlay( 'xclbin_files/myproject_kernel.xclbin', device=pynq.Device.devices[1]) i_buff, o_buff = ol.allocate_mem( X_shape=X_test.shape, y_shape=(X_test.shape[0], 10), dtype=np.float32) y, _, rate = ol.predict(X=X_test, y_shape=( X_test.shape[0], 10), input_buffer=i_buff, output_buffer=o_buff, profile=True, debug=False) '''

liuhao-97 avatar Aug 11 '22 13:08 liuhao-97