projects
/
platform
/
upstream
/
pytorch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd17fd4
)
Tensor construction codemod - caffe2/caffe2/fb/operators - 2/3
author
Jerry Zhang
<jerryzh@fb.com>
Sat, 1 Dec 2018 02:35:30 +0000
(18:35 -0800)
committer
Facebook 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
patch
|
blob
|
history
diff --git
a/caffe2/core/qtensor.h
b/caffe2/core/qtensor.h
index
8ee5a5d
..
1e6df3f
100644
(file)
--- a/
caffe2/core/qtensor.h
+++ b/
caffe2/core/qtensor.h
@@
-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,