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

KeyError: tensor(2893) #6

Open
YutingSun163 opened this issue Jun 12, 2019 · 5 comments
Open

KeyError: tensor(2893) #6

YutingSun163 opened this issue Jun 12, 2019 · 5 comments

Comments

@YutingSun163
Copy link

When I run the code for jtransup model, an error occurred:
image

and I tried run the code on mac, still the same error...
image

Could you please help me with this problem ?

@FloatingMaple
Copy link

I have a similar error when run the code:
KeyError: tensor(3085)

Do you resolve this problem?

@josix
Copy link

josix commented Oct 21, 2019

I also face this issue, but it seems work when I channging the i_ids.data to i_ids.tolist() in file jTransUP.py
image

@zysforever
Copy link

@josix It didn't work. After I changed the i_ids.data to i_ids.tolist() in file jTransUP.py, it showed a new AttributeError.
0`LFEF5N5O$9E}OG9)}L$J

@josix
Copy link

josix commented Nov 7, 2019

@zysforever Thanks for reporting this issue. I found that the version of my PyTorch is 1.2.0. Maybe you can try it.

@zysforever
Copy link

@zysforever Thanks for reporting this issue. I found that the version of my PyTorch is 1.2.0. Maybe you can try it.

I have changed the version to Pytorch 0.3.1 before, but it still didn't work and reported AttributeError.

DenisKimskku added a commit to DenisKimskku/joint-kg-recommender that referenced this issue Nov 9, 2019
DenisKimskku added a commit to DenisKimskku/joint-kg-recommender that referenced this issue Nov 14, 2019
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

4 participants