Skip to content
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

Merged
merged 3 commits into from
Apr 16, 2024
Merged

Conversation

trajepl
Copy link
Contributor

@trajepl trajepl commented Apr 15, 2024

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 in a follow-up PR.

(Optional) Issue link

@trajepl trajepl changed the title 🇶🇦 Fix partial issues from code ql scanning 🇶🇦 Fix Errors from code ql scanning Apr 15, 2024
@trajepl trajepl marked this pull request as ready for review April 15, 2024 11:47
@trajepl trajepl mentioned this pull request Apr 15, 2024
6 tasks
@trajepl
Copy link
Contributor Author

trajepl commented Apr 15, 2024

@@ -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
Copy link
Collaborator

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.

Copy link
Contributor Author

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.

Copy link
Collaborator

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.

olive/passes/pytorch/lora.py Dismissed Show dismissed Hide dismissed
examples/mobilenet/download_files.py Fixed Show fixed Hide fixed
examples/inception/download_files.py Fixed Show fixed Hide fixed
examples/resnet/prepare_model_data.py Fixed Show fixed Hide fixed
guotuofeng
guotuofeng previously approved these changes Apr 16, 2024
examples/mobilenet/download_files.py Fixed Show fixed Hide fixed
examples/inception/download_files.py Fixed Show fixed Hide fixed
examples/resnet/prepare_model_data.py Fixed Show fixed Hide fixed
@trajepl trajepl merged commit 9512bf8 into main Apr 16, 2024
35 checks passed
@trajepl trajepl deleted the jiapli/code_ql_fix_1 branch April 16, 2024 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants