tf.raw_ops.SparseMatrixZeros

Creates an all-zeros CSRSparseMatrix with shape dense_shape.

tf.raw_ops.SparseMatrixZeros(
    dense_shape, type, name=None
)

Args:

  • dense_shape: A Tensor of type int64. The desired matrix shape.
  • type: A tf.DType from: tf.float32, tf.float64, tf.complex64, tf.complex128.
  • name: A name for the operation (optional).

Returns:

A Tensor of type variant.