[codemod][caffe2][generated] Tensor dims() -> sizes() (caffe2/operators) - 3/5#13030
Closed
jerryzh168 wants to merge 1 commit intoexport-D10467556from
Closed
[codemod][caffe2][generated] Tensor dims() -> sizes() (caffe2/operators) - 3/5#13030jerryzh168 wants to merge 1 commit intoexport-D10467556from
jerryzh168 wants to merge 1 commit intoexport-D10467556from
Conversation
Differential Revision: D10476226 Differential Version: 61183833
This was referenced Oct 24, 2018
ezyang
reviewed
Oct 24, 2018
|
|
||
| CAFFE_ENFORCE_GE(input.dims().size(), 2, "LayerNorm requires input dim >= 2"); | ||
| CAFFE_ENFORCE_GE( | ||
| input.sizes().size(), 2, "LayerNorm requires input dim >= 2"); |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
ezyang
approved these changes
Oct 24, 2018
laurentdupin
pushed a commit
to laurentdupin/pytorch
that referenced
this pull request
Apr 24, 2026
Summary: Pull Request resolved: pytorch#13030 Codemod generated with clangr shard mode, 25 files per diff, for renaming dims() to sizes() Reviewed By: ezyang Differential Revision: D10476226 fbshipit-source-id: 757583e3bde8d5246565433883bd328ab34f3e09
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stack:
:white_circle: #13014 [pt1][tensor][codemod] dims() -> sizes() (caffe2/core) 💛
:black_circle: #13030 [codemod][caffe2][generated] Tensor dims() -> sizes() (caffe2/operators) - 3/5 💚
Codemod generated with clangr shard mode, 25 files per diff, for renaming dims() to sizes()
#accept2ship
Differential Revision: D10476226