esc self param
This commit is contained in:
parent
9062792495
commit
85335e5ed0
@ -52,7 +52,7 @@ function process_type(ex)
|
|||||||
@assert length(args) == 1
|
@assert length(args) == 1
|
||||||
quote
|
quote
|
||||||
$(build_type(T, params))
|
$(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.update!(self::$T, η)))) = ($(map(p -> :(update!(self.$p, η)), pnames)...);)
|
||||||
$(esc(:(Flux.graph(self::$T)))) = $(DataFlow.constructor(mapconst(esc, makegraph(body, args))))
|
$(esc(:(Flux.graph(self::$T)))) = $(DataFlow.constructor(mapconst(esc, makegraph(body, args))))
|
||||||
nothing
|
nothing
|
||||||
|
Loading…
Reference in New Issue
Block a user