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