onnxruntime/winml/adapter/FeatureDescriptorFactory.h

21 lines
580 B
C
Raw Normal View History

2019-08-15 22:27:05 +00:00
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#pragma once
#include "pch.h"
namespace Windows::AI::MachineLearning {
struct FeatureDescriptorFactory {
FeatureDescriptorFactory(
const std::unordered_map<std::string, std::string>& model_metadata);
wfc::IVector<winml::ILearningModelFeatureDescriptor>
CreateDescriptorsFromValueInfoProtos(
const std::vector<const onnx::ValueInfoProto*>& value_info_protos);
private:
const std::unordered_map<std::string, std::string>& metadata_;
};
} // namespace Windows::AI::MachineLearning