ggml
[Ported from github.com/ggml-org/ggml] docs : sync ggml_type enum in gguf.md (#1685)
Brought by drakestapleton
ggml / src / ggml-openvino / openvino / translate_session.h
| 1 | #pragma once |
| 2 | |
| 3 | #include "input_model.h" |
| 4 | #include "node_context.h" |
| 5 | |
| 6 | namespace ov { |
| 7 | namespace frontend { |
| 8 | namespace ggml { |
| 9 | |
| 10 | class TranslateSession { |
| 11 | public: |
| 12 | TranslateSession(const frontend::InputModel::Ptr & input_model, |
| 13 | const std::unordered_map<std::string, CreatorFunction> & translator_map, |
| 14 | bool naive = false); |
| 15 | |
| 16 | std::shared_ptr<Model> get_converted_model(); |
| 17 | std::shared_ptr<Model> translate_graph(const frontend::InputModel::Ptr & input_model); |
| 18 | |
| 19 | private: |
| 20 | std::shared_ptr<Model> apply_transformations(std::shared_ptr<Model> model); |
| 21 | const frontend::InputModel::Ptr m_input_model; |
| 22 | const std::unordered_map<std::string, CreatorFunction> & m_translator_map; |
| 23 | std::shared_ptr<Model> m_ov_model; |
| 24 | bool m_naive; |
| 25 | }; |
| 26 | |
| 27 | } // namespace ggml |
| 28 | } // namespace frontend |
| 29 | } // namespace ov |