[quant][be] Refactor the error checking code for quantize_per_channel op (#89271)
Summary:
at
Test Plan:
make sure it compiles
Reviewers:
Subscribers:
Tasks:
Tags:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/89271
Approved by: https://github.com/andrewor14