MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / num_nodes

Method num_nodes

tensorflow/core/graph/graph.h:651–651  ·  view source on GitHub ↗

The number of live nodes in the graph. Because nodes can be removed from the graph, num_nodes() is often smaller than num_node_ids(). If one needs to create an array of nodes indexed by node ids, num_node_ids() should be used as the array's size.

Source from the content-addressed store, hash-verified

649 // nodes indexed by node ids, num_node_ids() should be used as the
650 // array's size.
651 int num_nodes() const { return num_nodes_; }
652
653 // The number of live nodes in the graph, excluding the Source and Sink nodes.
654 int num_op_nodes() const {

Callers 14

TEST_FFunction · 0.45
VLogClusteringSummaryMethod · 0.45
BM_LargeTensorWriteFunction · 0.45
LoadGraphFromProtoMethod · 0.45
InitializeMethod · 0.45
TEST_FFunction · 0.45
RewriteGraphForExecutionFunction · 0.45
VerifyGraphStatsMethod · 0.45
TEST_FFunction · 0.45

Calls

no outgoing calls

Tested by 6

TEST_FFunction · 0.36
BM_LargeTensorWriteFunction · 0.36
TEST_FFunction · 0.36
VerifyGraphStatsMethod · 0.36
TEST_FFunction · 0.36