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
@CheukHinHoJerry : This is an idea how to get rid of the nasty allocation you have in sparsesymmprodand all the other layers too. Im using incorrect names here because I don't remember the correct ones, but the gist is hopefully clear:
struct P4ML_LuxLayer
# all the other stuff, then add the following field:
release_input::Boolendfunction (l::P4MLLuxLayer)(X, ps, st)
out =acquire!(st, ....)
evaluate!(out, l.basis, X, ps, st.temp)
if l.release_input
release!(X)
endreturn out
end
Basically this will enable you to release each computed basis once it is no longer needed back into the pool, and this allocation should then go away. What do you think?
The text was updated successfully, but these errors were encountered:
@CheukHinHoJerry : This is an idea how to get rid of the nasty allocation you have in
sparsesymmprod
and all the other layers too. Im using incorrect names here because I don't remember the correct ones, but the gist is hopefully clear:Basically this will enable you to release each computed basis once it is no longer needed back into the pool, and this allocation should then go away. What do you think?
The text was updated successfully, but these errors were encountered: