Skip to content

Commit

Permalink
Merge pull request #1203 from ancapdev/params-typestability
Browse files Browse the repository at this point in the history
Fix type stability of Params.order
  • Loading branch information
ToucheSir authored Apr 13, 2022
2 parents 95e1021 + c560ed1 commit 1eb80c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/compiler/interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ gradient
Container for implicit parameters, used when differentiating
a zero-argument funtion `() -> loss(A, B)` with respect to `A, B`.
"""
struct Params
order::Buffer # {Any, Vector{Any}}
struct Params{B <: Buffer}
order::B
params::IdSet{Any} # TODO store ids only
end

Expand Down

0 comments on commit 1eb80c5

Please sign in to comment.