add tensor and cost inference functions (#17684)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/17684
Adding tensor and cost inference functions to more int8 operators.
Reviewed By: yinghai
Differential Revision: D14174746
fbshipit-source-id: dfad975fa75899565c8fb61f1b7747a9206ebd22