0d71ca2c46
[EZ] Replace pytorch-labs
with meta-pytorch
( #160459 )
...
This PR replaces all instances of 'pytorch-labs' with 'meta-pytorch' in this repository now that the 'pytorch-labs' org has been renamed to 'meta-pytorch'
## Changes Made
- Replaced all occurrences of 'pytorch-labs' with 'meta-pytorch'
- Only modified files with extensions: .py, .md, .sh, .rst, .cpp, .h, .txt, .yml
- Skipped binary files and files larger than 1MB due to GitHub api payload limits in the script to cover all repos in this org. Will do a more manual second pass later to cover any larger files
## Files Modified
This PR updates files that contained the target text.
Generated by automated script on 2025-08-12T20:41:29.888681+00:00Z
Pull Request resolved: https://github.com/pytorch/pytorch/pull/160459
Approved by: https://github.com/huydhn , https://github.com/clee2000 , https://github.com/atalman , https://github.com/malfet
2025-08-12 22:44:25 +00:00
be36bacdaa
[pytorch] Delete TorchScript based Android demo app and point user to ExecuTorch ( #153767 )
...
Summary: A retry of #153656 . This time start from co-dev to make sure we capture internal signals.
Test Plan: Rely on CI jobs.
Differential Revision: D74911818
Pull Request resolved: https://github.com/pytorch/pytorch/pull/153767
Approved by: https://github.com/kirklandsign , https://github.com/cyyever , https://github.com/Skylion007
2025-05-19 17:20:36 +00:00
084c4aa614
Revert "Reapply "Delete TorchScript based Android demo app and point to ExecuTorch ( #153633 )" ( #153656 )"
...
This reverts commit 7ed377f5776578aec4a6a9bc4eeef221a6b80a77.
Reverted https://github.com/pytorch/pytorch/pull/153656 on behalf of https://github.com/larryliu0820 due to Still being used internally so can't remove ([comment](https://github.com/pytorch/pytorch/pull/153656#issuecomment-2887665403 ))
2025-05-16 21:00:11 +00:00
7ed377f577
Reapply "Delete TorchScript based Android demo app and point to ExecuTorch ( #153633 )" ( #153656 )
...
This reverts commit ae0e8f0c7316addab3f415dc767a9d34f58b0dae.
Keep android/libs/fbjni because it's being used by other components of
PyTorch.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/153656
Approved by: https://github.com/malfet
2025-05-16 04:35:42 +00:00
ae0e8f0c73
Revert "Delete TorchScript based Android demo app and point to ExecuTorch ( #153633 )"
...
This reverts commit b22f01fcb9d69bb7d77e08d69004c7265ef7fa4a.
Reverted https://github.com/pytorch/pytorch/pull/153633 on behalf of https://github.com/malfet due to But libtorch build regressions are real, fbjni is still used for C++ builds ([comment](https://github.com/pytorch/pytorch/pull/153633#issuecomment-2884951805 ))
2025-05-15 20:16:05 +00:00
b22f01fcb9
Delete TorchScript based Android demo app and point to ExecuTorch ( #153633 )
...
Delete TorchScript demo app and point people to ExecuTorch demo app.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/153633
Approved by: https://github.com/Skylion007 , https://github.com/malfet , https://github.com/atalman , https://github.com/janeyx99 , https://github.com/seemethere
2025-05-15 18:43:59 +00:00
370e23388d
Set CMake 3.5 as minimum version in pytorch_android ( #152769 )
...
I saw pytorch_android failure in docker image builds. This fix attempts to bypass CMake 4 limitations.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/152769
Approved by: https://github.com/Skylion007
2025-05-04 16:57:22 +00:00
b5655d9821
PEP585 update - .ci android aten ( #145177 )
...
See #145101 for details.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/145177
Approved by: https://github.com/Skylion007
2025-01-21 06:31:26 +00:00
cca34be584
Update XNNPACK Version ( #139913 )
...
Updating XNNPACK Version to 4ea82e595b36106653175dcb04b2aa532660d0d8
submodule update
Pull Request resolved: https://github.com/pytorch/pytorch/pull/139913
Approved by: https://github.com/digantdesai , https://github.com/huydhn
2024-11-18 18:16:31 +00:00
a3abfa5cb5
[BE][Easy][1/19] enforce style for empty lines in import segments ( #129752 )
...
See https://github.com/pytorch/pytorch/pull/129751#issue-2380881501 . Most changes are auto-generated by linter.
You can review these PRs via:
```bash
git diff --ignore-all-space --ignore-blank-lines HEAD~1
```
Pull Request resolved: https://github.com/pytorch/pytorch/pull/129752
Approved by: https://github.com/ezyang , https://github.com/malfet
2024-07-16 00:42:56 +00:00
28f6ae2718
[9/N] Replace c10::optional with std::optional ( #130674 )
...
Follows #130509
Pull Request resolved: https://github.com/pytorch/pytorch/pull/130674
Approved by: https://github.com/Skylion007
2024-07-15 00:48:43 +00:00
26f4f10ac8
[5/N][Easy] fix typo for usort
config in pyproject.toml
(kown
-> known
): sort torch ( #127126 )
...
The `usort` config in `pyproject.toml` has no effect due to a typo. Fixing the typo make `usort` do more and generate the changes in the PR. Except `pyproject.toml`, all changes are generated by `lintrunner -a --take UFMT --all-files`.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/127126
Approved by: https://github.com/kit1980
2024-05-27 14:49:57 +00:00
55c0ab2887
Revert "[5/N][Easy] fix typo for usort
config in pyproject.toml
(kown
-> known
): sort torch ( #127126 )"
...
This reverts commit 7763c83af67eebfdd5185dbe6ce15ece2b992a0f.
Reverted https://github.com/pytorch/pytorch/pull/127126 on behalf of https://github.com/XuehaiPan due to Broken CI ([comment](https://github.com/pytorch/pytorch/pull/127126#issuecomment-2133044286 ))
2024-05-27 09:22:08 +00:00
7763c83af6
[5/N][Easy] fix typo for usort
config in pyproject.toml
(kown
-> known
): sort torch ( #127126 )
...
The `usort` config in `pyproject.toml` has no effect due to a typo. Fixing the typo make `usort` do more and generate the changes in the PR. Except `pyproject.toml`, all changes are generated by `lintrunner -a --take UFMT --all-files`.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/127126
Approved by: https://github.com/kit1980
ghstack dependencies: #127122 , #127123 , #127124 , #127125
2024-05-27 04:22:18 +00:00
aef820926c
Add some tests for 3d channels last ( #118283 )
...
Part of a multi-PR work to fix #59168 .
Pull Request resolved: https://github.com/pytorch/pytorch/pull/118283
Approved by: https://github.com/albanD
2024-01-30 01:26:47 +00:00
3cd2c68fbe
Fix syntax highlighting in android ( #117439 )
...
Hi i have found code blocks are not highlighted properly.
This PR aims to fix that
Pull Request resolved: https://github.com/pytorch/pytorch/pull/117439
Approved by: https://github.com/ezyang
2024-01-17 05:17:13 +00:00
d92d4133e7
[8/n] Update XNNPACK Submodule Version Part 8 Everything Remaining to get it to work ( #115714 )
...
> **__Note:__** XNNPACK Upgrade is too large in the range of **40k** files and **10m** Lines of code, Thus we break the update of the library into multiple parts. All Parts [1 - n] Must be landed together for it to work. ***This also means If there is a revert. Please revert the Entire Stack.***
This change is everything remaining requiring XNNPACK version to work.
@allow-large-files
Differential Revision: [D52099769](https://our.internmc.facebook.com/intern/diff/D52099769/ )
---
submodule
(unblock merge to make ShipIt happy)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/115714
Approved by: https://github.com/digantdesai
2023-12-15 23:08:08 +00:00
d94bfaff2e
Add TorchFix to the CI ( #113403 )
...
Enable flake8 plugin for https://github.com/pytorch/test-infra/tree/main/tools/torchfix - TorchFix 0.1.1.
Disable TorchFix codes that don't make sense for PyTorch itself.
Update deprecated TorchVision APIs to make TorchFix pass.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/113403
Approved by: https://github.com/Skylion007 , https://github.com/malfet
2023-11-14 01:26:06 +00:00
53c1dca6a3
[Reland] Add a workflow to release Android binaries ( #110976 )
...
This adds 2 jobs to build PyTorch Android with and without lite interpreter:
* Keep the list of currently supported ABI armeabi-v7a, arm64-v8a, x86, x86_64
* Pass all the test on emulator
* Run an the test app on emulator and my Android phone `arm64-v8a` without any issue

* Run on AWS https://us-west-2.console.aws.amazon.com/devicefarm/home#/mobile/projects/b531574a-fb82-40ae-b687-8f0b81341ae0/runs/5fce6818-628a-4099-9aab-23e91a212076
Pull Request resolved: https://github.com/pytorch/pytorch/pull/110976
Approved by: https://github.com/atalman
2023-10-18 21:17:11 +00:00
bd9a2465e7
Back out "Add a workflow to release Android binaries ( #110976 )" ( #111401 )
...
Summary:
Original commit changeset: 96813f0fac68
Original Phabricator Diff: D50161780
This breaks the integration test on T166457344
Test Plan: Sandcastle.
Differential Revision: D50344243
Pull Request resolved: https://github.com/pytorch/pytorch/pull/111401
Approved by: https://github.com/izaitsevfb
2023-10-16 23:16:37 +00:00
20a7366147
Fix Android publish step with lite interpreter ( #111071 )
...
This file needs to be added to the list like others. The publish command `BUILD_LITE_INTERPRETER=1 android/gradlew -p android publish` finishes successfully with this and files are available on Nexus:

Pull Request resolved: https://github.com/pytorch/pytorch/pull/111071
Approved by: https://github.com/atalman
2023-10-11 20:28:12 +00:00
2edc75a669
Add a workflow to release Android binaries ( #110976 )
...
This adds 2 jobs to build PyTorch Android with and without lite interpreter:
* Keep the list of currently supported ABI armeabi-v7a, arm64-v8a, x86, x86_64
* Pass all the test on emulator
* Run an the test app on emulator and my Android phone `arm64-v8a` without any issue

* Run on AWS https://us-west-2.console.aws.amazon.com/devicefarm/home#/mobile/projects/b531574a-fb82-40ae-b687-8f0b81341ae0/runs/5fce6818-628a-4099-9aab-23e91a212076
Pull Request resolved: https://github.com/pytorch/pytorch/pull/110976
Approved by: https://github.com/atalman
2023-10-11 00:19:33 +00:00
e9e93c5350
[Reland] Move torch::make_unique to std::make_unique ( #109780 )
...
We can first try to move torch::make_unique to std::make_unique despite reverting of #108866 .
Pull Request resolved: https://github.com/pytorch/pytorch/pull/109780
Approved by: https://github.com/ezyang
2023-09-21 18:30:21 +00:00
525e4f42d0
Revert "replace torch::make_unique with std::make_unique ( #108866 )"
...
This reverts commit 03e35efbf733da28d9e1c5a4b1b203fe335b5f94.
Reverted https://github.com/pytorch/pytorch/pull/108866 on behalf of https://github.com/clee2000 due to Sorry but I found more usages of `torch::make_unique` internally, I can go change all of these, but I'd prefer if that gets done before this gets merged ([comment](https://github.com/pytorch/pytorch/pull/108866#issuecomment-1722577925 ))
2023-09-17 21:57:30 +00:00
03e35efbf7
replace torch::make_unique with std::make_unique ( #108866 )
...
It should be safe to remove the old torch::make_unique functions.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/108866
Approved by: https://github.com/albanD
2023-09-14 20:52:26 +00:00
6a1a893f8f
Bump version 2.1.0 -> 2.2.0 ( #108156 )
...
Same as: https://github.com/pytorch/pytorch/pull/95790
<!--
copilot:poem
-->
### <samp>🤖 Generated by Copilot at 50063bb</samp>
> _`PyTorch` version up_
> _Nightly and release builds change_
> _Autumn of progress_
Pull Request resolved: https://github.com/pytorch/pytorch/pull/108156
Approved by: https://github.com/osalpekar , https://github.com/albanD
2023-09-05 15:56:23 +00:00
f70844bec7
Enable UFMT on a bunch of low traffic Python files outside of main files ( #106052 )
...
Signed-off-by: Edward Z. Yang <ezyang@meta.com >
Pull Request resolved: https://github.com/pytorch/pytorch/pull/106052
Approved by: https://github.com/albanD , https://github.com/Skylion007
2023-07-27 01:01:17 +00:00
93e6fc54fa
[PyTorch] Remove device transfers from JNI ( #105583 )
...
Summary:
If a model was exported for Vulkan backend without (automatic or manual) device transfers, then the export is incorrect, and the JNI need not correct that.
(If this assumption is incorrect, please give feedback.)
Undo the changes from
- D23763771: automatic device transfers in JNI
- D39519168: `"requires_backend_transfers"` logic in JNI
Test Plan: Verify CUNET+ hybrid model from D47488843 works.
Reviewed By: SS-JIA
Differential Revision: D47527244
Pull Request resolved: https://github.com/pytorch/pytorch/pull/105583
Approved by: https://github.com/SS-JIA
2023-07-20 00:26:21 +00:00
44d8e6c2aa
Retry CI Android emulator test ( #96163 )
...
This is not the first time I spot Android test flakiness such as
893aa5df3f
. From some StackOverflow results, it looks like the failure `Unknown failure: Error: Could not access the Package Manager. Is the system running?` could be fixed by waiting a bit for the emulator to start fully https://stackoverflow.com/questions/15524185/could-not-access-the-package-manager-is-the-system-running-while-installing-and
So, I'm adding retry capability here to give the test another chance.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/96163
Approved by: https://github.com/ZainRizvi
2023-03-09 00:09:10 +00:00
d1ec9a51e9
Bump version 2.0.0 -> 2.1.0 ( #95790 )
...
Same as: https://github.com/pytorch/pytorch/pull/90491
Pull Request resolved: https://github.com/pytorch/pytorch/pull/95790
Approved by: https://github.com/albanD , https://github.com/malfet
2023-03-02 00:38:46 +00:00
acb81c1c5a
[pytorch] Bump SoLoader version to 0.10.5 ( #95498 )
...
Summary: Use system linker by default on Android N and above devices.
Test Plan: sandcastle and Circle CI
Differential Revision: D43581588
Pull Request resolved: https://github.com/pytorch/pytorch/pull/95498
Approved by: https://github.com/kit1980
2023-02-24 22:37:47 +00:00
8d45f555d7
[BE] [1/3] Rewrite super()
calls in caffe2 and benchmarks ( #94587 )
...
Rewrite Python built-in class `super()` calls. Only non-semantic changes should be applied.
- #94587
- #94588
- #94592
Also, methods with only a `super()` call are removed:
```diff
class MyModule(nn.Module):
- def __init__(self):
- super().__init__()
-
def forward(self, ...):
...
```
Some cases that change the semantics should be kept unchanged. E.g.:
f152a79be9/caffe2/python/net_printer.py (L184-L190)
f152a79be9/test/test_jit_fuser_te.py (L2628-L2635)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/94587
Approved by: https://github.com/ezyang
2023-02-11 18:19:48 +00:00
215f4fc355
Update android/README.md, how to build pytorch android from source ( #92356 )
...
`sh ./scripts/build_pytorch_android.sh` leads to
```
./scripts/build_pytorch_android.sh: 30: source: not found
```
Pull Request resolved: https://github.com/pytorch/pytorch/pull/92356
Approved by: https://github.com/soulitzer
2023-01-20 16:39:31 +00:00
3bd37ff2d5
Removing invalid git option when updating submodules ( #91132 )
...
Same as this: https://github.com/pytorch/builder/pull/1246
Related to following git commit: 51243f9f0f
Which makes jobs = 0 invalid.
Nightlies for MacOS are failing because of this issue: https://github.com/pytorch/pytorch/actions/runs/3729522653/jobs/6325523414
Pull Request resolved: https://github.com/pytorch/pytorch/pull/91132
Approved by: https://github.com/kit1980 , https://github.com/huydhn , https://github.com/malfet , https://github.com/seemethere
2022-12-20 02:17:02 +00:00
fb18c29486
[BE] Tweak Meta copyright headers ( #90805 )
...
s/Facebook, Inc./Meta Platforms, Inc/
s/Confidential and proprietary./This source code is licensed under the BSD-style license/
Per https://www.internalfb.com/intern/wiki/Open_Source/Licenses/Straight_BSD/
Also, add linter that prevents adding those in the future
Fixes https://github.com/pytorch/pytorch/issues/90187
Pull Request resolved: https://github.com/pytorch/pytorch/pull/90805
Approved by: https://github.com/zpao
2022-12-14 20:30:31 +00:00
6fb79b7004
Bump version: 1.14.0->2.0.0 ( #90491 )
...
Except for the usual location, had to update the version in one of ONNX expect patterns, namely here: 43660051d8/test/onnx/expect/TestOperators.test_avg_pool2d.expect (L3)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/90491
Approved by: https://github.com/jansel , https://github.com/albanD
2022-12-09 01:08:08 +00:00
36ac095ff8
Migrate PyTorch to C++17 ( #85969 )
...
With CUDA-10.2 gone we can finally do it!
This PR mostly contains build system related changes, invasive functional ones are to be followed.
Among many expected tweaks to the build system, here are few unexpected ones:
- Force onnx_proto project to be updated to C++17 to avoid `duplicate symbols` error when compiled by gcc-7.5.0, as storage rule for `constexpr` changed in C++17, but gcc does not seem to follow it
- Do not use `std::apply` on CUDA but rely on the built-in variant, as it results in test failures when CUDA runtime picks host rather than device function when `std::apply` is invoked from CUDA code.
- `std::decay_t` -> `::std::decay_t` and `std::move`->`::std::move` as VC++ for some reason claims that `std` symbol is ambigious
- Disable use of `std::aligned_alloc` on Android, as its `libc++` does not implement it.
Some prerequisites:
- https://github.com/pytorch/pytorch/pull/89297
- https://github.com/pytorch/pytorch/pull/89605
- https://github.com/pytorch/pytorch/pull/90228
- https://github.com/pytorch/pytorch/pull/90389
- https://github.com/pytorch/pytorch/pull/90379
- https://github.com/pytorch/pytorch/pull/89570
- https://github.com/facebookincubator/gloo/pull/336
- https://github.com/facebookincubator/gloo/pull/343
- 919676fb32
Fixes https://github.com/pytorch/pytorch/issues/56055
Pull Request resolved: https://github.com/pytorch/pytorch/pull/85969
Approved by: https://github.com/ezyang , https://github.com/kulinseth
2022-12-08 02:27:48 +00:00
df1cc0ef47
[Vulkan] Add Vulkan Rewrite to Transfer Inputs and Outputs to Vulkan and CPU Backends Respectively ( #87432 )
...
With this change, we don't have to manually invoke transferring input and output backends when we run vulkan models.
Graph rewrite code based off of:
- 32efff45ba (diff-a473bddb458dc24225866a45092d6eca064eddd256245d93020e48e216eee4d5R160-R179)
Differential Revision: [D39519168](https://our.internmc.facebook.com/intern/diff/D39519168/ )
**NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D39519168/ )!
Pull Request resolved: https://github.com/pytorch/pytorch/pull/87432
Approved by: https://github.com/mcr229 , https://github.com/digantdesai
2022-10-31 14:18:45 +00:00
3af0eafea6
Release 1.13: Bump nightly version 1.13->1.14 ( #86296 )
...
Release 1.13: Bump nightly version 1.13->1.14
Pull Request resolved: https://github.com/pytorch/pytorch/pull/86296
Approved by: https://github.com/seemethere , https://github.com/malfet
2022-10-06 23:26:58 +00:00
a38e43e936
[perf][1/5] Replace IValue::toString()->string() with IValue::toStringRef() ( #85437 )
...
Summary: `IValue::toString()` creates a `new c10::intrusive_ptr` (like `std::shared_ptr`) and `->string()` immediately accesses it, creating an atomic reference increment/decrement. We can skip both of these operations by calling `IValue::toStringRef()`.
Test Plan: CI
Reviewed By: jaybean-dev
Differential Revision: D39605242
Pull Request resolved: https://github.com/pytorch/pytorch/pull/85437
Approved by: https://github.com/jfix71
2022-09-23 23:36:57 +00:00
487c0e1181
[pytorch] Bump SoLoader version to 0.10.4 ( #81946 )
...
Test Plan: sandcastle CI.
Differential Revision: D38056789
Pull Request resolved: https://github.com/pytorch/pytorch/pull/81946
Approved by: https://github.com/kit1980
2022-07-27 18:16:29 +00:00
dff70a5e1a
Make language std configurable. ( #75519 )
...
RocksDB 7 starts to use C++17 in header.
We should make this configurable, in case user needs higher std version.
List of files to changed is found by `git grep 'CMAKE_[^_]*_STANDARD'`.
Doc string is from CMake code.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/75519
Approved by: https://github.com/malfet
2022-07-13 14:21:27 +00:00
4e27863739
[fbsync] Apply changes from D36937789 & D36937774 ( #78956 )
2022-06-06 12:55:32 -07:00
03847808a0
Add all bzl files per D36874458
2022-06-06 09:40:19 -07:00
a645abd5aa
Update nightlies from 1.12 -> 1.13
...
Signed-off-by: Eli Uriegas <eliuriegasfb.com>
Pull Request resolved: https://github.com/pytorch/pytorch/pull/77984
Approved by: https://github.com/atalman
2022-05-20 17:59:17 +00:00
9445609ee3
Better error message for android-tests workflow
...
See this link as an example how it will look in annotations:
https://github.com/pytorch/pytorch/actions/runs/2242670732
Pull Request resolved: https://github.com/pytorch/pytorch/pull/76577
Approved by: https://github.com/linbinyu
2022-05-02 16:56:29 +00:00
ac2d2e3a3d
Fix some typos.
...
Fixes #ISSUE_NUMBER
Pull Request resolved: https://github.com/pytorch/pytorch/pull/75561
Approved by: https://github.com/albanD
2022-04-11 21:55:59 +00:00
fa241e5951
[AutoAccept][Codemod][FBSourceGoogleJavaFormatLinter] Daily arc lint --take GOOGLEJAVAFORMAT
...
Reviewed By: ivanmurashko
Differential Revision: D35308735
fbshipit-source-id: 64356651614ebd88f897454a1fd765b7dde6a53b
(cherry picked from commit a273d9be6b73f67a2ac3fd9c9adb29e8eabae52b)
2022-04-01 09:21:41 +00:00
28a4b4759a
Add models test for android and iOS
...
See https://github.com/pytorch/pytorch/pull/74793 for more details
Redo everything in one pr. This diff added test model generation script and updated android and ios tests.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/74947
Approved by: https://github.com/kit1980
2022-03-30 20:56:24 +00:00
33b9726e6b
Revert "add model test for Android"
...
This reverts commit 91ef3c82615d6ede05d5b86f1bd5571ea95e4ef1.
Reverted https://github.com/pytorch/pytorch/pull/74793 on behalf of https://github.com/seemethere
2022-03-29 22:08:22 +00:00