[SmartCompose][OnDevice]fix function name bug in mobile export & Script to convert mobile model (#66915)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/66915
Pull Request resolved: https://github.com/pytorch/pytorch-canary/pull/3
fix function name bug in mobile export
Test Plan: buck run pytext/fb/assistant/smart_compose:mobile_converter -- --model_input=pytext_training/tree/teams/assistant/smart_compose/300555761/model.ts --model_output=pytext_training/tree/teams/assistant/smart_compose/300555761/mobile_model_test.ts
Reviewed By: JacobSzwejbka
Differential Revision: D31782983
fbshipit-source-id: 7288bb65adc7346d218980a535d68a12d8ef2033