Skip to content

Commit dded585

Browse files
authored
Merge pull request #1 from clpl/patch-1
Fix pi
2 parents 3b9e7e7 + a0a3cf7 commit dded585

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codes/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def ComplEx(self, head, relation, tail, mode):
198198
return score
199199

200200
def RotatE(self, head, relation, tail, mode):
201-
pi = 3.14159262358979323846
201+
pi = 3.14159265358979323846
202202

203203
re_head, im_head = torch.chunk(head, 2, dim=2)
204204
re_tail, im_tail = torch.chunk(tail, 2, dim=2)

0 commit comments

Comments
 (0)