Skip to content

Commit

Permalink
better fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mcabbott committed Oct 26, 2024
1 parent 3e09cb3 commit c4ad9c1
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "Flux"
uuid = "587475ba-b771-5e3f-ad9e-33799f191a9c"
version = "0.14.22"
version = "0.14.23"

[deps]
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
Expand Down
1 change: 0 additions & 1 deletion src/layers/basic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ function _applychain(layers::AbstractVector, x) # type-unstable path, helps com
end
x
end
_show_pre_post(::Chain{<:AbstractVector}) = "Chain([", "])" # internal method for show

Base.getindex(c::Chain, i::AbstractArray) = Chain(c.layers[i])
Base.getindex(c::Chain{<:NamedTuple}, i::AbstractArray) =
Expand Down
1 change: 0 additions & 1 deletion src/layers/show.jl
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ function _big_show(io::IO, obj, indent::Int=0, name=nothing)
end

_show_pre_post(obj) = string(nameof(typeof(obj)), "("), ")"
# _show_pre_post(::Chain{<:AbstractVector}) = "Chain([", "])" # has to be done elsewhere
_show_pre_post(::AbstractVector) = "[", "]"
_show_pre_post(::NamedTuple) = "(;", ")"

Expand Down

0 comments on commit c4ad9c1

Please sign in to comment.