Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make Transformers compilable by C++17 (pytorch#90389)
`register` keyword is removed in C++17, but keeping it there under ifdef as I have not measured the perf implication on older compiler, though there shouldn't be any: all modern compilers supposed to downright ignore it. This code originates from facebookresearch/xformers#375 will propose similar PR to remove register keyword usage to that repo. Yet another thing discovered while working on pytorch#85969 Pull Request resolved: pytorch#90389 Approved by: https://github.com/drisspg
- Loading branch information