]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
whisper : minor fixes (#1154)
authorFangjun Kuang <redacted>
Sun, 27 Aug 2023 16:02:00 +0000 (00:02 +0800)
committerGitHub <redacted>
Sun, 27 Aug 2023 16:02:00 +0000 (19:02 +0300)
README.md
whisper.cpp
whisper.h

index 25b63c151a216606595849dc5893fc0ee723ef08..9192462bfe835a846c1021688a97f1695131476c 100644 (file)
--- a/README.md
+++ b/README.md
@@ -61,7 +61,7 @@ Or you can even run it straight in the browser: [talk.wasm](examples/talk.wasm)
 - Various other examples are available in the [examples](examples) folder
 
 The tensor operators are optimized heavily for Apple silicon CPUs. Depending on the computation size, Arm Neon SIMD
-instrisics or CBLAS Accelerate framework routines are used. The latter are especially effective for bigger sizes since
+intrinsics or CBLAS Accelerate framework routines are used. The latter are especially effective for bigger sizes since
 the Accelerate framework utilizes the special-purpose AMX coprocessor available in modern Apple products.
 
 ## Quick start
index eb8dff195d744b8c9a2b2c2d34f5c8fba0c10b63..e1cc6b77b1ae0d8e36586b8875dfdd6f4dedb6f9 100644 (file)
@@ -82,7 +82,7 @@ static void byteswap_tensor(ggml_tensor * tensor) {
     } while (0)
 #define BYTESWAP_TENSOR(t)       \
     do {                         \
-        byteswap_tensor(tensor); \
+        byteswap_tensor(t); \
     } while (0)
 #else
 #define BYTESWAP_VALUE(d) do {} while (0)
@@ -589,7 +589,7 @@ struct whisper_model {
 struct whisper_sequence {
     std::vector<whisper_token_data> tokens;
 
-    // the accumulated transcription in the current interation (used to truncate the tokens array)
+    // the accumulated transcription in the current iteration (used to truncate the tokens array)
     int result_len;
 
     double sum_logprobs_all; // the sum of the log probabilities of the tokens
index e7c1a1259f5a2d39725ddd8868613ac24d40dad7..588c287691ac78611dc1fb396b4d2808fac3ebc6 100644 (file)
--- a/whisper.h
+++ b/whisper.h
@@ -346,7 +346,7 @@ extern "C" {
                               void * user_data);
 
     // Parameters for the whisper_full() function
-    // If you chnage the order or add new parameters, make sure to update the default values in whisper.cpp:
+    // If you change the order or add new parameters, make sure to update the default values in whisper.cpp:
     // whisper_full_default_params()
     struct whisper_full_params {
         enum whisper_sampling_strategy strategy;