Tensor construction codemod - caffe2/caffe2/fb/operators - 2/3
authorJerry Zhang <jerryzh@fb.com>
Sat, 1 Dec 2018 02:35:30 +0000 (18:35 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Sat, 1 Dec 2018 02:38:17 +0000 (18:38 -0800)
Summary:
Codemod generated with clangr shard mode, 25 files per diff,
motivation: https://github.com/pytorch/pytorch/pull/12407

Reviewed By: smessmer

Differential Revision: D13229251

fbshipit-source-id: 88b3984ea8ca82b9489c0ee9a338fd3f41dee615

caffe2/core/qtensor.h

index 8ee5a5d..1e6df3f 100644 (file)
@@ -46,6 +46,7 @@ class C10_EXPORT QTensor {
    * many low precision integers as a sum of popcnt(A & B) * 1 << bit.
    * Explained here: https://arxiv.org/abs/1606.06160
    */
+  // TODO: changing at::ArrayRef<int> to at::ArrayRef<int64_t>?
   explicit QTensor(
       at::ArrayRef<int> dims,
       const unsigned char precision,