From 01b117a612894f8fd57ae5c86c20441c0b1fee23 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Thu, 23 Jan 2025 12:56:31 +0200 Subject: [PATCH 1/8] basic .net6 to .net8 updates --- global.json | 4 +--- .../FileRestitcher.Tests/FileRestitcher.Tests.csproj | 6 +++--- pkg/TorchSharp-cpu/TorchSharp-cpu.nupkgproj | 12 ++++++------ .../TorchSharp-cuda-linux.nupkgproj | 12 ++++++------ .../TorchSharp-cuda-windows.nupkgproj | 12 ++++++------ pkg/TorchSharp/TorchSharp.nupkgproj | 6 +++--- pkg/TorchVision/TorchVision.nupkgproj | 8 ++++---- src/Examples.Utils/Examples.Utils.csproj | 2 +- src/Examples/Examples.csproj | 2 +- src/FSharp.Examples/FSharp.Examples.fsproj | 2 +- src/TorchAudio/TorchAudio.csproj | 2 +- src/TorchSharp/TorchSharp.csproj | 2 +- src/TorchVision/TorchVision.csproj | 2 +- test/Directory.Build.props | 2 +- .../TorchSharpTest.WithCudaBinaries.csproj | 4 ++-- test/TorchSharpTest/TorchSharpTest.csproj | 4 ++-- 16 files changed, 40 insertions(+), 42 deletions(-) diff --git a/global.json b/global.json index c7d63ab06..51ea768a3 100644 --- a/global.json +++ b/global.json @@ -1,7 +1,5 @@ { "sdk": { - "version": "6.0", - "rollForward": "minor", - "allowPrerelease": true + "version": "8.0.405" } } \ 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..5fba4d263 100644 --- a/pkg/FileRestitcher/FileRestitcher.Tests/FileRestitcher.Tests.csproj +++ b/pkg/FileRestitcher/FileRestitcher.Tests/FileRestitcher.Tests.csproj @@ -1,13 +1,13 @@ - + false - net6.0 + net8.0 net472;$(TargetFrameworks) - net6.0 + net8.0 false 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..29219a770 100644 --- a/src/Examples.Utils/Examples.Utils.csproj +++ b/src/Examples.Utils/Examples.Utils.csproj @@ -4,7 +4,7 @@ 9.0 - net6.0 + net8.0 diff --git a/src/Examples/Examples.csproj b/src/Examples/Examples.csproj index 3cb0bed27..0d2053a31 100644 --- a/src/Examples/Examples.csproj +++ b/src/Examples/Examples.csproj @@ -7,7 +7,7 @@ 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..8720ecb2a 100644 --- a/src/TorchAudio/TorchAudio.csproj +++ b/src/TorchAudio/TorchAudio.csproj @@ -1,7 +1,7 @@ - net6.0;netstandard2.0 + net8.0;netstandard2.0 9.0 TorchAudio true diff --git a/src/TorchSharp/TorchSharp.csproj b/src/TorchSharp/TorchSharp.csproj index 5a102f34e..2d227e2c8 100644 --- a/src/TorchSharp/TorchSharp.csproj +++ b/src/TorchSharp/TorchSharp.csproj @@ -3,7 +3,7 @@ - net6.0;netstandard2.0 + net8.0;netstandard2.0 9.0 TorchSharp true diff --git a/src/TorchVision/TorchVision.csproj b/src/TorchVision/TorchVision.csproj index 3d9770a03..689f3ceec 100644 --- a/src/TorchVision/TorchVision.csproj +++ b/src/TorchVision/TorchVision.csproj @@ -1,7 +1,7 @@ - net6.0;netstandard2.0 + 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..d05d33055 100644 --- a/test/TorchSharpTest.WithCudaBinaries/TorchSharpTest.WithCudaBinaries.csproj +++ b/test/TorchSharpTest.WithCudaBinaries/TorchSharpTest.WithCudaBinaries.csproj @@ -3,9 +3,9 @@ - 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..326f1c8d8 100644 --- a/test/TorchSharpTest/TorchSharpTest.csproj +++ b/test/TorchSharpTest/TorchSharpTest.csproj @@ -4,9 +4,9 @@ - net6.0 + net8.0 net472;$(TargetFrameworks) - net6.0 + net8.0 true false false From d4352dba696f4c3b8f6934a2051a89232461f938 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Thu, 23 Jan 2025 15:55:02 +0200 Subject: [PATCH 2/8] test net8 --- .../FileRestitcher.Tests.csproj | 1 + .../FileRestitcher/FileRestitcher.csproj | 1 + pkg/TorchAudio/CompatibilitySuppressions.xml | 53 ++ pkg/TorchAudio/TorchAudio.nupkgproj | 8 +- pkg/TorchSharp/CompatibilitySuppressions.xml | 648 ++++++++++++++++++ pkg/TorchVision/CompatibilitySuppressions.xml | 53 ++ src/Examples.Utils/Examples.Utils.csproj | 1 + src/Examples/Examples.csproj | 1 + src/TorchAudio/TorchAudio.csproj | 1 + src/TorchSharp/TorchSharp.csproj | 1 + src/TorchSharp/TorchSharp.csproj.DotSettings | 2 +- src/TorchVision/TorchVision.csproj | 1 + .../TorchSharpTest.WithCudaBinaries.csproj | 1 + test/TorchSharpTest/TorchSharpTest.csproj | 1 + 14 files changed, 768 insertions(+), 5 deletions(-) create mode 100644 pkg/TorchAudio/CompatibilitySuppressions.xml create mode 100644 pkg/TorchSharp/CompatibilitySuppressions.xml create mode 100644 pkg/TorchVision/CompatibilitySuppressions.xml diff --git a/pkg/FileRestitcher/FileRestitcher.Tests/FileRestitcher.Tests.csproj b/pkg/FileRestitcher/FileRestitcher.Tests/FileRestitcher.Tests.csproj index 5fba4d263..9031faecc 100644 --- a/pkg/FileRestitcher/FileRestitcher.Tests/FileRestitcher.Tests.csproj +++ b/pkg/FileRestitcher/FileRestitcher.Tests/FileRestitcher.Tests.csproj @@ -1,6 +1,7 @@ + CS8981 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/CompatibilitySuppressions.xml b/pkg/TorchAudio/CompatibilitySuppressions.xml new file mode 100644 index 000000000..1745d46a0 --- /dev/null +++ b/pkg/TorchAudio/CompatibilitySuppressions.xml @@ -0,0 +1,53 @@ + + + + + CP0008 + T:TorchSharp.torchaudio.AudioEncoding + lib/net6.0/TorchAudio.dll + lib/netstandard2.0/TorchAudio.dll + true + + + CP0008 + T:TorchSharp.torchaudio.AudioFormat + lib/net6.0/TorchAudio.dll + lib/netstandard2.0/TorchAudio.dll + true + + + CP0008 + T:TorchSharp.torchaudio.DCTNorm + lib/net6.0/TorchAudio.dll + lib/netstandard2.0/TorchAudio.dll + true + + + CP0008 + T:TorchSharp.torchaudio.MelNorm + lib/net6.0/TorchAudio.dll + lib/netstandard2.0/TorchAudio.dll + true + + + CP0008 + T:TorchSharp.torchaudio.MelScale + lib/net6.0/TorchAudio.dll + lib/netstandard2.0/TorchAudio.dll + true + + + CP0008 + T:TorchSharp.torchaudio.models.FeatureExtractorNormMode + lib/net6.0/TorchAudio.dll + lib/netstandard2.0/TorchAudio.dll + true + + + CP0008 + T:TorchSharp.torchaudio.ResamplingMethod + lib/net6.0/TorchAudio.dll + lib/netstandard2.0/TorchAudio.dll + true + + \ No newline at end of file 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/CompatibilitySuppressions.xml b/pkg/TorchSharp/CompatibilitySuppressions.xml new file mode 100644 index 000000000..13c774009 --- /dev/null +++ b/pkg/TorchSharp/CompatibilitySuppressions.xml @@ -0,0 +1,648 @@ + + + + + CP0002 + M:TorchSharp.Modules.Sequential.get_SequentialItems(System.Range) + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0002 + M:TorchSharp.Modules.Sequential`2.get_SequentialItems(System.Range) + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0002 + M:TorchSharp.Modules.Sequential`3.get_SequentialItems(System.Range) + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0002 + M:TorchSharp.Modules.Sequential`4.get_SequentialItems(System.Range) + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0002 + M:TorchSharp.Modules.Sequential`5.get_SequentialItems(System.Range) + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0002 + M:TorchSharp.Modules.Sequential`6.get_SequentialItems(System.Range) + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0002 + M:TorchSharp.Modules.Sequential`7.get_SequentialItems(System.Range) + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0002 + M:TorchSharp.Scalar.op_Implicit(System.Half)~TorchSharp.Scalar + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0002 + M:TorchSharp.ScalarExtensionMethods.ToHalf(TorchSharp.Scalar) + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0002 + M:TorchSharp.ScalarExtensionMethods.ToScalar(System.Half) + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0002 + M:TorchSharp.TensorExtensionMethods.ToHalf(TorchSharp.torch.Tensor) + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0002 + M:TorchSharp.torch.Storage`1.get_Item(System.Range) + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0002 + M:TorchSharp.torch.Storage`1.set_Item(System.Range,TorchSharp.torch.Storage{`0}) + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0002 + M:TorchSharp.torch.tensor(System.Collections.Generic.IList{System.Half},System.Int64,System.Int64,System.Int64,System.Int64,System.Nullable{TorchSharp.torch.ScalarType},TorchSharp.torch.Device,System.Boolean,System.String[]) + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0002 + M:TorchSharp.torch.tensor(System.Collections.Generic.IList{System.Half},System.Int64,System.Int64,System.Int64,System.Nullable{TorchSharp.torch.ScalarType},TorchSharp.torch.Device,System.Boolean,System.String[]) + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0002 + M:TorchSharp.torch.tensor(System.Collections.Generic.IList{System.Half},System.Int64,System.Int64,System.Nullable{TorchSharp.torch.ScalarType},TorchSharp.torch.Device,System.Boolean,System.String[]) + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0002 + M:TorchSharp.torch.tensor(System.Collections.Generic.IList{System.Half},System.Nullable{TorchSharp.torch.ScalarType},TorchSharp.torch.Device,System.Boolean,System.String[]) + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0002 + M:TorchSharp.torch.tensor(System.Collections.Generic.IList{System.Half},System.ReadOnlySpan{System.Int64},System.Nullable{TorchSharp.torch.ScalarType},TorchSharp.torch.Device,System.Boolean,System.String[]) + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0002 + M:TorchSharp.torch.tensor(System.Half[],System.Nullable{TorchSharp.torch.ScalarType},TorchSharp.torch.Device,System.Boolean,System.String[]) + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0002 + M:TorchSharp.torch.tensor(System.Half[],System.ReadOnlySpan{System.Int64},System.Nullable{TorchSharp.torch.ScalarType},TorchSharp.torch.Device,System.Boolean,System.String[]) + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0002 + M:TorchSharp.torch.tensor(System.Half[0:,0:,0:,0:],System.Nullable{TorchSharp.torch.ScalarType},TorchSharp.torch.Device,System.Boolean,System.String[]) + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0002 + M:TorchSharp.torch.tensor(System.Half[0:,0:,0:],System.Nullable{TorchSharp.torch.ScalarType},TorchSharp.torch.Device,System.Boolean,System.String[]) + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0002 + M:TorchSharp.torch.tensor(System.Half[0:,0:],System.Nullable{TorchSharp.torch.ScalarType},TorchSharp.torch.Device,System.Boolean,System.String[]) + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0002 + M:TorchSharp.torch.tensor(System.Memory{System.Half},System.ReadOnlySpan{System.Int64},System.Nullable{TorchSharp.torch.ScalarType},TorchSharp.torch.Device,System.Boolean,System.String[]) + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0002 + M:TorchSharp.torch.TensorIndex.op_Implicit(System.Index)~TorchSharp.torch.TensorIndex + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0002 + M:TorchSharp.torch.TensorIndex.op_Implicit(System.Range)~TorchSharp.torch.TensorIndex + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0002 + M:TorchSharp.torch.TensorIndex.Slice(System.Range) + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:Tensorboard.ApiDef.Types.Visibility + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:Tensorboard.AttrValue.ValueOneofCase + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:Tensorboard.CollectionDef.KindOneofCase + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:Tensorboard.ConfigProto.Types.Experimental.Types.MlirBridgeRollout + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:Tensorboard.DataClass + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:Tensorboard.DataType + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:Tensorboard.Event.WhatOneofCase + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:Tensorboard.FullTypeDef.AttrOneofCase + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:Tensorboard.FullTypeId + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:Tensorboard.FunctionSpec.Types.JitCompile + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:Tensorboard.LogMessage.Types.Level + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:Tensorboard.OptimizerOptions.Types.GlobalJitLevel + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:Tensorboard.OptimizerOptions.Types.Level + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:Tensorboard.RewriterConfig.Types.CpuLayout + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:Tensorboard.RewriterConfig.Types.MemOptType + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:Tensorboard.RewriterConfig.Types.NumIterationsType + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:Tensorboard.RewriterConfig.Types.Toggle + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:Tensorboard.RunOptions.Types.TraceLevel + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:Tensorboard.SavedObject.KindOneofCase + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:Tensorboard.SaverDef.Types.CheckpointFormatVersion + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:Tensorboard.SessionLog.Types.SessionStatus + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:Tensorboard.StructuredValue.KindOneofCase + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:Tensorboard.Summary.Types.Value.ValueOneofCase + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:Tensorboard.TensorInfo.EncodingOneofCase + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:Tensorboard.TypeSpecProto.Types.TypeSpecClass + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:Tensorboard.VariableAggregation + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:Tensorboard.VariableSynchronization + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:Tensorboard.VerifierConfig.Types.Toggle + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:Tensorboard.WorkerHealth + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:Tensorboard.WorkerShutdownMode + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:TorchSharp.compute_mode + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:TorchSharp.DebugMode + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:TorchSharp.DeviceType + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:TorchSharp.EmbeddingBagMode + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:TorchSharp.FFTNormType + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:TorchSharp.Float32MatmulPrecision + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:TorchSharp.HistogramBinSelector + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:TorchSharp.indexing + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:TorchSharp.layout + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:TorchSharp.LobpcgMethod + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:TorchSharp.memory_format + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:TorchSharp.Modules.OptimizerHelper.TypeCode + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:TorchSharp.Modules.TransformerEncoder.Activations + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:TorchSharp.Padding + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:TorchSharp.PaddingModes + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:TorchSharp.PrintOptionsProfile + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:TorchSharp.Reduce + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:TorchSharp.TensorStringStyle + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:TorchSharp.torch.GridSampleMode + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:TorchSharp.torch.GridSamplePaddingMode + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:TorchSharp.torch.InterpolationMode + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:TorchSharp.torch.linalg.QRMode + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:TorchSharp.torch.LobpcgMethod + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:TorchSharp.torch.nn.Activations + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:TorchSharp.torch.nn.init.FanInOut + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:TorchSharp.torch.nn.init.NonlinearityType + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:TorchSharp.torch.nn.NonLinearities + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:TorchSharp.torch.nn.Reduction + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:TorchSharp.torch.optim.lr_scheduler.impl.CyclicLR.Mode + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:TorchSharp.torch.optim.lr_scheduler.impl.CyclicLR.ScaleMode + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:TorchSharp.torch.optim.lr_scheduler.impl.OneCycleLR.AnnealStrategy + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:TorchSharp.torch.RoundingMode + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:TorchSharp.torch.ScalarType + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:TorchSharp.torch.UpsampleMode + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + + CP0008 + T:TorchSharp.Utils.tensorboard.Enums.HistogramBinSelector + lib/net6.0/TorchSharp.dll + lib/netstandard2.0/TorchSharp.dll + true + + \ No newline at end of file diff --git a/pkg/TorchVision/CompatibilitySuppressions.xml b/pkg/TorchVision/CompatibilitySuppressions.xml new file mode 100644 index 000000000..47b6223e1 --- /dev/null +++ b/pkg/TorchVision/CompatibilitySuppressions.xml @@ -0,0 +1,53 @@ + + + + + CP0008 + T:TorchSharp.torchvision.autoaugment.AutoAugmentPolicy + lib/net6.0/TorchVision.dll + lib/netstandard2.0/TorchVision.dll + true + + + CP0008 + T:TorchSharp.torchvision.autoaugment.opType + lib/net6.0/TorchVision.dll + lib/netstandard2.0/TorchVision.dll + true + + + CP0008 + T:TorchSharp.torchvision.datasets.CelebADatasetSplit + lib/net6.0/TorchVision.dll + lib/netstandard2.0/TorchVision.dll + true + + + CP0008 + T:TorchSharp.torchvision.ImageFormat + lib/net6.0/TorchVision.dll + lib/netstandard2.0/TorchVision.dll + true + + + CP0008 + T:TorchSharp.torchvision.io.ImageReadMode + lib/net6.0/TorchVision.dll + lib/netstandard2.0/TorchVision.dll + true + + + CP0008 + T:TorchSharp.torchvision.ops.BoxFormats + lib/net6.0/TorchVision.dll + lib/netstandard2.0/TorchVision.dll + true + + + CP0008 + T:TorchSharp.torchvision.StochasticDepth.Mode + lib/net6.0/TorchVision.dll + lib/netstandard2.0/TorchVision.dll + true + + \ No newline at end of file diff --git a/src/Examples.Utils/Examples.Utils.csproj b/src/Examples.Utils/Examples.Utils.csproj index 29219a770..48e6b502b 100644 --- a/src/Examples.Utils/Examples.Utils.csproj +++ b/src/Examples.Utils/Examples.Utils.csproj @@ -1,6 +1,7 @@ + CS8981 9.0 diff --git a/src/Examples/Examples.csproj b/src/Examples/Examples.csproj index 0d2053a31..43d79d94e 100644 --- a/src/Examples/Examples.csproj +++ b/src/Examples/Examples.csproj @@ -1,6 +1,7 @@ + CS8981 Exe true true diff --git a/src/TorchAudio/TorchAudio.csproj b/src/TorchAudio/TorchAudio.csproj index 8720ecb2a..8a390ad48 100644 --- a/src/TorchAudio/TorchAudio.csproj +++ b/src/TorchAudio/TorchAudio.csproj @@ -1,6 +1,7 @@ + CS8981 net8.0;netstandard2.0 9.0 TorchAudio diff --git a/src/TorchSharp/TorchSharp.csproj b/src/TorchSharp/TorchSharp.csproj index 2d227e2c8..809e66e39 100644 --- a/src/TorchSharp/TorchSharp.csproj +++ b/src/TorchSharp/TorchSharp.csproj @@ -3,6 +3,7 @@ + CS8981 net8.0;netstandard2.0 9.0 TorchSharp 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 689f3ceec..60eeeff82 100644 --- a/src/TorchVision/TorchVision.csproj +++ b/src/TorchVision/TorchVision.csproj @@ -1,6 +1,7 @@ + CS8981 net8.0;netstandard2.0 9.0 TorchVision diff --git a/test/TorchSharpTest.WithCudaBinaries/TorchSharpTest.WithCudaBinaries.csproj b/test/TorchSharpTest.WithCudaBinaries/TorchSharpTest.WithCudaBinaries.csproj index d05d33055..5412d70ff 100644 --- a/test/TorchSharpTest.WithCudaBinaries/TorchSharpTest.WithCudaBinaries.csproj +++ b/test/TorchSharpTest.WithCudaBinaries/TorchSharpTest.WithCudaBinaries.csproj @@ -1,6 +1,7 @@ + CS8981 net8.0 diff --git a/test/TorchSharpTest/TorchSharpTest.csproj b/test/TorchSharpTest/TorchSharpTest.csproj index 326f1c8d8..2b5999f9a 100644 --- a/test/TorchSharpTest/TorchSharpTest.csproj +++ b/test/TorchSharpTest/TorchSharpTest.csproj @@ -1,6 +1,7 @@ + CS8981 From 73c2313d62c2090322c1a5ba95fe791854580dd2 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Fri, 21 Feb 2025 11:05:49 +0100 Subject: [PATCH 3/8] remove unnecessary files --- global.json | 5 - pkg/TorchAudio/CompatibilitySuppressions.xml | 53 -- pkg/TorchSharp/CompatibilitySuppressions.xml | 648 ------------------ pkg/TorchVision/CompatibilitySuppressions.xml | 53 -- 4 files changed, 759 deletions(-) delete mode 100644 global.json delete mode 100644 pkg/TorchAudio/CompatibilitySuppressions.xml delete mode 100644 pkg/TorchSharp/CompatibilitySuppressions.xml delete mode 100644 pkg/TorchVision/CompatibilitySuppressions.xml diff --git a/global.json b/global.json deleted file mode 100644 index 51ea768a3..000000000 --- a/global.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "sdk": { - "version": "8.0.405" - } -} \ No newline at end of file diff --git a/pkg/TorchAudio/CompatibilitySuppressions.xml b/pkg/TorchAudio/CompatibilitySuppressions.xml deleted file mode 100644 index 1745d46a0..000000000 --- a/pkg/TorchAudio/CompatibilitySuppressions.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - - CP0008 - T:TorchSharp.torchaudio.AudioEncoding - lib/net6.0/TorchAudio.dll - lib/netstandard2.0/TorchAudio.dll - true - - - CP0008 - T:TorchSharp.torchaudio.AudioFormat - lib/net6.0/TorchAudio.dll - lib/netstandard2.0/TorchAudio.dll - true - - - CP0008 - T:TorchSharp.torchaudio.DCTNorm - lib/net6.0/TorchAudio.dll - lib/netstandard2.0/TorchAudio.dll - true - - - CP0008 - T:TorchSharp.torchaudio.MelNorm - lib/net6.0/TorchAudio.dll - lib/netstandard2.0/TorchAudio.dll - true - - - CP0008 - T:TorchSharp.torchaudio.MelScale - lib/net6.0/TorchAudio.dll - lib/netstandard2.0/TorchAudio.dll - true - - - CP0008 - T:TorchSharp.torchaudio.models.FeatureExtractorNormMode - lib/net6.0/TorchAudio.dll - lib/netstandard2.0/TorchAudio.dll - true - - - CP0008 - T:TorchSharp.torchaudio.ResamplingMethod - lib/net6.0/TorchAudio.dll - lib/netstandard2.0/TorchAudio.dll - true - - \ No newline at end of file diff --git a/pkg/TorchSharp/CompatibilitySuppressions.xml b/pkg/TorchSharp/CompatibilitySuppressions.xml deleted file mode 100644 index 13c774009..000000000 --- a/pkg/TorchSharp/CompatibilitySuppressions.xml +++ /dev/null @@ -1,648 +0,0 @@ - - - - - CP0002 - M:TorchSharp.Modules.Sequential.get_SequentialItems(System.Range) - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0002 - M:TorchSharp.Modules.Sequential`2.get_SequentialItems(System.Range) - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0002 - M:TorchSharp.Modules.Sequential`3.get_SequentialItems(System.Range) - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0002 - M:TorchSharp.Modules.Sequential`4.get_SequentialItems(System.Range) - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0002 - M:TorchSharp.Modules.Sequential`5.get_SequentialItems(System.Range) - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0002 - M:TorchSharp.Modules.Sequential`6.get_SequentialItems(System.Range) - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0002 - M:TorchSharp.Modules.Sequential`7.get_SequentialItems(System.Range) - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0002 - M:TorchSharp.Scalar.op_Implicit(System.Half)~TorchSharp.Scalar - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0002 - M:TorchSharp.ScalarExtensionMethods.ToHalf(TorchSharp.Scalar) - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0002 - M:TorchSharp.ScalarExtensionMethods.ToScalar(System.Half) - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0002 - M:TorchSharp.TensorExtensionMethods.ToHalf(TorchSharp.torch.Tensor) - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0002 - M:TorchSharp.torch.Storage`1.get_Item(System.Range) - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0002 - M:TorchSharp.torch.Storage`1.set_Item(System.Range,TorchSharp.torch.Storage{`0}) - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0002 - M:TorchSharp.torch.tensor(System.Collections.Generic.IList{System.Half},System.Int64,System.Int64,System.Int64,System.Int64,System.Nullable{TorchSharp.torch.ScalarType},TorchSharp.torch.Device,System.Boolean,System.String[]) - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0002 - M:TorchSharp.torch.tensor(System.Collections.Generic.IList{System.Half},System.Int64,System.Int64,System.Int64,System.Nullable{TorchSharp.torch.ScalarType},TorchSharp.torch.Device,System.Boolean,System.String[]) - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0002 - M:TorchSharp.torch.tensor(System.Collections.Generic.IList{System.Half},System.Int64,System.Int64,System.Nullable{TorchSharp.torch.ScalarType},TorchSharp.torch.Device,System.Boolean,System.String[]) - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0002 - M:TorchSharp.torch.tensor(System.Collections.Generic.IList{System.Half},System.Nullable{TorchSharp.torch.ScalarType},TorchSharp.torch.Device,System.Boolean,System.String[]) - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0002 - M:TorchSharp.torch.tensor(System.Collections.Generic.IList{System.Half},System.ReadOnlySpan{System.Int64},System.Nullable{TorchSharp.torch.ScalarType},TorchSharp.torch.Device,System.Boolean,System.String[]) - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0002 - M:TorchSharp.torch.tensor(System.Half[],System.Nullable{TorchSharp.torch.ScalarType},TorchSharp.torch.Device,System.Boolean,System.String[]) - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0002 - M:TorchSharp.torch.tensor(System.Half[],System.ReadOnlySpan{System.Int64},System.Nullable{TorchSharp.torch.ScalarType},TorchSharp.torch.Device,System.Boolean,System.String[]) - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0002 - M:TorchSharp.torch.tensor(System.Half[0:,0:,0:,0:],System.Nullable{TorchSharp.torch.ScalarType},TorchSharp.torch.Device,System.Boolean,System.String[]) - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0002 - M:TorchSharp.torch.tensor(System.Half[0:,0:,0:],System.Nullable{TorchSharp.torch.ScalarType},TorchSharp.torch.Device,System.Boolean,System.String[]) - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0002 - M:TorchSharp.torch.tensor(System.Half[0:,0:],System.Nullable{TorchSharp.torch.ScalarType},TorchSharp.torch.Device,System.Boolean,System.String[]) - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0002 - M:TorchSharp.torch.tensor(System.Memory{System.Half},System.ReadOnlySpan{System.Int64},System.Nullable{TorchSharp.torch.ScalarType},TorchSharp.torch.Device,System.Boolean,System.String[]) - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0002 - M:TorchSharp.torch.TensorIndex.op_Implicit(System.Index)~TorchSharp.torch.TensorIndex - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0002 - M:TorchSharp.torch.TensorIndex.op_Implicit(System.Range)~TorchSharp.torch.TensorIndex - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0002 - M:TorchSharp.torch.TensorIndex.Slice(System.Range) - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:Tensorboard.ApiDef.Types.Visibility - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:Tensorboard.AttrValue.ValueOneofCase - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:Tensorboard.CollectionDef.KindOneofCase - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:Tensorboard.ConfigProto.Types.Experimental.Types.MlirBridgeRollout - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:Tensorboard.DataClass - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:Tensorboard.DataType - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:Tensorboard.Event.WhatOneofCase - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:Tensorboard.FullTypeDef.AttrOneofCase - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:Tensorboard.FullTypeId - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:Tensorboard.FunctionSpec.Types.JitCompile - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:Tensorboard.LogMessage.Types.Level - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:Tensorboard.OptimizerOptions.Types.GlobalJitLevel - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:Tensorboard.OptimizerOptions.Types.Level - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:Tensorboard.RewriterConfig.Types.CpuLayout - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:Tensorboard.RewriterConfig.Types.MemOptType - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:Tensorboard.RewriterConfig.Types.NumIterationsType - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:Tensorboard.RewriterConfig.Types.Toggle - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:Tensorboard.RunOptions.Types.TraceLevel - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:Tensorboard.SavedObject.KindOneofCase - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:Tensorboard.SaverDef.Types.CheckpointFormatVersion - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:Tensorboard.SessionLog.Types.SessionStatus - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:Tensorboard.StructuredValue.KindOneofCase - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:Tensorboard.Summary.Types.Value.ValueOneofCase - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:Tensorboard.TensorInfo.EncodingOneofCase - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:Tensorboard.TypeSpecProto.Types.TypeSpecClass - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:Tensorboard.VariableAggregation - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:Tensorboard.VariableSynchronization - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:Tensorboard.VerifierConfig.Types.Toggle - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:Tensorboard.WorkerHealth - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:Tensorboard.WorkerShutdownMode - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:TorchSharp.compute_mode - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:TorchSharp.DebugMode - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:TorchSharp.DeviceType - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:TorchSharp.EmbeddingBagMode - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:TorchSharp.FFTNormType - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:TorchSharp.Float32MatmulPrecision - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:TorchSharp.HistogramBinSelector - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:TorchSharp.indexing - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:TorchSharp.layout - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:TorchSharp.LobpcgMethod - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:TorchSharp.memory_format - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:TorchSharp.Modules.OptimizerHelper.TypeCode - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:TorchSharp.Modules.TransformerEncoder.Activations - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:TorchSharp.Padding - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:TorchSharp.PaddingModes - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:TorchSharp.PrintOptionsProfile - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:TorchSharp.Reduce - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:TorchSharp.TensorStringStyle - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:TorchSharp.torch.GridSampleMode - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:TorchSharp.torch.GridSamplePaddingMode - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:TorchSharp.torch.InterpolationMode - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:TorchSharp.torch.linalg.QRMode - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:TorchSharp.torch.LobpcgMethod - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:TorchSharp.torch.nn.Activations - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:TorchSharp.torch.nn.init.FanInOut - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:TorchSharp.torch.nn.init.NonlinearityType - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:TorchSharp.torch.nn.NonLinearities - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:TorchSharp.torch.nn.Reduction - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:TorchSharp.torch.optim.lr_scheduler.impl.CyclicLR.Mode - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:TorchSharp.torch.optim.lr_scheduler.impl.CyclicLR.ScaleMode - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:TorchSharp.torch.optim.lr_scheduler.impl.OneCycleLR.AnnealStrategy - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:TorchSharp.torch.RoundingMode - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:TorchSharp.torch.ScalarType - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:TorchSharp.torch.UpsampleMode - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - - CP0008 - T:TorchSharp.Utils.tensorboard.Enums.HistogramBinSelector - lib/net6.0/TorchSharp.dll - lib/netstandard2.0/TorchSharp.dll - true - - \ No newline at end of file diff --git a/pkg/TorchVision/CompatibilitySuppressions.xml b/pkg/TorchVision/CompatibilitySuppressions.xml deleted file mode 100644 index 47b6223e1..000000000 --- a/pkg/TorchVision/CompatibilitySuppressions.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - - CP0008 - T:TorchSharp.torchvision.autoaugment.AutoAugmentPolicy - lib/net6.0/TorchVision.dll - lib/netstandard2.0/TorchVision.dll - true - - - CP0008 - T:TorchSharp.torchvision.autoaugment.opType - lib/net6.0/TorchVision.dll - lib/netstandard2.0/TorchVision.dll - true - - - CP0008 - T:TorchSharp.torchvision.datasets.CelebADatasetSplit - lib/net6.0/TorchVision.dll - lib/netstandard2.0/TorchVision.dll - true - - - CP0008 - T:TorchSharp.torchvision.ImageFormat - lib/net6.0/TorchVision.dll - lib/netstandard2.0/TorchVision.dll - true - - - CP0008 - T:TorchSharp.torchvision.io.ImageReadMode - lib/net6.0/TorchVision.dll - lib/netstandard2.0/TorchVision.dll - true - - - CP0008 - T:TorchSharp.torchvision.ops.BoxFormats - lib/net6.0/TorchVision.dll - lib/netstandard2.0/TorchVision.dll - true - - - CP0008 - T:TorchSharp.torchvision.StochasticDepth.Mode - lib/net6.0/TorchVision.dll - lib/netstandard2.0/TorchVision.dll - true - - \ No newline at end of file From bea166758e7cca88d29a87d4ef949336166adc63 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Wed, 26 Feb 2025 11:20:25 +0100 Subject: [PATCH 4/8] update pipelines yaml file --- azure-pipelines.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 31be3493d..f9cd959e5 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.0.406 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.0.406 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 }} From 2162a600d31fc69a807177df25d3c1d0e777a730 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Wed, 26 Feb 2025 11:33:18 +0100 Subject: [PATCH 5/8] upfate .net versioning --- azure-pipelines.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index f9cd959e5..0cd93f0b2 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -107,7 +107,7 @@ jobs: displayName: 'Use .NET Core sdk' inputs: packageType: sdk - version: 8.0.406 + version: 8.x installationPath: $(Agent.ToolsDirectory)/dotnet - script: ${{ variables.LinuxPrepScript }} @@ -151,7 +151,7 @@ jobs: displayName: 'Use .NET Core sdk' inputs: packageType: sdk - version: 8.0.406 + 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 From 6f17189527a36f2fb6537bf6a57479c75ef37399 Mon Sep 17 00:00:00 2001 From: alinpahontu2912 Date: Wed, 26 Feb 2025 11:41:18 +0100 Subject: [PATCH 6/8] upgrade job-template .net version --- build/ci/job-template.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 0674edc6e9e6d7ecebf480ed7e63511f19230843 Mon Sep 17 00:00:00 2001 From: Stefan-Alin Pahontu <56953855+alinpahontu2912@users.noreply.github.com> Date: Mon, 10 Mar 2025 11:14:22 +0100 Subject: [PATCH 7/8] update release notes --- RELEASENOTES.md | 4 ++++ 1 file changed, 4 insertions(+) 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
From b478506f704bdf1214b39ac7d9dceb6a93fa19b9 Mon Sep 17 00:00:00 2001 From: Stefan-Alin Pahontu <56953855+alinpahontu2912@users.noreply.github.com> Date: Tue, 11 Mar 2025 14:19:04 +0100 Subject: [PATCH 8/8] update package to fix security vulnerability --- src/Examples.Utils/Examples.Utils.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Examples.Utils/Examples.Utils.csproj b/src/Examples.Utils/Examples.Utils.csproj index 48e6b502b..30305ff81 100644 --- a/src/Examples.Utils/Examples.Utils.csproj +++ b/src/Examples.Utils/Examples.Utils.csproj @@ -18,7 +18,7 @@ - +