Skip to content

Commit 6dc582e

Browse files
pre-commit
1 parent 984a391 commit 6dc582e

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

dpnp/backend/extensions/statistics/partitioning.cpp

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030
#include "utils/type_dispatch.hpp"
3131
#include <pybind11/pybind11.h>
3232

33-
#include "sliding_window1d.hpp"
3433
#include "ext/common.hpp"
3534
#include "ext/validation_utils.hpp"
35+
#include "sliding_window1d.hpp"
3636

3737
namespace dpctl_td_ns = dpctl::tensor::type_dispatch;
3838
using namespace ext::common;
@@ -48,10 +48,7 @@ void validate(const usm_ndarray &a,
4848
const usm_ndarray &partitioned,
4949
const size_t k)
5050
{
51-
array_names names = {
52-
{&a, "a"},
53-
{&partitioned, "partitioned"}
54-
};
51+
array_names names = {{&a, "a"}, {&partitioned, "partitioned"}};
5552

5653
common_checks({&a}, {&partitioned}, names);
5754
check_same_size(&a, &partitioned, names);
@@ -61,8 +58,9 @@ void validate(const usm_ndarray &a,
6158

6259
if (k > a.get_size() - 2) {
6360
throw py::value_error("'k' must be from 0 to a.size() - 2, "
64-
"but got k = " + std::to_string(k) +
65-
" and a.size() = " + std::to_string(a.get_size()));
61+
"but got k = " +
62+
std::to_string(k) + " and a.size() = " +
63+
std::to_string(a.get_size()));
6664
}
6765
}
6866

0 commit comments

Comments
 (0)