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/op_table.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 / op_table.cpp` 122 lines ยท 8030 bytes Raw Blame History 1 #include "op_table.h" 2 3 #include "utils.h" 4 5 #include 6 #include 7 #include 8 #include 9 #include 10 #include 11 #include 12 #include 13 #include 14 #include 15 #include 16 #include 17 #include 18 #include 19 #include 20 #include 21 #include 22 #include 23 #include 24 #include 25 #include 26 #include 27 28 namespace ov { 29 namespace frontend { 30 namespace ggml { 31 32 std::unordered_map get_supported_ops() { 33 using namespace ov::op; 34 return { 35 {"GGML_OP_ADD", op::translate_add }, 36 {"GGML_OP_ADD1", op::translate_1to1_match_2_inputs }, 37 {"GGML_OP_ADD_ID", op::translate_add_id }, 38 {"GGML_OP_CONCAT", op::translate_concat }, 39 {"GGML_OP_CONT", op::translate_cont }, 40 {"GGML_OP_DUP", op::translate_cont }, 41 {"GGML_OP_DIV", op::translate_div }, 42 {"GGML_OP_FILL", op::translate_fill }, 43 {"GGML_OP_GET_ROWS", op::translate_get_rows }, 44 {"GGML_OP_IM2COL", op::translate_im2col }, 45 {"GGML_OP_IM2COL_3D", op::translate_im2col_3d }, 46 {"GGML_OP_MUL", op::translate_1to1_match_2_inputs}, 47 {"GGML_OP_MUL_MAT", op::translate_mulmat }, 48 {"GGML_OP_MUL_MAT_ID", op::translate_mul_mat_id }, 49 {"GGML_OP_PERMUTE", op::translate_permute }, 50 {"GGML_OP_RESHAPE", op::translate_reshape }, 51 {"GGML_OP_RMS_NORM", op::translate_rms_norm }, 52 {"GGML_OP_NORM", op::translate_norm }, 53 {"GGML_OP_L2_NORM", op::translate_l2_norm }, 54 {"GGML_OP_SUM_ROWS", op::translate_sum_rows }, 55 {"GGML_OP_ROPE", op::translate_rope }, 56 {"GGML_OP_SCALE", op::translate_scale }, 57 {"GGML_OP_SQR", op::translate_sqr }, 58 {"GGML_OP_SQRT", op::translate_sqrt }, 59 {"GGML_OP_SOFT_MAX", op::translate_soft_max }, 60 {"GGML_OP_ARGSORT", op::translate_argsort }, 61 {"GGML_OP_SUB", op::translate_1to1_match_2_inputs}, 62 {"GGML_OP_TRANSPOSE", op::translate_transpose }, 63 {"GGML_OP_SIN", op::translate_1to1_match_1_input }, 64 {"GGML_OP_COS", op::translate_1to1_match_1_input }, 65 {"GGML_OP_LOG", op::translate_1to1_match_1_input }, 66 {"GGML_OP_MEAN", op::translate_mean }, 67 {"GGML_OP_SUM", op::translate_sum }, 68 {"GGML_UNARY_OP_GELU", op::translate_unary_gelu }, 69 {"GGML_UNARY_OP_GELU_ERF", op::translate_unary_gelu_erf }, 70 {"GGML_UNARY_OP_GELU_QUICK", op::translate_unary_gelu_quick }, 71 {"GGML_UNARY_OP_ELU", op::translate_unary_elu }, 72 {"GGML_UNARY_OP_HARDSWISH", op::translate_1to1_match_1_input }, 73 {"GGML_UNARY_OP_HARDSIGMOID", op::translate_unary_hardsigmoid }, 74 {"GGML_UNARY_OP_STEP", op::translate_unary_step }, 75 {"GGML_UNARY_OP_ABS", op::translate_1to1_match_1_input }, 76 {"GGML_UNARY_OP_SGN", op::translate_1to1_match_1_input }, 77 {"GGML_UNARY_OP_FLOOR", op::translate_1to1_match_1_input }, 78 {"GGML_UNARY_OP_CEIL", op::translate_1to1_match_1_input }, 79 {"GGML_UNARY_OP_ROUND", op::translate_unary_round }, 80 {"GGML_UNARY_OP_EXPM1", op::translate_unary_expm1 }, 81 {"GGML_UNARY_OP_SIGMOID", op::translate_1to1_match_1_input }, 82 {"GGML_UNARY_OP_SILU", op::translate_1to1_match_1_input }, 83 {"GGML_UNARY_OP_SOFTPLUS", op::translate_unary_softplus }, 84 {"GGML_UNARY_OP_TANH", op::translate_1to1_match_1_input }, 85 {"GGML_UNARY_OP_EXP", op::translate_1to1_match_1_input }, 86 {"GGML_UNARY_OP_NEG", op::translate_1to1_match_1_input }, 87 {"GGML_UNARY_OP_RELU", op::translate_1to1_match_1_input }, 88 {"GGML_OP_VIEW", op::translate_view }, 89 {"GGML_GLU_OP_SWIGLU", op::translate_glu_swiglu }, 90 {"GGML_GLU_OP_SWIGLU_OAI", op::translate_glu_swiglu_oai }, 91 {"GGML_GLU_OP_SWIGLU_CLAMP", op::translate_glu_swiglu_clamp }, 92 {"GGML_GLU_OP_GEGLU", op::translate_glu_geglu }, 93 {"GGML_GLU_OP_GEGLU_QUICK", op::translate_glu_geglu_quick }, 94 {"GGML_OP_SET_ROWS", op::translate_set_rows }, 95 {"GGML_OP_CPY", op::translate_cpy }, 96 {"GGML_OP_FLASH_ATTN_EXT", op::translate_flash_attn_ext }, 97 {"GGML_OP_CLAMP", op::translate_clamp }, 98 {"GGML_OP_PAD", op::translate_pad }, 99 {"GGML_OP_SSM_CONV", op::translate_ssm_conv }, 100 {"GGML_OP_GATED_DELTA_NET", op::translate_gated_delta_net }, 101 {"GGML_OP_REPEAT", op::translate_repeat }, 102 {"GGML_OP_CUMSUM", op::translate_cumsum }, 103 {"GGML_OP_FILL", op::translate_fill }, 104 {"GGML_OP_DIAG", op::translate_diag }, 105 {"GGML_OP_TRI", op::translate_tri }, 106 {"GGML_OP_SET", op::translate_set }, 107 {"GGML_OP_POOL_2D", op::translate_pool_2d }, 108 {"GGML_OP_ROLL", op::translate_roll }, 109 {"GGML_OP_UPSCALE", op::translate_upscale }, 110 {"GGML_OP_CONV_2D", op::translate_conv_2d }, 111 {"GGML_OP_CONV_2D_DW", op::translate_conv_2d_dw }, 112 {"GGML_OP_CONV_TRANSPOSE_1D", op::translate_conv_transpose_1d }, 113 {"GGML_OP_CONV_TRANSPOSE_2D", op::translate_conv_transpose_2d }, 114 {"GGML_OP_CONV_3D", op::translate_conv_3d }, 115 // solve_tri has accuracy issues on GPU 116 // {"GGML_OP_SOLVE_TRI", op::translate_solve_tri }, 117 }; 118 } 119 120 } // namespace ggml 121 } // namespace frontend 122 } // namespace ov