mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 12:21:27 +01:00
This enables a check that which a class which only inherits from immutable classes like str, tuple, and NamedTuple, also defined `__slots__` so they don't allocate memory unnecessarily. This also ensure contributors think about how they define their classes with subclass NamedTuples and str, of which we have many in our codebase Pull Request resolved: https://github.com/pytorch/pytorch/pull/146276 Approved by: https://github.com/aorenste |
||
|---|---|---|
| .. | ||
| numpy_tests | ||
| __init__.py | ||
| check_tests_conform.py | ||
| conftest.py | ||
| test_basic.py | ||
| test_binary_ufuncs.py | ||
| test_dtype.py | ||
| test_function_base.py | ||
| test_ndarray_methods.py | ||
| test_nep50_examples.py | ||
| test_random.py | ||
| test_reductions.py | ||
| test_scalars_0D_arrays.py | ||
| test_ufuncs_basic.py | ||
| test_unary_ufuncs.py | ||