-
Notifications
You must be signed in to change notification settings - Fork 14
[bugfix] fix minimax qk_norm sp #83
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
Changes from all commits
ae7d0f9
ca6a3c7
c5fd70a
6a5836a
b132204
269555a
5cdb4ae
d4e7a1f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -87,6 +87,16 @@ def new_deepcopy(x, *args, **kwargs): | |||||||||
|
|
||||||||||
| for key, value in saved_values.items(): | ||||||||||
| setattr(res, key, value) | ||||||||||
|
|
||||||||||
| # copy params attr | ||||||||||
| for name, param in x.named_parameters(): | ||||||||||
| res_param = deep_getattr(res, name) | ||||||||||
| if res_param is None: | ||||||||||
| continue | ||||||||||
| for k, v in param.__dict__.items(): | ||||||||||
| if not hasattr(res_param, k): | ||||||||||
| setattr(res_param, k, v) | ||||||||||
|
Comment on lines
+97
to
+98
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The check
Suggested change
|
||||||||||
|
|
||||||||||
| return res | ||||||||||
|
|
||||||||||
| copy.deepcopy = new_deepcopy | ||||||||||
|
|
||||||||||
Uh oh!
There was an error while loading. Please reload this page.