interpreter

This commit is contained in:
Mike J Innes 2016-11-15 16:58:59 +00:00
parent f31b539566
commit 7f2ef71daf
2 changed files with 3 additions and 1 deletions

View File

@ -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)

View File

@ -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