8000 Improve error readibility · Issue #749 · pytorch/pytorch · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Improve error readibility #749

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

Closed
Atcold opened this issue Feb 15, 2017 · 1 comment
Closed

Improve error readibility #749

Atcold opened this issue Feb 15, 2017 · 1 comment

Comments

@Atcold
Copy link
Contributor
Atcold commented Feb 15, 2017

The error PyTorch throws are a tad hard to parse.
For example I get the following

TypeError: FloatClassNLLCriterion_updateOutput received an invalid combination of arguments - got (int, torch.FloatTensor, torch.FloatTensor, torch.FloatTensor, bool, NoneType, torch.FloatTensor), but expected (int state, torch.FloatTensor input, torch.LongTensor target, torch.FloatTensor output, bool sizeAverage, [torch.FloatTensor weights or None], torch.FloatTensor total_weight)

It would be nicer to see something like "target is expected to be a LongTensor, got FloatTensor instead". Moreover, I couldn't figure out where the error has been thrown (which assert does this).

@soumith
Copy link
Member
soumith commented Feb 15, 2017

add to #39

@soumith soumith closed this as completed Feb 15, 2017
mrshenli pushed a commit to mrshenli/pytorch that referenced this issue Apr 11, 2020
…ials

Fix formatting and clean up tutorial on quantized transfer learning
8000
ashishfarmer pushed a commit to ashishfarmer/pytorch that referenced this issue Oct 13, 2020
KyleCZH pushed a commit to KyleCZH/pytorch that referenced this issue Sep 20, 2021
akashveramd pushed a commit to akashveramd/pytorch that referenced this issue Apr 9, 2025
* Add basic setup for precommit

* Update README.md with instructions on installing precommit hooks

---------

Co-authored-by: Illia Silin <98187287+illsilin@users.noreply.github.com>
Co-authored-by: Bartlomiej Wroblewski <bwroblewski10@gmail.com>
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

2 participants
CAE
0