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
predictions = model(features) print('shape: ', features.shape, predictions.shape, labels.shape)
shape: torch.Size([32, 39]) torch.Size([32, 1]) torch.Size([32])
labels的维度和预测结果维度不一致
The text was updated successfully, but these errors were encountered:
在模型的forward里加一个outputs = outputs.squeeze(-1)
Sorry, something went wrong.
No branches or pull requests
shape: torch.Size([32, 39]) torch.Size([32, 1]) torch.Size([32])
labels的维度和预测结果维度不一致
The text was updated successfully, but these errors were encountered: