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

Fixes nightly build 9/29 #541

Merged
merged 13 commits into from
Sep 30, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions tests/test_sklearn_nearest_neighbour_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ def test_model_knn_regressor(self):
@unittest.skipIf(
StrictVersion(onnxruntime.__version__) < StrictVersion("1.2.0"),
reason="not available")
@unittest.skipIf(
StrictVersion(onnx.__version__) <= StrictVersion("1.6.0"),
reason="not available")
def test_model_knn_regressor_radius(self):
model, X = self._fit_model(RadiusNeighborsRegressor())
model_onnx = convert_sklearn(model, "KNN regressor",
Expand Down
4 changes: 2 additions & 2 deletions tests/test_sklearn_tfidf_vectorizer_converter_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ class TestSklearnTfidfVectorizerPipeline(unittest.TestCase):
def common_test_model_tfidf_vectorizer_pipeline_cls(
self, kind=None, verbose=False):
if kind == 'stop':
if ort_version.startswith('1.4'):
# regression with stopwords in onnxruntime 1.4
if ort_version.startswith('1.4') or ort_version.startswith('1.5'):
Copy link
Member

@wenbingl wenbingl Sep 29, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it true that ort_version >= 1.4 so there is no issue for 1.6 which may be two months later?

# regression with stopwords in onnxruntime 1.4, 1.5
stopwords = ['theh']
else:
stopwords = ['the', 'and', 'is']
Expand Down