| 1680 | } |
| 1681 | |
| 1682 | std::shared_ptr<DsuNode> ChannelImpl::DynamicSublinear::find_father( |
| 1683 | std::shared_ptr<DsuNode>& x) { |
| 1684 | if (x->is_root()) { |
| 1685 | return x; |
| 1686 | } else { |
| 1687 | auto&& fa = find_father(x->parent); |
| 1688 | return x->parent = fa; |
| 1689 | } |
| 1690 | } |
| 1691 | |
| 1692 | void ChannelImpl::DynamicSublinear::insert_candidate(TensorInfo* ptr) { |
| 1693 | // tensor to be inserted must be brand new |