diff --git a/src/TensorFlowNet.Benchmarks/Program.cs b/src/TensorFlowNet.Benchmarks/Program.cs index 01af9a48..0c6749ec 100644 --- a/src/TensorFlowNet.Benchmarks/Program.cs +++ b/src/TensorFlowNet.Benchmarks/Program.cs @@ -20,7 +20,9 @@ namespace TensorFlowBenchmark } else { +#pragma warning disable CS0618 // Type or member is obsolete BenchmarkSwitcher.FromAssembly(Assembly.GetExecutingAssembly()).Run(args, ManualConfig.Create(DefaultConfig.Instance).With(ConfigOptions.DisableOptimizationsValidator)); +#pragma warning restore CS0618 // Type or member is obsolete } Console.ReadLine();