Skip to content

Commit

Permalink
refactor: add auto translation for DAE problems
Browse files Browse the repository at this point in the history
  • Loading branch information
sathvikbhagavan committed Feb 1, 2024
1 parent b1a7fa1 commit 1c02aa8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/dae_solve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ end

function NNDAE(chain, opt, init_params = nothing; strategy = nothing, autodiff = false,
kwargs...)
!(chain isa Lux.AbstractExplicitLayer) && (chain = Lux.transform(chain))
NNDAE(chain, opt, init_params, autodiff, strategy, kwargs)
end

Expand Down

0 comments on commit 1c02aa8

Please sign in to comment.