Skip to content

Cancellation in Image Classification (fixes #4632) #4650

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Jan 17, 2020
Next Next commit
Modified Program.cs
  • Loading branch information
antoniovs1029 committed Jan 11, 2020
commit fc139f727d19d77dddd251ccb1e4523b31628714
15 changes: 1 addition & 14 deletions docs/samples/Microsoft.ML.Samples/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,7 @@ public static class Program

internal static void RunAll()
{
int samples = 0;
foreach (var type in Assembly.GetExecutingAssembly().GetTypes())
{
var sample = type.GetMethod("Example", BindingFlags.Public | BindingFlags.Static | BindingFlags.FlattenHierarchy);

if (sample != null)
{
Console.WriteLine(type.Name);
sample.Invoke(null, null);
samples++;
}
}

Console.WriteLine("Number of samples that ran without any exception: " + samples);
ImageClassificationDefault2.Example();
}
}
}