Commit 68dfd44
Do not depend on numpy during the import (pytorch#149683)
But a good followup would be to use torch primitives instead of numpy here
Fixes pytorch#149681
Test plan: Monkey-patch 2.7.0-rc and run `python -c "import torch;print(torch.compile(lambda x:x.sin() + x.cos())(torch.rand(32)))"`
Pull Request resolved: pytorch#149683
Approved by: https://github.com/seemethere1 parent 3474367 commit 68dfd44
File tree
1 file changed
+2
-1
lines changed- torch/_functorch/_activation_checkpointing
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| |||
237 | 236 | | |
238 | 237 | | |
239 | 238 | | |
| 239 | + | |
| 240 | + | |
240 | 241 | | |
241 | 242 | | |
242 | 243 | | |
| |||
0 commit comments