Skip to content

Commit

Permalink
rest of uses for deprecation of dims() in Tensor (pytorch#16118)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: pytorch#16118

att

Differential Revision: D13697211

fbshipit-source-id: 12bf6edd1794240ac748cc1b8fecb0c1e8eb9112
  • Loading branch information
jerryzh168 authored and facebook-github-bot committed Jan 18, 2019
1 parent b69c05d commit 3f4bb3d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions caffe2/core/qtensor.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,11 @@ class C10_EXPORT QTensor {
return precision_;
}

inline at::ArrayRef<int> sizes() const {
return dims_;
}

// TODO: deprecate?
inline at::ArrayRef<int> dims() const {
return dims_;
}
Expand Down

0 comments on commit 3f4bb3d

Please sign in to comment.