Skip to content

Commit 22ffd6f

Browse files
committed
added type hints
1 parent 9f19281 commit 22ffd6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyreason/scripts/learning/classification/classifier.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import List
1+
from typing import List, Tuple
22

33
import torch.nn
44
import torch.nn.functional as F
@@ -37,7 +37,7 @@ def get_class_facts(self, t1: int, t2: int) -> List[Fact]:
3737
facts.append(fact)
3838
return facts
3939

40-
def forward(self, x, t1: int = 0, t2: int = 0):
40+
def forward(self, x, t1: int = 0, t2: int = 0) -> Tuple[torch.Tensor, torch.Tensor, List[Fact]]:
4141
"""
4242
Forward pass of the model
4343
:param x: Input tensor

0 commit comments

Comments
 (0)