Running a vocoder in C++

I have a mel file which I generated using Python and saved using
Now i want to load this file in C++ into a torch:;Tesnsor.
I looked at from_blob but it does not seem to fit this scenario.
How can I load such a file (or pickled npy?) from disk into a tensor in C++?


I’m not sure, if this comment is still up-to-date, but if so you should use on the Python side and load it via torch::load in C++.