From what I’ve read it appears that support for sparse tensors is still relatively unsupported, so I don’t have a ton of confidence that this is possible, but is it possible to construct a sparse tensor from a Variable? If this isn’t possible, how could I take a list of indices of length N, a list of values of length N, and put the nth value into the corresponding nth index of some new tensor?
Essentially I’m looking for an equivalent to the sparse tensor construction, but where the values can be Variable.