Extracted quantize/dequantize out of linear.
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/29173
Test Plan: Imported from OSS
Differential Revision: D18318561
Pulled By: z-a-f
fbshipit-source-id: 89317bb5f56e31221ed9ed02bf727ce39f44ebf8