[W NNPACK.ccp:53] Could not initialize NNPACK! Reason: Unsupported hardware

This warning does not prevent the program from running, however it does cause python to quit unexpectedly after a few seconds, which I believe is linked to this error.


Platform: MacOS (M1 chip)
My program uses easyocr, which depends on both torch and torchvision.

I have tried uninstalling both torch and torchvision via pip3 uninstall torch torchvision, and building both from source with NNpack disabled for torch

When building torch:
USE_NNPACK=0 python3 setup.py develop

When building torchvision:
python3 setup.py develop

Besides the NNPack warning message in the terminal, here is details of when python crashes