Browse Source

[docs] Fix typo (#4201)

tags/20221128
Lry89757 GitHub 3 years ago
parent
commit
b16f8ca921
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      docs/faq.en.md
  2. +1
    -1
      docs/faq.md

+ 2
- 2
docs/faq.en.md View File

@@ -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
```
```

+ 1
- 1
docs/faq.md View File

@@ -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



Loading…
Cancel
Save