When I try to use
reduction='none', I get the following error.
Now, there is no way I can pass
reduce as parameters to pytorch CTC Loss. I am assuming that these values must be ambiguous right now, hence the error.
Do we have anyway to pass these parameters through CTCLoss. My CTCLoss looks something like this -
torch.nn.CTCLoss(reduction=reduction, zero_infinity=zero_infinity, **kwargs)