zhongkaifu / Seq2SeqSharp

Seq2SeqSharp is a tensor based fast & flexible deep neural network framework written by .NET (C#). It has many highlighted features, such as automatic differentiation, different network types (Transformer, LSTM, BiLSTM and so on), multi-GPUs supported, cross-platforms (Windows, Linux, x86, x64, ARM), multimodal model for text and images and so on.
Other
193 stars 38 forks source link

Error: C# 8.0 language feature #56

Closed grant541 closed 1 year ago

grant541 commented 1 year ago

I am trying to load the .sln and have .Net Core and VS 2019 installed, I have adjusted targets in all .csproj file to <TargetFramework>net4.0</TargetFramework>

But in some files (eg. MoEFeedForward.cs line #62) there are using statements that are not compatible with the earlier frameworks, yet it is mentioned directly in the project description that earlier .net versions are supported. Can I use Seq2SeqSharp with .net 4?

zhongkaifu commented 1 year ago

If you would like to use earlier .net version, you have to make some changes for back compatible, such as "using" statements -> "using(...) {}" block.

Is there any reason that you don't want to use .NET 6.0 ?