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

Method leaf_count

tensorflow/compiler/xla/shape_tree.h:238–238  ·  view source on GitHub ↗

Returns the number of leaf nodes in the tree.

Source from the content-addressed store, hash-verified

236
237 // Returns the number of leaf nodes in the tree.
238 int64 leaf_count() const { return std::distance(leaf_begin(), leaf_end()); }
239
240 // Recursively traverses the shape and calls the given function at each
241 // element. The function has the following arguments:

Callers 5

TEST_FFunction · 0.80
testTupleShapeMethod · 0.80
ParameterWithShapeMethod · 0.80
TupleMethod · 0.80
ApplyShardingFromUsersFunction · 0.80

Calls

no outgoing calls

Tested by 2

TEST_FFunction · 0.64
testTupleShapeMethod · 0.64