For both sparse and dense dimensions, keep the number of them constant and the size of them non-shrinking, and then try the same call again. 2. Or, create a new sparse tensor with the correct indices and values from this sparse tensor.