finish chapter 13
This commit is contained in:
@@ -14,4 +14,9 @@ print('softmax numpy:', outputs)
|
||||
x = torch.tensor([2., 1., .1])
|
||||
outputs = torch.softmax(x, dim=0)
|
||||
print('inputs: ', x)
|
||||
print('softmax numpy:', outputs)
|
||||
print('softmax numpy:', outputs)
|
||||
|
||||
outputs2 = torch.softmax(outputs, dim=0)
|
||||
print('inputs: ', outputs)
|
||||
print('softmax numpy:', outputs2)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user