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
3737namespace dpctl_td_ns = dpctl::tensor::type_dispatch;
3838using 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