rotate_interaction
- rotate_interaction(h, r, t)[source]
Evaluate the RotatE interaction function.
- Parameters
h (
FloatTensor
) – shape: (*batch_dims, 2*dim) The head representations.r (
FloatTensor
) – shape: (*batch_dims, 2*dim) The relation representations.t (
FloatTensor
) – shape: (*batch_dims, 2*dim) The tail representations.
- Return type
FloatTensor
- Returns
shape: batch_dims The scores.