Commit Graph

61 Commits

Author SHA1 Message Date
Animesh Jain
9c64068ef8 [dynamo][guards-cpp-refactor] TypeGuardAccessor (#120089)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/120089
Approved by: https://github.com/jansel
ghstack dependencies: #119822, #119827, #119833, #120060, #120061, #120062, #120064, #120065, #120067, #120068
2024-02-21 17:56:48 +00:00
Animesh Jain
ec6783990a [dynamo][guards-cpp-refactor] GlobalsGuardAccessor (#120068)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/120068
Approved by: https://github.com/jansel
ghstack dependencies: #119822, #119827, #119833, #120060, #120061, #120062, #120064, #120065, #120067
2024-02-21 17:56:48 +00:00
Animesh Jain
66c52d678f [dynamo][guards-cpp-refactor] GetItemGuardAccessor (#120067)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/120067
Approved by: https://github.com/jansel
ghstack dependencies: #119822, #119827, #119833, #120060, #120061, #120062, #120064, #120065
2024-02-21 17:56:36 +00:00
Animesh Jain
7a0c2a9d0a [dynamo][guards-cpp-refactor] NO_TENSOR_ALIASING guard (#120065)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/120065
Approved by: https://github.com/jansel
ghstack dependencies: #119822, #119827, #119833, #120060, #120061, #120062, #120064
2024-02-21 17:56:18 +00:00
Animesh Jain
8d5ae8c0b3 [dynamo][guards-cpp-refactor] TENSOR_ALIASING guard (#120064)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/120064
Approved by: https://github.com/jansel
ghstack dependencies: #119822, #119827, #119833, #120060, #120061, #120062
2024-02-21 17:56:05 +00:00
Animesh Jain
034955b2fc [dynamo][guards-cpp-refactor] DATA_PTR_MATCH guard (#120062)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/120062
Approved by: https://github.com/jansel
ghstack dependencies: #119822, #119827, #119833, #120060, #120061
2024-02-21 17:55:46 +00:00
Animesh Jain
cc6cf89c30 [dynamo][guards-cpp-refactor] GLOBAL_STATE guard (#120061)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/120061
Approved by: https://github.com/jansel
ghstack dependencies: #119822, #119827, #119833, #120060
2024-02-21 17:55:32 +00:00
Animesh Jain
5066bec743 [dynamo][guards-cpp-refactor] DEFAULT_DEVICE guard (#120060)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/120060
Approved by: https://github.com/jansel
ghstack dependencies: #119822, #119827, #119833
2024-02-21 17:55:17 +00:00
Animesh Jain
389b56b4c4 [dynamo][guards-cpp-refactor] GetAttrGuardAccessor (#119833)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/119833
Approved by: https://github.com/jansel
ghstack dependencies: #119822, #119827
2024-02-20 05:33:08 +00:00
Animesh Jain
96f45d15d8 [dynamo][guards-c++-refactor] EQUALS_MATCH guard (#119827)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/119827
Approved by: https://github.com/jansel
ghstack dependencies: #119822
2024-02-20 05:33:08 +00:00
Animesh Jain
0802951081 [dynamo][guards-c++-refactor] Introduce LeafGuard, GuardManager and GuardAccessor classes (#119822)
The full blown implementation is in this stack - https://github.com/pytorch/pytorch/pull/110590 which is passing all the test cases on CI. That stack is hard to review. So, breaking apart.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/119822
Approved by: https://github.com/jansel
2024-02-20 05:33:08 +00:00