From bd97c0f93bdd40aaca8d3761781a29a83410e245 Mon Sep 17 00:00:00 2001 From: Mike J Innes Date: Thu, 4 May 2017 17:01:10 +0100 Subject: [PATCH] strip away params --- src/compiler/interp.jl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/compiler/interp.jl b/src/compiler/interp.jl index 129cce79..4a35fd72 100644 --- a/src/compiler/interp.jl +++ b/src/compiler/interp.jl @@ -30,7 +30,10 @@ function interp(ctx, f, xs...) f(xs...)) end +interp(ctx::Context, c::Constant{<:Param}) = c.value.x +interp(ctx::Context, c::Constant) = c.value + function interpmodel(m, args...) - ctx = Context(mux(iline, ilambda, iconst, iargs, ituple, interp)) + ctx = Context(mux(iline, ilambda, iargs, ituple, interp)) @ithrow interp(ctx, m, args...) end