Skip to content

Commit

Permalink
Fix dispatch match on IO type of show on TracedRArray
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio Sánchez Ramírez committed Jul 21, 2024
1 parent 1fbd920 commit 405c7fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Tracing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function Base.similar(x::TracedRArray{T,N}, ::Type{T2}) where {T,N,T2}
return TracedRArray{T2,N}((), nothing, size(x))
end

function Base.show(io::IO, X::TracedRArray{T,N}) where {T,N}
function Base.show(io::IOty, X::TracedRArray{T,N}) where {T,N,IOty<:Union{IO,IOContext}}
print(io, "TracedRArray{", T, ",", N, "N}(", X.paths, ", ")
return print(io, X.mlir_data, ")")
end
Expand Down

0 comments on commit 405c7fd

Please sign in to comment.