Skip to content

Add strides to caffe2::Tensor#10826

Closed
jerryzh168 wants to merge 1 commit intopytorch:masterfrom
jerryzh168:export-D9354480
Closed

Add strides to caffe2::Tensor#10826
jerryzh168 wants to merge 1 commit intopytorch:masterfrom
jerryzh168:export-D9354480

Conversation

@jerryzh168
Copy link
Contributor

Summary: Add strides, and make sure the strides are consistent with sizes, and is_contiguous, for all the Caffe2 functions.

Differential Revision: D9354480

@jerryzh168
Copy link
Contributor Author

@pytorchbot retest this please

Summary:
Pull Request resolved: pytorch#10826

Add strides, and make sure the strides are consistent with sizes, and is_contiguous, for all the Caffe2 functions.

is_contiguous means strides_[dim-1] = 1 and strides_[i] = strides_[i+1] * max(size_[i+1], 1);

Reviewed By: ezyang

Differential Revision: D9354480

fbshipit-source-id: 9a07544b7427be11c83ecaccb827ffb14ac818cc
PenghuiCheng pushed a commit to PenghuiCheng/pytorch that referenced this pull request Sep 11, 2018
Summary:
Pull Request resolved: pytorch#10826

Add strides, and make sure the strides are consistent with sizes, and is_contiguous, for all the Caffe2 functions.

is_contiguous means strides_[dim-1] = 1 and strides_[i] = strides_[i+1] * max(size_[i+1], 1);

Reviewed By: ezyang

Differential Revision: D9354480

fbshipit-source-id: 3643871b70f1111b7ffdd9fdd9fe9bec82635963
@ezyang ezyang added the merged label Jun 26, 2019
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