Add WebAssembly for ASR (#604)

This commit is contained in:
Fangjun Kuang
2024-02-23 17:39:11 +08:00
committed by GitHub
parent a2df3535b7
commit 16ba7e274a
21 changed files with 1464 additions and 16 deletions

View File

@@ -107,11 +107,12 @@ void OnlineZipformerTransducerModel::InitEncoder(void *model_data,
if (config_.debug) {
auto print = [](const std::vector<int32_t> &v, const char *name) {
fprintf(stderr, "%s: ", name);
std::ostringstream os;
os << name << ": ";
for (auto i : v) {
fprintf(stderr, "%d ", i);
os << i << " ";
}
fprintf(stderr, "\n");
SHERPA_ONNX_LOGE("%s\n", os.str().c_str());
};
print(encoder_dims_, "encoder_dims");
print(attention_dims_, "attention_dims");