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