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

IntelPython / dpctl / 12303791715

12 Dec 2024 07:55PM CUT coverage: 87.659%. Remained the same
12303791715

Pull #1932

github

web-flow
Merge 63c19472a into 0bcd63568
Pull Request #1932: Speed up custom reductions

3120 of 3640 branches covered (85.71%)

Branch coverage included in aggregate %.

11810 of 13392 relevant lines covered (88.19%)

7079.71 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-2024 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