You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- using System;
- using System.Linq;
- using System.Reflection;
-
- namespace TensorFlowNET.Examples
- {
- class Program
- {
- static void Main(string[] args)
- {
- var assembly = Assembly.GetEntryAssembly();
- foreach(Type type in assembly.GetTypes().Where(x => x.GetInterfaces().Contains(typeof(IExample))))
- {
- var example = (IExample)Activator.CreateInstance(type);
-
- try
- {
- example.Run();
- }
- catch (Exception ex)
- {
- Console.WriteLine(ex);
- Console.ReadLine();
- }
- }
- }
- }
- }
|