Skip to content
Snippets Groups Projects
Commit 65dee8b9 authored by Yaman Umuroglu's avatar Yaman Umuroglu
Browse files

[Driver] enable endian reversal in driver output parsing

parent 471ded9c
No related branches found
No related tags found
No related merge requests found
......@@ -103,7 +103,9 @@ dma.sendchannel.wait()
dma.recvchannel.wait()
# unpack the packed output buffer from accelerator
obuf_folded = packed_bytearray_to_finnpy(obuf_packed, odt, oshape_folded)
obuf_folded = packed_bytearray_to_finnpy(
obuf_packed, odt, oshape_folded, reverse_endian=True
)
# convert to normal reshape and save
obuf_normal = obuf_folded.reshape(oshape_normal)
np.save("output.npy", obuf_normal)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment