Searched refs:TensorMap (Results 1 - 25 of 32) sorted by relevance

12

/external/eigen/unsupported/test/
H A Dcxx11_tensor_const.cpp21 TensorMap<Tensor<const int, 3> > constant(random.data(), 2, 3, 7);
40 TensorMap<Tensor<const int, 3> > constant1(random.data(), 2, 3, 7);
41 TensorMap<const Tensor<int, 3> > constant2(random.data(), 2, 3, 7);
42 const TensorMap<Tensor<int, 3> > constant3(random.data(), 2, 3, 7);
H A Dcxx11_tensor_of_const_values.cpp20 TensorMap<Tensor<const float, 2>> mat1(data1, 2, 3);
22 const TensorMap<Tensor<float, 2>> mat2(data2, 2, 3);
56 TensorMap<Tensor<const float, 2>> mat1(data1, 2, 3);
58 TensorMap<Tensor<float, 2>> mat2(data2, 2, 3);
82 TensorMap<Tensor<const float, 2>> mat1(data1, 2, 3);
84 TensorMap<Tensor<float, 2>> mat2(data2, 2, 3);
H A Dcxx11_tensor_map.cpp22 TensorMap<Tensor<const int, 0> > scalar3(scalar1.data());
23 TensorMap<Tensor<const int, 0, RowMajor> > scalar4(scalar2.data());
40 TensorMap<Tensor<const int, 1> > vec3(vec1.data(), 6);
41 TensorMap<Tensor<const int, 1, RowMajor> > vec4(vec2.data(), 6);
88 TensorMap<Tensor<const int, 2> > mat3(mat1.data(), 2, 3);
89 TensorMap<Tensor<const int, 2, RowMajor> > mat4(mat2.data(), 2, 3);
132 TensorMap<Tensor<const int, 3> > mat3(mat1.data(), 2, 3, 7);
133 TensorMap<Tensor<const int, 3, RowMajor> > mat4(mat2.data(), 2, 3, 7);
176 TensorMap<Tensor<int, 3> > mat3(mat1);
177 TensorMap<Tenso
238 f(const TensorMap<Tensor<int, 3> >& tensor) argument
[all...]
H A Dcxx11_tensor_reduction_sycl.cpp42 TensorMap<Tensor<float, 2> > in_gpu(gpu_in_data, tensorRange);
43 TensorMap<Tensor<float, 0> > out_gpu(gpu_out_data);
77 TensorMap<Tensor<float, 3> > in_gpu(gpu_in_data, tensorRange);
78 TensorMap<Tensor<float, 2> > out_gpu(gpu_out_data, reduced_tensorRange);
115 TensorMap<Tensor<float, 3> > in_gpu(gpu_in_data, tensorRange);
116 TensorMap<Tensor<float, 2> > out_gpu(gpu_out_data, reduced_tensorRange);
H A Dcxx11_tensor_broadcast_sycl.cpp26 using Eigen::TensorMap;
50 TensorMap<Tensor<float, 4>> gpu_in(gpu_in_data, in_range);
51 TensorMap<Tensor<float, 4>> gpu_out(gpu_out_data, out_range);
H A Dcxx11_tensor_forced_eval.cpp25 TensorMap<Tensor<float, 2> > mat1(m1.data(), 3,3);
26 TensorMap<Tensor<float, 2> > mat2(m2.data(), 3,3);
64 const TensorMap<Tensor<const float, 2> > input_tensor(input.data(), 3, 3);
H A Dcxx11_tensor_mixed_indices.cpp28 TensorMap<Tensor<float, 1, ColMajor>> vec3(data3, 6);
31 TensorMap<Tensor<float, 1, ColMajor, int>> vec4(data4, 6);
H A Dcxx11_tensor_forced_eval_sycl.cpp42 // creating TensorMap from tensor
43 Eigen::TensorMap<Eigen::Tensor<float, 3>> gpu_in1(gpu_in1_data, tensorRange);
44 Eigen::TensorMap<Eigen::Tensor<float, 3>> gpu_in2(gpu_in2_data, tensorRange);
45 Eigen::TensorMap<Eigen::Tensor<float, 3>> gpu_out(gpu_out_data, tensorRange);
H A Dcxx11_tensor_assign.cpp32 TensorMap<Tensor<int, 1> > vec3(col_major, 6);
33 TensorMap<Tensor<int, 1, RowMajor> > vec4(row_major, 6);
95 TensorMap<Tensor<int, 2> > mat3(row_major, 2, 3);
96 TensorMap<Tensor<int, 2, RowMajor> > mat4(col_major, 2, 3);
155 TensorMap<Tensor<int, 3> > mat3(col_major, 2, 3, 7);
156 TensorMap<Tensor<int, 3, RowMajor> > mat4(row_major, 2, 3, 7);
219 TensorMap<Tensor<int, 1> > orig_map(orig, 5);
220 TensorMap<Tensor<int, 1> > dest_map(dest, 5);
H A Dcxx11_tensor_sycl.cpp28 using Eigen::TensorMap;
49 TensorMap<Tensor<float, 3>> gpu_in1(gpu_in1_data, tensorRange);
50 TensorMap<Tensor<float, 3>> gpu_in2(gpu_in2_data, tensorRange);
51 TensorMap<Tensor<float, 3>> gpu_in3(gpu_in3_data, tensorRange);
52 TensorMap<Tensor<float, 3>> gpu_out(gpu_out_data, tensorRange);
H A Dcxx11_tensor_fixed_size.cpp119 TensorMap<TensorFixedSize<float, Sizes<6> > > vec3(data3, 6);
133 TensorMap<TensorFixedSize<float, Sizes<2, 3> > > mat1(data1,2,3);
135 TensorMap<TensorFixedSize<float, Sizes<2, 3>, RowMajor> > mat2(data2,2,3);
H A Dcxx11_tensor_of_strings.cpp15 using Eigen::TensorMap;
20 TensorMap<Tensor<std::string, 2>> mat1(data1, 2, 3);
22 const TensorMap<Tensor<const std::string, 2>> mat2(data2, 2, 3);
H A Dcxx11_tensor_expr.cpp30 TensorMap<Tensor<float, 1>> vec3(data3, 6);
33 TensorMap<Tensor<float, 1, RowMajor>> vec4(data4, 6);
36 TensorMap<Tensor<float, 1, RowMajor>> vec5(data5, 6);
72 TensorMap<Tensor<float, 2>> mat1(data1, 2, 3);
74 TensorMap<Tensor<float, 2, RowMajor>> mat2(data2, 2, 3);
H A Dcxx11_tensor_morphing.cpp52 TensorMap<Tensor<float, 5>> tensor1(m1.data(), 2,3,5,7,11);
53 TensorMap<Tensor<float, 5>> tensor2(m2.data(), 3,5,7,11,13);
80 TensorMap<Tensor<float, 5>> tensor5d(scratch, 2,3,1,7,1);
122 TensorMap<Tensor<const float, 1> > m(b, 1);
139 TensorMap<Tensor<float, 2, DataLayout>> tensor1(m1.data(), 7, 7);
140 TensorMap<Tensor<float, 2, DataLayout>> tensor2(m2.data(), 3, 3);
159 TensorMap<Tensor<const float, 2, DataLayout>> tensor4(m1.data(), 7, 7);
H A Dcxx11_tensor_io.cpp112 TensorMap<Tensor<const int, 1, DataLayout> > tensor_map(tensor.data(), 5);
H A Dcxx11_tensor_of_complex.cpp15 using Eigen::TensorMap;
H A Dcxx11_tensor_scan.cpp89 TensorMap<Tensor<int, 1, DataLayout> > tensor_map(inputs, 20);
/external/eigen/bench/tensors/
H A Dtensor_benchmarks.h14 using Eigen::TensorMap;
56 const TensorMap<Tensor<int, 2, 0, TensorIndex>, Eigen::Aligned> A((int*)a_, sizes);
57 TensorMap<Tensor<T, 2, 0, TensorIndex>, Eigen::Aligned> B(b_, sizes);
72 TensorMap<Tensor<T, 2>, Eigen::Aligned> C(c_, sizes);
87 const TensorMap<Tensor<T, 2>, Eigen::Aligned> A(a_, sizes);
88 const TensorMap<Tensor<T, 2>, Eigen::Aligned> B(b_, sizes);
89 TensorMap<Tensor<T, 2>, Eigen::Aligned> C(c_, sizes);
117 const TensorMap<Tensor<T, 2, 0, TensorIndex>, Eigen::Aligned> B(b_, input_size);
120 TensorMap<Tensor<T, 1, 0, TensorIndex>, Eigen::Aligned> C(c_, output_size);
134 const TensorMap<Tenso
[all...]
H A Dtensor_benchmarks_sycl.cc11 using Eigen::TensorMap;
/external/eigen/unsupported/Eigen/CXX11/src/Tensor/
H A DTensorTraits.h84 struct traits<TensorMap<PlainObjectType, Options_, MakePointer_> >
146 struct eval<TensorMap<PlainObjectType, Options, MakePointer>, Eigen::Dense>
148 typedef const TensorMap<PlainObjectType, Options, MakePointer>& type;
152 struct eval<const TensorMap<PlainObjectType, Options, MakePointer>, Eigen::Dense>
154 typedef const TensorMap<PlainObjectType, Options, MakePointer>& type;
201 struct nested<TensorMap<PlainObjectType, Options, MakePointer> >
203 typedef const TensorMap<PlainObjectType, Options, MakePointer>& type;
207 struct nested<const TensorMap<PlainObjectType, Options, MakePointer> >
209 typedef const TensorMap<PlainObjectType, Options, MakePointer>& type;
H A DTensorMap.h15 /** \class TensorMap
27 template<typename PlainObjectType, int Options_, template <class> class MakePointer_> class TensorMap : public TensorBase<TensorMap<PlainObjectType, Options_, MakePointer_> > class in namespace:Eigen
30 typedef TensorMap<PlainObjectType, Options_, MakePointer_> Self;
60 EIGEN_STRONG_INLINE TensorMap(PointerArgType dataPtr) : m_data(dataPtr), m_dimensions() { function in class:Eigen::TensorMap
67 EIGEN_STRONG_INLINE TensorMap(PointerArgType dataPtr, Index firstDimension, IndexTypes... otherDimensions) : m_data(dataPtr), m_dimensions(firstDimension, otherDimensions...) { function in class:Eigen::TensorMap
73 EIGEN_STRONG_INLINE TensorMap(PointerArgType dataPtr, Index firstDimension) : m_data(dataPtr), m_dimensions(firstDimension) { function in class:Eigen::TensorMap
78 EIGEN_STRONG_INLINE TensorMap(PointerArgType dataPtr, Index dim1, Index dim2) : m_data(dataPtr), m_dimensions(dim1, dim2) { function in class:Eigen::TensorMap
82 EIGEN_STRONG_INLINE TensorMap(PointerArgType dataPtr, Index dim1, Index dim2, Index dim3) : m_data(dataPtr), m_dimensions(dim1, dim2, dim3) { function in class:Eigen::TensorMap
86 EIGEN_STRONG_INLINE TensorMap(PointerArgTyp function in class:Eigen::TensorMap
90 EIGEN_STRONG_INLINE TensorMap(PointerArgType dataPtr, Index dim1, Index dim2, Index dim3, Index dim4, Index dim5) : m_data(dataPtr), m_dimensions(dim1, dim2, dim3, dim4, dim5) { function in class:Eigen::TensorMap
95 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorMap(PointerArgType dataPtr, const array<Index, NumIndices>& dimensions) function in class:Eigen::TensorMap
100 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorMap(PointerArgType dataPtr, const Dimensions& dimensions) function in class:Eigen::TensorMap
104 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorMap(PlainObjectType& tensor) function in class:Eigen::TensorMap
[all...]
H A DTensorSyclLeafCount.h46 /// specialisation of the \ref LeafCount struct when the node type is const TensorMap
48 struct LeafCount<const TensorMap<PlainObjectType, Options_, MakePointer_> > {
52 /// specialisation of the \ref LeafCount struct when the node type is TensorMap
54 struct LeafCount<TensorMap<PlainObjectType, Options_, MakePointer_> > :LeafCount<const TensorMap<PlainObjectType, Options_, MakePointer_> >{};
H A DTensorSyclConvertToDeviceExpression.h49 /// type is TensorMap
52 struct ConvertToDeviceExpression<CVQual TensorMap<Tensor<Scalar_, NumIndices_, Options_, IndexType_>, Options2_, MakePointer_> > {\
53 typedef CVQual TensorMap<Tensor<Scalar_, NumIndices_, Options_, IndexType_>, Options2_, MakeGlobalPointer> Type;\
H A DTensorSyclExprConstructor.h38 /// space for the TensorMap pointers used in eval function.
46 /// TensorMap
50 struct ExprConstructor< CVQual TensorMap<Tensor<Scalar_, NumIndices_, Options_, IndexType_>, Options2_, MakeGlobalPointer>,\
51 CVQual PlaceHolder<CVQual TensorMap<Tensor<Scalar_, NumIndices_, Options_, IndexType_>, Options3_, MakePointer_>, N>, Params...>{\
52 typedef CVQual TensorMap<Tensor<Scalar_, NumIndices_, Options_, IndexType_>, Options2_, MakeGlobalPointer> Type;\
190 typedef CVQual TensorMap<Tensor<typename TensorForcedEvalOp<DevExpr, MakeGlobalPointer>::Scalar,\
215 typedef CVQual TensorMap<Tensor<typename TensorReductionOp<OP, Dim, DevExpr, MakeGlobalPointer>::Scalar,\
H A DTensorSyclPlaceHolderExpr.h30 /// \brief PlaceHolder is used to replace the \ref TensorMap in the expression
41 /// expression is a copy of expression type in which the TensorMap of the has
123 /// TensorMap
126 struct PlaceHolderExpression< CVQual TensorMap< Tensor<Scalar_, NumIndices_, Options_, IndexType_>, Options2_, MakePointer_>, N> {\
127 typedef CVQual PlaceHolder<CVQual TensorMap<Tensor<Scalar_, NumIndices_, Options_, IndexType_>, Options2_, MakePointer_>, N> Type;\

Completed in 224 milliseconds

12