finish chapter 13

This commit is contained in:
Joseph Hopfmüller
2022-10-17 17:01:17 +02:00
parent 4d121641d1
commit 530bcae7e8
2 changed files with 111 additions and 1 deletions

View File

@@ -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)