I want to improve my current code in order to improve the execution performance on my GPU so I am replacing the operations that it does not support to avoid delegating them to the CPU.
One of this operations is tf.sparse_to_dense. So, is there some way to create a Tensor (constant) from its indices and values as if it were an Sparse Tensor?
I made it work with workarounds like getting the array using numpy and then creating it with tensor = tf.constant(numpyarray)
but I was looking for an "only Tensorflow" approach.