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.

IExample.cs 1.1 kB

6 years ago
6 years ago
6 years ago
6 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using Tensorflow;
  5. namespace TensorFlowNET.Examples
  6. {
  7. /// <summary>
  8. /// Interface of Example project
  9. /// All example should implement IExample so the entry program will find it.
  10. /// </summary>
  11. public interface IExample
  12. {
  13. /// <summary>
  14. /// True to run example
  15. /// </summary>
  16. bool Enabled { get; set; }
  17. /// <summary>
  18. /// Set true to import the computation graph instead of building it.
  19. /// </summary>
  20. bool IsImportingGraph { get; set; }
  21. string Name { get; }
  22. bool Run();
  23. /// <summary>
  24. /// Build dataflow graph, train and predict
  25. /// </summary>
  26. /// <returns></returns>
  27. void Train(Session sess);
  28. void Test(Session sess);
  29. void Predict(Session sess);
  30. Graph ImportGraph();
  31. Graph BuildGraph();
  32. /// <summary>
  33. /// Prepare dataset
  34. /// </summary>
  35. void PrepareData();
  36. }
  37. }