mirror of
https://github.com/zebrajr/tensorflow.git
synced 2025-12-06 12:20:11 +01:00
Merge pull request #50007 from geetachavan1/cherrypicks_IEK76
CherryPick2.2:Fix heap-buffer-overflow issue with tf.raw_ops.SparseFillEmptyRows.
This commit is contained in:
commit
f3138b56e5
|
|
@ -69,7 +69,10 @@ 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.
|
||||
|
||||
// Also add check that dense rank > 0.
|
||||
OP_REQUIRES(context, dense_shape_t.NumElements() != 0,
|
||||
errors::InvalidArgument("Dense shape cannot be empty."),
|
||||
done);
|
||||
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