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.

Program.cs 487 B

12345678910111213141516171819
  1. using System;
  2. using System.Linq;
  3. using System.Reflection;
  4. namespace TensorFlowNET.Examples
  5. {
  6. class Program
  7. {
  8. static void Main(string[] args)
  9. {
  10. var assembly = Assembly.GetEntryAssembly();
  11. foreach(Type type in assembly.GetTypes().Where(x => x.GetInterfaces().Contains(typeof(IExample))))
  12. {
  13. var example = (IExample)Activator.CreateInstance(type);
  14. example.Run();
  15. }
  16. }
  17. }
  18. }

tensorflow框架的.NET版本,提供了丰富的特性和API,可以借此很方便地在.NET平台下搭建深度学习训练与推理流程。

Contributors (1)