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

IntelPython / dpctl / 12795702230

15 Jan 2025 07:34PM UTC coverage: 87.721% (+0.04%) from 87.683%
12795702230

Pull #1953

github

web-flow
Merge b1a5ecd98 into 25a53f594
Pull Request #1953: Improve interoperability between `SyclDevice` and DLPack devices

3159 of 3686 branches covered (85.7%)

Branch coverage included in aggregate %.

38 of 48 new or added lines in 5 files covered. (79.17%)

1 existing line in 1 file now uncovered.

11915 of 13498 relevant lines covered (88.27%)

7162.93 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

69.23
/dpctl/tensor/_numpy_helper.py
1
#                       Data Parallel Control (dpctl)
2
#
3
#  Copyright 2020-2025 Intel Corporation
4
#
5
#  Licensed under the Apache License, Version 2.0 (the "License");
6
#  you may not use this file except in compliance with the License.
7
#  You may obtain a copy of the License at
8
#
9
#     http://www.apache.org/licenses/LICENSE-2.0
10
#
11
#  Unless required by applicable law or agreed to in writing, software
12
#  distributed under the License is distributed on an "AS IS" BASIS,
13
#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
#  See the License for the specific language governing permissions and
15
#  limitations under the License.
16

17
import numpy as np
1✔
18

19
_npver = np.lib.NumpyVersion(np.__version__)
1✔
20

21
if _npver < "1.25.0":
1!
22
    from numpy import AxisError
×
23
else:
24
    from numpy.exceptions import AxisError
1✔
25

26
if _npver >= "2.0.0":
1!
27
    from numpy._core.numeric import normalize_axis_index, normalize_axis_tuple
1✔
28
else:
29
    from numpy.core.numeric import normalize_axis_index, normalize_axis_tuple
×
30

31

32
__all__ = ["AxisError", "normalize_axis_index", "normalize_axis_tuple"]
1✔
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