You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When doing Reactant compilation of a function, I ran into a bad "unpacking" of indices inside get_ancestor_indices function for the case of a CartesianIndex{N} type. The stacktrace is shown below, where I added @show indices N to print the issue:
Since I don't have permissions to push a branch to the repo and open a PR, I write here the workaround that I did to solve this issue.
Basicly, I added to src/TracedUtils.jl the next function:
get_ancestor_indices(
x::WrappedReshapedArray{TracedRNumber{T},N,TracedRArray{T,M}}, indices::CartesianIndex{N}
) where {T,N,M} =get_ancestor_indices(x, indices.I...)
When doing Reactant compilation of a function, I ran into a bad "unpacking" of
indices
insideget_ancestor_indices
function for the case of aCartesianIndex{N}
type. The stacktrace is shown below, where I added@show indices N
to print the issue:CC @mofeing
The text was updated successfully, but these errors were encountered: