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