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

only integer tensors of a single element can be converted to an index #4

Open
ShangYuming opened this issue Jan 14, 2019 · 0 comments

Comments

@ShangYuming
Copy link

When I run the colder, there is an error in model.py (line 53):

self.layers = nn.ModuleList( [self.layer_type(d_k, d_v, d_model, d_ff, n_heads, dropout) for _ in range(n_layers)])

only integer tensors of a single element can be converted to an index

How can I fix it

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

1 participant