7 references to CreateFromFile
Microsoft.ML.Tests (7)
ImagesTests.cs (7)
1165private static MLImage LoadImageFromFile(string imagePath) => MLImage.CreateFromFile(imagePath); 1234using MLImage image1 = MLImage.CreateFromFile(dataFile); 1264Assert.Throws<ArgumentNullException>(() => MLImage.CreateFromFile(null)); 1265Assert.Throws<ArgumentException>(() => MLImage.CreateFromFile("This is Invalid Path")); 1280using MLImage image1 = MLImage.CreateFromFile(dataFile); 1290using MLImage image2 = MLImage.CreateFromFile(imageTempPath); 1333using MLImage image1 = MLImage.CreateFromFile(imageFile);