• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

IntelPython / dpctl / 8809953212
86%

Build:
DEFAULT BRANCH: master
Ran 24 Apr 2024 02:45AM UTC
Jobs 1
Files 76
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

24 Apr 2024 02:09AM UTC coverage: 88.218% (+0.008%) from 88.21%
8809953212

push

github

web-flow
Fixes element-wise comparisons of mixed signed-unsigned integer inputs (#1650)

* Align `not_equal` type map to other comparisons

Overloads for combinations of complex and real valued floats are unnecessary, as floats can be safely cast to complex

* Comparisons with signed and unsigned integers behave correctly

Comparions between signed and unsigned integer data previously did not work correctly in some cases, as signed integers could be promoted to uint64 if one input was uint64

Additionally, `-1 < x` for some `x` with unsigned integer data type would always fail, as the -1 would initialize an array of `x.dtype` which would always underflow, leading to undefined behavior

These problems were addressed by adding signed and unsigned 64-bit integer combinations to the type maps for the comparisons, and adding constexpr branches to the comparisons between mixed-kind integers

* Apply suggested docstring for get_array_dtype_scalar_type_resolver_function

* Refactor `isinstance` checks for any weak types into `_is_weak_dtype` utility function

Per suggestion by @oleksandr-pavlyk

* Added tests for comparing unsigned integer arrays to negative integer arrays and Python scalars

3575 of 4060 branches covered (88.05%)

Branch coverage included in aggregate %.

51 of 53 new or added lines in 3 files covered. (96.23%)

2 existing lines in 1 file now uncovered.

10763 of 12193 relevant lines covered (88.27%)

8735.75 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
93.7
-0.1% dpctl/tensor/_elementwise_common.py
1
95.06
0.12% dpctl/tensor/_type_utils.py

Uncovered Existing Lines

Lines Coverage ∆ File
2
89.94
-0.37% dpctl/tensor/_clip.py
Jobs
ID Job ID Ran Files Coverage
1 8809953212.1 24 Apr 2024 02:56AM UTC 100
79.98
Source Files on build 8809953212
  • Tree
  • List 76
  • Changed 26
  • Source Changed 0
  • Coverage Changed 19
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • aaf444e7 on github
  • Prev Build on master (#8808549996)
  • Next Build on master (#8859969415)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc