mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
fix fsmnvad
This commit is contained in:
parent
3346a7cdc7
commit
1631502283
@ -162,10 +162,10 @@ void FsmnVad::Forward(
|
||||
}
|
||||
|
||||
// get 4 caches outputs,each size is 128*19
|
||||
for (int i = 1; i < 5; i++) {
|
||||
float* data = vad_ort_outputs[i].GetTensorMutableData<float>();
|
||||
memcpy(in_cache_[i-1].data(), data, sizeof(float) * 128*19);
|
||||
}
|
||||
// for (int i = 1; i < 5; i++) {
|
||||
// float* data = vad_ort_outputs[i].GetTensorMutableData<float>();
|
||||
// memcpy(in_cache_[i-1].data(), data, sizeof(float) * 128*19);
|
||||
// }
|
||||
}
|
||||
|
||||
void FsmnVad::FbankKaldi(float sample_rate, std::vector<std::vector<float>> &vad_feats,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user