-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add parameter freezing STOLayer
and general performance fix
#67
Conversation
STOLayer
and general performance fix
src/lux.jl
Outdated
@@ -63,6 +63,7 @@ evaluate!(out, basis::AbstractPoly4MLBasis, X, ps) = evaluate!(out, basis, X) | |||
function evaluate(l::PolyLuxLayer, X, ps, st) | |||
out = acquire!(st.pool, _outsym(X), _out_size(l.basis, X), _valtype(l.basis, X)) | |||
evaluate!(out, l.basis, X, ps) | |||
release!(X) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
flag in LuxLayer on whether or not inputs can be released.
@CheukHinHoJerry -- the only change since we discussed it is the flag for whether or not to release? I.e. I should just go ahead and merge this? |
Yes - I think this is the only thing. And we talked about moving |
Updates from this branch (To be updated)
STOLayer
FlexArray
interfaceSparseSymProd
inside closuregeneric_matmul!
inrrule
ofLinearLayer
cc @DexuanZhou
@cortner : will let you know once it is ready.