Skip to content

Commit c6dad28

Browse files
committed
Remove extraneous get_ptr calls
1 parent 7727fa4 commit c6dad28

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

bitsandbytes/functional.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -317,8 +317,6 @@ def nvidia_transform(
317317
dim2 = ct.c_int32(shape[2])
318318

319319
ptr = CUBLAS_Context.get_instance().get_context(A.device)
320-
ptrA = get_ptr(A)
321-
ptrOut = get_ptr(out)
322320
func(ptr, get_ptr(A), get_ptr(out), dim1, dim2)
323321

324322
return out, new_state
@@ -1614,8 +1612,6 @@ def transform(A, to_order, from_order='row', out=None, transpose=False, state=No
16141612
dim1 = ct.c_int32(shape[0] * shape[1])
16151613
dim2 = ct.c_int32(shape[2])
16161614

1617-
ptrA = get_ptr(A)
1618-
ptrOut = get_ptr(out)
16191615
is_on_gpu([A, out])
16201616
if to_order == 'col32':
16211617
if transpose:

0 commit comments

Comments
 (0)