pytorch
b95ae290 - Convert toOpMathType to an inline function, to fix test breakages (#81463)

Commit
2 years ago
Convert toOpMathType to an inline function, to fix test breakages (#81463) Summary: Ideally function implementations in headers should be inline, class functions, or moved into cpp files. Otherwise we'll end up with errors when these headers are imported into targets that break on unused function warnings. This header was recently imported into the PyTorchPlaygroundTests target, breaking it. Making this function inline unbreaks these tests. Related discussion: https://fb.workplace.com/groups/474291069286180/permalink/5228784980503408/ Test Plan: Build and run tests. Differential Revision: D37850416 Pull Request resolved: https://github.com/pytorch/pytorch/pull/81463 Approved by: https://github.com/ngimel
Author
Committer
Parents
Loading