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

move torchtext as optional #2395

Merged
merged 3 commits into from
Jun 28, 2020
Merged

move torchtext as optional #2395

merged 3 commits into from
Jun 28, 2020

Conversation

Borda
Copy link
Member

@Borda Borda commented Jun 27, 2020

What does this PR do?

Fixes #2379 (comment)

PR review

Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.

Did you have fun?

Make sure you had fun coding 🙃

@Borda Borda added bug Something isn't working feature Is an improvement or enhancement labels Jun 27, 2020
@Borda Borda requested a review from awaelchli June 27, 2020 22:21
@Borda Borda mentioned this pull request Jun 27, 2020
7 tasks
@mergify mergify bot requested a review from a team June 27, 2020 22:22
@mergify mergify bot requested a review from a team June 27, 2020 22:32
Comment on lines 94 to 96
if Batch is None:
raise ImportError('You want to use `torchtext` package which is not installed yet,'
' install it with `pip install torchtext`.')
Copy link
Member

Choose a reason for hiding this comment

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

this is incorrect, it will show the message to users that don't use torchtext. we need to wrap the logic here with TORCHTEXT AVAILABLE.

@mergify mergify bot requested a review from a team June 27, 2020 22:43
Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>
@williamFalcon
Copy link
Contributor

@Borda sorry about missing the dep in the previous PR! can we merge ASAP?

@williamFalcon
Copy link
Contributor

@awaelchli good to go?

@mergify mergify bot requested a review from a team June 28, 2020 00:00
@williamFalcon williamFalcon merged commit 75f0a20 into master Jun 28, 2020
@Borda Borda deleted the req-torchtext branch June 28, 2020 05:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working feature Is an improvement or enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants