-
Notifications
You must be signed in to change notification settings - Fork 31
impl_ele_funcs_floor_ceil_trunc #1243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
ea0debd
to
53643f3
Compare
View rendered docs @ https://intelpython.github.io/dpctl/pulls/1243/index.html |
Array API standard conformance tests for dpctl=0.14.3=py310h7bf5fec_2 ran successfully. |
Array API standard conformance tests for dpctl=0.14.3=py310h7bf5fec_2 ran successfully. |
Array API standard conformance tests for dpctl=0.14.3=py310h7bf5fec_2 ran successfully. |
dpctl/tensor/libtensor/include/kernels/elementwise_functions/ceil.hpp
Outdated
Show resolved
Hide resolved
dpctl/tensor/libtensor/include/kernels/elementwise_functions/ceil.hpp
Outdated
Show resolved
Hide resolved
Array API standard conformance tests for dpctl=0.14.4=py310h7bf5fec_6 ran successfully. |
1663477
to
0e31948
Compare
Array API standard conformance tests for dpctl=0.14.4=py310h7bf5fec_9 ran successfully. |
Array API standard conformance tests for dpctl=0.14.4=py310h7bf5fec_10 ran successfully. |
a23ebdd
to
9b3b889
Compare
Array API standard conformance tests for dpctl=0.14.4=py310h7bf5fec_10 ran successfully. |
9b3b889
to
ea451ff
Compare
Array API standard conformance tests for dpctl=0.14.5dev0=py310h7bf5fec_12 ran successfully. |
The output type for of integer type inputs should be the appropriate floating point type.
|
Yes, the behavior is different than |
Yes, I asked for clarification: data-apis/array-api#657 |
Array API standard conformance tests for dpctl=0.14.5dev1=py310h7bf5fec_15 ran successfully. |
Why are these tests so slow?
I am going to push changes to these tests to make them run faster. |
(dev_dpctl) opavlyk@opavlyk-mobl:~/repos/dpctl$ python -m pytest --durations=6 dpctl/tests/elementwise/test_floor_ceil_trunc.py ============================================================================ test session starts ============================================================================ platform linux -- Python 3.9.12, pytest-7.1.2, pluggy-1.0.0 rootdir: /home/opavlyk/repos/dpctl plugins: metadata-2.0.4, json-report-1.5.0, cov-4.0.0, hypothesis-6.75.3, scikit-learn-1.3.dev0 collected 186 items dpctl/tests/elementwise/test_floor_ceil_trunc.py ..............................sss.......................................sss.................................sss..... [ 62%] .........................sss..............................sss......sss [100%] ============================================================================ slowest 6 durations ============================================================================ 0.35s call dpctl/tests/elementwise/test_floor_ceil_trunc.py::test_floor_ceil_trunc_out_type[i1-UnaryElementwiseFunc0] 0.15s call dpctl/tests/elementwise/test_floor_ceil_trunc.py::test_floor_ceil_trunc_order[u8-trunc-UnaryElementwiseFunc] 0.14s call dpctl/tests/elementwise/test_floor_ceil_trunc.py::test_floor_ceil_trunc_order[u4-ceil-UnaryElementwiseFunc] 0.14s call dpctl/tests/elementwise/test_floor_ceil_trunc.py::test_floor_ceil_trunc_order[f2-floor-UnaryElementwiseFunc] 0.14s call dpctl/tests/elementwise/test_floor_ceil_trunc.py::test_floor_ceil_trunc_order[f4-trunc-UnaryElementwiseFunc] 0.14s call dpctl/tests/elementwise/test_floor_ceil_trunc.py::test_floor_ceil_trunc_order[u1-floor-UnaryElementwiseFunc] ====================================================================== 168 passed, 18 skipped in 9.74s ======================================================================
Array API standard conformance tests for dpctl=0.14.5dev1=py310h7bf5fec_16 ran successfully. |
Array API standard conformance tests for dpctl=0.14.5dev1=py310h7bf5fec_26 ran successfully. |
Array API standard conformance tests for dpctl=0.14.5=py310h7bf5fec_9 ran successfully. |
Deleted rendered PR docs from intelpython.github.com/dpctl, latest should be updated shortly. 🤞 |
Array API standard conformance tests for dpctl=0.14.5=py310h7bf5fec_15 ran successfully. |
In this PR, the following elementwise functions are implemented:
dptctl.tensor.floor
,dpctl.tensor.ceil
, anddpctl.tensor.trunc
.