mirror of
https://github.com/zebrajr/pytorch.git
synced 2026-01-15 12:15:51 +00:00
The duplicate registration test case shown in the figure below has always failed.3d165dc3f3/test/test_cpp_extensions_open_device_registration.py (L171-L173)3d165dc3f3/aten/src/ATen/core/GeneratorForPrivateuseone.h (L36-L37)Because there is a static variable in the ```self.module.register_generator()``` function, it will only be initialized once. Pull Request resolved: https://github.com/pytorch/pytorch/pull/106536 Approved by: https://github.com/albanD