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

wrong return type #93

Open
sjanssen2 opened this issue Feb 19, 2021 · 1 comment
Open

wrong return type #93

sjanssen2 opened this issue Feb 19, 2021 · 1 comment

Comments

@sjanssen2
Copy link

Hi Jamie,
I try to check the traditional hardmax NW but code execution fails unless I remove the , _ on the left hand side. I think the torch.max function only returns a single Tensor, doesn't it?

M, _ = torch.max(X)

@mortonjt
Copy link
Collaborator

Yes, you are right -- this looks like it was inherited from an older version of pytorch where max returned both the value and indices. This will need to updated.

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