-
Notifications
You must be signed in to change notification settings - Fork 179
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
🇶🇦 Fix Errors from code ql scanning #1081
Conversation
Check the CodeQL scanning results: |
olive/passes/pytorch/lora.py
Outdated
@@ -588,6 +588,7 @@ def train_and_save_new_model( | |||
:param output_model_path: The path to save the output model to. | |||
:return: The output model handler. | |||
""" | |||
allow_tf32 = None |
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.
we can ignore the warning here since allow_tf32 is only defined for cuda.
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 kind of isssues are shown as errors
.
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.
I mean we might need find some ways to ignore/disable this errors since we might not be able fix all errors.
2652ade
to
06d49a6
Compare
This reverts commit 50770c6.
## Describe your changes Fix partial issues from code ql scanning ## Checklist before requesting a review - [ ] Add unit tests for this change. - [ ] Make sure all tests can pass. - [ ] Update documents if necessary. - [ ] Lint and apply fixes to your code by running `lintrunner -a` - [ ] Is this a user-facing change? If yes, give a description of this change to be included in the release notes. - [ ] Is this PR including examples changes? If yes, please remember to update [example documentation](https://github.com/microsoft/Olive/blob/main/docs/source/examples.md) in a follow-up PR. ## (Optional) Issue link
Describe your changes
Fix partial issues from code ql scanning
Checklist before requesting a review
lintrunner -a
(Optional) Issue link