Unable to run eval.py on USB NLP Datasets
ShambhaviCodes opened this issue · 3 comments
ShambhaviCodes commented
Bug
Does the eval.py support NLP datasets?
Bala93 commented
Import this function
from semilearn.datasets import get_collactor
Use the collactor function in data_loader
collact_fn = get_collactor(args, args.net)
eval_loader = DataLoader(eval_dset, collact_fn)
For handling dict data.
if isinstance(x, dict):
x = {k: v.cuda() for k, v in x.items()}
else:
x = x.cuda()
github-actions commented
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
github-actions commented
This issue was closed because it has been stalled for 5 days with no activity.