1b70366957
[dynamo][itertools] refactor itertools.chain
and itertools.chain.from_iterable
to use polyfills ( #133864 )
...
Pull Request resolved: https://github.com/pytorch/pytorch/pull/133864
Approved by: https://github.com/jansel
ghstack dependencies: #133769 , #133778 , #133779
2024-08-29 20:56:16 +00:00
9e806c1a60
[dynamo] simplify implementation for os.fspath
( #133801 )
...
Pull Request resolved: https://github.com/pytorch/pytorch/pull/133801
Approved by: https://github.com/anijain2305
2024-08-29 13:36:52 +00:00
4811dc3de9
Revert "[dynamo] simplify polyfill registration for builtins.all
and builtins.any
( #133769 )"
...
This reverts commit cc3a76edbac4a48381db6ccc44a83927f80c545b.
Reverted https://github.com/pytorch/pytorch/pull/133769 on behalf of https://github.com/ZainRizvi due to Sorry but this has been discovered to be causing a performance regression internally ([comment](https://github.com/pytorch/pytorch/pull/133769#issuecomment-2316620213 ))
2024-08-29 03:00:47 +00:00
f65df5edae
Revert "[dynamo][itertools] support itertools.tee
( #133771 )"
...
This reverts commit 1dbd3476de07d7f07489e243cb7a43073e8c25c1.
Reverted https://github.com/pytorch/pytorch/pull/133771 on behalf of https://github.com/ZainRizvi due to Sorry, have to revert this in order to be able to revert https://github.com/pytorch/pytorch/pull/133769 ([comment](https://github.com/pytorch/pytorch/pull/133771#issuecomment-2316611158 ))
2024-08-29 02:49:30 +00:00
eaec9e80b8
Revert "[dynamo] simplify implementation for os.fspath
( #133801 )"
...
This reverts commit 74341e1150f10b8aaddd33a165e686724424071f.
Reverted https://github.com/pytorch/pytorch/pull/133801 on behalf of https://github.com/ZainRizvi due to Sorry, have to revert this in order to be able to revert https://github.com/pytorch/pytorch/pull/133769 ([comment](https://github.com/pytorch/pytorch/pull/133771#issuecomment-2316611158 ))
2024-08-29 02:49:30 +00:00
74341e1150
[dynamo] simplify implementation for os.fspath
( #133801 )
...
Pull Request resolved: https://github.com/pytorch/pytorch/pull/133801
Approved by: https://github.com/anijain2305
ghstack dependencies: #133771
2024-08-27 00:08:04 +00:00
1dbd3476de
[dynamo][itertools] support itertools.tee
( #133771 )
...
Pull Request resolved: https://github.com/pytorch/pytorch/pull/133771
Approved by: https://github.com/jansel
2024-08-27 00:08:04 +00:00
50e90d7203
Revert "[dynamo] simplify implementation for functools.reduce
( #133778 )"
...
This reverts commit 6c0b15e3828b8e2a0bd726a3e5d4e98c8ced5efe.
Reverted https://github.com/pytorch/pytorch/pull/133778 on behalf of https://github.com/ZainRizvi due to Sorry, but this breaks internal tests because of using functools ([comment](https://github.com/pytorch/pytorch/pull/133778#issuecomment-2310445169 ))
2024-08-26 15:16:17 +00:00
3d7f3f6a55
Revert "[dynamo][itertools] support itertools.tee
( #133771 )"
...
This reverts commit 0e49b2f18e78386c8ed9ce540a8017411c7ab0cd.
Reverted https://github.com/pytorch/pytorch/pull/133771 on behalf of https://github.com/ZainRizvi due to Sorry, but this breaks internal tests because of using functools ([comment](https://github.com/pytorch/pytorch/pull/133778#issuecomment-2310445169 ))
2024-08-26 15:16:17 +00:00
e1fc4362fb
Revert "[dynamo] simplify implementation for os.fspath
( #133801 )"
...
This reverts commit c5f6b72041144c00e240bcfdc783a5597c3d8928.
Reverted https://github.com/pytorch/pytorch/pull/133801 on behalf of https://github.com/ZainRizvi due to Sorry, but this breaks internal tests because of using functools ([comment](https://github.com/pytorch/pytorch/pull/133778#issuecomment-2310445169 ))
2024-08-26 15:16:17 +00:00
c5f6b72041
[dynamo] simplify implementation for os.fspath
( #133801 )
...
Pull Request resolved: https://github.com/pytorch/pytorch/pull/133801
Approved by: https://github.com/anijain2305
ghstack dependencies: #133769 , #133778 , #133779 , #133771
2024-08-26 07:12:15 +00:00
0e49b2f18e
[dynamo][itertools] support itertools.tee
( #133771 )
...
Pull Request resolved: https://github.com/pytorch/pytorch/pull/133771
Approved by: https://github.com/jansel
ghstack dependencies: #133769 , #133778 , #133779
2024-08-23 10:13:12 +00:00
6c0b15e382
[dynamo] simplify implementation for functools.reduce
( #133778 )
...
Pull Request resolved: https://github.com/pytorch/pytorch/pull/133778
Approved by: https://github.com/jansel
ghstack dependencies: #133769
2024-08-23 09:10:44 +00:00
cc3a76edba
[dynamo] simplify polyfill registration for builtins.all
and builtins.any
( #133769 )
...
Pull Request resolved: https://github.com/pytorch/pytorch/pull/133769
Approved by: https://github.com/jansel
2024-08-23 09:05:24 +00:00
b6abac68ec
[BE][dynamo] reorganize polyfill module hierarchy ( #133977 )
...
Changes:
1. Move `polyfill.py` -> `polyfills/__init__.py`. It can be used as `polyfill.xxx` -> `polyfills.xxx`.
2. Move submodule loading from `polyfills/__init__.py` to `polyfills/loader.py`.
Merge `polyfill.py` and `polyfills/` packages. Each polyfill module have its own namespace for better code organization.
The ultimate goal is make `polyfills/__init__.py` empty and all polyfill functions move to its own namespace.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/133977
Approved by: https://github.com/jansel
2024-08-22 16:42:29 +00:00