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
**Summary:** Today, if users want to force skip loading the .so
files, they can pass in `TORCHAO_SKIP_LOADING_SO_FILES=1`.
However, if they pass in `TORCHAO_SKIP_LOADING_SO_FILES=0` or
`TORCHAO_SKIP_LOADING_SO_FILES=false`, we will still skip loading
these files. This commit fixes this behavior by:
1. Renaming this env var to `TORCHAO_FORCE_SKIP_LOADING_SO_FILES`
2. Only accepting value of "1" for this env var
**Test Plan:**
```
$ TORCHAO_FORCE_SKIP_LOADING_SO_FILES=1 python -c "import torchao"
Skipping import of cpp extensions due to TORCHAO_FORCE_SKIP_LOADING_SO_FILES=1
\# No effect
$ TORCHAO_FORCE_SKIP_LOADING_SO_FILES=0 python -c "import torchao"
$ TORCHAO_FORCE_SKIP_LOADING_SO_FILES=False python -c "import torchao"
$ TORCHAO_FORCE_SKIP_LOADING_SO_FILES=false python -c "import torchao"
```
0 commit comments