Home
last modified time | relevance | path

Searched refs:ShapeIndexView (Results 1 – 18 of 18) sorted by relevance

/external/tensorflow/tensorflow/compiler/xla/
Dshape_util.h47 class ShapeIndexView; variable
75 explicit ShapeIndex(ShapeIndexView v);
126 class ShapeIndexView {
128 ShapeIndexView(const ShapeIndex& shape_index, int64 offset = 0)
132 ShapeIndexView(std::initializer_list<int64> indices) : indices_(indices) {} in ShapeIndexView() function
133 ShapeIndexView(const ShapeIndexView& other) = default;
149 ShapeIndexView ConsumeFront() const { in ConsumeFront()
150 ShapeIndexView result = *this; in ConsumeFront()
154 ShapeIndexView ConsumeBack() const { in ConsumeBack()
155 ShapeIndexView result = *this; in ConsumeBack()
[all …]
Dshape_tree.h121 const T& element(ShapeIndexView index) const;
122 T* mutable_element(ShapeIndexView index);
142 bool IsLeaf(ShapeIndexView index) const { return Lookup(index)->is_leaf; } in IsLeaf()
226 iterator find(ShapeIndexView index) { in find()
231 const_iterator find(ShapeIndexView index) const { in find()
321 Node* Lookup(ShapeIndexView index);
322 const Node* Lookup(ShapeIndexView index) const;
597 const T& ShapeTree<T>::element(ShapeIndexView index) const { in element()
602 T* ShapeTree<T>::mutable_element(ShapeIndexView index) { in mutable_element()
607 internal::ShapeTreeNode<T>* ShapeTree<T>::Lookup(ShapeIndexView index) { in Lookup()
[all …]
Dshape_util.cc83 string ShapeIndex::ToString() const { return ShapeIndexView(*this).ToString(); } in ToString()
85 string ShapeIndexView::ToString() const { in ToString()
89 bool ShapeIndexView::operator==(const ShapeIndexView& other) const { in operator ==()
93 bool ShapeIndexView::operator!=(const ShapeIndexView& other) const { in operator !=()
102 std::ostream& operator<<(std::ostream& out, const ShapeIndexView& shape_index) { in operator <<()
107 bool ShapeIndexView::StartsWith(ShapeIndexView prefix) const { in StartsWith()
403 ShapeIndexView index, in UpdateDynamicDimension()
897 ShapeIndexView index) { in IndexIsValid()
909 ShapeIndexView index) { in GetSubshape()
920 const Shape& shape, ShapeIndexView index) { in TryGetSubshape()
[all …]
Dshape_layout.h82 void ResetLayout(const Layout& layout, ShapeIndexView shape_index);
Dshape_layout.cc76 ShapeIndexView shape_index) { in ResetLayout()
Dshape_util_test.cc39 ShapeIndexView index_view(index, 1); in TEST()
41 EXPECT_EQ(ShapeIndexView({2, 3, 4}), index_view); in TEST()
42 EXPECT_EQ(ShapeIndexView({3, 4}), index_view.ConsumeFront()); in TEST()
43 EXPECT_EQ(ShapeIndexView({2, 3}), index_view.ConsumeBack()); in TEST()
/external/tensorflow/tensorflow/compiler/xla/service/gpu/
Dhlo_to_ir_bindings.h52 ShapeIndexView shape_index = {});
72 ShapeIndexView shape_index = {}) const {
98 ShapeIndexView shape_index,
Dhlo_to_ir_bindings.cc141 ShapeIndexView shape_index, in GetTypedIrValue()
156 ShapeIndexView shape_index) { in BindHloToIrValue()
Dir_emitter.h132 ShapeIndexView shape_index = {}) const {
/external/tensorflow/tensorflow/compiler/xla/service/
Dmemory_space_propagation.h37 bool Propagate(ShapeIndexView index, const HloInstruction* callee_instruction,
Dmemory_space_propagation.cc56 bool MemorySpacePropagation::Propagate(ShapeIndexView index, in Propagate()
Dshaped_buffer.h201 ScopedShapedBuffer TakeSubTree(ShapeIndexView index);
Dshaped_buffer.cc175 ScopedShapedBuffer ScopedShapedBuffer::TakeSubTree(ShapeIndexView index) { in TakeSubTree()
Dshaped_buffer_test.cc146 if (ShapeIndexView(index).StartsWith(subtree_index)) { in TEST()
Dpattern_matcher.h881 ShapeIndexView index,
920 ShapeIndexView index_;
1033 ShapeIndexView index,
1045 WithSubshapeEqualTo(ShapeIndexView index, const ::xla::Shape* shape) const {
1058 WithSubshapeCompatibleTo(ShapeIndexView index,
Ddynamic_dimension_inference.cc218 ShapeIndexView(index).ConsumeFront().ToShapeIndex(); in HandleGetTupleElement()
/external/tensorflow/tensorflow/compiler/xla/tests/
Dhlo_test_base.h283 ShapeIndexView shape_index) { in ForceResultLayout()
/external/tensorflow/tensorflow/compiler/xla/service/spmd/
Dspmd_partitioner.cc2598 ShapeUtil::GetSubshape(shard_shape, ShapeIndexView(index, 1)); in HandleInfeed()
3007 per_branch_partitioned_shapes[i], ShapeIndexView(index)); in HandleOutfeed()