import torch def unstable_softmax(logits): exp = torch.exp(logits) return exp / torch.sum(exp) print(unstable_softmax(torch.tensor([1000., 0.])) ...
確定! 回上一頁