diff --git a/spack.yaml b/spack.yaml
index bf2ae55671be5c2737fdbca6c0e96923a0931646..5ea518d37f1406ebdcd8cb99659e083dffb4eaca 100644
--- a/spack.yaml
+++ b/spack.yaml
@@ -60,6 +60,7 @@ spack:
     - py-scipy@1.9.3
     - py-seaborn@0.12.0
     - py-toml@0.10.2
+    - py-torch@1.13.1 cflags="-Wno-error=maybe-uninitialized -Wno-error=uninitialized -Wno-error=restrict" cxxflags="-Wno-error=maybe-uninitialized -Wno-error=uninitialized -Wno-error=restrict" # https://github.com/pytorch/FBGEMM/issues/1094
     - py-uproot@4.3.5
     - py-yapf@0.30.0
     - qt@5.15.5 +opengl