Get scalar type from observer module (#26425)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/26425
Currently the scalar type is hardcoded for weight and normal tensor
but what we want is to get it from corresponding observer module
Test Plan:
there are some known issues right now,
will test e2e later when all the issues are fixed
Imported from OSS
Differential Revision: D17504459
fbshipit-source-id: f5a21789c2ebeb60bff4acc777db80170063c9f8