replace std::clamp with shim (#41855)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/41855
replace std::clamp with shim
Test Plan: test_op_nnpi_fp16.py covers the testing.
Reviewed By: hyuen
Differential Revision: D22667645
fbshipit-source-id: 5e7c94b499f381bde73f1984a6f0d01fb962a671