/aosp_15_r20/external/pytorch/torch/testing/_internal/opinfo/definitions/ |
H A D | sparse.py | 218 error_regex="Expect the same number of specified elements per batch.", 224 … error_regex="reduction operations on (CSR|CSC) tensors with keepdim=False is unsupported", 230 error_regex="masked (.*) expects explicit mask for sparse_csr tensor input", 235 … error_regex="crow_indices is supposed to be a vector, but got 3 dimensional tensor.", 251 error_regex="Expect the same number of specified elements per batch.", 257 error_regex="masked (.*) expects explicit mask for sparse_csr tensor input", 267 error_regex=( 276 … error_regex="reduction operations on (CSR|CSC) tensors with keepdim=False is unsupported", 287 … error_regex="tensor dimensionality must be sum of batch, base, and dense dimensionalities", 292 error_regex="input_dim == 2 INTERNAL ASSERT FAILED at", [all …]
|
H A D | signal.py | 160 error_regex="requires non-negative window length, got M=-1", 174 error_regex="is implemented for strided tensors only, got: torch.sparse_coo", 181 error_regex="expects float32 or float64 dtypes, got: torch.int64", 188 error_regex="expects float32 or float64 dtypes, got: torch.bfloat16", 195 error_regex="expects float32 or float64 dtypes, got: torch.float16", 207 error_regex="Tau must be positive, got: -1 instead.", 214 error_regex="Center must be None for symmetric windows", 226 error_regex="Standard deviation must be positive, got: -1 instead.", 238 error_regex="beta must be non-negative, got: -1 instead.", 250 error_regex="Coefficients must be a list/tuple", [all …]
|
H A D | linalg.py | 142 yield ErrorInput(sample, error_regex=err, error_type=RuntimeError) 146 yield ErrorInput(sample, error_regex=err, error_type=RuntimeError) 150 yield ErrorInput(sample, error_regex=err, error_type=RuntimeError) 156 yield ErrorInput(sample, error_regex=err, error_type=IndexError) 785 error_regex="at least 2 dimensions", 794 error_regex="at least 2 dimensions", 870 yield ErrorInput(sample, error_regex=err, error_type=RuntimeError) 877 yield ErrorInput(sample, error_regex=err, error_type=IndexError)
|
H A D | fft.py | 76 error_regex="Dimension specified as -1 but tensor has no dimensions", 86 error_regex="Dimension specified as 0 but tensor has no dimensions",
|
/aosp_15_r20/external/pytorch/torch/testing/_internal/ |
H A D | common_optimizers.py | 92 error_regex="", argument 97 self.error_regex = error_regex 255 … error_regex="params argument given to the optimizer should be an iterable of Tensors or dicts", 264 error_regex=".*a parameter group with duplicate parameters.*", 273 error_regex="some parameters appear in more than one parameter group", 282 error_regex="Tensor lr must be 1-element", 359 error_regex="Invalid rho value: 1.1", 404 error_regex="epsilon1 should be >= 0", 413 error_regex="Clipping threshold d should be >= 1", 422 error_regex="beta2_decay should be <= 0", [all …]
|
H A D | common_methods_invocations.py | 224 yield ErrorInput(SampleInput(make_arg(()), 0), error_regex=err_msg1) 229 yield ErrorInput(SampleInput(make_arg((S, S, S)), 0), error_regex=err_msg2) 235 error_type=TypeError, error_regex=err_msg3) 241 yield ErrorInput(SampleInput(make_arg(S), 0), error_regex=err_msg1) 247 error_regex=err_msg2) 252 error_type=TypeError, error_regex=err_msg3) 258 yield ErrorInput(SampleInput(make_arg(S), 0), error_regex=err_msg1) 263 yield ErrorInput(SampleInput(make_arg(S, S, S), 0), error_regex=err_msg2) 323 … error_regex="itemsize 4 requiring a storage size of 1604 are out of bounds for storage of size 64" 406 error_regex="elements cannot be converted to Scalar") [all …]
|
H A D | common_modules.py | 201 error_regex): argument 205 self.error_regex = error_regex 3191 error_regex="input has inconsistent input_size: got 11 expected 10" 3200 error_regex="hidden0 has inconsistent hidden_size: got 21, expected 20" 3209 error_regex="Input batch size 3 doesn't match hidden0 batch size 5" 3218 error_regex="Expected hidden to be 1D or 2D, got 4D instead" 3227 error_regex="hidden0 has inconsistent hidden_size: got 21, expected 20" 3236 error_regex="hidden0 has inconsistent hidden_size: got 21, expected 20" 3251 error_regex="input has inconsistent input_size: got 11 expected 10" 3260 error_regex="hidden0 has inconsistent hidden_size: got 21, expected 20" [all …]
|
/aosp_15_r20/external/tensorflow/tensorflow/python/ops/ragged/ |
H A D | dynamic_ragged_shape_test.py | 401 error_regex='axis must be an integer'), 404 error_regex): argument 406 with self.assertRaisesRegex(error_type, error_regex): 414 error_regex='Cannot get an inner shape'), 419 error_regex='old inner_rank cannot be zero'), 424 error_regex='new_inner_rank cannot be zero'), 427 error_regex): argument 429 with self.assertRaisesRegex(error_type, error_regex): 465 error_regex='Cannot change inner_rank if'), 468 error_regex): argument [all …]
|
H A D | row_partition_test.py | 1172 error_regex='Merging incompatible RowPartitionSpecs'), 1176 error_regex='Merging RowPartitionSpecs with incompatible dtypes'), 1178 def testMergeWithRaises(self, a, b, error_type, error_regex): argument 1179 with self.assertRaisesRegex(error_type, error_regex):
|
/aosp_15_r20/external/tensorflow/tensorflow/python/ops/ |
H A D | quantized_conv_ops_test.py | 208 error_regex=""): argument 232 error_regex): 249 error_regex="must be rank 4") 253 error_regex="must be rank 4") 256 error_regex="must be rank 0") 259 error_regex="must be rank 0") 262 error_regex="must be rank 0") 265 error_regex="must be rank 0")
|
/aosp_15_r20/external/tensorflow/tensorflow/python/ops/structured/ |
H A D | structured_array_ops_test.py | 798 error_regex="a"), 804 error_regex="b"), 810 error_regex="Ranks of sub-message do not match", 817 error_regex="Ranks of sub-message do not match", 823 error_regex="axis=0 out of bounds", 829 error_regex="axis=1 out of bounds", 835 error_regex="axis=-2 out of bounds", 841 error_regex="must have rank", 844 def testConcatError(self, values, axis, error_type, error_regex): argument 846 with self.assertRaisesRegex(error_type, error_regex): [all …]
|
/aosp_15_r20/external/tensorflow/tensorflow/python/data/experimental/kernel_tests/service/ |
H A D | dynamic_sharding_test.py | 339 error_regex = "Splitting is not implemented for snapshot datasets" 340 with self.assertRaisesRegex(errors.UnimplementedError, error_regex): 356 error_regex = ("Cannot create split providers for dataset " + 358 with self.assertRaisesRegex(errors.UnimplementedError, error_regex):
|
/aosp_15_r20/external/pytorch/test/distributed/fsdp/ |
H A D | test_fsdp_exec_order.py | 124 error_regex = "^(Forward order differs across ranks)" 125 with self.assertRaisesRegex(RuntimeError, error_regex):
|
H A D | test_fsdp_clip_grad_norm.py | 69 error_regex = "should only be called on the root FSDP instance" 70 with self.assertRaisesRegex(RuntimeError, error_regex):
|
H A D | test_fsdp_optim_state.py | 649 error_regex = ( 654 with self.assertRaisesRegex(RuntimeError, error_regex):
|
/aosp_15_r20/external/executorch/backends/arm/test/ |
H A D | runner_utils.py | 326 error_regex = r"(^[EF][: ].*$)|(^.*Hard fault.*$)|(^.*Assertion.*$)" 330 if re.compile(error_regex, re.MULTILINE).search(result_stdout):
|
/aosp_15_r20/external/pytorch/torch/testing/_internal/opinfo/ |
H A D | core.py | 331 def __init__(self, sample_input, *, error_type=RuntimeError, error_regex): argument 334 self.error_regex = error_regex 1714 yield ErrorInput(si, error_type=Exception, error_regex="") 1718 yield ErrorInput(si, error_type=Exception, error_regex="") 1725 yield ErrorInput(si, error_type=Exception, error_regex="")
|
/aosp_15_r20/external/pytorch/test/ |
H A D | test_optim.py | 136 error_input.error_type, error_input.error_regex 141 error_input.error_type, error_input.error_regex 148 error_input.error_type, error_input.error_regex 153 error_input.error_type, error_input.error_regex
|
H A D | test_modules.py | 855 with self.assertRaisesRegex(error_input.error_type, error_input.error_regex): 860 with self.assertRaisesRegex(error_input.error_type, error_input.error_regex):
|
H A D | test_ops.py | 573 with self.assertRaisesRegex(ei.error_type, ei.error_regex): 596 with self.assertRaisesRegex(ei.error_type, ei.error_regex): 621 with self.assertRaisesRegex(ei.error_type, ei.error_regex):
|
H A D | test_view_ops.py | 1369 error_regex = "chunk expects.*greater than 0" 1370 with self.assertRaisesRegex(RuntimeError, error_regex): 1372 with self.assertRaisesRegex(RuntimeError, error_regex):
|
H A D | test_linalg.py | 1574 def run_error_test_case(input, ord, dim, keepdim, error_type, error_regex): argument 1579 with self.assertRaisesRegex(error_type, error_regex, msg=test_case_info): 1605 for input_size, ord_settings, dim, error_type, error_regex in error_test_cases: 1608 run_error_test_case(input, ord, dim, keepdim, error_type, error_regex) 5068 for a_size, tau_size, c_size, error_regex in test_cases: 5072 with self.assertRaisesRegex(RuntimeError, error_regex): 5374 for a_size, tau_size, error_regex in test_cases: 5377 with self.assertRaisesRegex(RuntimeError, error_regex):
|
H A D | test_autograd.py | 1629 error_regex = "expected .* arguments, got .* instead" 1632 with self.assertRaisesRegex(TypeError, error_regex): 1634 with self.assertRaisesRegex(TypeError, error_regex): 8715 error_regex = ( 8764 with self.assertRaisesRegex(RuntimeError, error_regex): 8767 with self.assertRaisesRegex(RuntimeError, error_regex): 8773 with self.assertRaisesRegex(RuntimeError, error_regex):
|
H A D | test_mps.py | 10204 error_regex = 'chunk expects.*greater than 0' 10205 with self.assertRaisesRegex(RuntimeError, error_regex): 10207 with self.assertRaisesRegex(RuntimeError, error_regex): 12244 error_regex = mps_sample.error_regex 12253 with self.assertRaisesRegex(error_type, error_regex):
|
/aosp_15_r20/external/pytorch/test/distributed/_composable/fsdp/ |
H A D | test_fully_shard_init.py | 692 error_regex = ( 697 with self.assertRaisesRegex(RuntimeError, error_regex):
|