graph mode: refactor quantized hardswish API for easier graph handling (#37523)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/37523
Makes the quantized hardswish function API more suited to graph mode
handling, which will come in the next PR.
Test Plan:
CI
Imported from OSS
Differential Revision: D21310364
fbshipit-source-id: 0d438dce5b87481d558c07bcccd9fe717200b4dc