Reference for tf.sparse.to_dense

Hello everyone, I’m researching Tensor Decomposition and I want to understand how I transform a dense Tensor into a Sparse Tensor, or how I can transform a Sparse Tensor into a Dense Tensor. then i found the tf.sparse_to_dense and I want some math reference for this method, can anyone help me?

Hi @Jefferson_Deyvis

Welcome to the TensorFlow Forum!

You can use TensorFlow APIs tf.sparse.to_dense() to convert a SparseTensor into a dense tensor and tf.sparse.from_dense() to convert a dense tensor into a sparse tensor.

Please refer to the mentioned links for more detailed understanding in this where some example codes given to describe about the computation. Thank you.