Skip to content

Commit 70d8361

Browse files
authored
Update IRT.py
1 parent 83b7776 commit 70d8361

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

EduCDM/IRT/GD/IRT.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ def forward(self, user, item):
3838
a = self.a_range * torch.sigmoid(a)
3939
else:
4040
a = F.softplus(a)
41-
if torch.max(theta != theta) or torch.max(a != a) or torch.max(b != b):
42-
# pragma: no cover
41+
if torch.max(theta != theta) or torch.max(a != a) or torch.max(b != b): # pragma: no cover
4342
raise ValueError('ValueError:theta,a,b may contains nan! The value_range or a_range is too large.')
4443
return self.irf(theta, a, b, c, **self.irf_kwargs)
4544

0 commit comments

Comments
 (0)