Open ccx1997 opened 4 years ago
I want the ctc loss_fn to return a tensor (with shape as [batch]) containing every loss in a batch, like the parameter reduction of CTCloss in Pytorch: ctcloss = torch.nn.CTCLoss(reduction='none') How can I do?
reduction
ctcloss = torch.nn.CTCLoss(reduction='none')
I want the ctc loss_fn to return a tensor (with shape as [batch]) containing every loss in a batch, like the parameter
reduction
of CTCloss in Pytorch:ctcloss = torch.nn.CTCLoss(reduction='none')
How can I do?