linjc16 / R2-DDI

[BIB 2023] Official implementation of "R2-DDI: Relation-aware Feature Refinement for Drug-drug Interaction Prediction".
13 stars 1 forks source link

KeyError: 'logits #5

Closed tBai1994 closed 6 months ago

tBai1994 commented 1 year ago

return func(*args, *kwds) File "ddi_zoo/src/train.py", line 297, in train cfg, trainer, task, epoch_itr, valid_subsets, end_of_epoch File "ddi_zoo/src/train.py", line 383, in validate_and_save valid_losses = validate(cfg, trainer, task, epoch_itr, valid_subsets) File "ddi_zoo/src/train.py", line 453, in validate trainer.valid_step(sample) File "/.conda/envs/py37tor1_8pyg1_6/lib/python3.7/contextlib.py", line 74, in inner return func(args, **kwds) File "/R2-DDI-main/R2-DDI/fairseq/trainer.py", line 945, in valid_step logits = logging_output['logits'] KeyError: 'logits

Aitejiu commented 7 months ago

i have same question,solved in there https://github.com/linjc16/R2-DDI/issues/7