(heads, relations, tails)
| 117 | |
| 118 | @staticmethod |
| 119 | def SimplE(heads, relations, tails): |
| 120 | dim = heads.size(1) // 2 |
| 121 | |
| 122 | tails = tails.view(-1, dim, 2).flip(2).view(-1, dim * 2) |
| 123 | |
| 124 | x = heads * relations * tails |
| 125 | score = x.sum(dim=1) |
| 126 | return score |
| 127 | |
| 128 | @staticmethod |
| 129 | def QuatE(heads, relations, tails): |
nothing calls this directly
no outgoing calls
no test coverage detected