Skip to content

Commit 3f2722a

Browse files
committed
clamp -> min
1 parent 3b4054d commit 3f2722a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/tensors/indexmanipulations.jl‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ function add_transform_kernel!(
673673
cp = TO.allocator_checkpoint!(allocator)
674674
@timeit_debug GLOBAL_TIMER "alloc: buffers" buffers = [
675675
TO.tensoralloc(storagetype(dst), bufsize, Val(true), allocator)
676-
for _ in 1:clamp(length(transformer.data), 1, ntasks)
676+
for _ in 1:min(length(transformer.data), ntasks)
677677
]
678678
taskforeach(transformer.data, buffers) do (U, inds_dst, inds_src), buffer
679679
_add_transform_block!(dst, src, p, U, inds_dst, inds_src, buffer, α, β, backend, allocator)

0 commit comments

Comments
 (0)