Skip to content
Snippets Groups Projects
Commit b2ac558f authored by dawehr's avatar dawehr
Browse files

Clarified comment

parent 7cec28d5
No related branches found
No related tags found
1 merge request!11Add node to computation graph by ID
......@@ -186,7 +186,8 @@ double graph_get_output(const struct computation_graph *graph, int node_id, int
/*
* Assumptions: The node passed in is a valid ID (should be checked before passing)
* and all node sources are either valid node-output pairs, or the source node ID == -1
* This function does not check those assumptions for speed
* These constraints should be satisfied by using the graph_set_source function, so long as
* a valid node ID is passed in to the first call of this function
*/
void graph_compute_node_rec(struct computation_graph *graph, int node_id, int depth) {
if (depth >= GRAPH_MAX_DEPTH) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment