From 5808122017ba45edbbad5b85fb17726e307b5a75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20S=C3=A1nchez?= Date: Tue, 23 Jan 2024 16:56:27 +0000 Subject: [PATCH] Formatting. --- unsupported/test/cxx11_tensor_executor.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/unsupported/test/cxx11_tensor_executor.cpp b/unsupported/test/cxx11_tensor_executor.cpp index 55d031988..228fa9e08 100644 --- a/unsupported/test/cxx11_tensor_executor.cpp +++ b/unsupported/test/cxx11_tensor_executor.cpp @@ -136,8 +136,8 @@ void test_execute_broadcasting(Device d) { template struct test_execute_chipping_rvalue_runner { template - static std::enable_if_t<0 <= ChipDim, void> - run_dim(Device& d, const array& dims, const Tensor& src) { + static std::enable_if_t<0 <= ChipDim, void> run_dim(Device& d, const array& dims, + const Tensor& src) { const auto offset = internal::random(0, dims[(ChipDim)] - 1); const auto expr = src.template chip(offset); @@ -160,8 +160,8 @@ struct test_execute_chipping_rvalue_runner { } template - static std::enable_if_t - run_dim(Device&, const array&, const Tensor&) {} + static std::enable_if_t < + ChipDim<0, void> run_dim(Device&, const array&, const Tensor&) {} static void run(Device d) { auto dims = RandomDims(1, 10); @@ -179,8 +179,7 @@ void test_execute_chipping_rvalue(Device d) { template struct test_execute_chipping_lvalue_runner { template - static std::enable_if_t<0 <= ChipDim> - run_dim(Device& d, const array& dims) { + static std::enable_if_t<0 <= ChipDim> run_dim(Device& d, const array& dims) { /* Generate random data that we'll assign to the chipped tensor dim. */ array src_dims; for (int i = 0; i < NumDims - 1; ++i) { @@ -217,7 +216,7 @@ struct test_execute_chipping_lvalue_runner { } template - static std::enable_if_t run_dim(Device&, const array&) {} + static std::enable_if_t < ChipDim<0, void> run_dim(Device&, const array&) {} static void run(Device d) { auto dims = RandomDims(1, 10);