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
ENH Adds test and docs for modules that already support no batch dims #62729
Conversation
🔗 Helpful links
💊 CI failures summary and remediationsAs of commit df99ab6 (more details on the Dr. CI page): 💚 💚 Looks good so far! There are no failures yet. 💚 💚 This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.Please report bugs/suggestions to the (internal) Dr. CI Users group. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking great! Couple missing things but solid otherwise
@thomasjpfan FYI checks still failing, last commit looks empty (something might have gone wrong with git) |
@thomasjpfan Based on the below failing check, it looks like the C++ API possibly needs to be updated:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@jbschlosser has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
@@ -170,8 +170,8 @@ void Softmax2dImpl::pretty_print(std::ostream& stream) const { | |||
} | |||
|
|||
Tensor Softmax2dImpl::forward(const Tensor& input) { | |||
TORCH_CHECK(input.dim() == 4, "Softmax2d requires a 4D tensor as input"); | |||
return F::detail::softmax(input, /*dim=*/1, c10::nullopt); | |||
TORCH_CHECK(input.dim() == 4 or input.dim() == 3, "Softmax2d requires a 3D or 4D tensor as input"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@thomasjpfan FYI we're getting a bunch of internal failures on Windows due to this usage of "or" instead of "||" that slipped in here :p
Codecov Report
@@ Coverage Diff @@
## master #62729 +/- ##
==========================================
- Coverage 66.63% 66.63% -0.01%
==========================================
Files 705 705
Lines 92192 92192
==========================================
- Hits 61434 61433 -1
- Misses 30758 30759 +1 |
@jbschlosser has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
@jbschlosser merged this pull request in 7d01053. |
Towards #60585
cc @albanD @mruberry @jbschlosser @walterddr