diff options
author | Dandelion Mané <dandelion@google.com> | 2017-03-10 14:43:23 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2017-03-10 15:18:15 -0800 |
commit | 0386a01ad3beb28364599d82199be1c0837b3fa9 (patch) | |
tree | 3a1d2ef947a7bf37286efc0e8ff760e0401ab319 /tensorflow/compiler/xla/array3d.h | |
parent | e73ceaebb209a1e577e7240fba41c692c89143d0 (diff) |
Merge changes from github.
Change: 149800363
Diffstat (limited to 'tensorflow/compiler/xla/array3d.h')
-rw-r--r-- | tensorflow/compiler/xla/array3d.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/tensorflow/compiler/xla/array3d.h b/tensorflow/compiler/xla/array3d.h index 46bc1a6392..654af8f030 100644 --- a/tensorflow/compiler/xla/array3d.h +++ b/tensorflow/compiler/xla/array3d.h @@ -39,15 +39,11 @@ class Array3D { public: // Creates an array of dimensions n1 x n2 x n3, uninitialized values. Array3D(const int64 n1, const int64 n2, const int64 n3) - : n1_(n1), n2_(n2), n3_(n3) { - values_.resize(n1 * n2 * n3); - } + : n1_(n1), n2_(n2), n3_(n3), values_(n1 * n2 * n3) {} // Creates an array of dimensions n1 x n2 x n3, initialized to value. Array3D(const int64 n1, const int64 n2, const int64 n3, const T value) - : Array3D(n1, n2, n3) { - Fill(value); - } + : n1_(n1), n2_(n2), n3_(n3), values_(n1 * n2 * n3, value) {} // Creates an array from the given nested initializer list. The outer // initializer list is the first dimension, and so on. |