Skip to content

Commit

Permalink
chore:梳理pipeline并行需求
Browse files Browse the repository at this point in the history
  • Loading branch information
Alwaysssssss committed Oct 2, 2023
1 parent 85cddef commit 0a212c0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions docs/source/development/always_dairy.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,8 @@
+ 中秋请假
+ Pipeline并行模式的探索


## 2023.10.01
+ init -> reshape -> 写入输入/写入输出 -> run 都有可能分配内存

+ (input)前处理 -》 推理 -》 后处理 (output)
8 changes: 4 additions & 4 deletions source/nndeploy/model/pipeline.cc
Original file line number Diff line number Diff line change
Expand Up @@ -246,10 +246,10 @@ base::Status Pipeline::init() {
/**
* @brief
* @note
* # 联通图
* # task并行
* # task串行
* # 条件并行
* # 联通图(多个独立的子图)
* # task并行(图中存在可以并行的task)
* # 流水线并行(通过流水线的方式并行)
* # 条件并行(通过条件判断的方式并行)
*/
status = topologicalSort();
if (status != base::kStatusCodeOk) {
Expand Down

0 comments on commit 0a212c0

Please sign in to comment.