Feeding XLM-R embeddings to neural machine translation?
You only got the indices in the XLM-R's vocabulary. This is the input to XLM-R, you need to actually run the model. By calling

model(tokens_tensor)


you get a tuple of tensors that are outputs of the model. Check the documentation for the outputs are.