Home
last modified time | relevance | path

Searched refs:DataLayout (Results 1 – 25 of 756) sorted by relevance

12345678910>>...31

/external/eigen/unsupported/test/
Dcxx11_tensor_contraction.cpp19 template<int DataLayout>
22 Tensor<float, 2, DataLayout> mat1(2, 3); in test_evals()
23 Tensor<float, 2, DataLayout> mat2(2, 3); in test_evals()
24 Tensor<float, 2, DataLayout> mat3(3, 2); in test_evals()
30 Tensor<float, 2, DataLayout> mat4(3,3); in test_evals()
50 Tensor<float, 2, DataLayout> mat5(2,2); in test_evals()
65 Tensor<float, 2, DataLayout> mat6(2,2); in test_evals()
81 template<int DataLayout>
84 Tensor<float, 1, DataLayout> vec1({6}); in test_scalar()
85 Tensor<float, 1, DataLayout> vec2({6}); in test_scalar()
[all …]
Dcxx11_tensor_argmax.cpp19 template <int DataLayout>
22 Tensor<float, 4, DataLayout> tensor(2,3,5,7); in test_simple_index_tuples()
26 Tensor<Tuple<DenseIndex, float>, 4, DataLayout> index_tuples(2,3,5,7); in test_simple_index_tuples()
36 template <int DataLayout>
39 Tensor<float, 4, DataLayout> tensor(2,3,5,7); in test_index_tuples_dim()
43 Tensor<Tuple<DenseIndex, float>, 4, DataLayout> index_tuples(2,3,5,7); in test_index_tuples_dim()
54 template <int DataLayout>
57 Tensor<float, 4, DataLayout> tensor(2,3,5,7); in test_argmax_tuple_reducer()
61 Tensor<Tuple<DenseIndex, float>, 4, DataLayout> index_tuples(2,3,5,7); in test_argmax_tuple_reducer()
64 Tensor<Tuple<DenseIndex, float>, 0, DataLayout> reduced; in test_argmax_tuple_reducer()
[all …]
Dcxx11_tensor_reduction.cpp17 template <int DataLayout>
20 Tensor<float, 0, DataLayout> tensor; in test_trivial_reductions()
24 Tensor<float, 0, DataLayout> result = tensor.sum(reduction_axis); in test_trivial_reductions()
29 Tensor<float, 1, DataLayout> tensor(7); in test_trivial_reductions()
33 Tensor<float, 1, DataLayout> result = tensor.sum(reduction_axis); in test_trivial_reductions()
41 Tensor<float, 2, DataLayout> tensor(2, 3); in test_trivial_reductions()
45 Tensor<float, 2, DataLayout> result = tensor.sum(reduction_axis); in test_trivial_reductions()
56 template <int DataLayout>
58 Tensor<float, 4, DataLayout> tensor(2, 3, 5, 7); in test_simple_reductions()
64 Tensor<float, 2, DataLayout> result = tensor.sum(reduction_axis2); in test_simple_reductions()
[all …]
Dcxx11_tensor_io.cpp16 template<int DataLayout>
19 Tensor<int, 0, DataLayout> tensor; in test_output_0d()
30 template<int DataLayout>
33 Tensor<int, 1, DataLayout> tensor(5); in test_output_1d()
44 Eigen::Tensor<double,1,DataLayout> empty_tensor(0); in test_output_1d()
52 template<int DataLayout>
55 Tensor<int, 2, DataLayout> tensor(5, 3); in test_output_2d()
70 template<int DataLayout>
73 Tensor<int, 1, DataLayout> tensor1(5); in test_output_expr()
74 Tensor<int, 1, DataLayout> tensor2(5); in test_output_expr()
[all …]
Dcxx11_tensor_convolution.cpp17 template <int DataLayout>
20 Tensor<float, 2, DataLayout> input(3, 3); in test_evals()
21 Tensor<float, 1, DataLayout> kernel(2); in test_evals()
26 Tensor<float, 2, DataLayout> result(2,3); in test_evals()
45 template <int DataLayout>
48 Tensor<float, 2, DataLayout> input(3, 3); in test_expr()
49 Tensor<float, 2, DataLayout> kernel(2, 2); in test_expr()
53 Tensor<float, 2, DataLayout> result(2,2); in test_expr()
69 template <int DataLayout>
71 Tensor<float, 1, DataLayout> input(3); in test_modes()
[all …]
Dcxx11_tensor_contract_cuda.cu26 template<int DataLayout>
33 Tensor<float, 2, DataLayout> t_left(m_size, k_size); in test_cuda_contraction()
34 Tensor<float, 2, DataLayout> t_right(k_size, n_size); in test_cuda_contraction()
35 Tensor<float, 2, DataLayout> t_result(m_size, n_size); in test_cuda_contraction()
36 Tensor<float, 2, DataLayout> t_result_gpu(m_size, n_size); in test_cuda_contraction()
60 Eigen::TensorMap<Eigen::Tensor<float, 2, DataLayout> > in test_cuda_contraction()
62 Eigen::TensorMap<Eigen::Tensor<float, 2, DataLayout> > in test_cuda_contraction()
64 Eigen::TensorMap<Eigen::Tensor<float, 2, DataLayout> > in test_cuda_contraction()
90 template<int DataLayout>
97 Tensor<float, 2, DataLayout> t_left(m_size, k_size); in test_scalar()
[all …]
Dcxx11_tensor_reduction_cuda.cu22 template<typename Type, int DataLayout>
31 Tensor<Type, 2, DataLayout> in(num_rows, num_cols); in test_full_reductions()
34 Tensor<Type, 0, DataLayout> full_redux; in test_full_reductions()
43 TensorMap<Tensor<Type, 2, DataLayout> > in_gpu(gpu_in_ptr, num_rows, num_cols); in test_full_reductions()
44 TensorMap<Tensor<Type, 0, DataLayout> > out_gpu(gpu_out_ptr); in test_full_reductions()
48 Tensor<Type, 0, DataLayout> full_redux_gpu; in test_full_reductions()
59 template<typename Type, int DataLayout>
65 Tensor<Type, 3, DataLayout> in(dim_x, dim_y, dim_z); in test_first_dim_reductions()
70 Tensor<Type, 2, DataLayout> redux = in.sum(red_axis); in test_first_dim_reductions()
79 Eigen::TensorMap<Eigen::Tensor<Type, 3, DataLayout> > gpu_in(in_data, dim_x, dim_y, dim_z); in test_first_dim_reductions()
[all …]
Dcxx11_tensor_concatenation.cpp16 template<int DataLayout>
19 Tensor<int, 3, DataLayout> left(2, 3, 1); in test_dimension_failures()
20 Tensor<int, 3, DataLayout> right(3, 3, 1); in test_dimension_failures()
25 Tensor<int, 3, DataLayout> concatenation = left.concatenate(right, 0); in test_dimension_failures()
36 template<int DataLayout>
39 Tensor<int, 2, DataLayout> left(2, 3); in test_static_dimension_failure()
40 Tensor<int, 3, DataLayout> right(2, 3, 1); in test_static_dimension_failure()
45 Tensor<int, 3, DataLayout> concatenation = left.concatenate(right, 0); in test_static_dimension_failure()
49 Tensor<int, 3, DataLayout> concatenation = left in test_static_dimension_failure()
52 Tensor<int, 2, DataLayout> alternative = left in test_static_dimension_failure()
[all …]
Dcxx11_tensor_broadcasting.cpp16 template <int DataLayout>
19 Tensor<float, 4, DataLayout> tensor(2,3,5,7); in test_simple_broadcasting()
27 Tensor<float, 4, DataLayout> no_broadcast; in test_simple_broadcasting()
49 Tensor<float, 4, DataLayout> broadcast; in test_simple_broadcasting()
69 template <int DataLayout>
72 Tensor<float, 3, DataLayout> tensor(8,3,5); in test_vectorized_broadcasting()
79 Tensor<float, 3, DataLayout> broadcast; in test_vectorized_broadcasting()
112 template <int DataLayout>
115 Tensor<float, 3, DataLayout> tensor(8,3,5); in test_static_broadcasting()
127 Tensor<float, 3, DataLayout> broadcast; in test_static_broadcasting()
[all …]
Dcxx11_tensor_ifft.cpp17 template <int DataLayout>
19 Tensor<double, 1, DataLayout> tensor(sequence_length); in test_1D_fft_ifft_invariant()
25 Tensor<std::complex<double>, 1, DataLayout> tensor_after_fft; in test_1D_fft_ifft_invariant()
26 Tensor<std::complex<double>, 1, DataLayout> tensor_after_fft_ifft; in test_1D_fft_ifft_invariant()
39 template <int DataLayout>
41 Tensor<double, 2, DataLayout> tensor(dim0, dim1); in test_2D_fft_ifft_invariant()
48 Tensor<std::complex<double>, 2, DataLayout> tensor_after_fft; in test_2D_fft_ifft_invariant()
49 Tensor<std::complex<double>, 2, DataLayout> tensor_after_fft_ifft; in test_2D_fft_ifft_invariant()
67 template <int DataLayout>
69 Tensor<double, 3, DataLayout> tensor(dim0, dim1, dim2); in test_3D_fft_ifft_invariant()
[all …]
Dcxx11_tensor_thread_pool.cpp66 template<int DataLayout>
69 Tensor<float, 4, DataLayout> t_left(30, 50, 37, 31); in test_multithread_contraction()
70 Tensor<float, 5, DataLayout> t_right(37, 31, 70, 2, 10); in test_multithread_contraction()
71 Tensor<float, 5, DataLayout> t_result(30, 50, 70, 2, 10); in test_multithread_contraction()
80 typedef Map<Matrix<float, Dynamic, Dynamic, DataLayout>> MapXf; in test_multithread_contraction()
83 Matrix<float, Dynamic, Dynamic, DataLayout> m_result(1500, 1400); in test_multithread_contraction()
106 template<int DataLayout>
109 Tensor<float, 2, DataLayout> t_left(32, 500); in test_contraction_corner_cases()
110 Tensor<float, 2, DataLayout> t_right(32, 28*28); in test_contraction_corner_cases()
111 Tensor<float, 2, DataLayout> t_result(500, 28*28); in test_contraction_corner_cases()
[all …]
Dcxx11_tensor_patch.cpp16 template<int DataLayout>
19 Tensor<float, 4, DataLayout> tensor(2,3,5,7); in test_simple_patch()
28 Tensor<float, 5, DataLayout> no_patch; in test_simple_patch()
31 if (DataLayout == ColMajor) { in test_simple_patch()
53 Tensor<float, 5, DataLayout> single_patch; in test_simple_patch()
56 if (DataLayout == ColMajor) { in test_simple_patch()
78 Tensor<float, 5, DataLayout> twod_patch; in test_simple_patch()
81 if (DataLayout == ColMajor) { in test_simple_patch()
100 if (DataLayout == ColMajor) { in test_simple_patch()
107 if (DataLayout == ColMajor) { in test_simple_patch()
[all …]
Dcxx11_tensor_morphing.cpp93 template<int DataLayout>
96 Tensor<float, 5, DataLayout> tensor(2,3,5,7,11); in test_simple_slice()
99 Tensor<float, 5, DataLayout> slice1(1,1,1,1,1); in test_simple_slice()
105 Tensor<float, 5, DataLayout> slice2(1,1,2,2,3); in test_simple_slice()
129 template<int DataLayout>
131 typedef Matrix<float, Dynamic, Dynamic, DataLayout> Mtx; in test_slice_in_expr()
139 TensorMap<Tensor<float, 2, DataLayout>> tensor1(m1.data(), 7, 7); in test_slice_in_expr()
140 TensorMap<Tensor<float, 2, DataLayout>> tensor2(m2.data(), 3, 3); in test_slice_in_expr()
141 Tensor<float, 2, DataLayout> tensor3(3,1); in test_slice_in_expr()
159 TensorMap<Tensor<const float, 2, DataLayout>> tensor4(m1.data(), 7, 7); in test_slice_in_expr()
[all …]
Dcxx11_tensor_chipping.cpp16 template<int DataLayout>
19 Tensor<float, 5, DataLayout> tensor(2,3,5,7,11); in test_simple_chip()
22 Tensor<float, 4, DataLayout> chip1; in test_simple_chip()
40 Tensor<float, 4, DataLayout> chip2 = tensor.template chip<1>(1); in test_simple_chip()
55 Tensor<float, 4, DataLayout> chip3 = tensor.template chip<2>(2); in test_simple_chip()
70 Tensor<float, 4, DataLayout> chip4(tensor.template chip<3>(5)); in test_simple_chip()
85 Tensor<float, 4, DataLayout> chip5(tensor.template chip<4>(7)); in test_simple_chip()
101 template<int DataLayout>
104 Tensor<float, 5, DataLayout> tensor(2,3,5,7,11); in test_dynamic_chip()
107 Tensor<float, 4, DataLayout> chip1; in test_dynamic_chip()
[all …]
/external/tensorflow/tensorflow/lite/delegates/gpu/cl/
Dtensor_type_util.cc37 DataLayout ToDataLayout(TensorStorageType type) { in ToDataLayout()
40 return DataLayout::DHWC4; in ToDataLayout()
42 return DataLayout::DHWC4; in ToDataLayout()
44 return DataLayout::BHWC; in ToDataLayout()
46 return DataLayout::HDWC4; in ToDataLayout()
48 return DataLayout::DHWC4; in ToDataLayout()
50 return DataLayout::DHWC4; in ToDataLayout()
52 return DataLayout::UNKNOWN; in ToDataLayout()
57 DataLayout data_layout) { in ToTensorStorageType()
63 case DataLayout::BHWC: in ToTensorStorageType()
[all …]
/external/llvm/include/llvm/Analysis/
DInstructionSimplify.h43 class DataLayout; variable
52 const DataLayout &DL,
61 const DataLayout &DL,
70 const DataLayout &DL,
79 const DataLayout &DL,
88 const DataLayout &DL,
96 Value *SimplifyMulInst(Value *LHS, Value *RHS, const DataLayout &DL,
104 Value *SimplifySDivInst(Value *LHS, Value *RHS, const DataLayout &DL,
112 Value *SimplifyUDivInst(Value *LHS, Value *RHS, const DataLayout &DL,
121 const DataLayout &DL,
[all …]
DValueTracking.h29 class DataLayout; variable
53 const DataLayout &DL, unsigned Depth = 0,
63 bool haveNoCommonBitsSet(Value *LHS, Value *RHS, const DataLayout &DL,
71 const DataLayout &DL, unsigned Depth = 0,
81 bool isKnownToBeAPowerOfTwo(Value *V, const DataLayout &DL,
91 bool isKnownNonZero(Value *V, const DataLayout &DL, unsigned Depth = 0,
97 bool isKnownNonNegative(Value *V, const DataLayout &DL, unsigned Depth = 0,
104 bool isKnownPositive(Value *V, const DataLayout &DL, unsigned Depth = 0,
111 bool isKnownNegative(Value *V, const DataLayout &DL, unsigned Depth = 0,
118 bool isKnownNonEqual(Value *V1, Value *V2, const DataLayout &DL,
[all …]
DConstantFolding.h28 class DataLayout; variable
38 const DataLayout &DL);
45 Constant *ConstantFoldInstruction(Instruction *I, const DataLayout &DL,
52 ConstantFoldConstantExpression(const ConstantExpr *CE, const DataLayout &DL,
62 const DataLayout &DL,
75 const DataLayout &DL,
84 Constant *RHS, const DataLayout &DL,
91 Constant *RHS, const DataLayout &DL);
96 const DataLayout &DL);
118 Constant *ConstantFoldLoadFromConstPtr(Constant *C, Type *Ty, const DataLayout &DL);
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Transforms/Utils/
DVNCoercion.h34 class DataLayout; variable
39 const DataLayout &DL);
48 IRBuilder<> &IRB, const DataLayout &DL);
56 StoreInst *DepSI, const DataLayout &DL);
64 const DataLayout &DL);
72 MemIntrinsic *DepMI, const DataLayout &DL);
78 Instruction *InsertPt, const DataLayout &DL);
82 Type *LoadTy, const DataLayout &DL);
89 Instruction *InsertPt, const DataLayout &DL);
93 Type *LoadTy, const DataLayout &DL);
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/
DValueTracking.h32 class DataLayout; variable
54 const DataLayout &DL, unsigned Depth = 0,
61 KnownBits computeKnownBits(const Value *V, const DataLayout &DL,
75 const DataLayout &DL,
85 bool isKnownToBeAPowerOfTwo(const Value *V, const DataLayout &DL,
99 bool isKnownNonZero(const Value *V, const DataLayout &DL, unsigned Depth = 0,
111 bool isKnownNonNegative(const Value *V, const DataLayout &DL,
119 bool isKnownPositive(const Value *V, const DataLayout &DL, unsigned Depth = 0,
126 bool isKnownNegative(const Value *V, const DataLayout &DL, unsigned Depth = 0,
133 bool isKnownNonEqual(const Value *V1, const Value *V2, const DataLayout &DL,
[all …]
DConstantFolding.h30 class DataLayout; variable
41 const DataLayout &DL);
48 Constant *ConstantFoldInstruction(Instruction *I, const DataLayout &DL,
54 Constant *ConstantFoldConstant(const Constant *C, const DataLayout &DL,
64 const DataLayout &DL,
73 Constant *RHS, const DataLayout &DL,
80 Constant *RHS, const DataLayout &DL);
91 const DataLayout &DL);
126 Constant *ConstantFoldLoadFromConstPtr(Constant *C, Type *Ty, const DataLayout &DL);
154 const DataLayout &DL);
/external/llvm/lib/IR/
DDataLayout.cpp40 StructLayout::StructLayout(StructType *ST, const DataLayout &DL) { in StructLayout()
122 DataLayout::InvalidAlignmentElem = { INVALID_ALIGN, 0, 0, 0 };
149 DataLayout::InvalidPointerElem = { 0U, 0U, 0U, ~0U };
155 const char *DataLayout::getManglingComponent(const Triple &T) { in getManglingComponent()
178 void DataLayout::reset(StringRef Desc) { in reset()
223 void DataLayout::parseSpecifier(StringRef Desc) { in parseSpecifier()
381 DataLayout::DataLayout(const Module *M) : LayoutMap(nullptr) { in DataLayout() function in DataLayout
385 void DataLayout::init(const Module *M) { *this = M->getDataLayout(); } in init()
387 bool DataLayout::operator==(const DataLayout &Other) const { in operator ==()
398 DataLayout::setAlignment(AlignTypeEnum align_type, unsigned abi_align, in setAlignment()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DDataLayout.cpp46 StructLayout::StructLayout(StructType *ST, const DataLayout &DL) { in StructLayout()
157 const char *DataLayout::getManglingComponent(const Triple &T) { in getManglingComponent()
180 void DataLayout::reset(StringRef Desc) { in reset()
235 void DataLayout::parseSpecifier(StringRef Desc) { in parseSpecifier()
425 DataLayout::DataLayout(const Module *M) { in DataLayout() function in DataLayout
429 void DataLayout::init(const Module *M) { *this = M->getDataLayout(); } in init()
431 bool DataLayout::operator==(const DataLayout &Other) const { in operator ==()
443 DataLayout::AlignmentsTy::iterator
444 DataLayout::findAlignmentLowerBound(AlignTypeEnum AlignType, in findAlignmentLowerBound()
456 DataLayout::setAlignment(AlignTypeEnum align_type, unsigned abi_align, in setAlignment()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/
DDataLayout.h111 class DataLayout {
139 return const_cast<DataLayout *>(this)->findAlignmentLowerBound(AlignType, in findAlignmentLowerBound()
154 return const_cast<DataLayout *>(this)->findPointerLowerBound(AddressSpace); in findPointerLowerBound()
186 explicit DataLayout(StringRef LayoutDescription) { in DataLayout() function
191 explicit DataLayout(const Module *M);
193 DataLayout(const DataLayout &DL) { *this = DL; } in DataLayout() function
195 ~DataLayout(); // Not virtual, do not subclass this class
197 DataLayout &operator=(const DataLayout &DL) {
212 bool operator==(const DataLayout &Other) const;
213 bool operator!=(const DataLayout &Other) const { return !(*this == Other); }
[all …]
/external/llvm/include/llvm/IR/
DDataLayout.h101 class DataLayout {
131 return const_cast<DataLayout *>(this)->findPointerLowerBound(AddressSpace); in findPointerLowerBound()
182 explicit DataLayout(StringRef LayoutDescription) : LayoutMap(nullptr) { in DataLayout() function
187 explicit DataLayout(const Module *M);
191 DataLayout(const DataLayout &DL) : LayoutMap(nullptr) { *this = DL; } in DataLayout() function
193 DataLayout &operator=(const DataLayout &DL) {
205 bool operator==(const DataLayout &Other) const;
206 bool operator!=(const DataLayout &Other) const { return !(*this == Other); }
208 ~DataLayout(); // Not virtual, do not subclass this class
463 inline DataLayout *unwrap(LLVMTargetDataRef P) { in unwrap()
[all …]

12345678910>>...31