Drop down the maximum layer with the minimum layer form consumer
| 563 | |
| 564 | // Drop down the maximum layer with the minimum layer form consumer |
| 565 | void SbpNode::DropMaxLayer(int32_t upper_bound) { |
| 566 | if (upper_bound < max_layer_ || max_layer_ < 0) { max_layer_ = upper_bound; } |
| 567 | } |
| 568 | |
| 569 | // Set max_layer_ = min_layer_ if this node does not have any consumer |
| 570 | // This is the end of the whole graph |