Module: tf.compat.v1.sparse

Sparse Tensor Representation.

See also tf.sparse.SparseTensor.


class SparseConditionalAccumulator: A conditional accumulator for aggregating sparse gradients.

class SparseTensor: Represents a sparse tensor.


add(...): Adds two tensors, at least one of each is a SparseTensor. (deprecated arguments)

bincount(...): Count the number of times an integer value appears in a tensor.

concat(...): Concatenates a list of SparseTensor along the specified dimension. (deprecated arguments)

cross(...): Generates sparse cross from a list of sparse and dense tensors.

cross_hashed(...): Generates hashed sparse cross from a list of sparse and dense tensors.

expand_dims(...): Returns a tensor with an length 1 axis inserted at index axis.

eye(...): Creates a two-dimensional sparse tensor with ones along the diagonal.

fill_empty_rows(...): Fills empty rows in the input 2-D SparseTensor with a default value.

from_dense(...): Converts a dense tensor into a sparse tensor.

mask(...): Masks elements of IndexedSlices.

matmul(...): Multiply SparseTensor (or dense Matrix) (of rank 2) "A" by de