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/frontend.cpp # 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 / frontend.cpp` 28 lines ยท 775 bytes Raw Blame History 1 #include "frontend.h" 2 3 #include "input_model.h" 4 #include "op_table.h" 5 #include "translate_session.h" 6 #include 7 8 namespace ov { 9 namespace frontend { 10 namespace ggml { 11 12 FrontEnd::FrontEnd() {} 13 14 std::shared_ptr FrontEnd::convert(const InputModel::Ptr & model, bool naive) { 15 auto ggml_model = ov::as_type_ptr(model); 16 FRONT_END_GENERAL_CHECK(ggml_model, "Invalid input model"); 17 std::shared_ptr converted_model; 18 const auto & supported_ops = get_supported_ops(); 19 { 20 TranslateSession translate_session(model, supported_ops, naive); 21 converted_model = translate_session.get_converted_model(); 22 } 23 return converted_model; 24 } 25 26 } // namespace ggml 27 } // namespace frontend 28 } // namespace ov