提交 d2809954 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!2957 fix stream for memory reuse

Merge pull request !2957 from gukecai/fix-stream-bug
...@@ -1106,7 +1106,7 @@ StreamActiveKind AscendStreamAssign::GetStreamActiveKind(const NotNull<KernelGra ...@@ -1106,7 +1106,7 @@ StreamActiveKind AscendStreamAssign::GetStreamActiveKind(const NotNull<KernelGra
uint32_t pre_stream_id = UINT32_MAX; uint32_t pre_stream_id = UINT32_MAX;
uint32_t next_stream_id = UINT32_MAX; uint32_t next_stream_id = UINT32_MAX;
int32_t start = SizeToInt(index); int32_t start = SizeToInt(index) - 1;
for (int32_t i = start; i >= 0; i--) { for (int32_t i = start; i >= 0; i--) {
auto cnode = exe_orders[IntToSize(i)]; auto cnode = exe_orders[IntToSize(i)];
auto name = AnfAlgo::GetCNodeName(cnode); auto name = AnfAlgo::GetCNodeName(cnode);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册