From 3f4bb3d49321cc9b28967f44b5de081459f0e07e Mon Sep 17 00:00:00 2001 From: Jerry Zhang Date: Fri, 18 Jan 2019 11:49:36 -0800 Subject: [PATCH] rest of uses for deprecation of dims() in Tensor (#16118) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/16118 att Differential Revision: D13697211 fbshipit-source-id: 12bf6edd1794240ac748cc1b8fecb0c1e8eb9112 --- caffe2/core/qtensor.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/caffe2/core/qtensor.h b/caffe2/core/qtensor.h index 1e6df3f..9f688d6 100644 --- a/caffe2/core/qtensor.h +++ b/caffe2/core/qtensor.h @@ -146,6 +146,11 @@ class C10_EXPORT QTensor { return precision_; } + inline at::ArrayRef sizes() const { + return dims_; + } + + // TODO: deprecate? inline at::ArrayRef dims() const { return dims_; } -- 2.7.4