Skip to content

Commit f927bf8

Browse files
Update src/gather.jl
Co-authored-by: Peter <[email protected]>
1 parent 1f0ad39 commit f927bf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gather.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function NNlib.gather!(dst::AnyCuArray, src::AnyCuArray, idx::AnyCuArray)
6868
chk = checkbounds_src(src, dims, eltype(idx))
6969
in_bnd = map(chk, collect(idx))
7070
if !all(in_bnd)
71-
j = findfirst(i -> !i, in_bnd)
71+
j = findfirst(!, in_bnd)
7272
k = CUDA.@allowscalar idx[j]
7373
throw(BoundsError(src, k))
7474
end

0 commit comments

Comments
 (0)