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


Converts a SparseTensor into a dense tensor and sets its shape.

x A SparseTensor.
shape The desired shape of the densified Tensor.
default_value (Optional) Value to set for indices not specified. Defaults to zero.

A Tensor with the desired shape.

ValueError If input is not a SparseTensor.