2021-08-23 18:19:03 +00:00
|
|
|
#include "lib/Api.Experimental/pch/pch.h"
|
2021-01-22 23:15:53 +00:00
|
|
|
#include "LearningModelSessionOptionsExperimental.h"
|
|
|
|
|
#include "winrt/Windows.Foundation.Collections.h"
|
|
|
|
|
#include "LearningModelSession.h"
|
|
|
|
|
#include "iengine.h"
|
|
|
|
|
|
|
|
|
|
namespace WINML_EXPERIMENTALP {
|
|
|
|
|
LearningModelSessionOptionsExperimental::LearningModelSessionOptionsExperimental(const winml::LearningModelSession& session) {
|
|
|
|
|
com_ptr<WINMLP::LearningModelSession> session_impl = session.as<WINMLP::LearningModelSession>();
|
|
|
|
|
_winml::IEngine* engine = session_impl->GetEngine();
|
|
|
|
|
engine->GetNamedDimensionOverrides(overrides_);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
wfc::IMapView<winrt::hstring, uint32_t> LearningModelSessionOptionsExperimental::GetNamedDimensionOverrides() {
|
2021-04-13 00:51:25 +00:00
|
|
|
telemetry_helper.LogApiUsage("LearningModelSessionOptionsExperimental::GetNamedDimensionOverrides");
|
|
|
|
|
|
2021-01-22 23:15:53 +00:00
|
|
|
return overrides_;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} // namespace WINML_EXPERIMENTALP
|