| 1690 | } |
| 1691 | |
| 1692 | void ChannelImpl::DynamicSublinear::insert_candidate(TensorInfo* ptr) { |
| 1693 | // tensor to be inserted must be brand new |
| 1694 | mgb_assert( |
| 1695 | ptr->cand_index == UINT_MAX, "got wrong candidate index : %lu", |
| 1696 | ptr->cand_index); |
| 1697 | ptr->cand_index = candidates.size(); |
| 1698 | candidates.push_back(ptr); |
| 1699 | if (!comp_node.valid()) { |
| 1700 | comp_node = ptr->ptr->comp_node(); |
| 1701 | } |
| 1702 | } |
| 1703 | |
| 1704 | void ChannelImpl::DynamicSublinear::erase_candidate(TensorInfo* ptr) { |
| 1705 | // close dtr will just clear candidates, so nothing to erase |
no test coverage detected