mirror of
https://github.com/zebrajr/tensorflow.git
synced 2025-12-06 12:20:11 +01:00
Merge pull request #50064 from tensorflow/geetachavan1-patch-5
Fix Cherrypick issue
This commit is contained in:
commit
6ab3dc891b
|
|
@ -67,8 +67,7 @@ class SparseFillEmptyRowsOp : public OpKernel {
|
|||
// 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,
|
||||
errors::InvalidArgument("Dense shape cannot be empty."),
|
||||
done);
|
||||
errors::InvalidArgument("Dense shape cannot be empty."));
|
||||
const T& default_value = default_value_t->scalar<T>()();
|
||||
const auto indices = indices_t->matrix<int64>();
|
||||
const auto values = values_t->vec<T>();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user