Remove chronological starttime assertion in InferenceTest.cs because it is not determined (#5976)

* remove chronological starttime assertion because it is not determined

* use different vars
This commit is contained in:
Chun-Wei Chen 2020-12-01 15:58:12 -08:00 committed by GitHub
parent 396074d2a8
commit c63e8cf7d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -446,17 +446,11 @@ namespace Microsoft.ML.OnnxRuntime.Tests
return startTime;
}
// Get 1st profiling's start time
ulong startTime1 = getSingleSessionProfilingStartTime();
// Get 2nd profiling's start time
ulong startTime2 = getSingleSessionProfilingStartTime();
// Get 3rd profiling's start time
ulong startTime3 = getSingleSessionProfilingStartTime();
// Get profiling's start time
ulong ProfilingStartTime = getSingleSessionProfilingStartTime();
// Check the profiling's start time has been updated
Assert.True(startTime1 != 0);
// Chronological profiling's start time
Assert.True(startTime1 <= startTime2 && startTime2 <= startTime3);
Assert.True(ProfilingStartTime != 0);
}
[Fact]