esc self param

This commit is contained in:
Mike J Innes 2016-11-15 00:32:50 +00:00
parent 9062792495
commit 85335e5ed0
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ function process_type(ex)
@assert length(args) == 1
quote
$(build_type(T, params))
(self::$(esc(T)))($(args...),) = interpret(reifyparams(graph(self)), $(args...))
$(esc(:(self::$T)))($(args...),) = interpret(reifyparams(graph(self)), $(args...))
$(esc(:(Flux.update!(self::$T, η)))) = ($(map(p -> :(update!(self.$p, η)), pnames)...);)
$(esc(:(Flux.graph(self::$T)))) = $(DataFlow.constructor(mapconst(esc, makegraph(body, args))))
nothing