Home
last modified time | relevance | path

Searched defs:ShapeIndex (Results 1 – 25 of 43) sorted by relevance

12

/aosp_15_r20/external/tensorflow/tensorflow/compiler/xla/
H A Dshape_util.h73 struct ShapeIndex : public absl::InlinedVector<int64_t, 2> { struct
77 explicit ShapeIndex(ShapeIndexView view) in ShapeIndex() function
87 std::ostream& operator<<(std::ostream& out, const ShapeIndex& shape_index); argument
H A Dshape_tree_test.cc66 int_tree.ForEachElement([&num_nodes](const ShapeIndex& /*index*/, int data) { in TestShapeConstructor()
75 [&num_nodes](const ShapeIndex& /*index*/, bool data) { in TestShapeConstructor()
92 tree.ForEachElement([&num_nodes](const ShapeIndex& /*index*/, int data) { in TestInitValueConstructor()
100 [&num_nodes](const ShapeIndex& /*index*/, int* data) { in TestInitValueConstructor()
108 tree.ForEachElement([&num_nodes](const ShapeIndex& /*index*/, int data) { in TestInitValueConstructor()
172 [&sum](const ShapeIndex& /*index*/, int data) { sum += data; }); in TEST_F()
184 [](const ShapeIndex& /*index*/, int* data) { *data = 0; }); in TEST_F()
391 t.ForEachElement([&num_nodes](const ShapeIndex& /*index*/, int data) { in TEST_F()
H A Dshape_tree.h217 absl::FunctionRef<void(const ShapeIndex&, const T&)> func) const { in ForEachElement()
224 absl::FunctionRef<void(const ShapeIndex&, T*)> func) { in ForEachMutableElement()
233 absl::FunctionRef<Status(const ShapeIndex&, const T&)> func) const { in ForEachElementWithStatus()
241 absl::FunctionRef<Status(const ShapeIndex&, T*)> func) { in ForEachMutableElementWithStatus()
H A Dlayout_util.cc287 shape, [](Shape* subshape, const ShapeIndex&) { in ClearTiles()
/aosp_15_r20/external/tensorflow/tensorflow/compiler/xla/service/
H A Dtuple_points_to_analysis.cc54 [&ambiguous](const ShapeIndex& /*index*/, const BufferList& points_to) { in IsAmbiguous()
63 ForEachElement([&](const ShapeIndex& /*index*/, const BufferList& points_to) { in IsDistinct()
83 [&flat_set](const ShapeIndex& /*index*/, const BufferList& buffers) { in CreateFlattenedSet()
101 const ShapeIndex& index) const { in ContainsBufferAtIndex() argument
H A Dwhile_loop_invariant_code_motion.cc240 const ShapeIndex& /*index*/) { in TryHoistingInvariantInstructionsFromWhileBody()
249 const ShapeIndex& /*index*/) { in TryHoistingInvariantInstructionsFromWhileBody()
H A Ddynamic_dimension_inference.cc1308 hlo, [&](HloInstruction*, ShapeIndex /*index*/, int64_t dimension, in HandleDynamicSlice() argument
1332 [&](HloInstruction* /*operand*/, ShapeIndex /*index*/, int64_t dimension, in HandleDynamicUpdateSlice() argument
1333 int64_t operand_index, HloInstruction* dynamic_size) { in HandleDynamicUpdateSlice()
1368 HloInstruction* dynamic_size) { in HandleGather()
1458 HloInstruction* dynamic_size) -> Status { in HandleConditional()
1630 int64_t operand_index, HloInstruction* operand_dynamic_size) { in HandleScatter()
H A Doptimize_input_output_buffer_alias_test.cc47 [&](const ShapeIndex&, const HloInputOutputAliasConfig::Alias&) { in AliasCount()
H A Dwhile_loop_simplifier.cc958 subshape, [&](const Shape& s, const ShapeIndex& /*index*/) { in UnflattenTupleInstr()
1020 [&](const Shape& s, const ShapeIndex& /*index*/) { in TryFlattenNestedTuples()
H A Dhlo_input_output_alias_config.cc128 [&](const xla::ShapeIndex&, std::optional<Alias> alias) { in ParameterMustAlias()
H A Dwhile_loop_expensive_invariant_code_motion.cc283 const ShapeIndex& /*index*/) { in TryHoistingInvariantInstructionsFromWhileBody()
/aosp_15_r20/external/tensorflow/tensorflow/compiler/xla/tests/
H A Dclient_library_test_base.cc332 &layout_shape, [&](Shape* subshape, const ShapeIndex& /*index*/) { in ComputeAndCompareLiteralWithStatus()
390 &layout_shape, [&](Shape* subshape, const ShapeIndex& /*index*/) { in ComputeAndCompareLiteralWithStatus()
624 [](Shape* subshape, const ShapeIndex&) { in MaybeConvertShapeToBfloat16()
H A Dliteral_test_util.cc53 const ShapeIndex& /*shape_index*/, in OnMiscompare()
/aosp_15_r20/external/tensorflow/tensorflow/compiler/xla/service/cpu/
H A Dcpu_shape_verifier.cc22 hlo->shape(), [&](const Shape& shape, const ShapeIndex&) { in Preprocess()
/aosp_15_r20/external/tensorflow/tensorflow/compiler/xla/service/gpu/
H A Dgpu_shape_verifier.cc22 hlo->shape(), [&](const Shape& shape, const ShapeIndex&) { in Preprocess()
H A Dgpu_executable.cc889 absl::flat_hash_map<ShapeIndex, GpuExecutable::OutputInfo>* output_info, in SetUpMlirAllocation()
1011 absl::flat_hash_map<ShapeIndex, OutputInfo> output_info, in GpuExecutable()
/aosp_15_r20/external/tensorflow/tensorflow/compiler/xla/pjrt/
H A Dtracked_device_buffer_test.cc35 [&](const Shape& subshape, const ShapeIndex&) -> Status { in MakeArray()
H A Dtracked_device_buffer.cc109 shaped_buffer->on_device_shape(), [&](const Shape&, const ShapeIndex&) { in FromScopedShapedBuffer()
/aosp_15_r20/external/tensorflow/tensorflow/core/tpu/kernels/
H A Dtpu_executable_info.proto39 message ShapeIndex { message
/aosp_15_r20/external/tensorflow/tensorflow/compiler/xla/tools/
H A Drun_hlo_module.cc82 const ShapeIndex& /*shape_index*/, in OnMiscompare()
/aosp_15_r20/external/tensorflow/tensorflow/compiler/xla/python/
H A Dops.cc200 CustomCallApiVersion api_version) -> XlaOp { in BuildOpsSubmodule()
H A Doutfeed_receiver.cc430 &shape_with_layout, [](Shape* subshape, const ShapeIndex&) { in AddOutfeedToBuilder()
H A Dxla.cc163 &shape_with_layout, [](Shape* subshape, const ShapeIndex&) { in PYBIND11_MODULE()
H A Dxla_client.py233 ShapeIndex = _xla.ShapeIndex variable
/aosp_15_r20/external/tensorflow/tensorflow/compiler/xla/client/
H A Dxla_builder.cc1970 absl::Span<const std::pair<ShapeIndex, std::pair<int64_t, ShapeIndex>>> in CustomCall()
2018 absl::Span<const std::pair<ShapeIndex, std::pair<int64_t, ShapeIndex>>> in CustomCallInternal()
2079 absl::Span<const std::pair<ShapeIndex, std::pair<int64_t, ShapeIndex>>> in CustomCall()
4424 absl::Span<const std::pair<ShapeIndex, std::pair<int64_t, ShapeIndex>>> in CustomCall()
4439 absl::Span<const std::pair<ShapeIndex, std::pair<int64_t, ShapeIndex>>> in CustomCallWithComputation()
4454 absl::Span<const std::pair<ShapeIndex, std::pair<int64_t, ShapeIndex>>> in CustomCallWithLayout()
4469 absl::Span<const std::pair<ShapeIndex, std::pair<int64_t, ShapeIndex>>> in CustomCallWithConvDnums()

12