-
Notifications
You must be signed in to change notification settings - Fork 248
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
SNLI_VE Inference Error #407
Comments
I have solved this problem, it seems that I modified the code earlier due to version problems. |
may i ask what u have changed? the run_script? |
|
When I modify the model path and run the evaluate_snli_ve_base.sh or evaluate_snli_ve.sh to test the performance, I meet the following error:
Traceback (most recent call last):
File "/home/dev/OFA-main/run_scripts/snli_ve/../../evaluate.py", line 203, in
cli_main()
File "/home/dev/OFA-main/run_scripts/snli_ve/../../evaluate.py", line 193, in cli_main
distributed_utils.call_main(
File "/home/dev/OFA-main/fairseq/fairseq/distributed/utils.py", line 374, in call_main
distributed_main(cfg.distributed_training.device_id, main, cfg, kwargs)
File "/home/dev/OFA-main/fairseq/fairseq/distributed/utils.py", line 348, in distributed_main
main(cfg, **kwargs)
File "/home/dev/OFA-main/run_scripts/snli_ve/../../evaluate.py", line 168, in main
if torch.any(scores) and isinstance(scores[0], tuple):
TypeError: any(): argument 'input' (position 1) must be Tensor, not list
The text was updated successfully, but these errors were encountered: