Open nsajko opened 1 week ago
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.