Explorar o código

modify return value of function Segment (#208)

LIN %!s(int64=2) %!d(string=hai) anos
pai
achega
9b741d6803
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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