@@ -66,7 +66,7 @@ actor WhisperContext {
6666
6767 private func systemInfo( ) -> String {
6868 var info = " "
69- if ( ggml_cpu_has_neon ( ) != 0 ) { info += " NEON " }
69+ // if (ggml_cpu_has_neon() != 0) { info += "NEON " }
7070 return String ( info. dropLast ( ) )
7171 }
7272
@@ -75,45 +75,45 @@ actor WhisperContext {
7575 if ( whisper_set_mel ( context, nil , 0 , nMels) != 0 ) {
7676 return " error: failed to set mel "
7777 }
78-
78+
7979 // heat encoder
8080 if ( whisper_encode ( context, 0 , nThreads) != 0 ) {
8181 return " error: failed to encode "
8282 }
83-
83+
8484 var tokens = [ whisper_token] ( repeating: 0 , count: 512 )
85-
85+
8686 // prompt heat
8787 if ( whisper_decode ( context, & tokens, 256 , 0 , nThreads) != 0 ) {
8888 return " error: failed to decode "
8989 }
90-
90+
9191 // text-generation heat
9292 if ( whisper_decode ( context, & tokens, 1 , 256 , nThreads) != 0 ) {
9393 return " error: failed to decode "
9494 }
95-
95+
9696 whisper_reset_timings ( context)
97-
97+
9898 // actual run
9999 if ( whisper_encode ( context, 0 , nThreads) != 0 ) {
100100 return " error: failed to encode "
101101 }
102-
102+
103103 // text-generation
104104 for i in 0 ..< 256 {
105105 if ( whisper_decode ( context, & tokens, 1 , Int32 ( i) , nThreads) != 0 ) {
106106 return " error: failed to decode "
107107 }
108108 }
109-
109+
110110 // batched decoding
111111 for _ in 0 ..< 64 {
112112 if ( whisper_decode ( context, & tokens, 5 , 0 , nThreads) != 0 ) {
113113 return " error: failed to decode "
114114 }
115115 }
116-
116+
117117 // prompt processing
118118 for _ in 0 ..< 16 {
119119 if ( whisper_decode ( context, & tokens, 256 , 0 , nThreads) != 0 ) {
0 commit comments