huggingface / huggingface/torchMoji

IndexError: too many indices for array

Open
#20 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
920
Forks
185
PR merge metrics
No merged PRs in 30d

Description

Hi, I got the "IndexError: too many indices for array" error while I was running the file finetune_semeval_class-avg_f1. Here is more details:
torchMoji-master/torchmoji/finetuning.py in (.0)
522
523 model.eval()
--> 524 best_loss = np.mean([calc_loss(loss_op, model(Variable(xv)), Variable(yv)).data.cpu().numpy()[0] for xv, yv in val_gen])
525 print("original val loss", best_loss)
526
IndexError: too many indices for array
Please let me know how I can fix it. Thank you!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.