pytorch/docs
Scott Wolchok 2f74cffab2 Remove reinterpret_casts with undefined behavior from stable/library.h (#151595)
There is a list of valid uses of `reinterpret_cast` (see https://en.cppreference.com/w/cpp/language/reinterpret_cast), and the use here was not on the list, hence undefined behavior. Implement what we meant using memcpy, which is well-defined.

Differential Revision: [D73200791](https://our.internmc.facebook.com/intern/diff/D73200791/)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/151595
Approved by: https://github.com/janeyx99
2025-04-22 20:24:47 +00:00
..
cpp Migrate to new theme (#149331) 2025-04-16 21:35:19 +00:00
source Remove reinterpret_casts with undefined behavior from stable/library.h (#151595) 2025-04-22 20:24:47 +00:00
.gitignore
libtorch.rst Add ROCm documentation to libtorch (C++) reST. (#136378) 2024-09-25 02:30:56 +00:00
make.bat
Makefile Add scripts to generate plots of LRSchedulers (#149189) 2025-04-14 09:53:38 +00:00
README.md
requirements.txt Fix doc requirements install error (#151787) 2025-04-22 18:33:44 +00:00

Please see the Writing documentation section of CONTRIBUTING.md for details on both writing and building the docs.