-
Notifications
You must be signed in to change notification settings - Fork 14
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
length cannot be a NN parameter #164
Comments
Hi, indeed the I implemented a quick and dirty way to circumvent this (see the new branch). The fix was basically moving the default @jank324 I'm not sure if it's the best solution though, any opinion? |
Hmmm ... yeah ... we already struggled with this in #143 (which was part of #116). Back then, some elements like We decided as a fix just to give the I think that now there are new considerations for this with #142. Here it makes even less sense for the element to have a A possible solution for this would be to just let every element define its own length again, i.e. no ... so probably reverse and find a cleaner alternative for 9b9abe4. |
It sounds like you have thought through this some already and it's a bit of a thorny issue; I look forward to the fix! |
I have been unable to let length be an optimizable Pytorch.nn.Parameter without corrupting the transfer map. I think it is because every element inherits a length from the Element class.
cheetah/cheetah/accelerator/element.py
Line 32 in 3fe16a7
If I comment this out, then I am able to assign length as a Parameter, but this then causes some tests to fail (I believe it is every CI test using transfer maps).
I haven't found a good fix yet but it would be nice to allow length to be a parameter
The text was updated successfully, but these errors were encountered: