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

Method find

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

Returns an iterator pointing to the given ShapeIndex. REQUIRES: index must exist in the ShapeTree.

Source from the content-addressed store, hash-verified

224 // Returns an iterator pointing to the given ShapeIndex.
225 // REQUIRES: index must exist in the ShapeTree.
226 iterator find(ShapeIndexView index) {
227 Node* element = Lookup(index);
228 auto element_iter = nodes_.begin() + (element - &nodes_[0]);
229 return iterator(&nodes_, element_iter, /*iterate_leaves_only=*/false);
230 }
231 const_iterator find(ShapeIndexView index) const {
232 Node* element = Lookup(index);
233 auto element_iter = nodes_.cbegin() + (element - &nodes_[0]);

Callers 15

ReleaseMethod · 0.45
LookupMethod · 0.45
ReleaseMethod · 0.45
DiscardEntryRefLockedMethod · 0.45
CompileIfKeyAbsentMethod · 0.45
LookupMethod · 0.45
LookupOperationMethod · 0.45
GetClientMethod · 0.45
AssignClientToThreadMethod · 0.45
runlit.site.cfg.pyFile · 0.45
GetTensorIndicesFunction · 0.45

Calls 3

iteratorClass · 0.50
const_iteratorClass · 0.50
beginMethod · 0.45

Tested by 15

TESTFunction · 0.36
EqualProtoMapFunction · 0.36
EqualFunctionDefLibraryFunction · 0.36
EqualProtoMapFunction · 0.36
EqualFunctionDefLibraryFunction · 0.36
TESTFunction · 0.36
ShapeAnnotationsMatchFunction · 0.36
TESTFunction · 0.36
IsReachableFunction · 0.36
ExpectAttributesMatchFunction · 0.36
TEST_FFunction · 0.36
DeallocateMethod · 0.36