Skip to content

hobrasoft/tensorrt-onehot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The repository implements OneHot layer needed for AttentionOCR.

https://github.com/tensorflow/models/tree/master/research/attention_ocr

The AttentionOCR model is converted to saved model and then to frozen model, some layers have to be removed (predicted_text) because the TensorRT does not support string datatype. Then the frozen model is converted to ONNX.

The ONNX's OneHot is implemented slightly differently then the TensorFlow1's OneHot. If you want to use the plugin in your code, please, change the DEPH in the onehot.cpp to your own value.

About

Implements OneHot plugin for Nvidia TensorRT

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published