Skip to content

Unable to copy to array slice #1636

@ctessum

Description

@ctessum

Hello,

I have this function:

using Reactant

function test_slice_copy(x)
    @view(x[1, :]) .= 0
    x
end

x = Reactant.to_rarray(rand(2, 10))
@jit test_slice_copy(x)

It gives the error: ERROR: BoundsError: attempt to access 2×10 Reactant.TracedRArray{Float64, 2} at index [1, 1, 1, 2, 1, 3, 1, 4, 1, 5, 1, 6, 1, 7, 1, 8, 1, 9, 1, 10]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions