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.

MnistModelLoaderTest.cs 668 B

12345678910111213141516171819202122232425262728
  1. using Microsoft.VisualStudio.TestTools.UnitTesting;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using Tensorflow;
  7. using Tensorflow.Hub;
  8. namespace TensorFlowNET.UnitTest.Hub
  9. {
  10. [TestClass]
  11. public class MnistModelLoaderTest
  12. {
  13. [TestMethod]
  14. public async Task TestLoad()
  15. {
  16. var loader = new MnistModelLoader();
  17. var result = await loader.LoadAsync(new ModelLoadSetting
  18. {
  19. TrainDir = "mnist",
  20. OneHot = true,
  21. ValidationSize = 5000,
  22. });
  23. Assert.IsNotNull(result);
  24. }
  25. }
  26. }