google / XNNPACK

High-efficiency floating-point neural network inference operators for mobile, server, and Web
Other
1.89k stars 376 forks source link

Fix static_assert not be supported on VS2019. #7531

Closed xuhancn closed 3 days ago

xuhancn commented 3 days ago

My pervious PR to add build option to turn off libm, link: https://github.com/google/XNNPACK/pull/7522

After that, I tried to upgrade XNNPACK of PyTorch, but I found static_assert was not supported on MSVC 2019, error CI link: https://hud.pytorch.org/pr/141754.