-
Notifications
You must be signed in to change notification settings - Fork 1
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
Constant Linear Layer #18
Conversation
Update ConstLinearLayer to latest
This one is also usable now though it might not be written in the most elegant manner. @cortner @CheukHinHoJerry Any feedback from you would be much appreciated. |
Fix the linear dependence issue
A note : Ref: #17 (comment) |
Ready to merge if all of us are happy. |
src/ConstLinearLayer.jl
Outdated
in_dim::Integer | ||
out_dim::Integer | ||
struct ConstLinearLayer <: AbstractExplicitLayer | ||
op |
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.
this gives you a type instability. you still need to specify the type of the operator. Something like this:
struct ConstLinL{TOP}
op::TOP
end
Quick question: shall we merge this PR so that the consequential changes can be based on it? We can create an issue if there's still something to be improved in the ConstLinearLayer. |
The symmetrisation layer (the BB layer) should be a Linear Layer with constant (frozen) parameters. (cf. #12)