Skip to content

Commit

Permalink
fix codeql qualcom issue (#1107)
Browse files Browse the repository at this point in the history
## Describe your changes
* fix https://github.com/microsoft/Olive/security/code-scanning/10653

## 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
  • Loading branch information
guotuofeng authored Apr 24, 2024
1 parent cc4b342 commit 4baac1a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions olive/passes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@
"PassParamDefault",
"PassModuleConfig",
"FullPassConfig",
"REGISTRY",
]
3 changes: 0 additions & 3 deletions olive/platform_sdk/qualcomm/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,3 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
# --------------------------------------------------------------------------

from olive.platform_sdk.qualcomm.constants import * # noqa: F403
from olive.platform_sdk.qualcomm.env import * # noqa: F403
2 changes: 1 addition & 1 deletion olive/strategy/search_algorithm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@

REGISTRY = SearchAlgorithm.registry

__all__ = ["SearchAlgorithm", "ExhaustiveSearchAlgorithm", "RandomSearchAlgorithm", "TPESearchAlgorithm"]
__all__ = ["SearchAlgorithm", "ExhaustiveSearchAlgorithm", "RandomSearchAlgorithm", "TPESearchAlgorithm", "REGISTRY"]

0 comments on commit 4baac1a

Please sign in to comment.