Searched refs:Tuple (Results 1 - 25 of 180) sorted by relevance

12345678

/external/clang/test/CXX/temp/temp.decls/temp.variadic/
H A Dp1.cpp3 template<class ...Types> struct Tuple;
5 Tuple<> *t0;
6 Tuple<int> *t1;
7 Tuple<int, char> *t2a;
8 Tuple<int, float> *t2b = t2a; // expected-error{{cannot initialize a variable of type 'Tuple<int, float> *' with an lvalue of type 'Tuple<int, char> *'}}
9 Tuple<int, float, double> *t3;
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.creation/
H A Dforward_as_tuple.pass.cpp23 template <class Tuple>
25 test0(const Tuple&) argument
27 static_assert(std::tuple_size<Tuple>::value == 0, "");
30 template <class Tuple>
32 test1a(const Tuple& t)
34 static_assert(std::tuple_size<Tuple>::value == 1, "");
35 static_assert(std::is_same<typename std::tuple_element<0, Tuple>::type, int&&>::value, "");
39 template <class Tuple>
41 test1b(const Tuple& t)
43 static_assert(std::tuple_size<Tuple>
62 test3(const Tuple&) argument
[all...]
/external/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.partial/
H A Dp12.cpp7 template<class ...> struct Tuple { }; struct
8 template<class ... Types> int &g(Tuple<Types ...>); // #1
9 template<class T1, class ... Types> float &g(Tuple<T1, Types ...>); // #2
10 template<class T1, class ... Types> double &g(Tuple<T1, Types& ...>); // #3
13 int &ir1 = g(Tuple<>());
14 float &fr1 = g(Tuple<int, float>());
15 double &dr1 = g(Tuple<int, float&>());
16 double &dr2 = g(Tuple<int>());
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.helper/
H A Dtuple_size_v.pass.cpp20 template <class Tuple, int Expect>
23 static_assert(std::tuple_size_v<Tuple> == Expect, "");
24 static_assert(std::tuple_size_v<Tuple> == std::tuple_size<Tuple>::value, "");
25 static_assert(std::tuple_size_v<Tuple const> == std::tuple_size<Tuple>::value, "");
26 static_assert(std::tuple_size_v<Tuple volatile> == std::tuple_size<Tuple>::value, "");
27 static_assert(std::tuple_size_v<Tuple const volatile> == std::tuple_size<Tuple>
[all...]
/external/eigen/unsupported/Eigen/CXX11/src/Tensor/
H A DTensorSyclTuple.h35 /// \struct Tuple
40 struct Tuple {}; struct in namespace:utility::tuple
42 /// \brief specialisation of the \ref Tuple class when the tuple has at least
47 struct Tuple<T, Ts...> { struct in namespace:utility::tuple
48 Tuple(T t, Ts... ts) : head(t), tail(ts...) {} function in struct:utility::tuple::Tuple
50 Tuple<Ts...> tail;
64 struct ElemTypeHolder<0, Tuple<T, Ts...> > {
75 struct ElemTypeHolder<k, Tuple<T, Ts...> > {
76 typedef typename ElemTypeHolder<k - 1, Tuple<Ts...> >::type type;
84 /// \return typename ElemTypeHolder<0, Tuple<T
[all...]
H A DTensorMeta.h109 // Tuple mimics std::pair but works on e.g. nvcc.
110 template <typename U, typename V> struct Tuple { struct in namespace:Eigen
119 Tuple() : first(), second() {} function in struct:Eigen::Tuple
122 Tuple(const U& f, const V& s) : first(f), second(s) {} function in struct:Eigen::Tuple
125 Tuple& operator= (const Tuple& rhs) {
133 void swap(Tuple& rhs) {
142 bool operator==(const Tuple<U, V>& x, const Tuple<U, V>& y) { argument
148 bool operator!=(const Tuple< argument
[all...]
/external/libcxx/test/libcxx/utilities/tuple/tuple.tuple/tuple.cnstr/
H A Denable_reduced_arity_initialization_extension.pass.cpp44 typedef std::tuple<MO, ND> Tuple; typedef
45 static_assert(!std::is_constructible<Tuple, MO>::value, "");
46 static_assert(std::is_constructible<Tuple, MO, ND>::value, "");
47 static_assert(test_convertible<Tuple, MO, ND>(), "");
50 typedef std::tuple<MO, MO, ND> Tuple; typedef
51 static_assert(!std::is_constructible<Tuple, MO, MO>::value, "");
52 static_assert(std::is_constructible<Tuple, MO, MO, ND>::value, "");
53 static_assert(test_convertible<Tuple, MO, MO, ND>(), "");
57 typedef std::tuple<MO, ND> Tuple; typedef
58 typedef std::tuple<MO, Tuple, M
66 typedef std::tuple<MO, int> Tuple; typedef
[all...]
H A Ddisable_reduced_arity_initialization_extension.pass.cpp45 typedef std::tuple<MO, ND> Tuple; typedef
46 static_assert(!std::is_constructible<Tuple, MO>::value, "");
47 static_assert(std::is_constructible<Tuple, MO, ND>::value, "");
48 static_assert(test_convertible<Tuple, MO, ND>(), "");
51 typedef std::tuple<MO, MO, ND> Tuple; typedef
52 static_assert(!std::is_constructible<Tuple, MO, MO>::value, "");
53 static_assert(std::is_constructible<Tuple, MO, MO, ND>::value, "");
54 static_assert(test_convertible<Tuple, MO, MO, ND>(), "");
58 typedef std::tuple<MO, ND> Tuple; typedef
59 typedef std::tuple<MO, Tuple, M
[all...]
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.apply/
H A Dmake_from_tuple.pass.cpp14 // template <class T, class Tuple> constexpr T make_from_tuple(Tuple&&);
29 template <class Tuple>
34 Tuple args;
40 template <template <class ...> class Tuple, class ...Types>
41 struct ConstructibleFromTuple<Tuple<Types...>> {
47 Tuple<std::decay_t<Types>...> args;
62 template <class Tuple>
63 constexpr bool do_constexpr_test(Tuple&& tup) {
64 using RawTuple = std::decay_t<Tuple>;
[all...]
/external/tensorflow/tensorflow/core/framework/
H A Dqueue_interface.h33 typedef std::vector<Tensor> Tuple; typedef in class:tensorflow::QueueInterface
35 typedef std::function<void(const Tuple&)> CallbackWithTuple;
37 virtual Status ValidateTuple(const Tuple& tuple) = 0;
38 virtual Status ValidateManyTuple(const Tuple& tuple) = 0;
43 virtual void TryEnqueue(const Tuple& tuple, OpKernelContext* ctx,
48 virtual void TryEnqueueMany(const Tuple& tuple, OpKernelContext* ctx,
/external/libchrome/base/
H A Dtuple.h12 // // These two methods of creating a Tuple are identical.
86 template <typename ObjT, typename Method, typename Tuple, size_t... Ns>
89 Tuple&& args,
91 (obj->*method)(base::get<Ns>(std::forward<Tuple>(args))...);
94 template <typename ObjT, typename Method, typename Tuple>
97 Tuple&& args) {
98 DispatchToMethodImpl(obj, method, std::forward<Tuple>(args),
99 MakeIndexSequenceForTuple<Tuple>());
104 template <typename Function, typename Tuple, size_t... Ns>
106 Tuple
[all...]
/external/libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/
H A Dis_nothrow_constructible.pass.cpp96 struct Tuple { struct
97 Tuple(Empty&&) noexcept {}
113 test_is_nothrow_constructible<Tuple &&, Empty> (); // See bug #19616.
115 static_assert(!std::is_constructible<Tuple&, Empty>::value, "");
116 test_is_not_nothrow_constructible<Tuple &, Empty> (); // See bug #19616.
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/
H A DUTypes.pass.cpp47 typedef std::tuple<MoveOnly, NoDefault> Tuple; typedef
50 Tuple,
55 Tuple,
60 typedef std::tuple<MoveOnly, MoveOnly, NoDefault> Tuple; typedef
63 Tuple,
68 Tuple,
74 typedef std::tuple<MoveOnly, NoDefault> Tuple; typedef
75 typedef std::tuple<MoveOnly, Tuple, MoveOnly, MoveOnly> NestedTuple;
84 MoveOnly, Tuple, MoveOnly, MoveOnly
90 typedef std::tuple<MoveOnly, int> Tuple; typedef
[all...]
H A DPR22806_constrain_tuple_like_ctor.pass.cpp31 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>
45 explicit ConstructibleFromTupleAndInt(Tuple&&) : state(FromTuple) {}
57 template <class Tuple, class = typename std::enable_if<IsTuple<Tuple>::value>::type>
58 ConvertibleFromTupleAndInt(Tuple
[all...]
/external/tensorflow/tensorflow/compiler/xla/tests/
H A Dsample_text_test.cc52 TEST_F(SampleTextTest, Tuple) {
H A Dtuple_test.cc84 auto result = builder.Tuple({builder.ConstantR0<float>(constant_scalar),
99 auto result = builder.Tuple(
110 auto result = builder.Tuple({});
123 auto tuple_data = builder.Tuple({builder.ConstantR1<float>(constant_vector),
133 auto tuple_data = builder.Tuple(
160 auto tuple_data = builder.Tuple({builder.ConstantR1<float>(constant_vector),
187 auto tuple_data = builder.Tuple({builder.ConstantR1<float>(constant_vector),
189 auto new_tuple = builder.Tuple({builder.GetTupleElement(tuple_data, 1),
210 auto v1_v2 = b.Tuple({v1_gt, v2_gt}); // {false, true}
211 auto v2_v1 = b.Tuple({v2_g
[all...]
/external/tensorflow/tensorflow/core/kernels/
H A Dfifo_queue.h41 void TryEnqueue(const Tuple& tuple, OpKernelContext* ctx,
43 void TryEnqueueMany(const Tuple& tuple, OpKernelContext* ctx,
60 void DequeueLocked(OpKernelContext* ctx, Tuple* tuple)
63 static Status GetElementComponentFromBatch(const Tuple& tuple, int64 index,
H A Dpriority_queue.h59 void TryEnqueue(const Tuple& tuple, OpKernelContext* ctx,
61 void TryEnqueueMany(const Tuple& tuple, OpKernelContext* ctx,
80 void DequeueLocked(OpKernelContext* ctx, Tuple* tuple)
83 static Status GetElementComponentFromBatch(const Tuple& tuple, int index,
H A Dpadding_fifo_queue.h51 Status ValidateManyTuple(const Tuple& tuple) override;
52 Status ValidateTuple(const Tuple& tuple) override;
77 static Status GetElementComponent(const PaddingFIFOQueue::Tuple& tuple,
H A Dfifo_queue.cc41 void FIFOQueue::DequeueLocked(OpKernelContext* ctx, Tuple* tuple) {
50 void FIFOQueue::TryEnqueue(const Tuple& tuple, OpKernelContext* ctx,
88 Status FIFOQueue::GetElementComponentFromBatch(const FIFOQueue::Tuple& tuple,
102 void FIFOQueue::TryEnqueueMany(const Tuple& tuple, OpKernelContext* ctx,
166 1, [callback]() { callback(Tuple()); }, ctx, cm, token,
177 Tuple tuple;
191 callback(Tuple());
202 callback(Tuple());
206 Tuple tuple;
238 callback(Tuple());
[all...]
/external/tensorflow/tensorflow/compiler/xla/service/
H A Dwhile_util_test.cc81 op::Tuple(op::GetTupleElement(::testing::Eq(new_while_instr), 0),
85 op::Tuple(op::GetTupleElement(op::Parameter(0), 0),
89 op::Tuple(op::GetTupleElement(param_reconstructed, 0),
115 op::Tuple(op::GetTupleElement(::testing::Eq(new_while_instr), 0),
119 op::Tuple(op::GetTupleElement(op::Parameter(0), 0),
123 op::Tuple(op::GetTupleElement(first_half_param_reconstructed, 0),
/external/tensorflow/tensorflow/compiler/xla/client/
H A Dsharding_builder.h54 OpSharding Tuple(const ShapeTree<OpSharding>& shardings);
/external/eigen/unsupported/test/
H A Dcxx11_tensor_argmax.cpp17 using Eigen::Tuple;
26 Tensor<Tuple<DenseIndex, float>, 4, DataLayout> index_tuples(2,3,5,7);
30 const Tuple<DenseIndex, float>& v = index_tuples.coeff(n);
43 Tensor<Tuple<DenseIndex, float>, 4, DataLayout> index_tuples(2,3,5,7);
48 const Tuple<DenseIndex, float>& v = index_tuples(n); //(i, j, k, l);
61 Tensor<Tuple<DenseIndex, float>, 4, DataLayout> index_tuples(2,3,5,7);
64 Tensor<Tuple<DenseIndex, float>, 0, DataLayout> reduced;
67 dims, internal::ArgMaxTupleReducer<Tuple<DenseIndex, float> >());
75 Tensor<Tuple<DenseIndex, float>, 1, DataLayout> reduced_by_dims(7);
77 reduce_dims, internal::ArgMaxTupleReducer<Tuple<DenseInde
[all...]
/external/llvm/tools/llvm-jitlistener/
H A Dllvm-jitlistener.cpp128 Triple Tuple(TheModule->getTargetTriple());
129 if (Tuple.getTriple().empty())
130 Tuple.setTriple(sys::getProcessTriple());
132 if (Tuple.isOSWindows() && !Tuple.isOSBinFormatELF()) {
133 Tuple.setObjectFormat(Triple::ELF);
134 TheModule->setTargetTriple(Tuple.getTriple());
/external/llvm/lib/IR/
H A DProfileSummary.cpp151 MDTuple *Tuple = cast<MDTuple>(MD);
152 if (Tuple->getNumOperands() != 8)
155 auto &FormatMD = Tuple->getOperand(0);
168 if (!getVal(dyn_cast<MDTuple>(Tuple->getOperand(1)), "TotalCount",
171 if (!getVal(dyn_cast<MDTuple>(Tuple->getOperand(2)), "MaxCount", MaxCount))
173 if (!getVal(dyn_cast<MDTuple>(Tuple->getOperand(3)), "MaxInternalCount",
176 if (!getVal(dyn_cast<MDTuple>(Tuple->getOperand(4)), "MaxFunctionCount",
179 if (!getVal(dyn_cast<MDTuple>(Tuple->getOperand(5)), "NumCounts", NumCounts))
181 if (!getVal(dyn_cast<MDTuple>(Tuple->getOperand(6)), "NumFunctions",
186 if (!getSummaryFromMD(dyn_cast<MDTuple>(Tuple
[all...]

Completed in 1686 milliseconds

12345678