Skip to content

Commit c1e37ec

Browse files
leburgelleburgel
andauthored
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 <[email protected]>
1 parent 78059aa commit c1e37ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/TensorOperationsBumperExt.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function TensorOperations.tensoralloc(::Type{A}, structure, ::Val{istemp},
77
buf::Union{SlabBuffer,AllocBuffer}) where {A<:AbstractArray,
88
istemp}
99
# TODO: remove the `ndims` check if this is fixed in Bumper / StrideArraysCore
10-
if istemp & ndims(A) > 0
10+
if istemp && ndims(A) > 0
1111
return Bumper.alloc!(buf, eltype(A), structure...)
1212
else
1313
return TensorOperations.tensoralloc(A, structure, Val(istemp))

0 commit comments

Comments
 (0)