Extend _tensor_elementwise_impl with binary functions part 2#2804
Extend _tensor_elementwise_impl with binary functions part 2#2804vlad-perevezentsev wants to merge 204 commits intoinclude-dpctl-tensorfrom
_tensor_elementwise_impl with binary functions part 2#2804Conversation
…_impl_unary_par_2
…ntwise_impl_unary_par_3
a3b2d00 to
608802a
Compare
ndgrigorian
left a comment
There was a problem hiding this comment.
I looked over includes and nothing stood out, this one LGTM
| std::complex<float>, | ||
| T2, | ||
| std::complex<float>, | ||
| bool>, | ||
| td_ns::BinaryTypeMapResultEntry<T1, | ||
| std::complex<double>, | ||
| T2, | ||
| std::complex<double>, | ||
| bool>, |
There was a problem hiding this comment.
The following kernel header files use std::complex and std::complex in their type mappings but are missing the <complex> include:
dpctl_ext/tensor/libtensor/include/kernels/elementwise_functions/equal.hpp
dpctl_ext/tensor/libtensor/include/kernels/elementwise_functions/greater.hpp
dpctl_ext/tensor/libtensor/include/kernels/elementwise_functions/greater_equal.hpp
dpctl_ext/tensor/libtensor/include/kernels/elementwise_functions/less.hpp
dpctl_ext/tensor/libtensor/include/kernels/elementwise_functions/less_equal.hpp
dpctl_ext/tensor/libtensor/include/kernels/elementwise_functions/true_divide.hpp
| /// extension, specifically functions for elementwise operations. | ||
| //===---------------------------------------------------------------------===// | ||
|
|
||
| #include <complex> |
There was a problem hiding this comment.
Missing <algorithm> for std::copy (used at line 405)
Missing <string> for std::to_string (used at line 360)
| #include "kernels/dpctl_tensor_types.hpp" | ||
| #include "kernels/elementwise_functions/common.hpp" | ||
|
|
||
| #include "utils/offset_utils.hpp" |
There was a problem hiding this comment.
All 8 kernel header files include utils/offset_utils.hpp but never use it directly:
equal.hpp
floor_divide.hpp
greater.hpp
greater_equal.hpp
hypot.hpp
less.hpp
less_equal.hpp
true_divide.hpp
| // init_logical_and(m); | ||
| init_logaddexp(m); | ||
| init_logical_not(m); | ||
| // init_logical_or(m); |
There was a problem hiding this comment.
Was it removed by mistake or intentionally?
|
Array API standard conformance tests for dpnp=0.20.0dev3=py313h509198e_227 ran successfully. |
This PR extends
_tensor_elementwise_implwith part of binary functions :