Fix dummy typo in `skipIfNoFBGEMM` (#38058)

Summary:
I've picked wrong revision when landed the diff, it should have had an actual check rather than `if True`:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/38058

Differential Revision: D21466152

Pulled By: malfet

fbshipit-source-id: 03fdc510562fab44b7d64a42284d4c3c1f8e940a
diff --git a/torch/testing/_internal/common_quantization.py b/torch/testing/_internal/common_quantization.py
index d5d4526..be24264 100644
--- a/torch/testing/_internal/common_quantization.py
+++ b/torch/testing/_internal/common_quantization.py
@@ -116,14 +116,14 @@
 
 def skipIfNoFBGEMM(fn):
     reason = 'Quantized operations require FBGEMM. FBGEMM is only optimized for CPUs with instruction set support AVX2 or newer.'
-    if isinstance(fn, type):
+    if isinstance(fn, type) and 'fbgemm' not in torch.backends.quantized.supported_engines:
         fn.__unittest_skip__ = True
         fn.__unittest_skip_why__ = reason
         return fn
 
     @functools.wraps(fn)
     def wrapper(*args, **kwargs):
-        if True:
+        if 'fbgemm' not in torch.backends.quantized.supported_engines:
             raise unittest.SkipTest(reason)
         else:
             fn(*args, **kwargs)