You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We appreciate all contributions. If you are planning to contribute a bug fix for an open issue, please comment on the thread and we're happy to provide any guidance. You are very welcome to pick issues from good first issue and help wanted labels.
4
+
5
+
If you plan to contribute new features, utility functions or extensions to the core, please first open an issue and discuss the feature with us. Sending a PR without discussion might end up resulting in a rejected PR, because we might be taking the core in a different direction than you might be aware of.
6
+
7
+
8
+
# Developer setup
9
+
10
+
## Mac setup:
11
+
@qihqi
12
+
13
+
I am able to develop directly on mac (m1) laptop for most of parts. Using steps
14
+
in README.md works. The condensed version for easy copy & paste:
15
+
16
+
```bash
17
+
conda create --name <your_name> python=3.10
18
+
conda activate <your_name>
19
+
pip install --upgrade "jax[cpu]" torch
20
+
pip install -r test_requirements.txt
21
+
pip install -e .
22
+
pytest test
23
+
```
24
+
25
+
### VSCode
26
+
27
+
I use vscode on my Mac. I loosely followed instruction in
"""Enables `torchax` globally, which intercepts PyTorch operations and routes them to the JAX backend. This is the primary entry point for using `torchax`.
87
-
88
-
**Usage:**
89
-
90
-
```python
91
-
import torchax
92
-
93
-
torchax.enable_globally()
94
-
```
95
-
"""
96
63
env=default_env().enable_torch_modes()
97
64
returnenv
98
65
99
66
100
67
defdisable_globally():
101
-
"""Disables the `torchax` backend. After calling this, PyTorch operations will revert to their default behavior.
0 commit comments