The PR proposes to rework implementation of dpnp.fabs function which is quite limited now.
It assumes to have a separate _ufunc_impl pybind11 extension to aggravate all universal functions which are not provided by dpctl tensor implementation, but requires to be aligned with NumPy.
The new extension is implemented following similar approach as for _vm_impl extension and proposes to reuse existing UnaryElementwiseFunc functionality from dpctl tensor.
[x] Have you provided a meaningful PR description?
[x] Have you added a test, reproducer or referred to issue with a reproducer?
[x] Have you tested your changes locally for CPU and GPU devices?
[x] Have you made sure that new changes do not introduce compiler warnings?
[ ] Have you checked performance impact of proposed changes?
[ ] If this PR is a work in progress, are you filing the PR as a draft?
The PR proposes to rework implementation of
dpnp.fabs
function which is quite limited now.It assumes to have a separate
_ufunc_impl
pybind11 extension to aggravate all universal functions which are not provided by dpctl tensor implementation, but requires to be aligned with NumPy.The new extension is implemented following similar approach as for
_vm_impl
extension and proposes to reuse existingUnaryElementwiseFunc
functionality from dpctl tensor.