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

chap02 78page 오류문의 #6

Open
mindang opened this issue Apr 22, 2023 · 0 comments
Open

chap02 78page 오류문의 #6

mindang opened this issue Apr 22, 2023 · 0 comments

Comments

@mindang
Copy link

mindang commented Apr 22, 2023

outputs = torch.tensor(outputs).flatten()

outputs = torch.tensor(outputs)
outputs = torch.argmax(outputs,dim=1)
로 바꿔야 하지 않나 싶습니다.

기존의 outputs은 (6912,)로 바로 다음 코드의 데이터셋 분리에서 1383 , 345개로 나눠집니다.
크로스 엔트로피를 사용하므로 argmax를 사용하여 outputs을 1728개로 맞춰야하지 않나 싶습니다!

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