TransformerPostProcess
This is the TransformerPostProcess model post-processing class, which is inherited from the text generation post-processing base class (TextGenerationPostProcessBase).
The Init(), DeInit(), and Process() APIs in TextGenerationPostProcessBase are reloaded. For details, see TextGenerationPostProcessBase.
It also reloads the GetCurrentVersion API of PostProcessBase to obtain the version number of the current postprocessing .so file and the assignment operator "=".
In addition, it implements the std::shared_ptr<MxBase::TransformerPostProcess> GetTextGenerationInstance() method to obtain the smart pointer instance of this class.
Parent topic: postprocess