interpreter
This commit is contained in:
parent
f31b539566
commit
7f2ef71daf
|
@ -110,6 +110,8 @@ type Unrolled <: Model
|
|||
steps::Int
|
||||
end
|
||||
|
||||
(m::Unrolled)(xs...) = interpret(reifyparams(m.graph), xs...)
|
||||
|
||||
graph(u::Unrolled) = u.graph
|
||||
|
||||
function unroll(model, n; seq = true, stateful = true)
|
||||
|
|
|
@ -48,6 +48,6 @@ type Capacitor <: Model
|
|||
graph::IVertex{Any}
|
||||
end
|
||||
|
||||
# TODO: Julia implementation that interprets the graph
|
||||
(m::Capacitor)(xs...) = interpret(reifyparams(m.graph), xs...)
|
||||
|
||||
graph(cap::Capacitor) = cap.graph
|
||||
|
|
Loading…
Reference in New Issue