Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implements
dpctl.tensor.clip
(#1444)
* Implements dpctl.tensor.clip * Clip now consistently yields max where max < min sycl::clamp would yield max or min depending on the platform A test has been added for this behavior * Adds more tests for clip * Removed redundant branches in clip and elementwise function calls As the result dtype of the out array is already checked when overlap is checked, checking again later is superfluous * Removed more redundant logic from clip * Fixed order logic in clip Now properly accounts for all three arrays in all branches * Adds more compute follows data tests for clip * Tests to increase coverage of _clip.py (#1451) * Clip raises ValueError when types cannot be resolved --------- Co-authored-by: Oleksandr Pavlyk <oleksandr.pavlyk@intel.com>
- Loading branch information