From 253451a172e526da116c4514ce76abb7ee185b10 Mon Sep 17 00:00:00 2001 From: hugo-syn Date: Fri, 19 Jan 2024 15:58:09 +0100 Subject: [PATCH] chore: Fix multiple typos Signed-off-by: hugo-syn --- docs/developer-guide/glsl-extension.md | 2 +- tools/pnnx/src/pass_level2/F_scaled_dot_product_attention.cpp | 2 +- tools/pnnx/src/pass_ncnn/insert_reshape_global_pooling.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/developer-guide/glsl-extension.md b/docs/developer-guide/glsl-extension.md index f870030a7c7..82ae035e46d 100644 --- a/docs/developer-guide/glsl-extension.md +++ b/docs/developer-guide/glsl-extension.md @@ -99,7 +99,7 @@ void main() )"; Option opt; - // you can control the extention behavior + // you can control the extension behavior // even if the gpu supports 16bit storage opt.use_fp16_storage = false; diff --git a/tools/pnnx/src/pass_level2/F_scaled_dot_product_attention.cpp b/tools/pnnx/src/pass_level2/F_scaled_dot_product_attention.cpp index ecfc6d8acaf..36ca3c334f2 100644 --- a/tools/pnnx/src/pass_level2/F_scaled_dot_product_attention.cpp +++ b/tools/pnnx/src/pass_level2/F_scaled_dot_product_attention.cpp @@ -72,7 +72,7 @@ pnnx.Output output 1 0 out if (captured_params.at("scale").type == 0) { - // drop scale=None for compatiblity with old torch + // drop scale=None for compatibility with old torch op->params.erase("scale"); } } diff --git a/tools/pnnx/src/pass_ncnn/insert_reshape_global_pooling.cpp b/tools/pnnx/src/pass_ncnn/insert_reshape_global_pooling.cpp index cf8b3bcd29e..0b59ef16406 100644 --- a/tools/pnnx/src/pass_ncnn/insert_reshape_global_pooling.cpp +++ b/tools/pnnx/src/pass_ncnn/insert_reshape_global_pooling.cpp @@ -23,7 +23,7 @@ namespace ncnn { static bool is_known_operator_handle_flatten_0(const Operator* op) { - // opeartors that have similiar behavior for (1,c,1,1,1)/(1,c,1,1)/(1,c,1) and (1,c) + // opeartors that have similar behavior for (1,c,1,1,1)/(1,c,1,1)/(1,c,1) and (1,c) static const char* operator_handle_flatten_0[] = { "F.batch_norm",