Reading npz or npy files with tract #1215
-
I have saved numpy array and I want to use it, can I read npz or npy files with tract? |
Beta Was this translation helpful? Give feedback.
Answered by
kali
Sep 28, 2023
Replies: 2 comments
-
You an use tract-libcli tensors::for_npz. It's just a dump wrapper around ndarray_npy if you prefer not to pull tract-libcli. https://github.com/sonos/tract/blob/main/libcli/src/tensor.rs#L200 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
igor-yusupov
-
@kali it seems to be the same as using ndarray_npy::NpzReader. I got it, thank you! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You an use tract-libcli tensors::for_npz. It's just a dump wrapper around ndarray_npy if you prefer not to pull tract-libcli.
https://github.com/sonos/tract/blob/main/libcli/src/tensor.rs#L200