00908475e6
Use global variables to register the return_types namedtuples ( #108832 )
...
Fixes #69221 . Builds on top of #107000 , fixing the buck build issue linked [here](https://github.com/pytorch/pytorch/pull/107000#issuecomment-1708857375 ).
Pull Request resolved: https://github.com/pytorch/pytorch/pull/108832
Approved by: https://github.com/zou3519
2023-09-13 17:42:46 +00:00
f4f1a5b5b3
Revert "Move functional collectives to the right namespace ( #97793 )"
...
This reverts commit 184bfbc3d7b37e8f202f4938f6ea9ba557c93b1e.
Reverted https://github.com/pytorch/pytorch/pull/97793 on behalf of https://github.com/atalman due to breaks internal builds
2023-03-31 16:02:07 +00:00
184bfbc3d7
Move functional collectives to the right namespace ( #97793 )
...
This moves them from `torch._C._nn` to `torch._C._dist`
Pull Request resolved: https://github.com/pytorch/pytorch/pull/97793
Approved by: https://github.com/albanD
2023-03-30 22:18:13 +00:00
4f5f2c1a9e
Add torch.nested to ovrsource ( #85384 )
...
Summary:
Prevent a build break for ovrsource dependency.
Stacked changes will help to prevent further regressions in this target.
Test Plan:
Build
//arvr/projects/codec_avatar/pylab/examples/demos/pica:pica. Without
this change, it will fail on linking torch with an undefined symbol. With it,
the build will proceed.
Differential Revision: D39669887
Pull Request resolved: https://github.com/pytorch/pytorch/pull/85384
Approved by: https://github.com/kit1980
2022-09-23 23:07:01 +00:00
1231194dd3
Add hardshrink op to metal backend ( #82224 )
...
Summary:
Add hardshrink op's metal implementation to pytorch codebase
Heavily based on already existing Hardswish implementation
Test Plan:
Add two unit tests to compare the result of metal-based hardshrink function to that of the CPU implementation. Both tests pass:
{F755783049}
Differential Revision: D38152454
Pull Request resolved: https://github.com/pytorch/pytorch/pull/82224
Approved by: https://github.com/SS-JIA
2022-07-27 19:48:15 +00:00
4a1309035e
[AutoAccept][Codemod][FBSourceBuckFormatLinter] Daily arc lint --take BUCKFORMAT
( #80468 )
...
Summary:
Meta:
**If you take no action, this diff will be automatically accepted on 2022-06-28.**
(To remove yourself from auto-accept diffs and just let them all land, add yourself to [this Butterfly rule](https://www.internalfb.com/butterfly/rule/904302247110220 ))
Produced by `tools/arcanist/lint/codemods/buckformat-fbsource`.
#nocancel
Rules run:
- CodemodTransformerSimpleShell
Config Oncall: [lint](https://our.intern.facebook.com/intern/oncall3/?shortname=lint )
CodemodConfig: [CodemodConfigFBSourceBuckFormatLinter](https://www.internalfb.com/code/www/flib/intern/codemod_service/config/fbsource_arc_f/CodemodConfigFBSourceBuckFormatLinter.php )
ConfigType: php
Sandcastle URL: https://www.internalfb.com/intern/sandcastle/job/9007199961796985/
This diff was automatically created with CodemodService.
To learn more about CodemodService, check out the [CodemodService wiki](https://fburl.com/CodemodService ).
_____
## Questions / Comments / Feedback?
**[Click here to give feedback about this diff](https://www.internalfb.com/codemod_service/feedback?sandcastle_job_id=9007199961796985 ).**
* Returning back to author or abandoning this diff will only cause the diff to be regenerated in the future.
* Do **NOT** post in the CodemodService Feedback group about this specific diff.
drop-conflicts
Test Plan:
Meta:
No commands were run for this Codemod
Reviewed By: strulovich
Differential Revision: D37482777
Pull Request resolved: https://github.com/pytorch/pytorch/pull/80468
Approved by: https://github.com/osalpekar
2022-06-29 23:03:23 +00:00
736bbe1ec7
[3] move aten targets to shared buck file ( #79966 )
...
Summary: move aten related targets to the shared buck file
Test Plan: Github CI, sandcastle
Differential Revision: D37323401
Pull Request resolved: https://github.com/pytorch/pytorch/pull/79966
Approved by: https://github.com/iseeyuan
2022-06-23 15:16:44 +00:00
321cd14aa8
Update build targets to include generated enum_tag.cpp
...
Differential Revision: [D37131776](https://our.internmc.facebook.com/intern/diff/D37131776/ )
**NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D37131776/ )!
Pull Request resolved: https://github.com/pytorch/pytorch/pull/79668
Approved by: https://github.com/bdhirsh
2022-06-17 17:17:27 +00:00
03847808a0
Add all bzl files per D36874458
2022-06-06 09:40:19 -07:00