소스 검색

modify return value of function Segment (#208)

LIN 2 년 전
부모
커밋
9b741d6803
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      sherpa-ncnn/csrc/conv-emformer-model.h

+ 1 - 1
sherpa-ncnn/csrc/conv-emformer-model.h

@@ -50,7 +50,7 @@ class ConvEmformerModel : public Model {
     // subsampling factor 4
     //
     // segment = 32 + (8 + 2 * 4 + 3) = 32 + 19 = 51
-    return 51;
+    return chunk_length_ + (right_context_length_ + 2 * 4 + 3);
   }
 
   // Advance the feature extract by this number of frames after