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

Lab3 ctc loss causes Error #28

Open
mprostock opened this issue Apr 28, 2021 · 4 comments
Open

Lab3 ctc loss causes Error #28

mprostock opened this issue Apr 28, 2021 · 4 comments

Comments

@mprostock
Copy link

When running Lab 3 commands from the readme that use ctc loss, this error it thrown

    preds = torch.nn.functional.softmax(preds, dim=-1)
  File "/home/xxx/anaconda3/envs/fsdl/lib/python3.6/site-packages/torch/nn/functional.py", line 1512, in softmax
    ret = input.softmax(dim)
RuntimeError: "host_softmax" not implemented for 'Int'

This is due to the previous fix of the accuracy problem. The decoded content cannot be passed to the Accuracy-Metric Hack, the original Accuracy from pl.metrics should be used instead.

@mazarbaloch
Copy link

Same error.

@oOXpycTOo
Copy link

I put .float() after preds and it worked just fine.
image

@sanggusti
Copy link

I put .float() after preds and it worked just fine.
image

Still not working. Invoking error:

ValueError: If `preds` and `target` are of shape (N, ...) and `preds` are floats, `target` should be binary.

@sanggusti
Copy link

Solving this issue by commenting out the run around predictions method #34

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

4 participants