Hi, I am preprocessing my data, and I want to save my data which is a dictionary of tensors, to a file, and then read this file “live” when running the network.
I tried using Json file, didn’t go well:“TypeError: Object of type ‘Tensor’ is not JSON serializable”
The error is clear, so no questions about that.
I saw two options dedicated to pytorch:
- Pickle- Have no Idea about this, found very little information about that.
- Use the save and load model given by pytorch, is it possible or superslow/non-effective, other warnings?
What’s your opinion? maybe something else?
Thanks,
Barak.