From c6dad28a08ee4a9bc8848b649babed029455d644 Mon Sep 17 00:00:00 2001 From: Tom Aarsen Date: Thu, 27 Oct 2022 13:53:16 +0200 Subject: [PATCH] Remove extraneous get_ptr calls --- bitsandbytes/functional.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/bitsandbytes/functional.py b/bitsandbytes/functional.py index 111d0f6..11372cb 100644 --- a/bitsandbytes/functional.py +++ b/bitsandbytes/functional.py @@ -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: