Skip to content

Commit

Permalink
fix: missing scalar indexing check for setindex
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal committed Jan 7, 2025
1 parent 46b8c14 commit 20c24b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/TracedRArray.jl
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ end
function maybe_assert_scalar_setindexing(
::TracedRArray{T,N}, ::Vararg{Union{Int,TracedRNumber{Int}},N}
) where {T,N}
return GPUArraysCore.assertscalar("setindex!(::TracedRArray, v, ::Vararg{Int, N})")
GPUArraysCore.assertscalar("setindex!(::TracedRArray, v, ::Vararg{Int, N})")
return
end

maybe_assert_scalar_setindexing(args...) = nothing
Expand Down

0 comments on commit 20c24b6

Please sign in to comment.