Skip to content
This repository was archived by the owner on Apr 8, 2025. It is now read-only.

Use Path instead of String in ONNXAdaptiveModel#694

Merged
Timoeller merged 1 commit intodeepset-ai:masterfrom
skiran252:patch-1
Jan 21, 2021
Merged

Use Path instead of String in ONNXAdaptiveModel#694
Timoeller merged 1 commit intodeepset-ai:masterfrom
skiran252:patch-1

Conversation

@skiran252
Copy link
Copy Markdown
Contributor

load_dir should be a Path variable

@skiran252 skiran252 closed this Jan 21, 2021
@skiran252 skiran252 reopened this Jan 21, 2021
@Timoeller Timoeller self-requested a review January 21, 2021 10:59
Copy link
Copy Markdown
Contributor

@Timoeller Timoeller left a comment

Choose a reason for hiding this comment

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

Thanks for the addition.

It currently only affects the ONNXAdaptiveModel. Did you check in our "normal" AdaptiveModel as well? If the changes and tests there become too complex, we can also move forward with just this PR.

@Timoeller Timoeller changed the title Update adaptive_model.py Use Path instead of String in ONNXAdaptiveModel Jan 21, 2021
@Timoeller
Copy link
Copy Markdown
Contributor

Again thanks for the addition, really appreciate effort coming from external developers. Some feedback for future OSS contributions though:
I changed the title of the PR - it is good practice to make the title more informative.
Next time please also add slightly more description in the PR body, e.g. what caused the error or even link it to an open issue with a bug report.
Thanks

@skiran252
Copy link
Copy Markdown
Contributor Author

Again thanks for the addition, really appreciate effort coming from external developers. Some feedback for future OSS contributions though:
I changed the title of the PR - it is good practice to make the title more informative.
Next time please also add slightly more description in the PR body, e.g. what caused the error or even link it to an open issue with a bug report.
Thanks

Ya sure. thanks for the suggestion.

@skiran252
Copy link
Copy Markdown
Contributor Author

Thanks for the addition.

It currently only affects the ONNXAdaptiveModel. Did you check in our "normal" AdaptiveModel as well? If the changes and tests there become too complex, we can also move forward with just this PR.

looks like this just affects ONNXAdaptiveModel and should be a simple change if done on that class.

@Timoeller Timoeller self-requested a review January 21, 2021 17:50
Copy link
Copy Markdown
Contributor

@Timoeller Timoeller left a comment

Choose a reason for hiding this comment

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

OK, then lets merge.

@Timoeller Timoeller merged commit 5662734 into deepset-ai:master Jan 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants