kmkurn / pytorch-crf

(Linear-chain) Conditional random field in PyTorch.
https://pytorch-crf.readthedocs.io
MIT License
943 stars 152 forks source link

Support half precission #56

Closed fuzihaofzh closed 4 years ago

fuzihaofzh commented 4 years ago

This code not support half precision. This is because it directly use float() instead of using type_as