onnxruntime/winml/lib/Api/LearningModelSessionOptions.cpp
2019-11-07 11:51:44 -08:00

26 lines
1 KiB
C++

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#include "pch.h"
#include "LearningModelSessionOptions.h"
namespace winrt::Windows::AI::MachineLearning::implementation {
LearningModelSessionOptions::LearningModelSessionOptions(const LearningModelSessionOptions& options) : batch_size_override_(options.batch_size_override_),
close_model_on_session_creation_(options.close_model_on_session_creation_) {}
uint32_t LearningModelSessionOptions::BatchSizeOverride() {
return batch_size_override_;
}
void LearningModelSessionOptions::BatchSizeOverride(uint32_t value) {
batch_size_override_ = value;
}
bool LearningModelSessionOptions::CloseModelOnSessionCreation() {
return close_model_on_session_creation_;
}
void LearningModelSessionOptions::CloseModelOnSessionCreation(bool value) {
close_model_on_session_creation_ = value;
}
} // namespace winrt::Windows::AI::MachineLearning::implementation