[ONNX] Add warning for inplace updates on tensor.shape in tracing mode (#63170) (#66142)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/66142
* Add warning
* Lint and clang fixes
* Remove duplicate comments
* Added pitfalls section
* Modify sections
* Minor modifications
* Add underline to avoid doc build failures
Test Plan: Imported from OSS
Reviewed By: jansel
Differential Revision: D31424092
fbshipit-source-id: c83195f3c66885ad1aecde13b3029c45dd171dbd