fix static check alarm

This commit is contained in:
liujunzhu 2021-12-31 14:56:50 +08:00
parent 617965c751
commit 8f3fe4aa4a
1 changed files with 2 additions and 4 deletions

View File

@ -408,11 +408,9 @@ void SetFusionOpRefInfos(session::KernelGraph *kernel_graph, const std::vector<A
// As shown in the following graph, if A, B, and C are combined into E, // As shown in the following graph, if A, B, and C are combined into E,
// A -> B -> C // A -> B -> C
// -> D -> // -> D ->
//
// then E and D form a cycle. // then E and D form a cycle.
// _ // _
// E _ D // E _ D
//
bool CheckCircle(const session::KernelGraph &kernel_graph, const BufferFusionInfo_t &fusion_info) { bool CheckCircle(const session::KernelGraph &kernel_graph, const BufferFusionInfo_t &fusion_info) {
// The nodes do not form cycles before fusion. Checking is not necessary if one of the following conditions is met: // The nodes do not form cycles before fusion. Checking is not necessary if one of the following conditions is met:
// 1. All inputs to the fusion scope are passed to the first node in the scope. // 1. All inputs to the fusion scope are passed to the first node in the scope.