pytorch/torch/testing/_internal
Nikita Shulga 2cdafab0bd [BE] Raise ValueError from torch.cat meta func (#158249)
Followup after https://github.com/pytorch/pytorch/pull/155460

From [Python documentation](https://docs.python.org/3/library/exceptions.html#ValueError):
> Raised when an operation or function receives an argument that has the right type but an inappropriate value, and the situation is not described by a more precise exception such as IndexError.

Raise [`TypeError`](https://docs.python.org/3/library/exceptions.html#TypeError) when input-output types are incompatible with each other
> Raised when an operation or function is applied to an object of inappropriate type. The associated value is a string giving details about the type mismatch.

> This exception may be raised by user code to indicate that an attempted operation on an object is not supported, and is not meant to be. If an object is meant to support a given operation but has not yet provided an implementation, [NotImplementedError](https://docs.python.org/3/library/exceptions.html#NotImplementedError) is the proper exception to raise.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/158249
Approved by: https://github.com/jbschlosser, https://github.com/Skylion007, https://github.com/albanD
2025-07-20 23:49:18 +00:00
..
codegen
data
distributed add device generalization support for distributed tests (#156796) 2025-07-16 09:37:03 +00:00
generated
opinfo Add isnan exit condition to special ops (#157464) 2025-07-05 04:19:50 +00:00
optests xpu: support custom ops with torch.library on xpu backend (#152879) 2025-07-11 07:36:04 +00:00
test_module
__init__.py
autocast_test_lists.py
autograd_function_db.py
check_kernel_launches.py [BE][6/16] fix typos in torch/ (#156316) 2025-06-23 02:57:34 +00:00
common_cuda.py [ROCm] Bump AOTriton to 0.10b (#156499) 2025-06-25 07:09:03 +00:00
common_device_type.py [BE][6/16] fix typos in torch/ (#156316) 2025-06-23 02:57:34 +00:00
common_dist_composable.py
common_distributed.py fix MPCT destroy_pg call (#157952) 2025-07-12 00:46:19 +00:00
common_dtype.py
common_fsdp.py Skip FSDP tests if device count is less then requested world_size value (#155836) 2025-06-24 16:38:23 +00:00
common_jit.py
common_methods_invocations.py [BE] Raise ValueError from torch.cat meta func (#158249) 2025-07-20 23:49:18 +00:00
common_mkldnn.py Enable TF32 as fp32 internal precision for matmul/linear/conv (#157520) 2025-07-17 08:57:34 +00:00
common_modules.py Add max_pool3d backward pass for MPS (#157498) 2025-07-07 19:46:44 +00:00
common_mps.py [MPS] Extend atomic operations to all int types (#158179) 2025-07-14 04:25:05 +00:00
common_nn.py
common_optimizers.py
common_pruning.py
common_quantization.py [BE][6/16] fix typos in torch/ (#156316) 2025-06-23 02:57:34 +00:00
common_quantized.py [TSAN][live speech translation] Fix A data race in caffe2 (#156378) 2025-06-29 07:23:20 +00:00
common_subclass.py
common_utils.py [ca] reset between tests (#158418) 2025-07-17 20:14:29 +00:00
composite_compliance.py [BE][6/16] fix typos in torch/ (#156316) 2025-06-23 02:57:34 +00:00
custom_op_db.py
custom_tensor.py
dist_utils.py
dynamo_test_failures.py
fake_config_module.py
fake_config_module2.py
fake_config_module3.py
hop_db.py
hypothesis_utils.py
inductor_utils.py [BE][6/16] fix typos in torch/ (#156316) 2025-06-23 02:57:34 +00:00
jit_metaprogramming_utils.py
jit_utils.py [BE][6/16] fix typos in torch/ (#156316) 2025-06-23 02:57:34 +00:00
logging_tensor.py
logging_utils.py
quantization_torch_package_models.py
static_module.py
subclasses.py
torchbind_impls.py
triton_utils.py [inductor][user triton] sanitize triple-quoted docstrings in kernel definitions (#157322) 2025-07-02 14:02:01 +00:00
two_tensor.py