Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

False positive BoundsError for getindex on a Tensor #678

Open
ehehela opened this issue Dec 21, 2024 · 0 comments
Open

False positive BoundsError for getindex on a Tensor #678

ehehela opened this issue Dec 21, 2024 · 0 comments

Comments

@ehehela
Copy link

ehehela commented Dec 21, 2024

The following MWE shows that @report_call reports a BoundsError when indexing a Tensor{2,2}), which is the suggested usage in the doc of Tensors.jl.

using Tensors
using JET
a = rand(Tensor{2,2})
@report_call a[1,:]

the error message is as follows:
BoundsError: attempt to access NTuple{4, Float64} at index [5]: Base.getfield(t::NTuple{4, Float64}, i::Int64, $(Expr(:boundscheck)))

Version info

julia v1.11.1
JET v0.9.12
Tensors v1.16.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant