diff options
author | A. Unique TensorFlower <nobody@tensorflow.org> | 2016-04-19 16:37:09 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2016-04-19 17:45:25 -0700 |
commit | 2242803599eaaded61ee71e4df883d5a28606ca1 (patch) | |
tree | 9f4c34936d516f048c75277554a0f00ae7f8e74e /tensorflow/core/kernels/batch_matmul_op.cc | |
parent | 43fc42b7052b2bc47040ad85049290387d6dc2e8 (diff) |
Rollback of "Add MultivariateNormal to tf.contrib.distributions."
Also fix overly stringent constraints on batchwise linalg ops & batch_matmul.
Change: 120289843
Diffstat (limited to 'tensorflow/core/kernels/batch_matmul_op.cc')
-rw-r--r-- | tensorflow/core/kernels/batch_matmul_op.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tensorflow/core/kernels/batch_matmul_op.cc b/tensorflow/core/kernels/batch_matmul_op.cc index 922e9f63de..f5a64e1f46 100644 --- a/tensorflow/core/kernels/batch_matmul_op.cc +++ b/tensorflow/core/kernels/batch_matmul_op.cc @@ -234,8 +234,8 @@ class BatchMatMul : public OpKernel { in1.shape().DebugString())); const int ndims = in0.dims(); OP_REQUIRES( - ctx, ndims >= 2, - errors::InvalidArgument("In[0] and In[1] ndims must be >= 2: ", ndims)); + ctx, ndims >= 3, + errors::InvalidArgument("In[0] and In[1] ndims must be >= 3: ", ndims)); TensorShape out_shape; for (int i = 0; i < ndims - 2; ++i) { OP_REQUIRES(ctx, in0.dim_size(i) == in1.dim_size(i), @@ -245,7 +245,7 @@ class BatchMatMul : public OpKernel { in1.shape().DebugString())); out_shape.AddDim(in0.dim_size(i)); } - auto n = (ndims == 2) ? 1 : out_shape.num_elements(); + auto n = out_shape.num_elements(); auto d0 = in0.dim_size(ndims - 2); auto d1 = in0.dim_size(ndims - 1); Tensor in0_reshaped; |