onnxruntime/winml/test/model/compare_feature_value.h
Ryan Lai 21395f8e24
Implement comparing outputs that are sequence of maps of strings to floats (#6180)
* Implement conversion from ortvalue to Itensor for string tensors and comparing sequence of maps of strings to floats

* PR comments
2020-12-22 09:52:29 -08:00

11 lines
No EOL
393 B
C++

#pragma once
#include "testPch.h"
#include "onnxruntime_cxx_api.h"
namespace CompareFeatureValuesHelper {
bool CompareSequenceOfMapsStringToFloat(
winrt::Windows::Foundation::Collections::IVectorView<winrt::Windows::Foundation::Collections::IMap<winrt::hstring, float>> featureValue,
const Ort::Value& val,
double per_sample_tolerance,
double relative_per_sample_tolerance);
}