csukuangfj commited on
Commit
c9bdbf5
1 Parent(s): a3752c6

Update export-ncnn.sh

Browse files
Files changed (1) hide show
  1. export-ncnn.sh +7 -6
export-ncnn.sh CHANGED
@@ -36,7 +36,7 @@ popd
36
  # 7767517
37
  # -2028 2547
38
  # +2029 2547
39
- # +SherpaMetaData sherpa_meta_data1 0 0 0=2 1=32 2=4 3=7 -23316=5,2,4,3,2,4 -23317=5,384,384,384,384,384 -23318=5,192,192,192,192,192 -23319=5,1,2,4,8,2 -23320=5,31,31,31,31,31
40
  # Input in0 0 1 in0
41
  # Input in1 0 1 in1
42
  # Split splitncnn_0 1 2 in1 2 3
@@ -51,10 +51,11 @@ popd
51
  # (5) 1=32, attribute 1, 32 is the value of --decode-chunk-len
52
  # (6) 2=4, attribute 2, 4 is the value of --num-left-chunks
53
  # (7) 3=7, attribute 3, 7 is the pad length. The first subsampling layer is using (x_len - 7) // 2, so we use 7 here
54
- # (8) -23316=5,2,4,3,2,4, attribute 16, this is an array attribute. It is attribute 16 since -23300 - (-23316) = 16
 
55
  # the first element of the array is the length of the array, which is 5 in our case.
56
  # 2,4,3,2,4 is the value of --num-encoder-layers
57
- # (9) -23317=5,384,384,384,384,384, attribute 17. 384,384,384,384,384 is the value of --encoder-dims
58
- # (10) -23318=5,192,192,192,192,192, attribute 18, 192,192,192,192,192 is the value of --attention-dims
59
- # (11) -23319=5,1,2,4,8,2, attribute 19, 1,2,4,8,2 is the value of --zipformer-downsampling-factors
60
- # (12) -23320=5,31,31,31,31,31, attribute 20, 31,31,31,31,31 is the value of --cnn-module-kernels
 
36
  # 7767517
37
  # -2028 2547
38
  # +2029 2547
39
+ # +SherpaMetaData sherpa_meta_data1 0 0 0=2 1=32 2=4 3=7 15=1 -23316=5,2,4,3,2,4 -23317=5,384,384,384,384,384 -23318=5,192,192,192,192,192 -23319=5,1,2,4,8,2 -23320=5,31,31,31,31,31
40
  # Input in0 0 1 in0
41
  # Input in1 0 1 in1
42
  # Split splitncnn_0 1 2 in1 2 3
 
51
  # (5) 1=32, attribute 1, 32 is the value of --decode-chunk-len
52
  # (6) 2=4, attribute 2, 4 is the value of --num-left-chunks
53
  # (7) 3=7, attribute 3, 7 is the pad length. The first subsampling layer is using (x_len - 7) // 2, so we use 7 here
54
+ # (8) 15=1, attribute 15, 1 is the model version. We require it to be >=1 for sherpa-ncnn v2.0
55
+ # (9) -23316=5,2,4,3,2,4, attribute 16, this is an array attribute. It is attribute 16 since -23300 - (-23316) = 16
56
  # the first element of the array is the length of the array, which is 5 in our case.
57
  # 2,4,3,2,4 is the value of --num-encoder-layers
58
+ # (10) -23317=5,384,384,384,384,384, attribute 17. 384,384,384,384,384 is the value of --encoder-dims
59
+ # (11) -23318=5,192,192,192,192,192, attribute 18, 192,192,192,192,192 is the value of --attention-dims
60
+ # (12) -23319=5,1,2,4,8,2, attribute 19, 1,2,4,8,2 is the value of --zipformer-downsampling-factors
61
+ # (13) -23320=5,31,31,31,31,31, attribute 20, 31,31,31,31,31 is the value of --cnn-module-kernels