mirror of
https://github.com/AntoineHX/smart_augmentation.git
synced 2025-05-04 12:10:45 +02:00
Test KL divergence from UDA
This commit is contained in:
parent
fa5bc72616
commit
217f94ef89
5 changed files with 52 additions and 28 deletions
|
@ -43,7 +43,8 @@ class LeNet(nn.Module):
|
|||
#print("Shape ", out.shape)
|
||||
out = F.linear(out, self._params["w4"], self._params["b4"])
|
||||
#print("Shape ", out.shape)
|
||||
return F.log_softmax(out, dim=1)
|
||||
#return F.log_softmax(out, dim=1)
|
||||
return out
|
||||
|
||||
def __getitem__(self, key):
|
||||
return self._params[key]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue