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

Bert Cola Example Missing Import #100

Closed
jackn11 opened this issue Jul 4, 2022 · 1 comment
Closed

Bert Cola Example Missing Import #100

jackn11 opened this issue Jul 4, 2022 · 1 comment

Comments

@jackn11
Copy link

jackn11 commented Jul 4, 2022

In the example at the link below, line 36 yields the error that todevice is not defined. This is because there is no general import which includes that method such as using Transformers which includes that method in the file. This could easily be fixed by including using Transformers at the top of the file.

https://github.com/chengchingwen/Transformers.jl/blob/master/example/BERT/cola/train.jl

@chengchingwen
Copy link
Owner

Because it's not the top-level entry. Please refer to the instructions in the readme

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants