Sadly, it isn’t. I am using the Infersent model from FAIR 5.
X= model.encode(sentences, tokenize=True)
This will output an numpy array with n vectors of dimension 4096 (dimension of the sentence embeddings).
Hence, I need to wrap it to a Variable.