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
nsajko
changed the title
copy!(::Memory{Int}, ::Vector{Int}) causes JET warnings since v1.11copy!(::Memory{Int}, ::Vector{Int}) causes JET warnings
Nov 21, 2024
This seems to be more of a design issue with Memory rather than a problem with JET? Memory is an AbstractVector, but since its size is fixed, it doesn’t support resize!.
Defining a method like resize(::Memory) = error("Memory isn't resizable") could silence JET while also providing a clear error message for users.
Should
copy!
get a specialized method, given that it's not resizable?The workaround is to call
copyto!
instead.The text was updated successfully, but these errors were encountered: