Use FunctionSchema instead of char* for dispatch
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/27159
Test Plan: Imported from OSS
Differential Revision: D17693481
Pulled By: bwasti
fbshipit-source-id: cb8e21d4b8d29dcc1cd75cb6b681986679b835fe