| /external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
| D | NumberFormatDataDrivenTest.java | 128 public String format(DataDrivenNumberFormatTestData tuple) { 129 DecimalFormat fmt = createDecimalFormat(tuple); 130 String actual = fmt.format(toNumber(tuple.format)); 131 String expected = tuple.output; 139 public String toPattern(DataDrivenNumberFormatTestData tuple) { 140 DecimalFormat fmt = createDecimalFormat(tuple); 142 if (tuple.toPattern != null) { 143 String expected = tuple.toPattern; 149 if (tuple.toLocalizedPattern != null) { 150 String expected = tuple.toLocalizedPattern; [all …]
|
| /external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
| D | NumberFormatDataDrivenTest.java | 125 public String format(DataDrivenNumberFormatTestData tuple) { 126 DecimalFormat fmt = createDecimalFormat(tuple); 127 String actual = fmt.format(toNumber(tuple.format)); 128 String expected = tuple.output; 136 public String toPattern(DataDrivenNumberFormatTestData tuple) { 137 DecimalFormat fmt = createDecimalFormat(tuple); 139 if (tuple.toPattern != null) { 140 String expected = tuple.toPattern; 146 if (tuple.toLocalizedPattern != null) { 147 String expected = tuple.toLocalizedPattern; [all …]
|
| /external/icu/icu4c/source/test/intltest/ |
| D | numfmtdatadriventest.cpp | 69 static void adjustDecimalFormat(const NumberFormatTestTuple& tuple, DecimalFormat& fmt, in adjustDecimalFormat() argument 71 if (tuple.minIntegerDigitsFlag) { in adjustDecimalFormat() 72 fmt.setMinimumIntegerDigits(tuple.minIntegerDigits); in adjustDecimalFormat() 74 if (tuple.maxIntegerDigitsFlag) { in adjustDecimalFormat() 75 fmt.setMaximumIntegerDigits(tuple.maxIntegerDigits); in adjustDecimalFormat() 77 if (tuple.minFractionDigitsFlag) { in adjustDecimalFormat() 78 fmt.setMinimumFractionDigits(tuple.minFractionDigits); in adjustDecimalFormat() 80 if (tuple.maxFractionDigitsFlag) { in adjustDecimalFormat() 81 fmt.setMaximumFractionDigits(tuple.maxFractionDigits); in adjustDecimalFormat() 83 if (tuple.currencyFlag) { in adjustDecimalFormat() [all …]
|
| /external/tensorflow/tensorflow/compiler/xla/service/ |
| D | hlo_module_dce_test.cc | 44 // 'computation' passes through its tuple element at 'tuple_index' from 89 get-tuple-element.1 = s32[] get-tuple-element(loop_var.1), index=0 in TEST_F() 91 add = s32[] add(get-tuple-element.1, constant.1) in TEST_F() 92 get-tuple-element.2 = s32[3]{0} get-tuple-element(loop_var.1), index=1 in TEST_F() 93 multiply = s32[3]{0} multiply(get-tuple-element.2, get-tuple-element.2) in TEST_F() 94 ROOT tuple = (s32[], s32[3]{0}) tuple(add, multiply) in TEST_F() 98 get-tuple-element.3 = s32[] get-tuple-element(loop_var.2), index=0 in TEST_F() 100 ROOT less-than = pred[] compare(get-tuple-element.3, constant.2), direction=LT in TEST_F() 105 tuple.1 = (s32[], s32[3]{0}) tuple(constant.3, constant.4) in TEST_F() 106 ROOT while = (s32[], s32[3]{0}) while(tuple.1), condition= in TEST_F() [all …]
|
| D | hlo_liveness_analysis_test.cc | 93 // Test that all output shape indices of entry root tuple (and defining 101 ROOT tuple.1 = (s32[], s32[]) tuple(constant.1, constant.2) in TEST_F() 105 EXPECT_TRUE(liveness.IsLive(GetInstruction(module.get(), "tuple.1"), {})); in TEST_F() 106 EXPECT_TRUE(liveness.IsLive(GetInstruction(module.get(), "tuple.1"), {0})); in TEST_F() 107 EXPECT_TRUE(liveness.IsLive(GetInstruction(module.get(), "tuple.1"), {1})); in TEST_F() 112 // Tests that all outputs of nested tuple and entry root (and defining 121 tuple.1 = (s32[], s32[]) tuple(constant.2, constant.3) in TEST_F() 122 ROOT tuple.2 = (s32[], (s32[], s32[])) tuple(constant.1, tuple.1) in TEST_F() 126 EXPECT_TRUE(liveness.IsLive(GetInstruction(module.get(), "tuple.1"), {})); in TEST_F() 127 EXPECT_TRUE(liveness.IsLive(GetInstruction(module.get(), "tuple.1"), {0})); in TEST_F() [all …]
|
| D | hlo_replication_analysis_test.cc | 53 get-tuple-element.2 = f32[4096,4096]{1,0} get-tuple-element(param), index=0 in TEST_F() 54 get-tuple-element.3 = f32[4096,4096]{1,0} get-tuple-element(param), index=1 in TEST_F() 58 get-tuple-element.5 = f32[4096,4096]{1,0} get-tuple-element(infeed), index=0 in TEST_F() 59 dot = f32[4096,4096]{1,0} dot(get-tuple-element.5, get-tuple-element.3), in TEST_F() 63 subtract = f32[4096,4096]{1,0} subtract(get-tuple-element.3, all-reduce) in TEST_F() 68 ROOT add = f32[4096,4096]{1,0} add(get-tuple-element.2, subtract) in TEST_F() 81 FindInstruction(module.get(), "get-tuple-element.2"), {})); in TEST_F() 83 FindInstruction(module.get(), "get-tuple-element.3"), {})); in TEST_F() 85 FindInstruction(module.get(), "get-tuple-element.5"), {})); in TEST_F() 121 get-tuple-element.2 = f32[4096,4096]{1,0} get-tuple-element(param), index=0 in TEST_F() [all …]
|
| D | while_loop_simplifier_test.cc | 52 // the loop-condition through an element of a tuple which is the 64 get-tuple-element.1 = s32[] get-tuple-element(loop_var.1), index=0 in MakeModuleWithSimpleLoop() 66 add = s32[] add(get-tuple-element.1, constant.1) in MakeModuleWithSimpleLoop() 67 get-tuple-element.2 = s32[3]{0} get-tuple-element(loop_var.1), index=1 in MakeModuleWithSimpleLoop() 68 multiply = s32[3]{0} multiply(get-tuple-element.2, get-tuple-element.2) in MakeModuleWithSimpleLoop() 69 ROOT tuple = (s32[], s32[3]{0}) tuple(add, multiply) in MakeModuleWithSimpleLoop() 73 get-tuple-element.3 = s32[] get-tuple-element(loop_var.2), index=0 in MakeModuleWithSimpleLoop() 75 ROOT less-than = pred[] compare(get-tuple-element.3, constant.2), direction=LT in MakeModuleWithSimpleLoop() 80 tuple.1 = (s32[], s32[3]{0}) tuple(constant.3, constant.4) in MakeModuleWithSimpleLoop() 81 ROOT while = (s32[], s32[3]{0}) while(tuple.1), condition= in MakeModuleWithSimpleLoop() [all …]
|
| D | conditional_code_motion_test.cc | 49 %get-tuple-element.1 = f32[93184,4]{1,0} get-tuple-element(%arg_tuple.1), index=0 in TEST_F() 50 %reshape.8493 = f32[2,512,364]{2,1,0} reshape(f32[93184,4]{1,0} %get-tuple-element.1) in TEST_F() 52 …ROOT %tuple.1 = ( bf16[2,512,364]{2,1,0}, f32[2,512,364]{2,1,0}) tuple(%convert.2894, %reshape.849… in TEST_F() 57 %get-tuple-element.3 = f32[93184,4]{1,0} get-tuple-element(%arg_tuple.2), index=0 in TEST_F() 58 %reshape.9717 = f32[2,512,364]{2,1,0} reshape(f32[93184,4]{1,0} %get-tuple-element.3) in TEST_F() 61 ROOT %tuple.2 = (bf16[2,512,364]{2,1,0}, f32[2,512,364]{2,1,0}) tuple(%convert.3604, %add) in TEST_F() 69 get-first-index = bf16[2,512,364]{2,1,0} get-tuple-element(conditional), index=0 in TEST_F() 70 get-first-index.2 = f32[2,512,364]{2,1,0} get-tuple-element(conditional), index=1 in TEST_F() 71 …ROOT result = (bf16[2,512,364]{2,1,0}, f32[2,512,364]{2,1,0}) tuple(get-first-index, get-first-ind… in TEST_F() 79 EXPECT_THAT(root, AllOf(op::Tuple(op::Convert(), op::GetTupleElement()))); in TEST_F() [all …]
|
| D | copy_insertion_test.cc | 87 // Computation is a single parameter passed into a tuple. The parameter should in TEST_F() 88 // be copied before entering the tuple. in TEST_F() 92 HloInstruction* tuple = in TEST_F() local 95 EXPECT_THAT(x->users(), UnorderedElementsAre(tuple)); in TEST_F() 103 op::Tuple(op::Copy(x))); in TEST_F() 107 // Computation is a single constant passed into a tuple. The parameter should in TEST_F() 108 // be copied before entering the tuple. in TEST_F() 112 HloInstruction* tuple = in TEST_F() local 115 EXPECT_THAT(constant->users(), UnorderedElementsAre(tuple)); in TEST_F() 124 op::Tuple(op::Copy(constant))); in TEST_F() [all …]
|
| /external/tensorflow/tensorflow/compiler/mlir/hlo/tests/ |
| D | mhlo_flatten_tuple.mlir | 1 // RUN: mlir-hlo-opt -mhlo-flatten-tuple %s | FileCheck %s 61 …%0 = "mhlo.tuple"(%cst_0, %cst_1, %cst_2, %arg0) : (tensor<1xi32>, tensor<2xi32>, tensor<1xf32>, t… 63 …^bb0(%arg2: tuple<tensor<1xi32>, tensor<2xi32>, tensor<1xf32>, tensor<3xf32>>): // no predecessors 64 …%t0 = "mhlo.get_tuple_element"(%arg2) {index = 0 : i32} : (tuple<tensor<1xi32>, tensor<2xi32>, ten… 65 …%t1 = "mhlo.get_tuple_element"(%arg2) {index = 1 : i32} : (tuple<tensor<1xi32>, tensor<2xi32>, ten… 71 …^bb0(%arg2: tuple<tensor<1xi32>, tensor<2xi32>, tensor<1xf32>, tensor<3xf32>>): // no predecessors 72 …%t0 = "mhlo.get_tuple_element"(%arg2) {index = 0 : i32} : (tuple<tensor<1xi32>, tensor<2xi32>, ten… 73 …%t1 = "mhlo.get_tuple_element"(%arg2) {index = 1 : i32} : (tuple<tensor<1xi32>, tensor<2xi32>, ten… 74 …%t2 = "mhlo.get_tuple_element"(%arg2) {index = 2 : i32} : (tuple<tensor<1xi32>, tensor<2xi32>, ten… 75 …%t3 = "mhlo.get_tuple_element"(%arg2) {index = 3 : i32} : (tuple<tensor<1xi32>, tensor<2xi32>, ten… [all …]
|
| /external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/ |
| D | implicit_deduction_guides.pass.cpp | 18 // <tuple> 20 // Test that the constructors offered by std::tuple are formulated 24 #include <tuple> 36 // (1) tuple(const Types&...) -> tuple<Types...> 37 // (2) explicit tuple(const Types&...) -> tuple<Types...> 38 // (3) tuple(AT, A const&, Types const&...) -> tuple<Types...> 39 // (4) explicit tuple(AT, A const&, Types const&...) -> tuple<Types...> 40 // (5) tuple(tuple const& t) -> decltype(t) 41 // (6) tuple(tuple&& t) -> decltype(t) 42 // (7) tuple(AT, A const&, tuple const& t) -> decltype(t) [all …]
|
| D | PR22806_constrain_tuple_like_ctor.pass.cpp | 12 // <tuple> 14 // template <class... Types> class tuple; 17 // tuple(TupleLike&&); 19 // tuple(std::allocator_arg_t, Alloc const&, TupleLike&&); 21 // Check that the tuple-like ctors are properly disabled when the UTypes... 24 #include <tuple> 31 template <class Tuple, class = uncvref_t<Tuple>> 34 template <class Tuple, class ...Args> 35 struct IsTuple<Tuple, std::tuple<Args...>> : std::true_type {}; 44 template <class Tuple, class = typename std::enable_if<IsTuple<Tuple>::value>::type> [all …]
|
| /external/rust/crates/coset/src/context/ |
| D | tests.rs | 27 "84", // 4-tuple in test_context_encode() 29 "83", "f6f6f6", // 3-tuple: [nil, nil, nil] in test_context_encode() 30 "83", "f6f6f6", // 3-tuple: [nil, nil, nil] in test_context_encode() 31 "82", "0040", // 2-tuple: [0, 0-bstr] in test_context_encode() 39 "84", // 4-tuple in test_context_encode() 41 "83", "f6f6f6", // 3-tuple: [nil, nil, nil] in test_context_encode() 42 "83", "f6f6f6", // 3-tuple: [nil, nil, nil] in test_context_encode() 43 "82", "0040", // 2-tuple: [0, 0-bstr] in test_context_encode() 52 "84", // 4-tuple in test_context_encode() 54 "83", "40f6f6", // 3-tuple: [0-bstr, nil, nil] in test_context_encode() [all …]
|
| /external/clang/test/CXX/temp/temp.decls/temp.variadic/ |
| D | example-tuple.cpp | 4 // Example tuple implementation from the variadic templates proposal, 54 template<typename... Values> class tuple; 56 // Basis case: zero-length tuple 57 template<> class tuple<> { }; class 60 class tuple<Head, Tail...> : private tuple<Tail...> { class 61 typedef tuple<Tail...> inherited; 64 tuple() { } in tuple() function in tuple 67 // Construct tuple from separate arguments. 68 tuple(typename add_const_reference<Head>::type v, in tuple() function in tuple 72 // Construct tuple from another tuple. [all …]
|
| D | example-bind.cpp | 54 template<typename... Values> class tuple; 56 // Basis case: zero-length tuple 57 template<> class tuple<> { }; class 60 class tuple<Head, Tail...> : private tuple<Tail...> { class 61 typedef tuple<Tail...> inherited; 64 tuple() { } in tuple() function in tuple 67 // Construct tuple from separate arguments. 68 tuple(typename add_const_reference<Head>::type v, in tuple() function in tuple 72 // Construct tuple from another tuple. 73 template<typename... VValues> tuple(const tuple<VValues...>& other) in tuple() function in tuple [all …]
|
| /external/llvm/utils/unittest/googletest/include/gtest/internal/ |
| D | gtest-tuple.h | 34 // Implements a subset of TR1 tuple needed by Google Test and Google Mock. 42 // tuple template as a friend (it complains that tuple is redefined). This 50 template <GTEST_10_TYPENAMES_(U)> friend class tuple; \ 54 // GTEST_n_TUPLE_(T) is the type of an n-tuple. 55 #define GTEST_0_TUPLE_(T) tuple<> 56 #define GTEST_1_TUPLE_(T) tuple<T##0, void, void, void, void, void, void, \ 58 #define GTEST_2_TUPLE_(T) tuple<T##0, T##1, void, void, void, void, void, \ 60 #define GTEST_3_TUPLE_(T) tuple<T##0, T##1, T##2, void, void, void, void, \ 62 #define GTEST_4_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, void, void, void, \ 64 #define GTEST_5_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, T##4, void, void, \ [all …]
|
| /external/libcxx/include/ |
| D | tuple | 2 //===--------------------------- tuple ------------------------------------===// 15 tuple synopsis 21 class tuple { 23 constexpr tuple(); 24 explicit tuple(const T&...); // constexpr in C++14 26 explicit tuple(U&&...); // constexpr in C++14 27 tuple(const tuple&) = default; 28 tuple(tuple&&) = default; 30 tuple(const tuple<U...>&); // constexpr in C++14 32 tuple(tuple<U...>&&); // constexpr in C++14 [all …]
|
| /external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.creation/ |
| D | tuple_cat.pass.cpp | 10 // <tuple> 12 // template <class... Types> class tuple; 14 // template <class... Tuples> tuple<CTypes...> tuple_cat(Tuples&&... tpls); 18 #include <tuple> 30 std::tuple<> t = std::tuple_cat(); in main() 34 std::tuple<> t1; in main() 35 std::tuple<> t2 = std::tuple_cat(t1); in main() 39 std::tuple<> t = std::tuple_cat(std::tuple<>()); in main() 43 std::tuple<> t = std::tuple_cat(std::array<int, 0>()); in main() 47 std::tuple<int> t1(1); in main() [all …]
|
| /external/tensorflow/tensorflow/compiler/xla/service/spmd/ |
| D | schedule_aware_collective_ops_cse_test.cc | 55 ROOT tuple = (s32[2,8]{1,0}, s32[2,8]{1,0}) tuple(ag1, ag2) in TEST_F() 60 HloInstruction* tuple = module->entry_computation()->root_instruction(); in TEST_F() local 61 EXPECT_EQ(tuple->opcode(), HloOpcode::kTuple); in TEST_F() 62 EXPECT_EQ(tuple->operand_count(), 2); in TEST_F() 63 EXPECT_EQ(tuple->operand(0), tuple->operand(1)); in TEST_F() 76 ROOT tuple = (s32[2,8]{1,0}, s32[2,8]{1,0}) tuple(cp1, cp2) in TEST_F() 81 HloInstruction* tuple = module->entry_computation()->root_instruction(); in TEST_F() local 82 EXPECT_EQ(tuple->opcode(), HloOpcode::kTuple); in TEST_F() 83 EXPECT_EQ(tuple->operand_count(), 2); in TEST_F() 84 EXPECT_EQ(tuple->operand(0), tuple->operand(1)); in TEST_F() [all …]
|
| /external/tensorflow/tensorflow/compiler/xla/tools/ |
| D | hlo_control_flow_flattening_test.cc | 34 get-tuple-element.1 = s32[] get-tuple-element(loop_var.1), index=0 in TEST_F() 36 add = s32[] add(get-tuple-element.1, constant.1) in TEST_F() 37 get-tuple-element.2 = s32[3]{0} get-tuple-element(loop_var.1), index=1 in TEST_F() 38 multiply = s32[3]{0} multiply(get-tuple-element.2, get-tuple-element.2) in TEST_F() 39 ROOT tuple = (s32[], s32[3]{0}) tuple(add, multiply) in TEST_F() 43 get-tuple-element.3 = s32[] get-tuple-element(loop_var.2), index=0 in TEST_F() 45 ROOT less-than = pred[] compare(get-tuple-element.3, constant.2), direction=LT in TEST_F() 50 tuple.1 = (s32[], s32[3]{0}) tuple(constant.3, constant.4) in TEST_F() 51 ROOT while = (s32[], s32[3]{0}) while(tuple.1), condition=While.condition, body=While.body in TEST_F() 66 EXPECT_THAT(root, op::Tuple(op::GetTupleElement(while_op, 0), in TEST_F() [all …]
|
| /external/tensorflow/tensorflow/compiler/mlir/xla/tests/translate/ |
| D | if.mlir | 5 func @then_branch(%arg0: tuple<tensor<f32>>) -> tuple<tensor<f32>> { 6 // CHECK: %[[VAL0:.+]] = f32[] get-tuple-element((f32[]) %[[A0]]), index=0 7 %0 = "mhlo.get_tuple_element"(%arg0) {index = 0 : i32} : (tuple<tensor<f32>>) -> tensor<f32> 12 // CHECK: ROOT %[[VAl2:.+]] = (f32[]) tuple(f32[] %[[VAL1]]) 13 %2 = "mhlo.tuple"(%1) : (tensor<f32>) -> tuple<tensor<f32>> 14 return %2 : tuple<tensor<f32>> 19 func @else_branch(%arg0: tuple<tensor<f32>>) -> tuple<tensor<f32>> { 20 // CHECK: %[[VAL0:.+]] = f32[] get-tuple-element((f32[]) %[[A0]]), index=0 21 %0 = "mhlo.get_tuple_element"(%arg0) {index = 0 : i32} : (tuple<tensor<f32>>) -> tensor<f32> 26 // CHECK: ROOT %[[VAL2:.+]] = (f32[]) tuple(f32[] %[[VAL1]]) [all …]
|
| /external/libchrome/ipc/ |
| D | ipc_message_templates.h | 10 #include <tuple> 16 #include "base/tuple.h" 23 template <typename Tuple, size_t... Ns> 24 auto TupleForwardImpl(Tuple&& tuple, std::index_sequence<Ns...>) -> decltype( 25 std::forward_as_tuple(std::get<Ns>(std::forward<Tuple>(tuple))...)) { 26 return std::forward_as_tuple(std::get<Ns>(std::forward<Tuple>(tuple))...); 29 // Transforms std::tuple contents to the forwarding form. 31 // std::tuple<int, int&, const int&, int&&>&& 32 // -> std::tuple<int&&, int&, const int&, int&&>. 33 // const std::tuple<int, const int&, int&&>& [all …]
|
| /external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.rel/ |
| D | lt.pass.cpp | 10 // <tuple> 12 // template <class... Types> class tuple; 16 // operator<(const tuple<TTypes...>& t, const tuple<UTypes...>& u); 20 // operator>(const tuple<TTypes...>& t, const tuple<UTypes...>& u); 24 // operator<=(const tuple<TTypes...>& t, const tuple<UTypes...>& u); 28 // operator>=(const tuple<TTypes...>& t, const tuple<UTypes...>& u); 32 #include <tuple> 41 typedef std::tuple<> T1; in main() 42 typedef std::tuple<> T2; in main() 51 typedef std::tuple<long> T1; in main() [all …]
|
| D | eq.pass.cpp | 10 // <tuple> 12 // template <class... Types> class tuple; 16 // operator==(const tuple<TTypes...>& t, const tuple<UTypes...>& u); 20 #include <tuple> 29 typedef std::tuple<> T1; in main() 30 typedef std::tuple<> T2; in main() 37 typedef std::tuple<int> T1; in main() 38 typedef std::tuple<double> T2; in main() 45 typedef std::tuple<int> T1; in main() 46 typedef std::tuple<double> T2; in main() [all …]
|
| /external/linux-kselftest/tools/testing/selftests/bpf/progs/ |
| D | test_sk_lookup_kern.c | 21 /* Fill 'tuple' with L3 info, and attempt to find L4. On fail, return NULL. */ 62 struct bpf_sock_tuple *tuple; in bpf_sk_lookup_test0() local 70 tuple = get_tuple(data, sizeof(*eth), data_end, eth->h_proto, &ipv4); in bpf_sk_lookup_test0() 71 if (!tuple || tuple + sizeof *tuple > data_end) in bpf_sk_lookup_test0() 74 tuple_len = ipv4 ? sizeof(tuple->ipv4) : sizeof(tuple->ipv6); in bpf_sk_lookup_test0() 75 sk = bpf_sk_lookup_tcp(skb, tuple, tuple_len, BPF_F_CURRENT_NETNS, 0); in bpf_sk_lookup_test0() 84 struct bpf_sock_tuple tuple = {}; in bpf_sk_lookup_test1() local 87 sk = bpf_sk_lookup_tcp(skb, &tuple, sizeof(tuple), BPF_F_CURRENT_NETNS, 0); in bpf_sk_lookup_test1() 96 struct bpf_sock_tuple tuple = {}; in bpf_sk_lookup_uaf() local 100 sk = bpf_sk_lookup_tcp(skb, &tuple, sizeof(tuple), BPF_F_CURRENT_NETNS, 0); in bpf_sk_lookup_uaf() [all …]
|