ML Community Day is November 9! Join us for updates from TensorFlow, JAX, and more Learn more

Sparse Ops

Summary

Classes

tensorflow:: ops:: AddManySparseToTensorsMap

Add an N -minibatch SparseTensor to a SparseTensorsMap , return N handles.

tensorflow:: ops:: AddSparseToTensorsMap

Add a SparseTensor to a SparseTensorsMap return its handle.

tensorflow:: ops:: DeserializeManySparse

Deserialize and concatenate SparseTensors from a serialized minibatch.

tensorflow:: ops:: DeserializeSparse

Deserialize SparseTensor objects.

tensorflow:: ops:: SerializeManySparse

Serialize an N -minibatch SparseTensor into an [N, 3] Tensor object.

tensorflow:: ops:: SerializeSparse

Serialize a SparseTensor into a [3] Tensor object.

tensorflow:: ops:: SparseAdd

Adds two SparseTensor objects to produce another SparseTensor .

tensorflow:: ops:: SparseAddGrad

The gradient operator for the SparseAdd op.

tensorflow:: ops:: SparseConcat

Concatenates a list of SparseTensor along the specified dimension.

tensorflow:: ops:: SparseCross

Generates sparse cross from a list of sparse and dense tensors.

tensorflow:: ops:: SparseCrossHashed

Generates sparse cross from a list of sparse and dense tensors.

tensorflow:: ops:: SparseCrossV2

Generates sparse cross from a list of sparse and dense tensors.

tensorflow:: ops:: SparseDenseCwiseAdd

Adds up a SparseTensor and a dense Tensor , using these special rules:

tensorflow:: ops:: SparseDenseCwiseDiv

Component-wise divides a SparseTensor by a dense Tensor .

tensorflow:: ops:: SparseDenseCwiseMul

Component-wise multiplies a SparseTensor by a dense Tensor .

tensorflow:: ops:: SparseFillEmptyRows

Fills empty rows in the input 2-D SparseTensor with a default value.

tensorflow:: ops:: SparseFillEmptyRowsGrad

The gradient of SparseFillEmptyRows .

tensorflow:: ops:: SparseReduceMax

Computes the max of elements across dimensions of a SparseTensor.

tensorflow:: ops:: SparseReduceMaxSparse

Computes the max of elements across dimensions of a SparseTensor.

tensorflow:: ops:: SparseReduceSum

Computes the sum of elements across dimensions of a SparseTensor.

tensorflow:: ops:: SparseReduceSumSparse

Computes the sum of elements across dimensions of a SparseTensor.

tensorflow:: ops:: SparseReorder

Reorders a SparseTensor into the canonical, row-major ordering.

tensorflow:: ops:: SparseReshape

Reshapes a SparseTensor to represent values in a new dense shape.

tensorflow:: ops:: SparseSlice

Slice a SparseTensor based on the start and size .

tensorflow:: ops:: SparseSliceGrad

The gradient operator for the SparseSlice op.

tensorflow:: ops:: SparseSoftmax

Applies softmax to a batched N-D SparseTensor .

tensorflow:: ops:: SparseSparseMaximum

Returns the element-wise max of two SparseTensors.

tensorflow:: ops:: SparseSparseMinimum

Returns the element-wise min of two SparseTensors.

tensorflow:: ops:: SparseSplit

Split a SparseTensor into num_split tensors along one dimension.

tensorflow:: ops:: SparseTensorDenseAdd

Adds up a SparseTensor and a dense Tensor , producing a dense Tensor .

tensorflow:: ops:: SparseTensorDenseMatMul

Multiply SparseTensor (of rank 2) "A" by dense matrix "B".

tensorflow:: ops:: TakeManySparseFromTensorsMap

Converts a sparse representation into a dense tensor.