File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 65
65
# These functions are completely new here. If the library already has them
66
66
# (i.e., numpy 2.0), use the library version instead of our wrapper.
67
67
if hasattr (cp , 'vecdot' ):
68
- vecdot = get_xp (cp )(_aliases .vecdot )
69
- else :
70
68
vecdot = cp .vecdot
69
+ else :
70
+ vecdot = get_xp (cp )(_aliases .vecdot )
71
71
if hasattr (cp , 'isdtype' ):
72
72
isdtype = cp .isdtype
73
73
else :
Original file line number Diff line number Diff line change 65
65
# These functions are completely new here. If the library already has them
66
66
# (i.e., numpy 2.0), use the library version instead of our wrapper.
67
67
if hasattr (np , 'vecdot' ):
68
- vecdot = get_xp (np )(_aliases .vecdot )
69
- else :
70
68
vecdot = np .vecdot
69
+ else :
70
+ vecdot = get_xp (np )(_aliases .vecdot )
71
71
if hasattr (np , 'isdtype' ):
72
72
isdtype = np .isdtype
73
73
else :
You can’t perform that action at this time.
0 commit comments