Skip to content

[codemod][caffe2][generated] Tensor dims() -> sizes() (caffe2/operators) - 3/5#13030

Closed
jerryzh168 wants to merge 1 commit intoexport-D10467556from
export-D10476226
Closed

[codemod][caffe2][generated] Tensor dims() -> sizes() (caffe2/operators) - 3/5#13030
jerryzh168 wants to merge 1 commit intoexport-D10467556from
export-D10476226

Conversation

@jerryzh168
Copy link
Copy Markdown
Contributor

@jerryzh168 jerryzh168 commented Oct 24, 2018

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

Differential Revision: D10476226
Differential Version: 61183833

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.

This comment was marked as off-topic.

@soumith soumith deleted the export-D10476226 branch February 21, 2019 12:12
@ezyang ezyang added the merged label Jun 25, 2019
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
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

Successfully merging this pull request may close these issues.

2 participants