Skip to content

Commit 80d6fc8

Browse files
authored
Update MIRT.py
1 parent 70d8361 commit 80d6fc8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

EduCDM/MIRT/MIRT.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ def forward(self, user, item):
6060
else:
6161
a = F.softplus(a)
6262
b = torch.squeeze(self.b(item), dim=-1)
63-
if torch.max(theta != theta) or torch.max(a != a) or torch.max(b != b):
64-
# pragma: no cover
63+
if torch.max(theta != theta) or torch.max(a != a) or torch.max(b != b): # pragma: no cover
6564
raise ValueError('ValueError:theta,a,b may contains nan! The a_range is too large.')
6665
return self.irf(theta, a, b, **self.irf_kwargs)
6766

0 commit comments

Comments
 (0)