| 1 | #cxx . . $ `<file>/external/whispercpp/whisper-arch.h`/pragma once |
| 2 | |
| 3 | #include "ggml.h"cxx . . $ `<file>/external/whispercpp/ggml.h`/ |
| 4 | |
| 5 | #include <map> |
| 6 | |
| 7 | enum asr_tensorcxx . . $ asr_tensor# { |
| 8 | ASR_TENSOR_ENC_POS_EMBDcxx . . $ ASR_TENSOR_ENC_POS_EMBD., |
| 9 | ASR_TENSOR_DEC_POS_EMBDcxx . . $ ASR_TENSOR_DEC_POS_EMBD., |
| 10 | ASR_TENSOR_DEC_TOKEN_EMBD_WEIGHTcxx . . $ ASR_TENSOR_DEC_TOKEN_EMBD_WEIGHT., |
| 11 | ASR_TENSOR_LN_WEIGHTcxx . . $ ASR_TENSOR_LN_WEIGHT., |
| 12 | ASR_TENSOR_LN_BIAScxx . . $ ASR_TENSOR_LN_BIAS., |
| 13 | ASR_TENSOR_CONV1_WEIGHTcxx . . $ ASR_TENSOR_CONV1_WEIGHT., |
| 14 | ASR_TENSOR_CONV1_BIAScxx . . $ ASR_TENSOR_CONV1_BIAS., |
| 15 | ASR_TENSOR_CONV2_WEIGHTcxx . . $ ASR_TENSOR_CONV2_WEIGHT., |
| 16 | ASR_TENSOR_CONV2_BIAScxx . . $ ASR_TENSOR_CONV2_BIAS., |
| 17 | ASR_TENSOR_LN_POST_WEIGHTcxx . . $ ASR_TENSOR_LN_POST_WEIGHT., |
| 18 | ASR_TENSOR_LN_POST_BIAScxx . . $ ASR_TENSOR_LN_POST_BIAS., |
| 19 | ASR_TENSOR_MLP_LN_WEIGHTcxx . . $ ASR_TENSOR_MLP_LN_WEIGHT., |
| 20 | ASR_TENSOR_MLP_LN_BIAScxx . . $ ASR_TENSOR_MLP_LN_BIAS., |
| 21 | ASR_TENSOR_MLP_0_WEIGHTcxx . . $ ASR_TENSOR_MLP_0_WEIGHT., |
| 22 | ASR_TENSOR_MLP_0_BIAScxx . . $ ASR_TENSOR_MLP_0_BIAS., |
| 23 | ASR_TENSOR_MLP_2_WEIGHTcxx . . $ ASR_TENSOR_MLP_2_WEIGHT., |
| 24 | ASR_TENSOR_MLP_2_BIAScxx . . $ ASR_TENSOR_MLP_2_BIAS., |
| 25 | ASR_TENSOR_ATTN_LN_WEIGHTcxx . . $ ASR_TENSOR_ATTN_LN_WEIGHT., |
| 26 | ASR_TENSOR_ATTN_LN_BIAScxx . . $ ASR_TENSOR_ATTN_LN_BIAS., |
| 27 | ASR_TENSOR_ATTN_QUERY_WEIGHTcxx . . $ ASR_TENSOR_ATTN_QUERY_WEIGHT., |
| 28 | ASR_TENSOR_ATTN_QUERY_BIAScxx . . $ ASR_TENSOR_ATTN_QUERY_BIAS., |
| 29 | ASR_TENSOR_ATTN_KEY_WEIGHTcxx . . $ ASR_TENSOR_ATTN_KEY_WEIGHT., |
| 30 | ASR_TENSOR_ATTN_VALUE_WEIGHTcxx . . $ ASR_TENSOR_ATTN_VALUE_WEIGHT., |
| 31 | ASR_TENSOR_ATTN_VALUE_BIAScxx . . $ ASR_TENSOR_ATTN_VALUE_BIAS., |
| 32 | ASR_TENSOR_ATTN_OUT_WEIGHTcxx . . $ ASR_TENSOR_ATTN_OUT_WEIGHT., |
| 33 | ASR_TENSOR_ATTN_OUT_BIAScxx . . $ ASR_TENSOR_ATTN_OUT_BIAS., |
| 34 | }; |
| 35 | |
| 36 | enum asr_systemcxx . . $ asr_system# { |
| 37 | ASR_SYSTEM_ENCODERcxx . . $ ASR_SYSTEM_ENCODER., |
| 38 | ASR_SYSTEM_DECODERcxx . . $ ASR_SYSTEM_DECODER., |
| 39 | ASR_SYSTEM_CROSScxx . . $ ASR_SYSTEM_CROSS. |
| 40 | }; |
| 41 | |
| 42 | static const stdcxx . . $ std/::mapcxx . . $ std/map#<asr_systemcxx . . $ asr_system#, stdcxx . . $ std/::mapcxx . . $ std/map#<asr_tensorcxx . . $ asr_tensor#, const char *>> ASR_TENSOR_NAMEScxx . . $ ASR_TENSOR_NAMES. = {cxx . . $ std/map#map(7786ef3e167e36fa). |
| 43 | { |
| 44 | ASR_SYSTEM_ENCODERcxx . . $ ASR_SYSTEM_ENCODER., |
| 45 | { |
| 46 | {ASR_TENSOR_ENC_POS_EMBDcxx . . $ ASR_TENSOR_ENC_POS_EMBD., "encoder.positional_embedding"}, |
| 47 | {ASR_TENSOR_CONV1_WEIGHTcxx . . $ ASR_TENSOR_CONV1_WEIGHT., "encoder.conv1.weight"}, |
| 48 | {ASR_TENSOR_CONV1_BIAScxx . . $ ASR_TENSOR_CONV1_BIAS., "encoder.conv1.bias"}, |
| 49 | {ASR_TENSOR_CONV2_WEIGHTcxx . . $ ASR_TENSOR_CONV2_WEIGHT., "encoder.conv2.weight"}, |
| 50 | {ASR_TENSOR_CONV2_BIAScxx . . $ ASR_TENSOR_CONV2_BIAS., "encoder.conv2.bias"}, |
| 51 | {ASR_TENSOR_LN_WEIGHTcxx . . $ ASR_TENSOR_LN_WEIGHT., "encoder.ln_post.weight"}, |
| 52 | {ASR_TENSOR_LN_POST_BIAScxx . . $ ASR_TENSOR_LN_POST_BIAS., "encoder.ln_post.bias"}, |
| 53 | {ASR_TENSOR_MLP_LN_WEIGHTcxx . . $ ASR_TENSOR_MLP_LN_WEIGHT., "encoder.blocks.%d.mlp_ln.weight"}, |
| 54 | {ASR_TENSOR_MLP_LN_BIAScxx . . $ ASR_TENSOR_MLP_LN_BIAS., "encoder.blocks.%d.mlp_ln.bias"}, |
| 55 | {ASR_TENSOR_MLP_0_WEIGHTcxx . . $ ASR_TENSOR_MLP_0_WEIGHT., "encoder.blocks.%d.mlp.0.weight"}, |
| 56 | {ASR_TENSOR_MLP_0_BIAScxx . . $ ASR_TENSOR_MLP_0_BIAS., "encoder.blocks.%d.mlp.0.bias"}, |
| 57 | {ASR_TENSOR_MLP_2_WEIGHTcxx . . $ ASR_TENSOR_MLP_2_WEIGHT., "encoder.blocks.%d.mlp.2.weight"}, |
| 58 | {ASR_TENSOR_MLP_2_BIAScxx . . $ ASR_TENSOR_MLP_2_BIAS., "encoder.blocks.%d.mlp.2.bias"}, |
| 59 | {ASR_TENSOR_ATTN_LN_WEIGHTcxx . . $ ASR_TENSOR_ATTN_LN_WEIGHT., "encoder.blocks.%d.attn_ln.weight"}, |
| 60 | {ASR_TENSOR_ATTN_LN_BIAScxx . . $ ASR_TENSOR_ATTN_LN_BIAS., "encoder.blocks.%d.attn_ln.bias"}, |
| 61 | {ASR_TENSOR_ATTN_QUERY_WEIGHTcxx . . $ ASR_TENSOR_ATTN_QUERY_WEIGHT., "encoder.blocks.%d.attn.query.weight"}, |
| 62 | {ASR_TENSOR_ATTN_QUERY_BIAScxx . . $ ASR_TENSOR_ATTN_QUERY_BIAS., "encoder.blocks.%d.attn.query.bias"}, |
| 63 | {ASR_TENSOR_ATTN_KEY_WEIGHTcxx . . $ ASR_TENSOR_ATTN_KEY_WEIGHT., "encoder.blocks.%d.attn.key.weight"}, |
| 64 | {ASR_TENSOR_ATTN_VALUE_WEIGHTcxx . . $ ASR_TENSOR_ATTN_VALUE_WEIGHT., "encoder.blocks.%d.attn.value.weight"}, |
| 65 | {ASR_TENSOR_ATTN_VALUE_BIAScxx . . $ ASR_TENSOR_ATTN_VALUE_BIAS., "encoder.blocks.%d.attn.value.bias"}, |
| 66 | {ASR_TENSOR_ATTN_OUT_WEIGHTcxx . . $ ASR_TENSOR_ATTN_OUT_WEIGHT., "encoder.blocks.%d.attn.out.weight"}, |
| 67 | {ASR_TENSOR_ATTN_OUT_BIAScxx . . $ ASR_TENSOR_ATTN_OUT_BIAS., "encoder.blocks.%d.attn.out.bias"}, |
| 68 | }, |
| 69 | }, |
| 70 | { |
| 71 | ASR_SYSTEM_DECODERcxx . . $ ASR_SYSTEM_DECODER., |
| 72 | { |
| 73 | {ASR_TENSOR_DEC_POS_EMBDcxx . . $ ASR_TENSOR_DEC_POS_EMBD., "decoder.positional_embedding"}, |
| 74 | {ASR_TENSOR_DEC_TOKEN_EMBD_WEIGHTcxx . . $ ASR_TENSOR_DEC_TOKEN_EMBD_WEIGHT., "decoder.token_embedding.weight"}, |
| 75 | {ASR_TENSOR_LN_WEIGHTcxx . . $ ASR_TENSOR_LN_WEIGHT., "decoder.ln.weight"}, |
| 76 | {ASR_TENSOR_LN_BIAScxx . . $ ASR_TENSOR_LN_BIAS., "decoder.ln.bias"}, |
| 77 | |
| 78 | {ASR_TENSOR_MLP_LN_WEIGHTcxx . . $ ASR_TENSOR_MLP_LN_WEIGHT., "decoder.blocks.%d.mlp_ln.weight"}, |
| 79 | {ASR_TENSOR_MLP_LN_BIAScxx . . $ ASR_TENSOR_MLP_LN_BIAS., "decoder.blocks.%d.mlp_ln.bias"}, |
| 80 | {ASR_TENSOR_MLP_0_WEIGHTcxx . . $ ASR_TENSOR_MLP_0_WEIGHT., "decoder.blocks.%d.mlp.0.weight"}, |
| 81 | {ASR_TENSOR_MLP_0_BIAScxx . . $ ASR_TENSOR_MLP_0_BIAS., "decoder.blocks.%d.mlp.0.bias"}, |
| 82 | {ASR_TENSOR_MLP_2_WEIGHTcxx . . $ ASR_TENSOR_MLP_2_WEIGHT., "decoder.blocks.%d.mlp.2.weight"}, |
| 83 | {ASR_TENSOR_MLP_2_BIAScxx . . $ ASR_TENSOR_MLP_2_BIAS., "decoder.blocks.%d.mlp.2.bias"}, |
| 84 | {ASR_TENSOR_ATTN_LN_WEIGHTcxx . . $ ASR_TENSOR_ATTN_LN_WEIGHT., "decoder.blocks.%d.attn_ln.weight"}, |
| 85 | {ASR_TENSOR_ATTN_LN_BIAScxx . . $ ASR_TENSOR_ATTN_LN_BIAS., "decoder.blocks.%d.attn_ln.bias"}, |
| 86 | {ASR_TENSOR_ATTN_QUERY_WEIGHTcxx . . $ ASR_TENSOR_ATTN_QUERY_WEIGHT., "decoder.blocks.%d.attn.query.weight"}, |
| 87 | {ASR_TENSOR_ATTN_QUERY_BIAScxx . . $ ASR_TENSOR_ATTN_QUERY_BIAS., "decoder.blocks.%d.attn.query.bias"}, |
| 88 | {ASR_TENSOR_ATTN_KEY_WEIGHTcxx . . $ ASR_TENSOR_ATTN_KEY_WEIGHT., "decoder.blocks.%d.attn.key.weight"}, |
| 89 | {ASR_TENSOR_ATTN_VALUE_WEIGHTcxx . . $ ASR_TENSOR_ATTN_VALUE_WEIGHT., "decoder.blocks.%d.attn.value.weight"}, |
| 90 | {ASR_TENSOR_ATTN_VALUE_BIAScxx . . $ ASR_TENSOR_ATTN_VALUE_BIAS., "decoder.blocks.%d.attn.value.bias"}, |
| 91 | {ASR_TENSOR_ATTN_OUT_WEIGHTcxx . . $ ASR_TENSOR_ATTN_OUT_WEIGHT., "decoder.blocks.%d.attn.out.weight"}, |
| 92 | {ASR_TENSOR_ATTN_OUT_BIAScxx . . $ ASR_TENSOR_ATTN_OUT_BIAS., "decoder.blocks.%d.attn.out.bias"}, |
| 93 | }, |
| 94 | }, |
| 95 | { |
| 96 | ASR_SYSTEM_CROSScxx . . $ ASR_SYSTEM_CROSS., |
| 97 | { |
| 98 | {ASR_TENSOR_ATTN_LN_WEIGHTcxx . . $ ASR_TENSOR_ATTN_LN_WEIGHT., "decoder.blocks.%d.cross_attn_ln.weight"}, |
| 99 | {ASR_TENSOR_ATTN_LN_BIAScxx . . $ ASR_TENSOR_ATTN_LN_BIAS., "decoder.blocks.%d.cross_attn_ln.bias"}, |
| 100 | {ASR_TENSOR_ATTN_QUERY_WEIGHTcxx . . $ ASR_TENSOR_ATTN_QUERY_WEIGHT., "decoder.blocks.%d.cross_attn.query.weight"}, |
| 101 | {ASR_TENSOR_ATTN_QUERY_BIAScxx . . $ ASR_TENSOR_ATTN_QUERY_BIAS., "decoder.blocks.%d.cross_attn.query.bias"}, |
| 102 | {ASR_TENSOR_ATTN_KEY_WEIGHTcxx . . $ ASR_TENSOR_ATTN_KEY_WEIGHT., "decoder.blocks.%d.cross_attn.key.weight"}, |
| 103 | {ASR_TENSOR_ATTN_VALUE_WEIGHTcxx . . $ ASR_TENSOR_ATTN_VALUE_WEIGHT., "decoder.blocks.%d.cross_attn.value.weight"}, |
| 104 | {ASR_TENSOR_ATTN_VALUE_BIAScxx . . $ ASR_TENSOR_ATTN_VALUE_BIAS., "decoder.blocks.%d.cross_attn.value.bias"}, |
| 105 | {ASR_TENSOR_ATTN_OUT_WEIGHTcxx . . $ ASR_TENSOR_ATTN_OUT_WEIGHT., "decoder.blocks.%d.cross_attn.out.weight"}, |
| 106 | {ASR_TENSOR_ATTN_OUT_BIAScxx . . $ ASR_TENSOR_ATTN_OUT_BIAS., "decoder.blocks.%d.cross_attn.out.bias"}, |
| 107 | }, |
| 108 | }, |
| 109 | }; |
| 110 | |
| 111 | static const stdcxx . . $ std/::mapcxx . . $ std/map#<asr_tensorcxx . . $ asr_tensor#, ggml_op> ASR_TENSOR_INFOcxx . . $ ASR_TENSOR_INFO. = {cxx . . $ std/map#map(7786ef3e167e36fa). |
| 112 | {ASR_TENSOR_ENC_POS_EMBDcxx . . $ ASR_TENSOR_ENC_POS_EMBD., GGML_OP_ADD}, |
| 113 | {ASR_TENSOR_DEC_POS_EMBDcxx . . $ ASR_TENSOR_DEC_POS_EMBD., GGML_OP_GET_ROWS}, |
| 114 | // Note: ASR_TENSOR_DEC_TOKEN_EMBD_WEIGHT is also used by GGML_OP_MAT_MUL. Need to figure out a way how to handle |
| 115 | // weight tensors that are used by multiple different operators when extra_buffer_type implementations accelerate |
| 116 | // more than just GGML_OP_MUL_MAT. |
| 117 | {ASR_TENSOR_DEC_TOKEN_EMBD_WEIGHTcxx . . $ ASR_TENSOR_DEC_TOKEN_EMBD_WEIGHT., GGML_OP_GET_ROWS}, |
| 118 | {ASR_TENSOR_LN_WEIGHTcxx . . $ ASR_TENSOR_LN_WEIGHT., GGML_OP_MUL}, |
| 119 | {ASR_TENSOR_LN_BIAScxx . . $ ASR_TENSOR_LN_BIAS., GGML_OP_ADD}, |
| 120 | {ASR_TENSOR_CONV1_WEIGHTcxx . . $ ASR_TENSOR_CONV1_WEIGHT., GGML_OP_IM2COL}, |
| 121 | {ASR_TENSOR_CONV1_BIAScxx . . $ ASR_TENSOR_CONV1_BIAS., GGML_OP_ADD}, |
| 122 | {ASR_TENSOR_CONV2_WEIGHTcxx . . $ ASR_TENSOR_CONV2_WEIGHT., GGML_OP_IM2COL}, |
| 123 | {ASR_TENSOR_CONV2_BIAScxx . . $ ASR_TENSOR_CONV2_BIAS., GGML_OP_ADD}, |
| 124 | {ASR_TENSOR_LN_POST_WEIGHTcxx . . $ ASR_TENSOR_LN_POST_WEIGHT., GGML_OP_MUL}, |
| 125 | {ASR_TENSOR_LN_POST_BIAScxx . . $ ASR_TENSOR_LN_POST_BIAS., GGML_OP_ADD}, |
| 126 | {ASR_TENSOR_MLP_LN_WEIGHTcxx . . $ ASR_TENSOR_MLP_LN_WEIGHT., GGML_OP_MUL}, |
| 127 | {ASR_TENSOR_MLP_LN_BIAScxx . . $ ASR_TENSOR_MLP_LN_BIAS., GGML_OP_ADD}, |
| 128 | {ASR_TENSOR_MLP_0_WEIGHTcxx . . $ ASR_TENSOR_MLP_0_WEIGHT., GGML_OP_MUL_MAT}, |
| 129 | {ASR_TENSOR_MLP_0_BIAScxx . . $ ASR_TENSOR_MLP_0_BIAS., GGML_OP_ADD}, |
| 130 | {ASR_TENSOR_MLP_2_WEIGHTcxx . . $ ASR_TENSOR_MLP_2_WEIGHT., GGML_OP_MUL_MAT}, |
| 131 | {ASR_TENSOR_MLP_2_BIAScxx . . $ ASR_TENSOR_MLP_2_BIAS., GGML_OP_ADD}, |
| 132 | {ASR_TENSOR_ATTN_LN_WEIGHTcxx . . $ ASR_TENSOR_ATTN_LN_WEIGHT., GGML_OP_MUL}, |
| 133 | {ASR_TENSOR_ATTN_LN_BIAScxx . . $ ASR_TENSOR_ATTN_LN_BIAS., GGML_OP_ADD}, |
| 134 | {ASR_TENSOR_ATTN_QUERY_WEIGHTcxx . . $ ASR_TENSOR_ATTN_QUERY_WEIGHT., GGML_OP_MUL_MAT}, |
| 135 | {ASR_TENSOR_ATTN_QUERY_BIAScxx . . $ ASR_TENSOR_ATTN_QUERY_BIAS., GGML_OP_ADD}, |
| 136 | {ASR_TENSOR_ATTN_KEY_WEIGHTcxx . . $ ASR_TENSOR_ATTN_KEY_WEIGHT., GGML_OP_MUL_MAT}, |
| 137 | {ASR_TENSOR_ATTN_VALUE_WEIGHTcxx . . $ ASR_TENSOR_ATTN_VALUE_WEIGHT., GGML_OP_MUL_MAT}, |
| 138 | {ASR_TENSOR_ATTN_VALUE_BIAScxx . . $ ASR_TENSOR_ATTN_VALUE_BIAS., GGML_OP_ADD}, |
| 139 | {ASR_TENSOR_ATTN_OUT_WEIGHTcxx . . $ ASR_TENSOR_ATTN_OUT_WEIGHT., GGML_OP_MUL_MAT}, |
| 140 | {ASR_TENSOR_ATTN_OUT_BIAScxx . . $ ASR_TENSOR_ATTN_OUT_BIAS., GGML_OP_ADD}, |
| 141 | }; |
| 142 | |
| 143 | enum vad_tensorcxx . . $ vad_tensor# { |
| 144 | VAD_TENSOR_STFT_BASIScxx . . $ VAD_TENSOR_STFT_BASIS., |
| 145 | VAD_TENSOR_ENC_0_WEIGHTcxx . . $ VAD_TENSOR_ENC_0_WEIGHT., |
| 146 | VAD_TENSOR_ENC_0_BIAScxx . . $ VAD_TENSOR_ENC_0_BIAS., |
| 147 | VAD_TENSOR_ENC_1_WEIGHTcxx . . $ VAD_TENSOR_ENC_1_WEIGHT., |
| 148 | VAD_TENSOR_ENC_1_BIAScxx . . $ VAD_TENSOR_ENC_1_BIAS., |
| 149 | VAD_TENSOR_ENC_2_WEIGHTcxx . . $ VAD_TENSOR_ENC_2_WEIGHT., |
| 150 | VAD_TENSOR_ENC_2_BIAScxx . . $ VAD_TENSOR_ENC_2_BIAS., |
| 151 | VAD_TENSOR_ENC_3_WEIGHTcxx . . $ VAD_TENSOR_ENC_3_WEIGHT., |
| 152 | VAD_TENSOR_ENC_3_BIAScxx . . $ VAD_TENSOR_ENC_3_BIAS., |
| 153 | VAD_TENSOR_LSTM_WEIGHT_IHcxx . . $ VAD_TENSOR_LSTM_WEIGHT_IH., |
| 154 | VAD_TENSOR_LSTM_WEIGHT_HHcxx . . $ VAD_TENSOR_LSTM_WEIGHT_HH., |
| 155 | VAD_TENSOR_LSTM_BIAS_IHcxx . . $ VAD_TENSOR_LSTM_BIAS_IH., |
| 156 | VAD_TENSOR_LSTM_BIAS_HHcxx . . $ VAD_TENSOR_LSTM_BIAS_HH., |
| 157 | VAD_TENSOR_FINAL_CONV_WEIGHTcxx . . $ VAD_TENSOR_FINAL_CONV_WEIGHT., |
| 158 | VAD_TENSOR_FINAL_CONV_BIAScxx . . $ VAD_TENSOR_FINAL_CONV_BIAS., |
| 159 | }; |
| 160 | |
| 161 | static const stdcxx . . $ std/::mapcxx . . $ std/map#<vad_tensorcxx . . $ vad_tensor#, ggml_op> VAD_TENSOR_OPScxx . . $ VAD_TENSOR_OPS. = {cxx . . $ std/map#map(7786ef3e167e36fa). |
| 162 | {VAD_TENSOR_STFT_BASIScxx . . $ VAD_TENSOR_STFT_BASIS., GGML_OP_IM2COL}, |
| 163 | {VAD_TENSOR_ENC_0_WEIGHTcxx . . $ VAD_TENSOR_ENC_0_WEIGHT., GGML_OP_IM2COL}, |
| 164 | {VAD_TENSOR_ENC_0_BIAScxx . . $ VAD_TENSOR_ENC_0_BIAS., GGML_OP_ADD}, |
| 165 | {VAD_TENSOR_ENC_1_WEIGHTcxx . . $ VAD_TENSOR_ENC_1_WEIGHT., GGML_OP_IM2COL}, |
| 166 | {VAD_TENSOR_ENC_1_BIAScxx . . $ VAD_TENSOR_ENC_1_BIAS., GGML_OP_ADD}, |
| 167 | {VAD_TENSOR_ENC_2_WEIGHTcxx . . $ VAD_TENSOR_ENC_2_WEIGHT., GGML_OP_IM2COL}, |
| 168 | {VAD_TENSOR_ENC_2_BIAScxx . . $ VAD_TENSOR_ENC_2_BIAS., GGML_OP_ADD}, |
| 169 | {VAD_TENSOR_ENC_3_WEIGHTcxx . . $ VAD_TENSOR_ENC_3_WEIGHT., GGML_OP_IM2COL}, |
| 170 | {VAD_TENSOR_ENC_3_BIAScxx . . $ VAD_TENSOR_ENC_3_BIAS., GGML_OP_ADD}, |
| 171 | |
| 172 | {VAD_TENSOR_LSTM_WEIGHT_IHcxx . . $ VAD_TENSOR_LSTM_WEIGHT_IH., GGML_OP_MUL_MAT}, |
| 173 | {VAD_TENSOR_LSTM_WEIGHT_HHcxx . . $ VAD_TENSOR_LSTM_WEIGHT_HH., GGML_OP_MUL_MAT}, |
| 174 | {VAD_TENSOR_LSTM_BIAS_IHcxx . . $ VAD_TENSOR_LSTM_BIAS_IH., GGML_OP_ADD}, |
| 175 | {VAD_TENSOR_LSTM_BIAS_HHcxx . . $ VAD_TENSOR_LSTM_BIAS_HH., GGML_OP_ADD}, |
| 176 | |
| 177 | {VAD_TENSOR_FINAL_CONV_WEIGHTcxx . . $ VAD_TENSOR_FINAL_CONV_WEIGHT., GGML_OP_IM2COL}, |
| 178 | {VAD_TENSOR_FINAL_CONV_BIAScxx . . $ VAD_TENSOR_FINAL_CONV_BIAS., GGML_OP_ADD} |
| 179 | }; |
| 180 | |
| 181 | static const stdcxx . . $ std/::mapcxx . . $ std/map#<vad_tensorcxx . . $ vad_tensor#, const char *> VAD_TENSOR_NAMEScxx . . $ VAD_TENSOR_NAMES. = {cxx . . $ std/map#map(7786ef3e167e36fa). |
| 182 | {VAD_TENSOR_STFT_BASIScxx . . $ VAD_TENSOR_STFT_BASIS., "_model.stft.forward_basis_buffer"}, |
| 183 | {VAD_TENSOR_ENC_0_WEIGHTcxx . . $ VAD_TENSOR_ENC_0_WEIGHT., "_model.encoder.0.reparam_conv.weight"}, |
| 184 | {VAD_TENSOR_ENC_0_BIAScxx . . $ VAD_TENSOR_ENC_0_BIAS., "_model.encoder.0.reparam_conv.bias"}, |
| 185 | {VAD_TENSOR_ENC_1_WEIGHTcxx . . $ VAD_TENSOR_ENC_1_WEIGHT., "_model.encoder.1.reparam_conv.weight"}, |
| 186 | {VAD_TENSOR_ENC_1_BIAScxx . . $ VAD_TENSOR_ENC_1_BIAS., "_model.encoder.1.reparam_conv.bias"}, |
| 187 | {VAD_TENSOR_ENC_2_WEIGHTcxx . . $ VAD_TENSOR_ENC_2_WEIGHT., "_model.encoder.2.reparam_conv.weight"}, |
| 188 | {VAD_TENSOR_ENC_2_BIAScxx . . $ VAD_TENSOR_ENC_2_BIAS., "_model.encoder.2.reparam_conv.bias"}, |
| 189 | {VAD_TENSOR_ENC_3_WEIGHTcxx . . $ VAD_TENSOR_ENC_3_WEIGHT., "_model.encoder.3.reparam_conv.weight"}, |
| 190 | {VAD_TENSOR_ENC_3_BIAScxx . . $ VAD_TENSOR_ENC_3_BIAS., "_model.encoder.3.reparam_conv.bias"}, |
| 191 | {VAD_TENSOR_LSTM_WEIGHT_IHcxx . . $ VAD_TENSOR_LSTM_WEIGHT_IH., "_model.decoder.rnn.weight_ih"}, |
| 192 | {VAD_TENSOR_LSTM_WEIGHT_HHcxx . . $ VAD_TENSOR_LSTM_WEIGHT_HH., "_model.decoder.rnn.weight_hh"}, |
| 193 | {VAD_TENSOR_LSTM_BIAS_IHcxx . . $ VAD_TENSOR_LSTM_BIAS_IH., "_model.decoder.rnn.bias_ih"}, |
| 194 | {VAD_TENSOR_LSTM_BIAS_HHcxx . . $ VAD_TENSOR_LSTM_BIAS_HH., "_model.decoder.rnn.bias_hh"}, |
| 195 | {VAD_TENSOR_FINAL_CONV_WEIGHTcxx . . $ VAD_TENSOR_FINAL_CONV_WEIGHT., "_model.decoder.decoder.2.weight"}, |
| 196 | {VAD_TENSOR_FINAL_CONV_BIAScxx . . $ VAD_TENSOR_FINAL_CONV_BIAS., "_model.decoder.decoder.2.bias"} |
| 197 | }; |