We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
outputs = torch.tensor(outputs).flatten() 을 outputs = torch.tensor(outputs) outputs = torch.argmax(outputs,dim=1) 로 바꿔야 하지 않나 싶습니다.
기존의 outputs은 (6912,)로 바로 다음 코드의 데이터셋 분리에서 1383 , 345개로 나눠집니다. 크로스 엔트로피를 사용하므로 argmax를 사용하여 outputs을 1728개로 맞춰야하지 않나 싶습니다!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
outputs = torch.tensor(outputs).flatten()
을
outputs = torch.tensor(outputs)
outputs = torch.argmax(outputs,dim=1)
로 바꿔야 하지 않나 싶습니다.
기존의 outputs은 (6912,)로 바로 다음 코드의 데이터셋 분리에서 1383 , 345개로 나눠집니다.
크로스 엔트로피를 사용하므로 argmax를 사용하여 outputs을 1728개로 맞춰야하지 않나 싶습니다!
The text was updated successfully, but these errors were encountered: