Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/ggml/blob/master/src/ggml-openvino/openvino/translate_session.h # ggml [Ported from github.com/ggml-org/ggml] docs : sync ggml_type enum in gguf.md (#1685) Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers 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 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 & translator_map, 14 bool naive = false); 15 16 std::shared_ptr get_converted_model(); 17 std::shared_ptr translate_graph(const frontend::InputModel::Ptr & input_model); 18 19 private: 20 std::shared_ptr apply_transformations(std::shared_ptr model); 21 const frontend::InputModel::Ptr m_input_model; 22 const std::unordered_map & m_translator_map; 23 std::shared_ptr m_ov_model; 24 bool m_naive; 25 }; 26 27 } // namespace ggml 28 } // namespace frontend 29 } // namespace ov