-
Notifications
You must be signed in to change notification settings - Fork 4
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
feat: add PositiveDefinite
#89
base: main
Are you sure you want to change the base?
feat: add PositiveDefinite
#89
Conversation
…underlying model
….,hcat,eachcol(...))` for compatibility with GPUArrays
…avor of comparing absolute difference with a small threshold
0445dd8
to
ebf0efe
Compare
""" | ||
@concrete struct PositiveDefinite <: AbstractLuxWrapperLayer{:model} | ||
model <: AbstractLuxLayer | ||
x0 <: AbstractVector |
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.
Don't store a vector here. Instead pass in a initialization_function (ideally from WeightInitializers.jl) and construct the vector inside initialstates
in_val <: AbstractVector | ||
out_val <: AbstractVector |
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.
same as above
A
PositiveDefinite
container wraps an underlying model and results in a model that returns a postive number whenever the input is nonzero (or not equal to a different point specified when defining the container). This is useful, among other applications, in neural Lyapunov applications.