Skip to content

Commit 49ffe40

Browse files
committed
Remove unused functions
1 parent fda9ec4 commit 49ffe40

37 files changed

+65
-490
lines changed

dpnp/backend/extensions/vm/abs.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ namespace py = pybind11;
4848
namespace py_int = dpnp::extensions::py_internal;
4949
namespace td_ns = dpctl::tensor::type_dispatch;
5050
namespace tu_ns = dpctl::tensor::type_utils;
51-
namespace vm_ext = dpnp::backend::ext::vm;
5251

5352
namespace impl
5453
{
@@ -128,7 +127,7 @@ void init_abs(py::module_ m)
128127

129128
auto abs_need_to_call_pyapi = [&](sycl::queue exec_q, arrayT src,
130129
arrayT dst) {
131-
return vm_ext::need_to_call_unary_ufunc(
130+
return py_internal::need_to_call_unary_ufunc(
132131
exec_q, src, dst, output_typeid_vector, contig_dispatch_vector);
133132
};
134133
m.def("_mkl_abs_to_call", abs_need_to_call_pyapi,

dpnp/backend/extensions/vm/acos.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ namespace py = pybind11;
4848
namespace py_int = dpnp::extensions::py_internal;
4949
namespace td_ns = dpctl::tensor::type_dispatch;
5050
namespace tu_ns = dpctl::tensor::type_utils;
51-
namespace vm_ext = dpnp::backend::ext::vm;
5251

5352
namespace impl
5453
{
@@ -128,7 +127,7 @@ void init_acos(py::module_ m)
128127

129128
auto acos_need_to_call_pyapi = [&](sycl::queue exec_q, arrayT src,
130129
arrayT dst) {
131-
return vm_ext::need_to_call_unary_ufunc(
130+
return py_internal::need_to_call_unary_ufunc(
132131
exec_q, src, dst, output_typeid_vector, contig_dispatch_vector);
133132
};
134133
m.def("_mkl_acos_to_call", acos_need_to_call_pyapi,

dpnp/backend/extensions/vm/acosh.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ namespace py = pybind11;
4848
namespace py_int = dpnp::extensions::py_internal;
4949
namespace td_ns = dpctl::tensor::type_dispatch;
5050
namespace tu_ns = dpctl::tensor::type_utils;
51-
namespace vm_ext = dpnp::backend::ext::vm;
5251

5352
namespace impl
5453
{
@@ -128,7 +127,7 @@ void init_acosh(py::module_ m)
128127

129128
auto acosh_need_to_call_pyapi = [&](sycl::queue exec_q, arrayT src,
130129
arrayT dst) {
131-
return vm_ext::need_to_call_unary_ufunc(
130+
return py_internal::need_to_call_unary_ufunc(
132131
exec_q, src, dst, output_typeid_vector, contig_dispatch_vector);
133132
};
134133
m.def("_mkl_acosh_to_call", acosh_need_to_call_pyapi,

dpnp/backend/extensions/vm/add.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ namespace py = pybind11;
4848
namespace py_int = dpnp::extensions::py_internal;
4949
namespace td_ns = dpctl::tensor::type_dispatch;
5050
namespace tu_ns = dpctl::tensor::type_utils;
51-
namespace vm_ext = dpnp::backend::ext::vm;
5251

5352
namespace impl
5453
{
@@ -158,9 +157,9 @@ void init_add(py::module_ m)
158157

159158
auto add_need_to_call_pyapi = [&](sycl::queue exec_q, arrayT src1,
160159
arrayT src2, arrayT dst) {
161-
return vm_ext::need_to_call_binary_ufunc(exec_q, src1, src2, dst,
162-
output_typeid_vector,
163-
contig_dispatch_vector);
160+
return py_internal::need_to_call_binary_ufunc(exec_q, src1, src2, dst,
161+
output_typeid_vector,
162+
contig_dispatch_vector);
164163
};
165164
m.def("_mkl_add_to_call", add_need_to_call_pyapi,
166165
"Check input arguments to answer if `add` function from "

dpnp/backend/extensions/vm/asin.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ namespace py = pybind11;
4848
namespace py_int = dpnp::extensions::py_internal;
4949
namespace td_ns = dpctl::tensor::type_dispatch;
5050
namespace tu_ns = dpctl::tensor::type_utils;
51-
namespace vm_ext = dpnp::backend::ext::vm;
5251

5352
namespace impl
5453
{
@@ -128,7 +127,7 @@ void init_asin(py::module_ m)
128127

129128
auto asin_need_to_call_pyapi = [&](sycl::queue exec_q, arrayT src,
130129
arrayT dst) {
131-
return vm_ext::need_to_call_unary_ufunc(
130+
return py_internal::need_to_call_unary_ufunc(
132131
exec_q, src, dst, output_typeid_vector, contig_dispatch_vector);
133132
};
134133
m.def("_mkl_asin_to_call", asin_need_to_call_pyapi,

dpnp/backend/extensions/vm/asinh.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ namespace py = pybind11;
4848
namespace py_int = dpnp::extensions::py_internal;
4949
namespace td_ns = dpctl::tensor::type_dispatch;
5050
namespace tu_ns = dpctl::tensor::type_utils;
51-
namespace vm_ext = dpnp::backend::ext::vm;
5251

5352
namespace impl
5453
{
@@ -128,7 +127,7 @@ void init_asinh(py::module_ m)
128127

129128
auto asinh_need_to_call_pyapi = [&](sycl::queue exec_q, arrayT src,
130129
arrayT dst) {
131-
return vm_ext::need_to_call_unary_ufunc(
130+
return py_internal::need_to_call_unary_ufunc(
132131
exec_q, src, dst, output_typeid_vector, contig_dispatch_vector);
133132
};
134133
m.def("_mkl_asinh_to_call", asinh_need_to_call_pyapi,

dpnp/backend/extensions/vm/atan.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ namespace py = pybind11;
4848
namespace py_int = dpnp::extensions::py_internal;
4949
namespace td_ns = dpctl::tensor::type_dispatch;
5050
namespace tu_ns = dpctl::tensor::type_utils;
51-
namespace vm_ext = dpnp::backend::ext::vm;
5251

5352
namespace impl
5453
{
@@ -128,7 +127,7 @@ void init_atan(py::module_ m)
128127

129128
auto atan_need_to_call_pyapi = [&](sycl::queue exec_q, arrayT src,
130129
arrayT dst) {
131-
return vm_ext::need_to_call_unary_ufunc(
130+
return py_internal::need_to_call_unary_ufunc(
132131
exec_q, src, dst, output_typeid_vector, contig_dispatch_vector);
133132
};
134133
m.def("_mkl_atan_to_call", atan_need_to_call_pyapi,

dpnp/backend/extensions/vm/atan2.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ namespace py = pybind11;
4848
namespace py_int = dpnp::extensions::py_internal;
4949
namespace td_ns = dpctl::tensor::type_dispatch;
5050
namespace tu_ns = dpctl::tensor::type_utils;
51-
namespace vm_ext = dpnp::backend::ext::vm;
5251

5352
namespace impl
5453
{
@@ -147,9 +146,9 @@ void init_atan2(py::module_ m)
147146

148147
auto atan2_need_to_call_pyapi = [&](sycl::queue exec_q, arrayT src1,
149148
arrayT src2, arrayT dst) {
150-
return vm_ext::need_to_call_binary_ufunc(exec_q, src1, src2, dst,
151-
output_typeid_vector,
152-
contig_dispatch_vector);
149+
return py_internal::need_to_call_binary_ufunc(exec_q, src1, src2, dst,
150+
output_typeid_vector,
151+
contig_dispatch_vector);
153152
};
154153
m.def("_mkl_atan2_to_call", atan2_need_to_call_pyapi,
155154
"Check input arguments to answer if `atan2` function from "

dpnp/backend/extensions/vm/atanh.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ namespace py = pybind11;
4848
namespace py_int = dpnp::extensions::py_internal;
4949
namespace td_ns = dpctl::tensor::type_dispatch;
5050
namespace tu_ns = dpctl::tensor::type_utils;
51-
namespace vm_ext = dpnp::backend::ext::vm;
5251

5352
namespace impl
5453
{
@@ -128,7 +127,7 @@ void init_atanh(py::module_ m)
128127

129128
auto atanh_need_to_call_pyapi = [&](sycl::queue exec_q, arrayT src,
130129
arrayT dst) {
131-
return vm_ext::need_to_call_unary_ufunc(
130+
return py_internal::need_to_call_unary_ufunc(
132131
exec_q, src, dst, output_typeid_vector, contig_dispatch_vector);
133132
};
134133
m.def("_mkl_atanh_to_call", atanh_need_to_call_pyapi,

dpnp/backend/extensions/vm/cbrt.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ namespace py = pybind11;
4848
namespace py_int = dpnp::extensions::py_internal;
4949
namespace td_ns = dpctl::tensor::type_dispatch;
5050
namespace tu_ns = dpctl::tensor::type_utils;
51-
namespace vm_ext = dpnp::backend::ext::vm;
5251

5352
namespace impl
5453
{
@@ -126,7 +125,7 @@ void init_cbrt(py::module_ m)
126125

127126
auto cbrt_need_to_call_pyapi = [&](sycl::queue exec_q, arrayT src,
128127
arrayT dst) {
129-
return vm_ext::need_to_call_unary_ufunc(
128+
return py_internal::need_to_call_unary_ufunc(
130129
exec_q, src, dst, output_typeid_vector, contig_dispatch_vector);
131130
};
132131
m.def("_mkl_cbrt_to_call", cbrt_need_to_call_pyapi,

0 commit comments

Comments
 (0)