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

@@ -282,11 +282,12 @@ class OnlineZipformer2CtcModel::Impl {
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(query_head_dims_, "query_head_dims");