jpuigcerver/pytorch-baidu-ctc

ValueError: Unsupported reduction type None

Closed this issue · 1 comments

kei6 commented

I've faced with this issue and still stuck at this.
Can you help to fix? Thanks a lot

  File "/home/ocr/anaconda3/envs/pika/lib/python3.6/site-packages/torch/nn/modules/module.py", line 489, in __call__
    result = self.forward(*input, **kwargs)
  File "/home/ocr/anaconda3/envs/pika/lib/python3.6/site-packages/torch_baidu_ctc/__init__.py", line 167, in forward
    blank=self.blank,
  File "/home/ocr/anaconda3/envs/pika/lib/python3.6/site-packages/torch_baidu_ctc/__init__.py", line 117, in ctc_loss
    raise ValueError("Unsupported reduction type {!r}".format(reduction))
ValueError: Unsupported reduction type None

Fixed with 45356ef. I'm not generating new packages for PyTorch 1.0, though. I will create a new version with PyTorch 1.1, the new stable version.