| 792 | } |
| 793 | |
| 794 | void Graph::ReleaseNode(Node* node) { |
| 795 | TF_DCHECK_OK(IsValidNode(node)) << node->DebugString(); |
| 796 | nodes_[node->id()] = nullptr; |
| 797 | free_nodes_.push_back(node); |
| 798 | --num_nodes_; |
| 799 | node->Clear(); |
| 800 | } |
| 801 | |
| 802 | // Ensures that 'device_name' is present in the device name table, and returns |
| 803 | // the index of that device name. The index is stable, and can be used in |
nothing calls this directly
no test coverage detected