Skip to content

Commit

Permalink
Fix type stability of Params.order
Browse files Browse the repository at this point in the history
  • Loading branch information
ancapdev committed Apr 13, 2022
1 parent 95e1021 commit c560ed1
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 c560ed1

Please sign in to comment.