Runtime Error: NNPACK

RuntimeError: NNPACK SpatialConvolution_updateOutput failed

I’m getting the above error when I run code on my local machine (Mac), but when I run the same code on google collab, it does not display the error. My version of PyTorch is 2.0.1 on my Mac, which is the same version on collab. What gives?