Skip to content

incorrect initialise params in FastDense after update to Flux v0.12.5 #594

@KirillZubov

Description

@KirillZubov

Flux v0.12.5 has some changed so FastDense intilize params with nothing in the end now.

julia> FastChain(FastDense(1,12,Flux.σ),FastDense(12,1))
┌ Warning: Flux.zeros(size...) is deprecated, please use Flux.zeros32(size...) or Base.zeros(Float32, size...)
│   caller = ip:0x0
└ @ Core :-1
WARNING: both Flux and Iterators export "flatten"; uses of it in module DiffEqFlux must be qualified
WARNING: both Flux and Distributions export "params"; uses of it in module DiffEqFlux must be qualified
(::FastChain{Tuple{FastDense{typeof(σ), DiffEqFlux.var"#initial_params#89"{Vector{Union{Nothing, Float32}}}}, FastDense{typeof(identity), DiffEqFlux.var"#initial_params#89"{Vector{Union{Nothing, Float32}}}}}}) (generic function with 1 method)

julia> DiffEqFlux.initial_params(FastDense(1,3,Flux.σ))
4-element Vector{Union{Nothing, Float32}}:
 -0.8795005f0
 -0.021471778f0
 -1.0741668f0
   nothing

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions