Is there any Softmax implementation with sections along the dim (blocky Softmax) in PyTorch?

前端 未结 0 1747
难免孤独
难免孤独 2020-12-09 12:22

For example, given logits, dim, and boundary,

boundary = torch.tensor([[0, 3, 4, 8, 0]
                         [1, 3, 5, 7, 9]]

# representing sections look         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题