-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Chronos: Delete existing tags and replace with new Installation options #5165
Merged
TheaperDeng
merged 10 commits into
intel-analytics:main
from
liangs6212:Optimized-uts-script
Sep 2, 2022
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
c7cc0d6
remove skipif tf2
Cyberpunk1210 4428705
delete skip_onnxrt tags
liangs6212 bd09b0a
fix synatx error
liangs6212 75241db
add installation options
liangs6212 fbbae23
remove invalid options
liangs6212 797d1b8
fix known issues
liangs6212 c7e512e
fix known issues
liangs6212 d22e95c
rollback tf1 uts
liangs6212 b3c3ee0
rollback tf1 UTs
liangs6212 afab0e9
rollback invalid changes
liangs6212 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,10 +20,8 @@ | |
from unittest import TestCase | ||
import pytest | ||
import tempfile | ||
import onnxruntime | ||
|
||
_onnxrt_ver = onnxruntime.__version__ != '1.6.0' # Jenkins requires 1.6.0(chronos) | ||
skip_onnxrt = pytest.mark.skipif(_onnxrt_ver, reason="Only runs when onnxrt is 1.6.0") | ||
from ... import op_all, op_onnxrt16 | ||
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. I'm not quite sure about this syntex: |
||
|
||
from bigdl.chronos.autots.model.auto_lstm import AutoLSTM | ||
from bigdl.orca.automl import hp | ||
|
@@ -144,7 +142,8 @@ def test_predict_evaluation(self): | |
auto_lstm.predict(test_data_x) | ||
auto_lstm.evaluate((test_data_x, test_data_y)) | ||
|
||
@skip_onnxrt | ||
@op_all | ||
@op_onnxrt16 | ||
def test_onnx_methods(self): | ||
auto_lstm = get_auto_estimator() | ||
auto_lstm.fit(data=train_dataloader_creator(config={"batch_size": 64}), | ||
|
@@ -164,7 +163,8 @@ def test_onnx_methods(self): | |
except ImportError: | ||
pass | ||
|
||
@skip_onnxrt | ||
@op_all | ||
@op_onnxrt16 | ||
def test_save_load(self): | ||
auto_lstm = get_auto_estimator() | ||
auto_lstm.fit(data=train_dataloader_creator(config={"batch_size": 64}), | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
maybe
op_all
can be replaced bytag1 or tag2 ...
or we may need to give all ut aop_all
tag?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.
If we give all UTs op_all tags, then we can move the torch to the ut method, sounds good.
Usage: