Skip to content

Commit e43d543

Browse files
committed
more concise if/else
1 parent cef292e commit e43d543

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

pygpu/blas.pyx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,7 @@ def gemmBatch_3d(double alpha, GpuArray A, GpuArray B,
204204
if beta != 0.0:
205205
raise ValueError("C not provided and beta != 0")
206206
C = pygpu_empty(3, Cshp, A.ga.typecode, GA_ANY_ORDER, A.context, None)
207-
overwrite_c = True
208-
209-
if not overwrite_c:
207+
else:
210208
C = pygpu_copy(C, GA_ANY_ORDER)
211209
pygpu_blas_rgemmBatch_3d(transA, transB, alpha, A, B, beta, C, 0)
212210

0 commit comments

Comments
 (0)