ermlpe_interaction
- ermlpe_interaction(h, r, t, mlp)[source]
Evaluate the ER-MLPE interaction function.
- Parameters
h (
FloatTensor
) – shape: (*batch_dims, dim) The head representations.r (
FloatTensor
) – shape: (*batch_dims, dim) The relation representations.t (
FloatTensor
) – shape: (*batch_dims, dim) The tail representations.mlp (
Module
) – The MLP.
- Return type
FloatTensor
- Returns
shape: batch_dims The scores.