Skip to content
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

single Gpu report Bug #37

Open
fanabcd opened this issue Apr 22, 2024 · 0 comments
Open

single Gpu report Bug #37

fanabcd opened this issue Apr 22, 2024 · 0 comments

Comments

@fanabcd
Copy link

fanabcd commented Apr 22, 2024

Traceback (most recent call last):
File "train.py", line 184, in
main()
File "train.py", line 180, in main
train(args, cfg)
File "train.py", line 166, in train
trainer.train(trn_loader, st_step, cfg.max_iter)
File "/202102014/Fy/mxfont/trainer/fact_trainer.py", line 145, in train
self.add_ac_losses_and_update_stats(
File "/202102014/Fy/mxfont/trainer/fact_trainer.py", line 281, in add_ac_losses_and_update_stats
ac_loss_c, cross_ac_loss_c, acc_c = self.infer_comp_ac(char_facts, comp_ids)
File "/202102014/Fy/mxfont/trainer/fact_trainer.py", line 251, in infer_comp_ac
acc = T_probs[cids, eids].sum() / n_experts
RuntimeError: indices should be either on cpu or on the same device as the indexed tensor (cpu)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant