Fixing linter errors
This commit is contained in:
parent
b64dde60e8
commit
461598528c
@ -263,7 +263,7 @@ class BatchMatMulBenchmark(test.Benchmark):
|
|||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
dtypes_to_test = [np.float16, np.float32, np.float64, np.int32,
|
dtypes_to_test = [np.float16, np.float32, np.float64, np.int32,
|
||||||
np.complex64, np.complex128]
|
np.complex64, np.complex128]
|
||||||
for dtype_ in dtypes_to_test:
|
for dtype_ in dtypes_to_test:
|
||||||
for adjoint_a_ in False, True:
|
for adjoint_a_ in False, True:
|
||||||
for adjoint_b_ in False, True:
|
for adjoint_b_ in False, True:
|
||||||
|
@ -184,7 +184,7 @@ def _GetEigTest(dtype_, shape_, compute_v_):
|
|||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
dtypes_to_test = [dtypes_lib.float32, dtypes_lib.float64,
|
dtypes_to_test = [dtypes_lib.float32, dtypes_lib.float64,
|
||||||
dtypes_lib.complex64, dtypes_lib.complex128]
|
dtypes_lib.complex64, dtypes_lib.complex128]
|
||||||
for compute_v in True, False:
|
for compute_v in True, False:
|
||||||
for dtype in dtypes_to_test:
|
for dtype in dtypes_to_test:
|
||||||
for size in 1, 2, 5, 10:
|
for size in 1, 2, 5, 10:
|
||||||
|
@ -200,7 +200,7 @@ class LinearOperatorAdjointTest(
|
|||||||
def test_solve_adjoint_complex_operator(self):
|
def test_solve_adjoint_complex_operator(self):
|
||||||
if test.is_built_with_rocm():
|
if test.is_built_with_rocm():
|
||||||
self.skipTest("ROCm does not support BLAS solve operations"
|
self.skipTest("ROCm does not support BLAS solve operations"
|
||||||
" for complex types")
|
" for complex types")
|
||||||
matrix1 = self.evaluate(linear_operator_test_util.random_tril_matrix(
|
matrix1 = self.evaluate(linear_operator_test_util.random_tril_matrix(
|
||||||
[4, 4], dtype=dtypes.complex128, force_well_conditioned=True) +
|
[4, 4], dtype=dtypes.complex128, force_well_conditioned=True) +
|
||||||
1j * linear_operator_test_util.random_tril_matrix(
|
1j * linear_operator_test_util.random_tril_matrix(
|
||||||
|
@ -227,7 +227,7 @@ if __name__ == "__main__":
|
|||||||
sizes = [1, 3, 5]
|
sizes = [1, 3, 5]
|
||||||
trans_options = [[False, False], [True, False], [False, True]]
|
trans_options = [[False, False], [True, False], [False, True]]
|
||||||
dtypes_to_test = [np.int32, np.int64, np.float16, np.float32, np.float64,
|
dtypes_to_test = [np.int32, np.int64, np.float16, np.float32, np.float64,
|
||||||
np.complex64, np.complex128]
|
np.complex64, np.complex128]
|
||||||
# TF2 does not support placeholders under eager so we skip it
|
# TF2 does not support placeholders under eager so we skip it
|
||||||
for use_static_shape in set([True, tf2.enabled()]):
|
for use_static_shape in set([True, tf2.enabled()]):
|
||||||
for dtype in dtypes_to_test:
|
for dtype in dtypes_to_test:
|
||||||
|
@ -241,7 +241,7 @@ def _GetSelfAdjointEigGradTest(dtype_, shape_, compute_v_):
|
|||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
dtypes_to_test = [dtypes_lib.float32, dtypes_lib.float64,
|
dtypes_to_test = [dtypes_lib.float32, dtypes_lib.float64,
|
||||||
dtypes_lib.complex64, dtypes_lib.complex128]
|
dtypes_lib.complex64, dtypes_lib.complex128]
|
||||||
for compute_v in True, False:
|
for compute_v in True, False:
|
||||||
for dtype in dtypes_to_test:
|
for dtype in dtypes_to_test:
|
||||||
for size in 1, 2, 5, 10:
|
for size in 1, 2, 5, 10:
|
||||||
|
@ -222,7 +222,7 @@ def _get_tensordot_tests(dtype_, rank_a_, rank_b_, num_dims_, dynamic_shape_):
|
|||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
dtypes_to_test = [np.float16, np.float32, np.float64,
|
dtypes_to_test = [np.float16, np.float32, np.float64,
|
||||||
np.complex64, np.complex128]
|
np.complex64, np.complex128]
|
||||||
for dtype in dtypes_to_test:
|
for dtype in dtypes_to_test:
|
||||||
for rank_a in 1, 2, 4, 5:
|
for rank_a in 1, 2, 4, 5:
|
||||||
for rank_b in 1, 2, 4, 5:
|
for rank_b in 1, 2, 4, 5:
|
||||||
|
Loading…
Reference in New Issue
Block a user