Skip to content

Commit

Permalink
mutable PINOPhi
Browse files Browse the repository at this point in the history
  • Loading branch information
KirillZubov committed Jun 14, 2024
1 parent bb0863b commit ea7c638
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pino_ode_solve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function PINOODE(chain,
PINOODE(chain, opt, bounds, init_params, strategy, additional_loss, kwargs)
end

struct PINOPhi{C, S}
mutable struct PINOPhi{C, S}
chain::C
st::S
function PINOPhi(chain::Lux.AbstractExplicitLayer, st)
Expand Down Expand Up @@ -148,7 +148,7 @@ function SciMLBase.__solve(prob::SciMLBase.AbstractODEProblem,
error("Only Lux.AbstractExplicitLayer neural networks are supported")

#TODO implement for u0
if !any(in(keys(bounds)), (:p,))
if !any(in(keys(bounds)), (:p, :u0))
error("bounds should contain p only")
end
phi, init_params = generate_pino_phi_θ(chain, init_params)
Expand Down

0 comments on commit ea7c638

Please sign in to comment.