MCPcopy Create free account
hub / github.com/ml-explore/mlx-data / final_node

Method final_node

mlx/data/core/Graph.cpp:147–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147void GraphBase::final_node(int64_t id) {
148 if (id < 0 || id >= nodes_.size()) {
149 throw std::runtime_error("Graph: invalid node id");
150 }
151 finalNodeIds_.insert(id);
152}
153
154bool GraphBase::is_start_node(int64_t id) const {
155 return startNodeIds_.find(id) != startNodeIds_.end();

Callers 1

tokenizeFunction · 0.80

Calls 2

insertMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected