message: Add missing validation to `AddManySparseToTensorsMap`.
  Sparse tensors have a set of requirements for the 3 components and not all of them were checked.
diff: @@ -231,16 +231,29 @@ class AddManySparseToTensorsMapOp : public SparseTensorAccessingOp {
  errors::InvalidArgument(
  "Input indices should be a matrix but received shape ",
  input_indices->shape().DebugString()));
  -
  OP_REQUIRES(context, TensorShapeUtils::IsVector(input_values->shape()),
  errors::InvalidArgument(
  "Input values should be a vector but received shape ",
  input_values->shape().DebugString()));
  -
  OP_REQUIRES(context, TensorShapeUtils::IsVector(input_shape->shape()),
  errors::InvalidArgument(
  "Input shape should be a vector but received shape ",
  input_shape->shape().DebugString()));
  + OP_REQUIRES(
  + context,
  + input_values->shape().dim_size(0) == input_indices->shape().dim_size(0),
  + errors::InvalidArgument(
  + "Number of values must match first dimension of indices. ", "Got ",
  + input_values->shape().dim_size(0),
  + " values, indices shape: ", input_indices->shape().DebugString()));
  + OP_REQUIRES(
  + context,
  + input_shape->shape().dim_size(0) == input_indices->shape().dim_size(1),
  + errors::InvalidArgument(
  + "Number of dimensions must match second dimension of indices. ",
  + "Got ", input_shape->shape().dim_size(0),
  + " dimensions, indices shape: ",
  + input_indices->shape().DebugString()));
  int rank = input_shape->NumElements();
  