meshed-memory-transformer
meshed-memory-transformer copied to clipboard
variance dtype issue
Traceback (most recent call last):
File "test.py", line 77, in
When I try to evaluate your model, it came up to that....and I don't know how to fix that.. Would you please give me some tips?
I also got this problem, try pytorch==1.1.0 may help.
Thanks a lot:) It works @Cranooooooo
I have the same issues but i can't install torch==1.1.0 because I use cuda 11.2. There is a fix with torch 1.6 or 1.7 ?
I have the same issues but i can't install torch==1.1.0 because I use cuda 11.2. There is a fix with torch 1.6 or 1.7 ?
You can modify a line of code(line 118):selected_beam = selected_idx / /candidate_logprob.shape[-1] meshed-memory-transformer/models/beam_search/beam_search.py which can address this problem.
I have the same issues but i can't install torch==1.1.0 because I use cuda 11.2. There is a fix with torch 1.6 or 1.7 ?
You can modify a line of code(line 118):selected_beam = selected_idx / /candidate_logprob.shape[-1] meshed-memory-transformer/models/beam_search/beam_search.py which can address this problem.
I modified the code according to the above, but a new problem appeared, Would you please give me some tips?
Traceback (most recent call last):
File "test.py", line 77, in
I have solved this issue:
this is a bug, please fix the code in models/beam_search.py line 118:
# selected_beam = selected_idx / candidate_logprob.shape[-1]
selected_beam = torch.div(selected_idx, candidate_logprob.shape[-1], rounding_mode="floor")
I have solved this issue:
this is a bug, please fix the code in models/beam_search.py line 118:
# selected_beam = selected_idx / candidate_logprob.shape[-1] selected_beam = torch.div(selected_idx, candidate_logprob.shape[-1], rounding_mode="floor")
I made changes, but the code still reports an error.
Evaluation: 100%|█████████████████████████████| 500/500 [02:11<00:00, 3.88it/s]
Traceback (most recent call last):
File "test.py", line 77, in