Pytorch Module

What I could figure out is that static local functions are a C# 8 feature and C# 8 is not available for projects targeting .NET Framework 4.7.2. So why did it work on the first place and what can I do to make it compile on the build server?