static void Main(string[] args) { var diag = new Diagnostician(); // diag.Diagnose(@"D:\memory.txt"); // this class is used explor new features. var exploring = new Exploring(); // exploring.Run(); // boot .net core 10.5M. var mm = new MemoryMonitor(); // warm up tensorflow.net 37.3M. mm.WarmUp(); BasicTest(mm); KerasTest(mm); FuncGraph(mm); // 65M Console.WriteLine("Finished."); Console.ReadLine(); }
static void Main(string[] args) { // this class is used explor new features. var exploring = new Exploring(); // exploring.Run(); // boot .net core 10.5M. var mm = new MemoryMonitor(); // warm up tensorflow.net 28.5M. mm.WarmUp(); var cases = new MemoryTestingCases(); int batchSize = 1000; // explaination of constant mm.Execute(10, 100 * batchSize, cases.Constant2x3); // 1 million float tensor 68M. mm.Execute(10, 100 * batchSize, cases.Constant); // 100K float variable 84M. mm.Execute(10, 10 * batchSize, cases.Variable); // 1 million math add 39M. mm.Execute(10, 100 * batchSize, cases.MathAdd); // 100K gradient 44M. mm.Execute(10, 10 * batchSize, cases.Gradient); // 95M Console.WriteLine("Finished."); Console.ReadLine(); }