Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions src/Tracing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ Base.@nospecializeinfer function traced_type_inner(
end

Base.@nospecializeinfer function traced_type_inner(
@nospecialize(A::Type{AbstractArray{T}}),
A::Type{AbstractArray{T}},
seen,
mode::TraceMode,
@nospecialize(track_numbers::Type),
Expand All @@ -455,15 +455,15 @@ Base.@nospecializeinfer function traced_type_inner(
) where {T}
if mode == ConcreteToTraced
return AbstractArray{
traced_type_inner(T, seen, mode, track_numbers, sharding, runtime)
traced_type_inner(eltype(A), seen, mode, track_numbers, sharding, runtime)
}
else
return A
end
end

Base.@nospecializeinfer function traced_type_inner(
@nospecialize(A::Type{AbstractArray{T,N}}),
A::Type{AbstractArray{T,N}},
seen,
mode::TraceMode,
@nospecialize(track_numbers::Type),
Expand All @@ -472,7 +472,8 @@ Base.@nospecializeinfer function traced_type_inner(
) where {T,N}
if mode == ConcreteToTraced
return AbstractArray{
traced_type_inner(T, seen, mode, track_numbers, sharding, runtime),N
traced_type_inner(eltype(A), seen, mode, track_numbers, sharding, runtime),
ndims(A),
}
else
return A
Expand Down
Loading