Torch.backends.quantized.supported_engines is different on macOS virtual env

Hello everyone,

I am trying to use torch on a GitHub macOS virtual environment (GitHub - actions/virtual-environments: GitHub Actions virtual environments). However, I see something which is not like my native macOS (11.6, intel).

Basically, I run this https://github.com/bcm-at-zama/gha-tests/runs/6261701379?check_suite_focus=true GitHub action, ie python3 -c "import torch; print(torch.backends.quantized.supported_engines)"
`. It says:

`['qnnpack', 'none']`

If I do the same python3 -c "import torch; print(torch.backends.quantized.supported_engines)" on my macBookPro, I get a:

['qnnpack', 'none', 'fbgemm']

Why do I get such a difference please? Notably, I would like to use torch.quantization.quantize_dynamic and I have the impression that it needs fbgemm.

Remark that I have torch 1.11.0 on both machines / virtual env.

Thanks a lot
(and congrats for what you’re doing with torch, this is amazing)