From c1e37eca9c2d1ab468ddd1beb2ffb9eb0993bb4b Mon Sep 17 00:00:00 2001 From: Lander Burgelman <39218680+leburgel@users.noreply.github.com> Date: Wed, 2 Oct 2024 14:57:05 -0700 Subject: [PATCH] Fix typo in `tensoralloc` for Bumper allocator (#188) * Fix typo(?) in `tensoralloc` for Bumper allocator * Change fix to reflect original intention --------- Co-authored-by: leburgel --- ext/TensorOperationsBumperExt.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/TensorOperationsBumperExt.jl b/ext/TensorOperationsBumperExt.jl index 44c3719..0b0a1ac 100644 --- a/ext/TensorOperationsBumperExt.jl +++ b/ext/TensorOperationsBumperExt.jl @@ -7,7 +7,7 @@ function TensorOperations.tensoralloc(::Type{A}, structure, ::Val{istemp}, buf::Union{SlabBuffer,AllocBuffer}) where {A<:AbstractArray, istemp} # TODO: remove the `ndims` check if this is fixed in Bumper / StrideArraysCore - if istemp & ndims(A) > 0 + if istemp && ndims(A) > 0 return Bumper.alloc!(buf, eltype(A), structure...) else return TensorOperations.tensoralloc(A, structure, Val(istemp))