Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
bitsandbytes
Commits
c6dad28a
Commit
c6dad28a
authored
Oct 27, 2022
by
Tom Aarsen
Browse files
Remove extraneous get_ptr calls
parent
7727fa4c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
+0
-4
bitsandbytes/functional.py
bitsandbytes/functional.py
+0
-4
No files found.
bitsandbytes/functional.py
View file @
c6dad28a
...
...
@@ -317,8 +317,6 @@ def nvidia_transform(
dim2
=
ct
.
c_int32
(
shape
[
2
])
ptr
=
CUBLAS_Context
.
get_instance
().
get_context
(
A
.
device
)
ptrA
=
get_ptr
(
A
)
ptrOut
=
get_ptr
(
out
)
func
(
ptr
,
get_ptr
(
A
),
get_ptr
(
out
),
dim1
,
dim2
)
return
out
,
new_state
...
...
@@ -1614,8 +1612,6 @@ def transform(A, to_order, from_order='row', out=None, transpose=False, state=No
dim1
=
ct
.
c_int32
(
shape
[
0
]
*
shape
[
1
])
dim2
=
ct
.
c_int32
(
shape
[
2
])
ptrA
=
get_ptr
(
A
)
ptrOut
=
get_ptr
(
out
)
is_on_gpu
([
A
,
out
])
if
to_order
==
'col32'
:
if
transpose
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment