mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
fix FetchDynamic
This commit is contained in:
parent
63a70a00f7
commit
1d6cb3bba4
@ -1061,8 +1061,9 @@ int Audio::FetchDynamic(float**& dout, int*& len, int*& flag, float*& start_time
|
||||
#ifdef USE_GPU
|
||||
max_batch = batch_size;
|
||||
#endif
|
||||
max_batch = std::min(max_batch, (int)frame_queue.size());
|
||||
|
||||
for(int idx=0; idx < std::min(max_batch, (int)frame_queue.size()); idx++){
|
||||
for(int idx=0; idx < max_batch; idx++){
|
||||
AudioFrame *frame = frame_queue.front();
|
||||
int length = frame->GetLen();
|
||||
if(length >= max_sent){
|
||||
|
||||
Loading…
Reference in New Issue
Block a user