Skip to content

Commit

Permalink
Fix typo in tensoralloc for Bumper allocator (#188)
Browse files Browse the repository at this point in the history
* Fix typo(?) in `tensoralloc` for Bumper allocator

* Change fix to reflect original intention

---------

Co-authored-by: leburgel <[email protected]>
  • Loading branch information
leburgel and leburgel authored Oct 2, 2024
1 parent 78059aa commit c1e37ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/TensorOperationsBumperExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit c1e37ec

Please sign in to comment.