diff --git a/src/TracedRArray.jl b/src/TracedRArray.jl index fe7ba4db2..e55a6d76f 100644 --- a/src/TracedRArray.jl +++ b/src/TracedRArray.jl @@ -483,6 +483,10 @@ function Base.copyto!(dest::TracedRArray{T,N}, src::TracedRArray{T,N}) where {T, return dest end +function Base.copyto!(dest::TracedRArray{T,N}, src::TracedRArray{T2,N}) where {T,N} + return copyto!(dest, Ops.convert(TracedRArray{T,N}, src)) +end + function _copyto!(dest::AnyTracedRArray, bc::Broadcasted) axes(dest) == axes(bc) || Broadcast.throwdm(axes(dest), axes(bc)) isempty(dest) && return dest