Uh oh!
There was an error while loading. Please reload this page.
Debugging hanging AutoFitImageClassificationTrainTest - #4893
Conversation
mstfbl
commented
Feb 26, 2020
Testing of |
mstfbl
commented
Feb 26, 2020
The tests AutoFitRecommendationTest and AutoFitRegressionTest are passing. AutoFitImageClassificationTrainTest is displaying errors every now and then. |
The reason why AutoFitImageClassificationTrainTest is crashing is after running |
The original bug with For some reason, sometimes the validationMetrics of an IEnumerable<(RunDetail) is null. |
mstfbl
commented
Feb 28, 2020
There's an issue with this The returned |
I figured out the cause of the occasional crash of AutoFitImageClassificationTrainTest. When any exception occurs in RunnerUtil.TrainAndScorePipeline, instead of throwing the error, it is instead caught and ignored while a null metrics value (in line 49) is sent up through the call stack instead. This is the exception being caught:
When reproduced locally, the exception string is:
|
Update: AutoFitImageClassificationTrainTest with 100 iterations fail on Windows x64 builds with:
but also I get: in As mentioned in this PR #4755, we still cannot see details about the crash in |
4520530 to
65a72efComparec1f8231 to
c1e422dComparedf5f642 to
5a7ad17Comparemstfbl
commented
Mar 26, 2020
Will be using this PR to debug AutoFitImageClassificationTrainTest hanging occasionally on Windows builds. |
mstfbl
commented
Mar 27, 2020
machinelearning/src/Microsoft.ML.Vision/ImageClassificationTrainer.cs Lines 714 to 721 in 5d531d3 |
Adding the fix Edit: While this fix works, it is not safe to assume that this model can be disposed in RunnerUtil.cs. The user might be accessing this model during disposal, which would result in use-after-free and/or null reference errors. |
…Container in used cases
…cationModelParameters
…ificationTrainTest-memoryFix
…://github.com/mstfbl/machinelearning into AutoFitImageClassificationTrainTest-memoryFix
78a65c2 to
087c0d5Compare…chinelearning into AutoFitTests-Debugging
mstfbl
commented
Apr 16, 2020
Freeing Tensor objects in |
Will be using this draft PR for general debugging purposes on CI
Notes:
Windows builds have 7,168 MBs of RAM