pytorch/torch
PyTorch MergeBot c85323c5e8 Revert "Tests Generelization for multiple accelerator devices (#139184)"
This reverts commit b576a8c318.

Reverted https://github.com/pytorch/pytorch/pull/139184 on behalf of https://github.com/clee2000 due to Failing internally when trying to pickle distributed test files D67098795 ([comment](https://github.com/pytorch/pytorch/pull/139184#issuecomment-2539610187))
2024-12-12 17:48:30 +00:00
..
_awaits
_C Inductor annotations (#130429) 2024-12-10 08:53:39 +00:00
_C_flatbuffer
_custom_op
_decomp Remove unused Python variables in torch/[_-a]* (#133492) 2024-12-12 17:39:14 +00:00
_dispatch Remove unused Python variables in torch/[_-a]* (#133492) 2024-12-12 17:39:14 +00:00
_dynamo Remove unused Python variables in torch/[_-a]* (#133492) 2024-12-12 17:39:14 +00:00
_export Remove unused Python variables in torch/[_-a]* (#133492) 2024-12-12 17:39:14 +00:00
_functorch Remove unused Python variables in torch/[_-a]* (#133492) 2024-12-12 17:39:14 +00:00
_higher_order_ops Remove unused Python variables in torch/[_-a]* (#133492) 2024-12-12 17:39:14 +00:00
_inductor Remove unused Python variables in torch/[_-a]* (#133492) 2024-12-12 17:39:14 +00:00
_lazy
_library Remove unused Python variables in torch/[_-a]* (#133492) 2024-12-12 17:39:14 +00:00
_logging Remove unused Python variables in torch/[_-a]* (#133492) 2024-12-12 17:39:14 +00:00
_numpy Remove unused Python variables in torch/[_-a]* (#133492) 2024-12-12 17:39:14 +00:00
_prims Remove unused Python variables in torch/[_-a]* (#133492) 2024-12-12 17:39:14 +00:00
_prims_common Remove an unused variable from _prims_common/wrappers.py (#138480) 2024-12-10 00:12:53 +00:00
_refs Remove unused Python variables in torch/[_-a]* (#133492) 2024-12-12 17:39:14 +00:00
_strobelight Remove unused Python variables in torch/[_-a]* (#133492) 2024-12-12 17:39:14 +00:00
_subclasses Remove unused Python variables in torch/[_-a]* (#133492) 2024-12-12 17:39:14 +00:00
_vendor
accelerator [BE][accelerator] formalize API name {current,set}_device_{idx => index} (#140542) 2024-12-12 10:53:48 +00:00
amp
ao Remove unused Python variables in torch/[_-a]* (#133492) 2024-12-12 17:39:14 +00:00
autograd Remove unused Python variables in torch/[_-a]* (#133492) 2024-12-12 17:39:14 +00:00
backends [BE] replace incorrect .. note:: invocations (#142868) 2024-12-11 19:58:18 +00:00
compiler Introduce remote cache key prefix to break cache (#142148) 2024-12-10 00:35:50 +00:00
contrib
cpu
csrc Revert "[14/N] Fix extra warnings brought by clang-tidy-17 (#141644)" 2024-12-12 17:43:36 +00:00
cuda [BE] replace incorrect .. note:: invocations (#142868) 2024-12-11 19:58:18 +00:00
distributed [Torch][#142396]Resolve Failure When Uploading To Remote Storage (#143046) 2024-12-12 08:17:15 +00:00
distributions Remove some unused type ignores (round 1) (#142325) 2024-12-09 18:23:46 +00:00
export fix dynamo nn module stack fqn (#142823) 2024-12-12 07:02:13 +00:00
fft
func
futures
fx Add <string> to uninteresting_files (#142984) 2024-12-12 14:35:30 +00:00
jit Remove some unused type ignores (round 1) (#142325) 2024-12-09 18:23:46 +00:00
legacy
lib
linalg fix linalg.SVD docs typo: wrong V* shape in reduced SVD (#142037) 2024-12-04 09:18:33 +00:00
masked Correctly specify size of sparse_csr tensors in maskedtensor binary ops (#134335) 2024-12-03 02:55:57 +00:00
monitor
mps [MPS] Add CompileShader method (#141478) 2024-12-11 02:00:51 +00:00
mtia [BE] replace incorrect .. note:: invocations (#142868) 2024-12-11 19:58:18 +00:00
multiprocessing
nested [aotd] non-contiguous NestedTensor mutation in compile (#139630) 2024-12-06 12:18:46 +00:00
nn DistributedDataParallel: add init_sync option to control collectives during initialization (#142824) 2024-12-11 20:28:38 +00:00
onnx [ONNX] Avoid overwriting overlapped decomposed functions (#142831) 2024-12-11 18:47:40 +00:00
optim Remove some unused type ignores (round 1) (#142325) 2024-12-09 18:23:46 +00:00
package [torch.package, 3.13] fixes to torch.package for 3.13 (#141409) 2024-12-05 00:23:47 +00:00
profiler
quantization
signal
sparse
special
testing Revert "Tests Generelization for multiple accelerator devices (#139184)" 2024-12-12 17:48:30 +00:00
utils [Inductor] Refactor "r" reduction prefix to {"r0_", "r1_"}. (#142020) 2024-12-12 17:22:20 +00:00
xpu Support torch.xpu.mem_get_info API (#141230) 2024-12-05 08:17:25 +00:00
__config__.py
__future__.py
__init__.py Transform unbacked int expressions into a fresh unbacked int. (#141917) 2024-12-05 16:53:44 +00:00
_appdirs.py Remove unused Python variables in torch/[_-a]* (#133492) 2024-12-12 17:39:14 +00:00
_classes.py
_compile.py
_custom_ops.py
_deploy.py
_environment.py
_guards.py Add tensor overlapping guards. (#139555) 2024-12-05 14:43:58 +00:00
_jit_internal.py Remove unused Python variables in torch/[_-a]* (#133492) 2024-12-12 17:39:14 +00:00
_linalg_utils.py
_lobpcg.py Remove unused Python variables in torch/[_-a]* (#133492) 2024-12-12 17:39:14 +00:00
_lowrank.py Remove unused Python variables in torch/[_-a]* (#133492) 2024-12-12 17:39:14 +00:00
_meta_registrations.py Remove unused Python variables in torch/[_-a]* (#133492) 2024-12-12 17:39:14 +00:00
_namedtensor_internals.py
_ops.py Remove unused Python variables in torch/[_-a]* (#133492) 2024-12-12 17:39:14 +00:00
_python_dispatcher.py
_size_docs.py
_sources.py
_storage_docs.py
_streambase.py
_tensor_docs.py
_tensor_str.py Remove unused Python variables in torch/[_-a]* (#133492) 2024-12-12 17:39:14 +00:00
_tensor.py [dim_order] raised runtime error when tensor has ambiguous dim order (#141632) 2024-12-08 23:16:57 +00:00
_thread_safe_fork.py
_torch_docs.py Update documentation for torch.mean() to note behavior with empty tensors (#142039) 2024-12-05 17:21:53 +00:00
_utils_internal.py
_utils.py Remove unused Python variables in torch/[_-a]* (#133492) 2024-12-12 17:39:14 +00:00
_VF.py
_vmap_internals.py
_weights_only_unpickler.py Remove unused Python variables in torch/[_-a]* (#133492) 2024-12-12 17:39:14 +00:00
abi-check.cpp
CMakeLists.txt Revert "Hide torch_python symbols (#142214)" 2024-12-12 17:15:51 +00:00
custom_class_detail.h
custom_class.h
extension.h
functional.py
hub.py
library.h
library.py Improve torch.library.opcheck and register_autograd docs (#141883) 2024-12-03 16:28:56 +00:00
overrides.py [dim_order] raised runtime error when tensor has ambiguous dim order (#141632) 2024-12-08 23:16:57 +00:00
py.typed
quasirandom.py
random.py
README.txt
return_types.py
script.h
serialization.py Allow user to manually pass module.name associated with global in {add}_safe_global (#142153) 2024-12-06 18:56:39 +00:00
storage.py
torch_version.py
types.py
version.py.tpl

Note [TH abstraction violation]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

TH/THC provide some hpp headers, which are proper C++ headers rather than
C headers.  These headers serve double duty as *internal implementation
detail* headers, whose contents should largely not be used by external
clients.

Ideally, we would not install these headers at all; instead, you should
use public functions (in headers like `THTensor.h`, NOT `THTensor.hpp`)
to manipulate these structs.  However, there are a few places
in torch/csrc where we violate this abstraction.  They are marked with
a pointer to this note.  Each of those sites will have to be refactored
when we refactor the guts of THTensor and related structures.