Update sparse_fill_empty_rows_op.cc

This commit is contained in:
Mihai Maruseac 2021-06-08 08:14:02 -07:00 committed by GitHub
parent 5d3c348577
commit a6e8a88437
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,7 +66,7 @@ class SparseFillEmptyRowsOp : public OpKernel {
default_value_t->shape().DebugString()));
// TODO(ebrevdo): add shape checks between values, indices,
// dense_shape. Also add check that dense rank > 0.
OP_REQUIRES(context, dense_shape_t.NumElements() != 0,
OP_REQUIRES(context, dense_shape_t->NumElements() != 0,
errors::InvalidArgument("Dense shape cannot be empty."));
const T& default_value = default_value_t->scalar<T>()();
const auto indices = indices_t->matrix<int64>();