Pytorch on raspberry pi (ARMv7l)

I am trying to test my Trained model on raspberry pi 4.

whenever i am giving the test command i am getting the following error.

RuntimeError: invalid argument 1: RNG state is wrong size at /home/pi/pytorch/aten/src/TH/generic/THTensorRandom.cpp:443

could someone please help me with this?

It’s not the answer you are lookingfor, but I’d recommend using arm64 on arm. You’ll bemuch happier…
Of course, I’m biased…



Got the pytorch package for arm32, parallely i was trying on arm64 also there i was not able to get h5py package.
Any suggestion for h5py package installation on arm32 raspberry pi.

Personally, I am a firm believer in using system Python as opposed to venv / conda etc., and then I can apt-get install python3-h5py on arm64 as well as arm32.

Best regards


by using the mentioned command the package will be installed at root location
then, how i can use the package from a particular environment ?