When I try to use  torch.nn.CTCLoss , with  reduction='none' , I get the following error.

39%20PM1280×960 169 KB

Now, there is no way I can pass  size_average  and  reduce  as parameters to pytorch CTC Loss. I am assuming that these values must be ambiguous right now, hence the error.
Any suggestions?
Do we have anyway to pass these parameters through CTCLoss so that they are not ambiguous?
My CTCLoss looks something like this:
torch.nn.CTCLoss(reduction='sum', zero_infinity=True, **kwargs)