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

Method Lookup

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

Source from the content-addressed store, hash-verified

566
567template <typename T>
568internal::ShapeTreeNode<T>* ShapeTree<T>::Lookup(ShapeIndexView index) {
569 Index* iter = &index_table_[0];
570 for (const int64 i : index) {
571 CHECK_GE(i, 0);
572#ifndef NDEBUG
573 CHECK_LT(i, iter->children_count);
574#endif
575 iter = &index_table_[iter->children_start + i];
576 }
577
578 return &nodes_[iter->index];
579}
580
581template <typename T>
582const internal::ShapeTreeNode<T>* ShapeTree<T>::Lookup(

Callers 7

CreateSavedModelIRFunction · 0.45
xla_context.ccFile · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
ComputeMethod · 0.45
ComputeMethod · 0.45

Calls

no outgoing calls

Tested by 2

TEST_FFunction · 0.36
TEST_FFunction · 0.36