This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
In Funsor it is possible to program entirely without batch dimensions | |
for a subset of PyTorch and Jax (including eliminating the batch/event | |
dimension distinction in the PyTorch and NumPyro/TFP distribution APIs). | |
Here is a simplified version of the mean computation in @murphyk's regression example. | |
""" | |
import torch | |
import funsor | |
funsor.set_backend("torch") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/torch/__init__.py b/torch/__init__.py | |
index 83b88c246..96fe05813 100644 | |
--- a/torch/__init__.py | |
+++ b/torch/__init__.py | |
@@ -279,7 +279,7 @@ import torch.multiprocessing | |
import torch.sparse | |
import torch.utils.backcompat | |
import torch.onnx | |
-import torch.jit | |
+# import # torch.jit |