Update dper3 to use torch.nan_to_num and nan_to_num_ (#46873)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/46873
OSS:
Add op benchmark for torch.nan_to_num and torch.nan_to_num_
Test Plan:
OSS:
`buck run mode/opt caffe2/benchmarks/operator_benchmark/pt:nan_to_num_test`
Reviewed By: qizzzh, houseroad
Differential Revision: D24521835
fbshipit-source-id: 1fd50a99e5329ffec2d470525ce6976d39424958