From 4737d226a370c166b9270172bd65059669f6c872 Mon Sep 17 00:00:00 2001 From: Lry89757 <77330637+LRY89757@users.noreply.github.com> Date: Thu, 15 Sep 2022 10:40:37 +0800 Subject: [PATCH 1/3] Update faq.md --- docs/faq.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/faq.md b/docs/faq.md index 4701414c57d..e739176decb 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -111,7 +111,7 @@ # 怎样添加ncnn库到项目中?cmake方式怎么用? -编译ncnn,make install。linux/windows set/export ncnn_DIR 指向 isntall目录下下包含ncnnConfig.cmake 的目录 +编译ncnn,make install。linux/windows set/export ncnn_DIR 指向 install目录下下包含ncnnConfig.cmake 的目录 - ## android From 644863a4229602d4c6e72b55c09ca44c89e182a6 Mon Sep 17 00:00:00 2001 From: Lry89757 <77330637+LRY89757@users.noreply.github.com> Date: Thu, 15 Sep 2022 10:45:48 +0800 Subject: [PATCH 2/3] Update faq.md --- docs/faq.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/faq.md b/docs/faq.md index e739176decb..8d72b792dfa 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -111,7 +111,7 @@ # 怎样添加ncnn库到项目中?cmake方式怎么用? -编译ncnn,make install。linux/windows set/export ncnn_DIR 指向 install目录下下包含ncnnConfig.cmake 的目录 +编译ncnn,make install。linux/windows set/export ncnn_DIR 指向 install目录下包含ncnnConfig.cmake 的目录 - ## android From 79d87107981ec213d37d77cf9165b36892725027 Mon Sep 17 00:00:00 2001 From: Lry89757 <77330637+LRY89757@users.noreply.github.com> Date: Thu, 15 Sep 2022 10:49:06 +0800 Subject: [PATCH 3/3] Update faq.en.md --- docs/faq.en.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/faq.en.md b/docs/faq.en.md index 8675a2fc9d5..072d0b33e26 100644 --- a/docs/faq.en.md +++ b/docs/faq.en.md @@ -216,7 +216,7 @@ Fully customizable op, first change to one that can export (e.g. concat slice), 2. [Learn in 5 minutes! Converting TorchScript models to ncnn models with PNNX](https://zhuanlan.zhihu.com/p/427512763) -# 使用 +# Using - ## vkEnumeratePhysicalDevices failed -3 @@ -290,4 +290,4 @@ Fully customizable op, first change to one that can export (e.g. concat slice), ncnn::Mat in1(60, (void*)testData.data()).reshape(4, 5, 3); // just pass the pointer to the float data as a void*, and even specify the dimension (up says it's best to use reshape to solve the channel gap) float* a = new float[60]; // New a piece of memory yourself, you need to release it later ncnn::Mat in2 = ncnn::Mat(60, (void*)a).reshape(4, 5, 3).clone(); // use the same method as above, clone() to transfer data owner - ``` \ No newline at end of file + ```