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); example.Run(); } } } }
tensorflow框架的.NET版本,提供了丰富的特性和API,可以借此很方便地在.NET平台下搭建深度学习训练与推理流程。