interplane.Get Omega
Read in your language

ggml

[Ported from github.com/ggml-org/ggml] docs : sync ggml_type enum in gguf.md (#1685)

Brought by drakestapleton

branch master Branches Tags History

ggml / src / ggml-openvino / openvino / translate_session.h

29 lines · 845 bytes Raw Blame History
1#pragma once
2
3#include "input_model.h"
4#include "node_context.h"
5
6namespace ov {
7namespace frontend {
8namespace ggml {
9
10class TranslateSession {
11public:
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
19private:
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