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 579 B

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