Holmeyoung / crnn-pytorch

Pytorch implementation of CRNN (CNN + RNN + CTCLoss) for all language OCR.
MIT License
378 stars 105 forks source link

why use Variable to transform Tensor #36

Closed Loovelj closed 4 years ago

Loovelj commented 4 years ago

Hello,thans for your sosution , but I'm a little confused about the Variable ,for exalple:

preds_size = Variable(torch.LongTensor([preds.size(0)] * batch_size))

I think pytorch has abandoned the Variable when version greater than 1.0.0