class M(nn.Module):
def __init__(self):
super().__init__()
self.l1 = nn.Linear(50*50,100)
self.l2 = nn.ReLU()
self.l3 = nn.Linear(100,100)
self.l4 = nn.Tanh()
self.l5 = nn.Linear(100,10)
self.l6 = nn.LogSoftmax()
Having module M, if I don’t set
self.l6 = nn.LogSoftmax(dim=0)
or
self.l6 = nn.LogSoftmax(dim=1)
I get the warning:
UserWarning: Implicit dimension choice for log_softmax has been deprecated. Change the call to include dim=X as an argument.
What does it mean to set dim=0
and what dim=1
?