Returns true if the node at the given index is a leaf node (an array shape).
| 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; |
no outgoing calls