diff --git a/RELEASENOTES.md b/RELEASENOTES.md index 66a3f45f6..f08558664 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -3,6 +3,10 @@ Releases, starting with 9/2/2021, are listed with the most recent release at the top. # NuGet Version 0.105.1 +__Breaking Changes__: + +.NET 6.0 is no longer supported. Due to .NET 7 reaching end of support soon, .NET 8.0 is now the minimum version. For .NET FX version support is still the same: 4.7.2 and higher. + __Bug Fixes__: #1426 Sequential.eval() does not put model into eval mode
diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 31be3493d..0cd93f0b2 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -48,7 +48,7 @@ jobs: name: Ubuntu_x64 # This reports the GLIB_ and GLIBCXX_ dependencies on the system which ends up getting baked into # the generated libTorchSharp.so (and partly determines which Linux systems that binary will - # be usable on), then installs clang-7.0 (LibTorch likes this for building C++ 14), then installs .NET 6.0 + # be usable on), then installs clang-7.0 (LibTorch likes this for building C++ 14), then installs .NET 8.0 prepScript: ${{ variables.LinuxPrepScript }} buildScript: dotnet build /p:SkipCuda=true -c testScript: dotnet test /p:SkipCuda=true --blame test/TorchSharpTest/TorchSharpTest.csproj -c @@ -107,7 +107,7 @@ jobs: displayName: 'Use .NET Core sdk' inputs: packageType: sdk - version: 6.0.402 + version: 8.x installationPath: $(Agent.ToolsDirectory)/dotnet - script: ${{ variables.LinuxPrepScript }} @@ -151,7 +151,7 @@ jobs: displayName: 'Use .NET Core sdk' inputs: packageType: sdk - version: 6.0.402 + version: 8.x installationPath: $(Agent.ToolsDirectory)/dotnet - script: dotnet build -c $(BuildConfig) src/Redist/libtorch-cpu/libtorch-cpu.proj /p:UpdateSHA=true /p:SkipTests=true /p:TargetOS=windows /t:Build /p:IncludeLibTorchCpuPackages=true @@ -421,7 +421,7 @@ jobs: displayName: 'Use .NET Core sdk' inputs: packageType: sdk - version: 6.x + version: 8.x installationPath: $(Agent.ToolsDirectory)/dotnet - script: ${{ variables.LinuxPrepScript }} diff --git a/build/ci/job-template.yml b/build/ci/job-template.yml index ad8e323b1..87fd2ebf2 100644 --- a/build/ci/job-template.yml +++ b/build/ci/job-template.yml @@ -30,7 +30,7 @@ jobs: displayName: 'Use .NET Core sdk' inputs: packageType: sdk - version: 6.x + version: 8.x installationPath: $(Agent.ToolsDirectory)/dotnet - script: $(_prepScript) displayName: Install build dependencies diff --git a/global.json b/global.json deleted file mode 100644 index c7d63ab06..000000000 --- a/global.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "sdk": { - "version": "6.0", - "rollForward": "minor", - "allowPrerelease": true - } -} \ No newline at end of file diff --git a/pkg/FileRestitcher/FileRestitcher.Tests/FileRestitcher.Tests.csproj b/pkg/FileRestitcher/FileRestitcher.Tests/FileRestitcher.Tests.csproj index 03a104299..9031faecc 100644 --- a/pkg/FileRestitcher/FileRestitcher.Tests/FileRestitcher.Tests.csproj +++ b/pkg/FileRestitcher/FileRestitcher.Tests/FileRestitcher.Tests.csproj @@ -1,13 +1,14 @@ - + + CS8981 false - net6.0 + net8.0 net472;$(TargetFrameworks) - net6.0 + net8.0 false diff --git a/pkg/FileRestitcher/FileRestitcher/FileRestitcher.csproj b/pkg/FileRestitcher/FileRestitcher/FileRestitcher.csproj index 3ab2bb061..0cc0a5b1d 100644 --- a/pkg/FileRestitcher/FileRestitcher/FileRestitcher.csproj +++ b/pkg/FileRestitcher/FileRestitcher/FileRestitcher.csproj @@ -1,6 +1,7 @@ + CS8981 false Library netstandard2.0 diff --git a/pkg/TorchAudio/TorchAudio.nupkgproj b/pkg/TorchAudio/TorchAudio.nupkgproj index 7ac14ee82..52735b7c6 100644 --- a/pkg/TorchAudio/TorchAudio.nupkgproj +++ b/pkg/TorchAudio/TorchAudio.nupkgproj @@ -1,7 +1,7 @@ - net6.0;netstandard2.0 + net8.0;netstandard2.0 .NET Bindings for TorchAudio. Requires reference to TorchSharp and one of libtorch-cpu, libtorch-cuda-$(CudaVersionDot), libtorch-cuda-$(CudaVersionDot)-win-x64 or libtorch-cuda-$(CudaVersionDot)-linux-x64 version $(LibTorchPackageVersion) to execute. @@ -10,9 +10,9 @@ - - - + + + diff --git a/pkg/TorchSharp-cpu/TorchSharp-cpu.nupkgproj b/pkg/TorchSharp-cpu/TorchSharp-cpu.nupkgproj index 0fdc42ff4..c731ebb0b 100644 --- a/pkg/TorchSharp-cpu/TorchSharp-cpu.nupkgproj +++ b/pkg/TorchSharp-cpu/TorchSharp-cpu.nupkgproj @@ -1,7 +1,7 @@ - + - net6.0;netstandard2.0 + net8.0;netstandard2.0 TorchSharp makes PyTorch available for .NET users. This package combines the TorchSharp package with LibTorch $(LibTorchVersion) CPU support. @@ -10,13 +10,13 @@ - + - - - + + + diff --git a/pkg/TorchSharp-cuda-linux/TorchSharp-cuda-linux.nupkgproj b/pkg/TorchSharp-cuda-linux/TorchSharp-cuda-linux.nupkgproj index c8caa6090..a8eb45e86 100644 --- a/pkg/TorchSharp-cuda-linux/TorchSharp-cuda-linux.nupkgproj +++ b/pkg/TorchSharp-cuda-linux/TorchSharp-cuda-linux.nupkgproj @@ -1,7 +1,7 @@ - + - net6.0 + net8.0 TorchSharp makes PyTorch available for .NET users. This package combines the TorchSharp package with LibTorch $(LibTorchVersion) CUDA $(CudaVersionDot) support for Linux. @@ -10,13 +10,13 @@ - + - - - + + + diff --git a/pkg/TorchSharp-cuda-windows/TorchSharp-cuda-windows.nupkgproj b/pkg/TorchSharp-cuda-windows/TorchSharp-cuda-windows.nupkgproj index 04923365e..44fd0ce78 100644 --- a/pkg/TorchSharp-cuda-windows/TorchSharp-cuda-windows.nupkgproj +++ b/pkg/TorchSharp-cuda-windows/TorchSharp-cuda-windows.nupkgproj @@ -1,7 +1,7 @@ - + - net6.0;netstandard2.0 + net8.0;netstandard2.0 TorchSharp makes PyTorch available for .NET users. This package combines the TorchSharp package with LibTorch $(LibTorchVersion) CUDA $(CudaVersionDot) support for Windows. @@ -10,13 +10,13 @@ - + - - - + + + diff --git a/pkg/TorchSharp/TorchSharp.nupkgproj b/pkg/TorchSharp/TorchSharp.nupkgproj index 03bda5b9b..ebaabc663 100644 --- a/pkg/TorchSharp/TorchSharp.nupkgproj +++ b/pkg/TorchSharp/TorchSharp.nupkgproj @@ -1,13 +1,13 @@ - net6.0;netstandard2.0 + net8.0;netstandard2.0 .NET Bindings for Torch. Requires reference to one of libtorch-cpu, libtorch-cuda-$(CudaVersionDot), libtorch-cuda-$(CudaVersionDot)-win-x64 or libtorch-cuda-$(CudaVersionDot)-linux-x64 version $(LibTorchPackageVersion) to execute. - - + + diff --git a/pkg/TorchVision/TorchVision.nupkgproj b/pkg/TorchVision/TorchVision.nupkgproj index f389e9b84..fd9446c25 100644 --- a/pkg/TorchVision/TorchVision.nupkgproj +++ b/pkg/TorchVision/TorchVision.nupkgproj @@ -1,7 +1,7 @@ - net6.0;netstandard2.0 + net8.0;netstandard2.0 .NET Bindings for TorchVision. Requires reference to TorchSharp and one of libtorch-cpu, libtorch-cuda-$(CudaVersionDot), libtorch-cuda-$(CudaVersionDot)-win-x64 or libtorch-cuda-$(CudaVersionDot)-linux-x64 version $(LibTorchPackageVersion) to execute. @@ -10,9 +10,9 @@ - - - + + + diff --git a/src/Examples.Utils/Examples.Utils.csproj b/src/Examples.Utils/Examples.Utils.csproj index f798b1389..30305ff81 100644 --- a/src/Examples.Utils/Examples.Utils.csproj +++ b/src/Examples.Utils/Examples.Utils.csproj @@ -1,10 +1,11 @@ + CS8981 9.0 - net6.0 + net8.0 @@ -17,7 +18,7 @@ - + diff --git a/src/Examples/Examples.csproj b/src/Examples/Examples.csproj index 3cb0bed27..43d79d94e 100644 --- a/src/Examples/Examples.csproj +++ b/src/Examples/Examples.csproj @@ -1,13 +1,14 @@ + CS8981 Exe true true 9.0 - net6.0 + net8.0 true false false diff --git a/src/FSharp.Examples/FSharp.Examples.fsproj b/src/FSharp.Examples/FSharp.Examples.fsproj index 6259714c5..6468ce393 100644 --- a/src/FSharp.Examples/FSharp.Examples.fsproj +++ b/src/FSharp.Examples/FSharp.Examples.fsproj @@ -5,7 +5,7 @@ true true - net6.0 + net8.0 true Examples FSharp.Examples diff --git a/src/TorchAudio/TorchAudio.csproj b/src/TorchAudio/TorchAudio.csproj index 2bf333a3d..8a390ad48 100644 --- a/src/TorchAudio/TorchAudio.csproj +++ b/src/TorchAudio/TorchAudio.csproj @@ -1,7 +1,8 @@ - net6.0;netstandard2.0 + CS8981 + net8.0;netstandard2.0 9.0 TorchAudio true diff --git a/src/TorchSharp/TorchSharp.csproj b/src/TorchSharp/TorchSharp.csproj index 5a102f34e..809e66e39 100644 --- a/src/TorchSharp/TorchSharp.csproj +++ b/src/TorchSharp/TorchSharp.csproj @@ -3,7 +3,8 @@ - net6.0;netstandard2.0 + CS8981 + net8.0;netstandard2.0 9.0 TorchSharp true diff --git a/src/TorchSharp/TorchSharp.csproj.DotSettings b/src/TorchSharp/TorchSharp.csproj.DotSettings index 218e312d3..07749306a 100644 --- a/src/TorchSharp/TorchSharp.csproj.DotSettings +++ b/src/TorchSharp/TorchSharp.csproj.DotSettings @@ -1,3 +1,3 @@ - + True True \ No newline at end of file diff --git a/src/TorchVision/TorchVision.csproj b/src/TorchVision/TorchVision.csproj index 3d9770a03..60eeeff82 100644 --- a/src/TorchVision/TorchVision.csproj +++ b/src/TorchVision/TorchVision.csproj @@ -1,7 +1,8 @@ - net6.0;netstandard2.0 + CS8981 + net8.0;netstandard2.0 9.0 TorchVision true diff --git a/test/Directory.Build.props b/test/Directory.Build.props index 896219d54..de003c15a 100644 --- a/test/Directory.Build.props +++ b/test/Directory.Build.props @@ -2,7 +2,7 @@ - net6.0 + net8.0 $(TargetFrameworks);net48 false true diff --git a/test/TorchSharpTest.WithCudaBinaries/TorchSharpTest.WithCudaBinaries.csproj b/test/TorchSharpTest.WithCudaBinaries/TorchSharpTest.WithCudaBinaries.csproj index caf2269a2..5412d70ff 100644 --- a/test/TorchSharpTest.WithCudaBinaries/TorchSharpTest.WithCudaBinaries.csproj +++ b/test/TorchSharpTest.WithCudaBinaries/TorchSharpTest.WithCudaBinaries.csproj @@ -1,11 +1,12 @@ + CS8981 - net6.0 + net8.0 net472;$(TargetFrameworks) - net6.0 + net8.0 true true false diff --git a/test/TorchSharpTest/TorchSharpTest.csproj b/test/TorchSharpTest/TorchSharpTest.csproj index 2de45fe06..2b5999f9a 100644 --- a/test/TorchSharpTest/TorchSharpTest.csproj +++ b/test/TorchSharpTest/TorchSharpTest.csproj @@ -1,12 +1,13 @@ + CS8981 - net6.0 + net8.0 net472;$(TargetFrameworks) - net6.0 + net8.0 true false false