- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for pos (0.12 sec)
-
tensorflow/c/c_api.cc
TF_Operation* TF_GraphNextOperation(TF_Graph* graph, size_t* pos) { if (*pos == 0) { // Advance past the first sentinel nodes in every graph (the source & sink). *pos += 2; } else { // Advance to the next node. *pos += 1; } mutex_lock l(graph->mu); while (*pos < static_cast<size_t>(graph->graph.num_node_ids())) { Node* node = graph->graph.FindNodeId(*pos);
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Mon Apr 15 03:35:10 GMT 2024 - 102.3K bytes - Viewed (0) -
tensorflow/c/c_api_test.cc
// Test iterating through the nodes of a graph. found_placeholder = false; found_scalar_const = false; found_add = false; bool found_neg = false; size_t pos = 0; TF_Operation* oper; while ((oper = TF_GraphNextOperation(graph, &pos)) != nullptr) { if (oper == feed) { EXPECT_FALSE(found_placeholder); found_placeholder = true; } else if (oper == three) {
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Mon Apr 15 03:35:10 GMT 2024 - 96.9K bytes - Viewed (3)