mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-14 20:48:00 +00:00
Fix typo (#7872)
Co-authored-by: Thiago Crepaldi <thiago.crepaldi@microsoft.com>
This commit is contained in:
parent
271a343024
commit
0e935b8718
4 changed files with 8 additions and 8 deletions
|
|
@ -20,7 +20,7 @@ limitations under the License.
|
|||
struct CachedInterpolation {
|
||||
int64_t lower; // Lower source index used in the interpolation
|
||||
int64_t upper; // Upper source index used in the interpolation
|
||||
// 1-D linear iterpolation scale (see:
|
||||
// 1-D linear interpolation scale (see:
|
||||
// https://en.wikipedia.org/wiki/Bilinear_interpolation)
|
||||
float lerp;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -37,13 +37,13 @@ WINML_TEST_CLASS_END()
|
|||
static constexpr uint32_t TABBY_CAT_INDEX = 281;
|
||||
static constexpr uint32_t TENCH_INDEX = 0;
|
||||
// concurrency bugs are often race conditions and hard to catch deterministically.
|
||||
//
|
||||
// there are several approachs to find them, from consistent testing to random
|
||||
|
||||
// there are several approaches to find them, from consistent testing to random
|
||||
// style stress/fuzz testing
|
||||
//
|
||||
// the testing strategy for *this* test is:
|
||||
// - use a consistent and reasonable number of threads (10 vs. 1000)
|
||||
// - run them for a consistent and long enough period of time (60 seconds) .
|
||||
// - run them for a consistent and long enough period of time (60 seconds).
|
||||
// - the smaller number of threads is also to make sure memory pressure is not an issue
|
||||
// on pre checkin CI test machines
|
||||
static constexpr uint32_t NUM_THREADS = 10;
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ namespace ImageTestHelper {
|
|||
// else if()
|
||||
// TODO: for Gray8
|
||||
else {
|
||||
std::cerr << "Unsupportted pixelFormat";
|
||||
std::cerr << "Unsupported pixelFormat";
|
||||
}
|
||||
return tf;
|
||||
}
|
||||
|
|
@ -91,7 +91,7 @@ namespace ImageTestHelper {
|
|||
float* pCPUTensor;
|
||||
uint32_t uCapacity;
|
||||
|
||||
// CPU tensorization
|
||||
// CPU tensor initialization
|
||||
TensorFloat tf = TensorFloat::Create(shape);
|
||||
com_ptr<ITensorNative> itn = tf.as<ITensorNative>();
|
||||
itn->GetBuffer(reinterpret_cast<BYTE**>(&pCPUTensor), &uCapacity);
|
||||
|
|
|
|||
|
|
@ -222,7 +222,7 @@ static void Scenario5AsyncEval() {
|
|||
}
|
||||
|
||||
//! Scenario6: use BindInputWithProperties - BitmapBounds, BitmapPixelFormat
|
||||
// apparently this scenario is cut for rs5. - not cut, just rewprked. move props
|
||||
// apparently this scenario is cut for rs5. - not cut, just reworked. move props
|
||||
// to the image value when that is checked in.
|
||||
static void Scenario6BindWithProperties() {
|
||||
// load a model
|
||||
|
|
@ -609,7 +609,7 @@ void SubmitEval(LearningModel model, SwapChainEntry* sessionBindings, int swapch
|
|||
// return without waiting for the submit to finish, setup the completion handler
|
||||
}
|
||||
|
||||
//Scenario14:Load single model, run it mutliple times on a single gpu device using a fast swapchain pattern
|
||||
//Scenario14:Load single model, run it multiple times on a single gpu device using a fast swapchain pattern
|
||||
static void Scenario14RunModelSwapchain() {
|
||||
const int swapchainentrycount = 3;
|
||||
SwapChainEntry sessionBindings[swapchainentrycount];
|
||||
|
|
|
|||
Loading…
Reference in a new issue