How is used?

I am reading a implementation of TranE model but don’t understand the following part:
After training, it uses the following code as input to evaluation part:

ent_embeddings =
rel_embeddings =
tem_embeddings =

In evaluation part, it uses:

    h_e = ent_embeddings[headList]
    t_e = ent_embeddings[tailList]
    r_e = rel_embeddings[relList]

Why is it used like that? I think ent_embeddings are just weights instead of operations?
And if I want to use a LSTM model to generate r_e, I couldn’t use lstm_embeddings = But is there similar ways I could use LSTM to operate on CPU?