diff --git a/ivy_tests/test_ivy/test_frontends/test_torch/test_tensor.py b/ivy_tests/test_ivy/test_frontends/test_torch/test_tensor.py index 10a8b3385fbf3..2da6fccbc59f3 100644 --- a/ivy_tests/test_ivy/test_frontends/test_torch/test_tensor.py +++ b/ivy_tests/test_ivy/test_frontends/test_torch/test_tensor.py @@ -453,12 +453,12 @@ def test_torch___add__( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -494,12 +494,12 @@ def test_torch___and__( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -637,12 +637,12 @@ def test_torch___eq__( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -678,12 +678,12 @@ def test_torch___floordiv__( input_dtype, x = dtype_and_x assume(not np.any(np.isclose(x[1], 0))) helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -792,12 +792,12 @@ def test_torch___iand__( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -832,7 +832,7 @@ def test_torch___invert__( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -870,7 +870,7 @@ def test_torch___long__( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -904,12 +904,12 @@ def test_torch___lt__( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -937,14 +937,14 @@ def test_torch___matmul__( on_device, backend_fw, ): - dtype, tensor1, tensor2 = dtype_tensor1_tensor2 + input_dtype, tensor1, tensor2 = dtype_tensor1_tensor2 helpers.test_frontend_method( - init_input_dtypes=dtype, + init_input_dtypes=input_dtype, backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": tensor1, }, - method_input_dtypes=dtype, + method_input_dtypes=input_dtype, method_all_as_kwargs_np={"other": tensor2}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -974,13 +974,14 @@ def test_torch___mod__( backend_fw, ): input_dtype, x = dtype_and_x + assume(not np.any(np.isclose(x[1], 0))) helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -1016,12 +1017,12 @@ def test_torch___mul__( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -1057,12 +1058,12 @@ def test_torch___ne__( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -1102,7 +1103,7 @@ def test_torch___neg__( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -1136,12 +1137,12 @@ def test_torch___or__( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -1177,12 +1178,12 @@ def test_torch___pow__( if "int" in dtype: x[1] = ivy.abs(x[1]) helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "exponent": x[1], }, @@ -1218,12 +1219,12 @@ def test_torch___radd__( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -1259,12 +1260,12 @@ def test_torch___rmul__( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -1301,12 +1302,12 @@ def test_torch___rpow__( if "int" in dtype: x[0] = ivy.abs(x[0]) helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -1339,12 +1340,12 @@ def test_torch___rsub__( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -1414,12 +1415,12 @@ def test_torch___sub__( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -1456,12 +1457,12 @@ def test_torch___truediv__( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -1520,7 +1521,7 @@ def test_torch_abs( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -1556,7 +1557,7 @@ def test_torch_abs_( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -1592,7 +1593,7 @@ def test_torch_acos( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -1739,12 +1740,12 @@ def test_torch_add( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], "alpha": alpha, @@ -1790,7 +1791,7 @@ def test_torch_add_( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], "alpha": alpha, @@ -2355,14 +2356,14 @@ def test_torch_addr( on_device, backend_fw, ): - dtype, input, vec1, vec2 = dtype_and_vecs + input_dtype, input, vec1, vec2 = dtype_and_vecs helpers.test_frontend_method( - init_input_dtypes=dtype, + init_input_dtypes=input_dtype, backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": input, }, - method_input_dtypes=dtype, + method_input_dtypes=input_dtype, method_all_as_kwargs_np={ "vec1": vec1, "vec2": vec2, @@ -2411,14 +2412,14 @@ def test_torch_addr_( on_device, backend_fw, ): - dtype, input, vec1, vec2 = dtype_and_vecs + input_dtype, input, vec1, vec2 = dtype_and_vecs helpers.test_frontend_method( - init_input_dtypes=dtype, + init_input_dtypes=input_dtype, backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": input, }, - method_input_dtypes=dtype, + method_input_dtypes=input_dtype, method_all_as_kwargs_np={ "vec1": vec1, "vec2": vec2, @@ -2461,7 +2462,7 @@ def test_torch_adjoint( init_all_as_kwargs_np={ "data": values[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, init_flags=init_flags, method_flags=method_flags, @@ -2503,7 +2504,7 @@ def test_torch_all( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={ "dim": axis, "keepdim": keepdim, @@ -2545,7 +2546,7 @@ def test_torch_amax( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={ "dim": axis, "keepdim": keepdim, @@ -2587,7 +2588,7 @@ def test_torch_amin( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={ "dim": axis, "keepdim": keepdim, @@ -2625,7 +2626,7 @@ def test_torch_aminmax( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -2661,7 +2662,7 @@ def test_torch_angle( init_all_as_kwargs_np={ "data": values[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, init_flags=init_flags, method_flags=method_flags, @@ -2703,7 +2704,7 @@ def test_torch_any( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={ "dim": axis, "keepdim": keepdim, @@ -2749,7 +2750,7 @@ def func(x): init_all_as_kwargs_np={ "data": values[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={ "callable": func, }, @@ -2937,7 +2938,7 @@ def test_torch_arcsin( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -3086,7 +3087,7 @@ def test_torch_arctan( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -3117,12 +3118,12 @@ def test_torch_arctan2( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -3155,12 +3156,12 @@ def test_torch_arctan2_( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -3199,7 +3200,7 @@ def test_torch_arctan_( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -3313,7 +3314,7 @@ def test_torch_argmax( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={ "dim": axis, "keepdim": keepdim, @@ -3362,7 +3363,7 @@ def test_torch_argmin( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={ "dim": axis, "keepdim": keepdim, @@ -3411,7 +3412,7 @@ def test_torch_argsort( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={ "dim": axis, "descending": descending, @@ -3449,7 +3450,7 @@ def test_torch_argwhere( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -3479,7 +3480,7 @@ def test_torch_as_strided( init_input_dtypes=input_dtype, backend_to_test=backend_fw, init_all_as_kwargs_np={"data": x[0]}, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={ "size": size, "stride": stride, @@ -3519,7 +3520,7 @@ def test_torch_asin( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -3592,7 +3593,7 @@ def test_torch_asinh( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -3631,7 +3632,7 @@ def test_torch_asinh_( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -3669,7 +3670,7 @@ def test_torch_atan( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -3700,12 +3701,12 @@ def test_torch_atan2( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -3739,12 +3740,12 @@ def test_torch_atan2_( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -4097,12 +4098,12 @@ def test_torch_bitwise_and( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -4136,12 +4137,12 @@ def test_torch_bitwise_and_( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -4174,12 +4175,12 @@ def test_torch_bitwise_left_shift( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -4217,7 +4218,7 @@ def test_torch_bitwise_not( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], frontend_method_data=frontend_method_data, init_flags=init_flags, method_flags=method_flags, @@ -4254,7 +4255,7 @@ def test_torch_bitwise_not_( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], frontend_method_data=frontend_method_data, init_flags=init_flags, method_flags=method_flags, @@ -4285,12 +4286,12 @@ def test_torch_bitwise_or( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -4324,12 +4325,12 @@ def test_torch_bitwise_or_( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -4368,12 +4369,12 @@ def test_torch_bitwise_right_shift( np.clip(x[1], 0, np.iinfo(input_dtype[1]).bits - 1), dtype=input_dtype[1] ) helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -4412,12 +4413,12 @@ def test_torch_bitwise_right_shift_( np.clip(x[1], 0, np.iinfo(input_dtype[1]).bits - 1), dtype=input_dtype[1] ) helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -4450,12 +4451,12 @@ def test_torch_bitwise_xor( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -4489,12 +4490,12 @@ def test_torch_bitwise_xor_( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -4561,7 +4562,7 @@ def test_torch_bool( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -4596,7 +4597,7 @@ def test_torch_byte( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -4631,7 +4632,7 @@ def test_torch_ceil( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -4667,7 +4668,7 @@ def test_torch_ceil_( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -4702,7 +4703,7 @@ def test_torch_char( init_input_dtypes=input_dtype, backend_to_test=backend_fw, init_all_as_kwargs_np={"data": x[0]}, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -5030,7 +5031,7 @@ def test_torch_clone( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -5064,7 +5065,7 @@ def test_torch_conj( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -5100,7 +5101,7 @@ def test_torch_contiguous( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -5132,12 +5133,12 @@ def test_torch_copy_( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -5171,12 +5172,12 @@ def test_torch_copysign( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -5211,12 +5212,12 @@ def test_torch_copysign_( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -5254,7 +5255,7 @@ def test_torch_cos( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -5291,7 +5292,7 @@ def test_torch_cos_( init_all_as_kwargs_np={ "data": list(x[0]) if isinstance(x[0], int) else x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -5327,7 +5328,7 @@ def test_torch_cosh( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -5364,7 +5365,7 @@ def test_torch_cosh_( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -5741,7 +5742,7 @@ def test_torch_det( init_all_as_kwargs_np={ "data": x, }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -5776,7 +5777,7 @@ def test_torch_detach( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -5812,7 +5813,7 @@ def test_torch_detach_( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -6053,10 +6054,10 @@ def test_torch_div( assume(not np.any(np.isclose(x[1], 0))) helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={"data": x[0]}, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], "rounding_mode": rounding_mode, @@ -6098,10 +6099,10 @@ def test_torch_div_( assume(not np.any(np.isclose(x[1], 0))) helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={"data": x[0]}, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], "rounding_mode": rounding_mode, @@ -6138,12 +6139,12 @@ def test_torch_divide( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -6177,12 +6178,12 @@ def test_torch_dot( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "tensor": x[1], }, @@ -6217,7 +6218,7 @@ def test_torch_double( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -6310,12 +6311,12 @@ def test_torch_eq_( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -6352,12 +6353,12 @@ def test_torch_equal( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -6396,7 +6397,7 @@ def test_torch_erf( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -6432,7 +6433,7 @@ def test_torch_erf_( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -6470,7 +6471,7 @@ def test_torch_erfinv( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -6509,7 +6510,7 @@ def test_torch_erfinv_( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -6544,7 +6545,7 @@ def test_torch_exp( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -6580,7 +6581,7 @@ def test_torch_exp_( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -6662,12 +6663,12 @@ def test_torch_expand_as( ): input_dtype, x = dtype_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -6704,7 +6705,7 @@ def test_torch_expm1( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -6740,7 +6741,7 @@ def test_torch_expm1_( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -6816,7 +6817,7 @@ def test_torch_fix( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -6853,7 +6854,7 @@ def test_torch_fix_( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -6897,7 +6898,7 @@ def test_torch_flatten( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={ "start_dim": axes[0], "end_dim": axes[1], @@ -6973,7 +6974,7 @@ def test_torch_fliplr( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -7007,7 +7008,7 @@ def test_torch_float( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -7042,7 +7043,7 @@ def test_torch_floor( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -7077,7 +7078,7 @@ def test_torch_floor_( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -7108,12 +7109,12 @@ def test_torch_fmax( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -7146,12 +7147,12 @@ def test_torch_fmin( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -7188,10 +7189,10 @@ def test_torch_fmod( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={"data": x[0]}, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={"other": x[1]}, frontend=frontend, frontend_method_data=frontend_method_data, @@ -7227,10 +7228,10 @@ def test_torch_fmod_( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={"data": x[0]}, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={"other": x[1]}, frontend=frontend, frontend_method_data=frontend_method_data, @@ -7268,7 +7269,7 @@ def test_torch_frac( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -7343,12 +7344,12 @@ def test_torch_gcd( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -7432,12 +7433,12 @@ def test_torch_greater( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -7474,12 +7475,12 @@ def test_torch_greater_( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -7515,12 +7516,12 @@ def test_torch_greater_equal( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -7557,12 +7558,12 @@ def test_torch_greater_equal_( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -7599,7 +7600,7 @@ def test_torch_half( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -7629,12 +7630,12 @@ def test_torch_heaviside( ): input_dtype, values = dtype_and_values helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": values[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "values": values[1], }, @@ -8008,7 +8009,7 @@ def test_torch_int( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -8044,7 +8045,7 @@ def test_torch_inverse( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -8077,7 +8078,7 @@ def test_torch_is_complex( init_input_dtypes=input_dtype, backend_to_test=backend_fw, init_all_as_kwargs_np={"data": x[0]}, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -8129,7 +8130,7 @@ def test_torch_is_floating_point( init_input_dtypes=input_dtype, backend_to_test=backend_fw, init_all_as_kwargs_np={"data": x[0]}, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -8219,7 +8220,7 @@ def test_torch_isfinite( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -8252,7 +8253,7 @@ def test_torch_isinf( init_input_dtypes=input_dtype, backend_to_test=backend_fw, init_all_as_kwargs_np={"data": x[0]}, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -8285,7 +8286,7 @@ def test_torch_isnan( init_input_dtypes=input_dtype, backend_to_test=backend_fw, init_all_as_kwargs_np={"data": x[0]}, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -8318,7 +8319,7 @@ def test_torch_isreal( init_input_dtypes=input_dtype, backend_to_test=backend_fw, init_all_as_kwargs_np={"data": x[0]}, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -8378,12 +8379,12 @@ def test_torch_lcm( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -8424,12 +8425,12 @@ def test_torch_lcm_( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -8465,12 +8466,12 @@ def test_torch_less( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -8507,12 +8508,12 @@ def test_torch_less_( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -8548,12 +8549,12 @@ def test_torch_less_equal( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -8590,12 +8591,12 @@ def test_torch_less_equal_( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -8633,7 +8634,7 @@ def test_torch_log( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -8669,7 +8670,7 @@ def test_torch_log10( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -8706,7 +8707,7 @@ def test_torch_log10_( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -8739,7 +8740,7 @@ def test_torch_log1p( init_input_dtypes=input_dtype, backend_to_test=backend_fw, init_all_as_kwargs_np={"data": x[0]}, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend=frontend, frontend_method_data=frontend_method_data, @@ -8774,7 +8775,7 @@ def test_torch_log1p_( init_input_dtypes=input_dtype, backend_to_test=backend_fw, init_all_as_kwargs_np={"data": x[0]}, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend=frontend, frontend_method_data=frontend_method_data, @@ -8810,7 +8811,7 @@ def test_torch_log2( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -8847,7 +8848,7 @@ def test_torch_log2_( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -8884,7 +8885,7 @@ def test_torch_log_( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -8964,12 +8965,12 @@ def test_torch_logaddexp( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -9006,7 +9007,7 @@ def test_torch_logdet( init_all_as_kwargs_np={ "data": x, }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -9037,12 +9038,12 @@ def test_torch_logical_and( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -9079,7 +9080,7 @@ def test_torch_logical_not( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -9117,7 +9118,7 @@ def test_torch_logical_not_( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -9148,12 +9149,12 @@ def test_torch_logical_or( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -9186,12 +9187,12 @@ def test_torch_logical_xor( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -9231,7 +9232,7 @@ def test_torch_logit( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -9266,7 +9267,7 @@ def test_torch_long( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -9407,7 +9408,7 @@ def test_torch_max( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -9438,12 +9439,12 @@ def test_torch_maximum( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -9565,7 +9566,7 @@ def test_torch_min( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -9596,12 +9597,12 @@ def test_torch_minimum( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -9752,7 +9753,7 @@ def test_torch_msort( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -9783,12 +9784,12 @@ def test_torch_mul( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -9823,12 +9824,12 @@ def test_torch_mul_( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -9861,12 +9862,12 @@ def test_torch_multiply( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -9900,12 +9901,12 @@ def test_torch_multiply_( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -9944,7 +9945,7 @@ def test_torch_nanmean( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -9981,7 +9982,7 @@ def test_torch_nansum( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -10098,12 +10099,12 @@ def test_torch_ne( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -10138,12 +10139,12 @@ def test_torch_ne_( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -10184,7 +10185,7 @@ def test_torch_neg( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -10223,7 +10224,7 @@ def test_torch_neg_( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -10261,7 +10262,7 @@ def test_torch_negative( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -10294,7 +10295,7 @@ def test_torch_new_( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -10364,12 +10365,12 @@ def test_torch_new_full( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=[input_dtype[0]], + init_input_dtypes=input_dtype, backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=[input_dtype[1]], + method_input_dtypes=[], method_all_as_kwargs_np={ "size": x[1], "fill_value": x[2], @@ -10544,7 +10545,7 @@ def test_torch_nonzero( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -10674,12 +10675,12 @@ def test_torch_not_equal( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -10715,12 +10716,12 @@ def test_torch_not_equal_( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -10850,12 +10851,12 @@ def test_torch_pow( if "int" in dtype: x[1] = ivy.abs(x[1]) helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "exponent": x[1], }, @@ -10892,12 +10893,12 @@ def test_torch_pow_( if "int" in dtype: x[1] = ivy.abs(x[1]) helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "exponent": x[1], }, @@ -11028,7 +11029,7 @@ def test_torch_rad2deg( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -11109,7 +11110,7 @@ def test_torch_ravel( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -11159,7 +11160,7 @@ def test_torch_reciprocal( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -11196,7 +11197,7 @@ def test_torch_reciprocal_( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -11232,7 +11233,7 @@ def test_torch_relu( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -11266,12 +11267,12 @@ def test_torch_remainder( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -11310,12 +11311,12 @@ def test_torch_remainder_( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -11461,12 +11462,12 @@ def test_torch_reshape_as( ): input_dtype, x = dtype_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -11582,7 +11583,7 @@ def test_torch_rsqrt( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -11618,7 +11619,7 @@ def test_torch_rsqrt_( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -11901,7 +11902,7 @@ def test_torch_short( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -11936,7 +11937,7 @@ def test_torch_sigmoid( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -11972,7 +11973,7 @@ def test_torch_sigmoid_( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -12005,7 +12006,7 @@ def test_torch_sign( init_input_dtypes=input_dtype, backend_to_test=backend_fw, init_all_as_kwargs_np={"data": x[0]}, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -12039,7 +12040,7 @@ def test_torch_sign_( init_input_dtypes=input_dtype, backend_to_test=backend_fw, init_all_as_kwargs_np={"data": x[0]}, - method_input_dtypes=[input_dtype], + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -12075,7 +12076,7 @@ def test_torch_sin( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -12112,7 +12113,7 @@ def test_torch_sin_( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -12146,7 +12147,7 @@ def test_torch_sinc( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -12183,7 +12184,7 @@ def test_torch_sinc_( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -12220,7 +12221,7 @@ def test_torch_sinh( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -12257,7 +12258,7 @@ def test_torch_sinh_( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -12473,7 +12474,7 @@ def test_torch_sqrt( init_input_dtypes=input_dtype, backend_to_test=backend_fw, init_all_as_kwargs_np={"data": x[0]}, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -12507,7 +12508,7 @@ def test_torch_sqrt_( init_input_dtypes=input_dtype, backend_to_test=backend_fw, init_all_as_kwargs_np={"data": x[0]}, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -12540,7 +12541,7 @@ def test_torch_square( init_input_dtypes=input_dtype, backend_to_test=backend_fw, init_all_as_kwargs_np={"data": x[0]}, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -12576,7 +12577,7 @@ def test_torch_square_( init_input_dtypes=input_dtype, backend_to_test=backend_fw, init_all_as_kwargs_np={"data": x[0]}, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -12692,7 +12693,7 @@ def test_torch_std( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -12763,12 +12764,12 @@ def test_torch_sub( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], "alpha": alpha, @@ -12809,7 +12810,7 @@ def test_torch_subtract_( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -12964,7 +12965,7 @@ def test_torch_t( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -13043,7 +13044,7 @@ def test_torch_tan( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -13116,7 +13117,7 @@ def test_torch_tanh( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -13153,7 +13154,7 @@ def test_torch_tanh_( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -13187,7 +13188,7 @@ def test_torch_tensor_corrcoef( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -13223,7 +13224,7 @@ def test_torch_tensor_erfc_( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -13260,12 +13261,12 @@ def test_torch_tensor_logaddexp2( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -13305,7 +13306,7 @@ def test_torch_tensor_negative_( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -13343,7 +13344,7 @@ def test_torch_tensor_positive( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -13819,10 +13820,10 @@ def test_torch_true_divide_( assume(not np.any(np.isclose(x[1], 0))) helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={"data": x[0]}, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -13860,7 +13861,7 @@ def test_torch_trunc( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -13897,7 +13898,7 @@ def test_torch_trunc_( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags, @@ -13967,12 +13968,12 @@ def test_torch_type_as( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -14443,12 +14444,12 @@ def test_torch_view_as( ): input_dtype, x = dtype_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -14520,14 +14521,14 @@ def test_torch_where( on_device, backend_fw, ): - cond, xs, dtypes = broadcastables + cond, xs, input_dtypes = broadcastables helpers.test_frontend_method( - init_input_dtypes=dtypes, + init_input_dtypes=[input_dtypes[0]], backend_to_test=backend_fw, init_all_as_kwargs_np={ "data": xs[0], }, - method_input_dtypes=["bool", dtypes[1]], + method_input_dtypes=["bool", input_dtypes[1]], method_all_as_kwargs_np={ "condition": cond, "other": xs[1], @@ -14565,11 +14566,11 @@ def test_torch_xlogy( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -14608,11 +14609,11 @@ def test_torch_xlogy_( ): input_dtype, x = dtype_and_x helpers.test_frontend_method( - init_input_dtypes=input_dtype, + init_input_dtypes=[input_dtype[0]], init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[input_dtype[1]], method_all_as_kwargs_np={ "other": x[1], }, @@ -14652,7 +14653,7 @@ def test_torch_zero_( init_all_as_kwargs_np={ "data": x[0], }, - method_input_dtypes=input_dtype, + method_input_dtypes=[], method_all_as_kwargs_np={}, frontend_method_data=frontend_method_data, init_flags=init_flags,