Remove deprecated caffe2::Tensor APIs (#15814)
authorJerry Zhang <jerryzh@fb.com>
Wed, 16 Jan 2019 02:39:29 +0000 (18:39 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 16 Jan 2019 02:42:04 +0000 (18:42 -0800)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/15814

Plan is to remove the APIs we want to deprecate one by one and make sure it still builds in sandcastle and ossci

Reviewed By: ezyang

Differential Revision: D12812029

fbshipit-source-id: ea0c3dd882bec95fcd4507160ebc61f598b6d040

caffe2/core/tensor.h

index 0f92806..58311ef 100644 (file)
@@ -439,11 +439,6 @@ class CAFFE2_API Tensor final {
     return impl_.get()->sizes();
   }
 
-  // To be deprecated
-  inline at::IntList dims() const {
-    return impl_.get()->sizes();
-  }
-
   inline int64_t size_from_dim(int k) const {
     return size_from_dim_(k, impl_->sizes());
   }