-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Implements elementwise reciprocal * Fixes typo in kernels/elementwise_functions/proj.hpp * Implements elementwise angle * UnaryElementwiseFunc class now takes an acceptance function This change was made to mirror promotion behavior of divide in reciprocal Adds getter method for the acceptance function Adds tests for reciprocal * Small bugfix in _zero_like _zero_like did not have logic accounting for 0D arrays, so `x.imag` failed for 0D x * _zero_like now allocates using the same sycl_queue This prevents unexpected behavior when calling `imag` i.e., for x with a real-valued data type `dpctl.tensor.atan2(x.imag, x.real)` would not work prior to this change * Fixes bugs in `real` and `imag` properties The logic in these properties did not work for float16 data types, returning None instead of `self` or an array of zeros * Adds tests for angle * Adds tests for fixes to `real`/`imag` properties * Adds test that `real`, `imag` use the same queue * Correction to rsqrt docstring * Change acceptance function names per feedback `_acceptance_fn_default1` and `_acceptance_fn_default2` are now `_acceptance_fn_default_unary` and `_acceptance_fn_default_binary`
- Loading branch information
1 parent
5ec9fd5
commit b3ba5ac
Showing
18 changed files
with
1,089 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.