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

Code problem #37

Open
BALDman66 opened this issue Dec 25, 2021 · 2 comments
Open

Code problem #37

BALDman66 opened this issue Dec 25, 2021 · 2 comments

Comments

@BALDman66
Copy link

I got this error using PYTHon3, I tried using Python2, but 2 now seems unable to install torch
image

@planck-fanqi
Copy link

In file batch_gen.py, at line 49, length_of_sequences = list(map(len, batch_target))

@bqdeng
Copy link

bqdeng commented Apr 25, 2022

Just change the map to list first. To be honest, this is because Python 3 is different from Python 2. You can change this sentence to, length_ of_ sequences = list(map(len, batch_target))

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

3 participants