[ONNX] Add symbolic support for torch.nn.cosinesimilarity (#72128) (#73283)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/73283
* Add support for torch.nn.cosine_similarity
* Remove fallback logic
* Fix onnx test failures
* Fix opset version
* Modify rtol
* Add aten fallback mode
* fix mypy
* gate with caffe2 fallback
Test Plan: Imported from OSS
Reviewed By: jbschlosser
Differential Revision: D34625650
Pulled By: malfet
fbshipit-source-id: bf15d32b1d7055d0ca166d9941ba90b5c8e81cc2
(cherry picked from commit 7086031c52e1bea9bead6966d44e2635060194db)