crf = CRF(5, batch_first=True) score = torch.randn(1, 3, 5) target = torch.tensor([ [1, 2, -100], ], dtype=torch.long) mask = torch.tensor([ [1, 1, ...
確定! 回上一頁