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

Method IsLeaf

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

Returns true if the node at the given index is a leaf node (an array shape).

Source from the content-addressed store, hash-verified

138 // Returns true if the node at the given index is a leaf node (an array
139 // shape).
140 bool IsLeaf(ShapeIndexView index) const { return Lookup(index)->is_leaf; }
141
142 ShapeTree(const ShapeTree&) = default;
143 ShapeTree& operator=(const ShapeTree&) = default;

Callers 6

ExpandTreeOfTuplesMethod · 0.80
MakeTupleMethod · 0.80
ParseTupleTreeMethod · 0.80
TEST_FFunction · 0.80
AssignTreeShardingFunction · 0.80
AppendBuffersForFunction · 0.80

Calls

no outgoing calls

Tested by 1

TEST_FFunction · 0.64