Browse Source

TensorflowNET.Benchmarks: Removed InProcessToolchain from benchmarking.

tags/v0.12
Eli Belash 6 years ago
parent
commit
821ac13138
1 changed files with 2 additions and 8 deletions
  1. +2
    -8
      src/TensorFlowNet.Benchmarks/Program.cs

+ 2
- 8
src/TensorFlowNet.Benchmarks/Program.cs View File

@@ -9,24 +9,18 @@ namespace TensorFlowBenchmark
{ {
static void Main(string[] args) static void Main(string[] args)
{ {
#if DEBUG
IConfig config = new DebugInProcessConfig();
#else
IConfig config = null;
#endif
if (args?.Length > 0) if (args?.Length > 0)
{ {
for (int i = 0; i < args.Length; i++) for (int i = 0; i < args.Length; i++)
{ {
string name = $"TensorFlowBenchmark.{args[i]}"; string name = $"TensorFlowBenchmark.{args[i]}";
var type = Type.GetType(name); var type = Type.GetType(name);
BenchmarkRunner.Run(type, config);
BenchmarkRunner.Run(type);
} }
} }
else else
{ {
BenchmarkSwitcher.FromAssembly(Assembly.GetExecutingAssembly()).Run(args, config);
BenchmarkSwitcher.FromAssembly(Assembly.GetExecutingAssembly()).Run(args, ManualConfig.Create(DefaultConfig.Instance).With(ConfigOptions.DisableOptimizationsValidator));
} }
Console.ReadLine(); Console.ReadLine();


Loading…
Cancel
Save