pytorch/torch
Catherine Lee f2682e75e6 Workaround for super() calls in test_torchinductor_dynamic_shapes (#118586)
Info about super in dynamic classes:
https://stackoverflow.com/questions/71879642/how-to-pass-function-with-super-when-creating-class-dynamically
https://stackoverflow.com/questions/43782944/super-does-not-work-together-with-type-supertype-obj-obj-must-be-an-i

Calling super(TestCase) actually calls TestCase's parent's functions, bypassing TestCase itself's functions

Mainly doing this because it's making disable bot spam

Test: checked locally and check that https://github.com/pytorch/pytorch/issues/117954 actually got skipped

Pull Request resolved: https://github.com/pytorch/pytorch/pull/118586
Approved by: https://github.com/huydhn
2024-01-30 21:34:05 +00:00
..
_awaits
_C Allow using native c10d_functional via _functional_collectives (#113057) 2024-01-30 02:34:25 +00:00
_C_flatbuffer
_custom_op [inductor][custom ops] Add tag to custom ops to preserve stride orders in inductor (#117298) 2024-01-21 18:47:01 +00:00
_decomp Enable possibly-undefined error code (#118533) 2024-01-30 21:07:01 +00:00
_dispatch
_dynamo Enable possibly-undefined error code (#118533) 2024-01-30 21:07:01 +00:00
_export [BE]: Apply RUF025 dict.fromkeys preview rule (#118637) 2024-01-30 20:46:54 +00:00
_functorch Enable possibly-undefined error code (#118533) 2024-01-30 21:07:01 +00:00
_higher_order_ops Enable possibly-undefined error code (#118533) 2024-01-30 21:07:01 +00:00
_inductor Enable possibly-undefined error code (#118533) 2024-01-30 21:07:01 +00:00
_lazy
_library
_logging Add separate logging target for cudagraphs (#118329) 2024-01-30 20:16:51 +00:00
_numpy Handle some numpy functions with out arguments correctly in dynamo (#118248) 2024-01-29 09:09:21 +00:00
_prims Enable possibly-undefined error code (#118533) 2024-01-30 21:07:01 +00:00
_prims_common Don't check is_conj for _refs.linalg.svd (#117972) 2024-01-26 15:24:29 +00:00
_refs Enable possibly-undefined error code (#118533) 2024-01-30 21:07:01 +00:00
_subclasses [BE]: Apply RUF025 dict.fromkeys preview rule (#118637) 2024-01-30 20:46:54 +00:00
_vendor
amp add GradScaler on CPU (#109993) 2024-01-29 23:42:35 +00:00
ao Enable possibly-undefined error code (#118533) 2024-01-30 21:07:01 +00:00
autograd Enable possibly-undefined error code (#118533) 2024-01-30 21:07:01 +00:00
backends Enable possibly-undefined error code (#118533) 2024-01-30 21:07:01 +00:00
compiler Add a wrapper to transform a NumPy function into a PyTorch function (#114610) 2024-01-02 18:35:29 +00:00
contrib
cpu add GradScaler on CPU (#109993) 2024-01-29 23:42:35 +00:00
csrc [c10d] Log the last enqueued and completed collective (#118582) 2024-01-30 20:13:55 +00:00
cuda Enable possibly-undefined error code (#118533) 2024-01-30 21:07:01 +00:00
distributed Enable possibly-undefined error code (#118533) 2024-01-30 21:07:01 +00:00
distributions Enable local_partial_types (#118467) 2024-01-28 13:38:22 +00:00
export Enable possibly-undefined error code (#118533) 2024-01-30 21:07:01 +00:00
fft
func
futures
fx Enable possibly-undefined error code (#118533) 2024-01-30 21:07:01 +00:00
jit Enable possibly-undefined error code (#118533) 2024-01-30 21:07:01 +00:00
legacy
lib
linalg
masked Enable possibly-undefined error code (#118533) 2024-01-30 21:07:01 +00:00
monitor
mps
multiprocessing
nested [Nested Tensor] Support ragged_idx != 1 on aten::is_same_size, aten::_to_copy (#118442) 2024-01-30 01:32:51 +00:00
nn Enable possibly-undefined error code (#118533) 2024-01-30 21:07:01 +00:00
onnx Enable possibly-undefined error code (#118533) 2024-01-30 21:07:01 +00:00
optim Add compilable foreach RAdam support (#117912) 2024-01-27 04:32:27 +00:00
package [BE]: Add better handling of pathlib.Path with os calls (#116564) 2023-12-31 01:46:03 +00:00
profiler Enable possibly-undefined error code (#118533) 2024-01-30 21:07:01 +00:00
quantization Enable possibly-undefined error code (#118533) 2024-01-30 21:07:01 +00:00
signal Fix NaN bug in torch.signal.windows.kaiser (#116470) 2024-01-08 22:24:52 +00:00
sparse Enable possibly-undefined error code (#118533) 2024-01-30 21:07:01 +00:00
special
testing Workaround for super() calls in test_torchinductor_dynamic_shapes (#118586) 2024-01-30 21:34:05 +00:00
utils Enable possibly-undefined error code (#118533) 2024-01-30 21:07:01 +00:00
__config__.py
__future__.py
__init__.py Enable possibly-undefined error code (#118533) 2024-01-30 21:07:01 +00:00
_appdirs.py
_classes.py
_compile.py
_custom_ops.py
_deploy.py
_guards.py Enable local_partial_types (#118467) 2024-01-28 13:38:22 +00:00
_jit_internal.py Enable local_partial_types (#118467) 2024-01-28 13:38:22 +00:00
_linalg_utils.py
_lobpcg.py
_lowrank.py
_meta_registrations.py Enable possibly-undefined error code (#118533) 2024-01-30 21:07:01 +00:00
_namedtensor_internals.py
_ops.py Enable local_partial_types (#118467) 2024-01-28 13:38:22 +00:00
_python_dispatcher.py
_sources.py
_storage_docs.py
_streambase.py
_tensor_docs.py Pyi doc inclusion + fix (#117267) 2024-01-15 13:06:53 +00:00
_tensor_str.py Enable possibly-undefined error code (#118533) 2024-01-30 21:07:01 +00:00
_tensor.py additional support for float8_e4m3fnuz and _e5m2fnuz (#115214) 2024-01-22 18:33:41 +00:00
_torch_docs.py Clarified sampling process of torch.randn for complex dtypes. (#118315) 2024-01-26 13:05:19 +00:00
_utils_internal.py Add pytorch-distributed justknobs helper (#118568) 2024-01-30 08:13:52 +00:00
_utils.py pre_dispatch aot_export (#115188) 2023-12-25 04:51:21 +00:00
_VF.py
_vmap_internals.py
_weights_only_unpickler.py additional support for float8_e4m3fnuz and _e5m2fnuz (#115214) 2024-01-22 18:33:41 +00:00
abi-check.cpp
CMakeLists.txt [BE] [cuDNN] Always build assuming cuDNN >= 8.1 (#95722) 2024-01-03 15:41:28 +00:00
custom_class_detail.h
custom_class.h
extension.h
functional.py Fix return type hint for list types (#118238) 2024-01-25 23:35:20 +00:00
hub.py Enable possibly-undefined error code (#118533) 2024-01-30 21:07:01 +00:00
library.h Add way to actually delete a torch.library.Library object (#118318) 2024-01-26 22:30:51 +00:00
library.py Enable local_partial_types (#118467) 2024-01-28 13:38:22 +00:00
overrides.py [RELAND] Remove deprecated fbgemm operators (#112153) 2024-01-30 16:32:37 +00:00
py.typed
quasirandom.py
random.py
README.txt
return_types.py [pytree] reuse flatten_fn in flatten_with_keys_fn to ensure consistency (#117656) 2024-01-17 20:38:49 +00:00
script.h
serialization.py Enable local_partial_types (#118467) 2024-01-28 13:38:22 +00:00
storage.py additional support for float8_e4m3fnuz and _e5m2fnuz (#115214) 2024-01-22 18:33:41 +00:00
torch_version.py Replace follow_imports = silent with normal (#118414) 2024-01-27 02:44:11 +00:00
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.