You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function (l::LazyLayer)(x::AbstractArray, ys::AbstractArray...)
296
294
l.layer ===nothing||return l.layer(x, ys...)
297
295
made = l.make(x) # for something like `Bilinear((_,__) => 7)`, perhaps need `make(xy...)`, later.
@@ -320,6 +318,9 @@ function ChainRulesCore.rrule(::typeof(striplazy), m)
320
318
end
321
319
322
320
params!(p::Params, x::LazyLayer, seen =IdSet()) =error("LazyLayer should never be used within params(m). Call striplazy(m) first.")
321
+
322
+
Functors.functor(::Type{<:LazyLayer}, x) =error("LazyLayer should not be walked with Functors.jl, as the arrays which Flux.gpu wants to move may not exist yet.")
0 commit comments