![]() |
Eigen-unsupported
5.0.1-dev+7c7d8473
|
#include <unsupported/Eigen/CXX11/src/Tensor/TensorContractionSycl.h>
GeneralScalarContraction is a template class that provides the scalar value of Tensor -Tensor contraction operation, when all the dimensions are contracting dimensions. This Kernel reduces two tensors to an scalar.
| OutScalar | determines the output scalar type |
| LhsScalar | determines the left-hand-side scalar type |
| RhsScalar | determines the right-hand-side scalar type |
| OutAccessor | determines the sycl accessor type for out put (please see the sycl-1.2.1 specification (https://www.khronos.org/registry/SYCL/specs/sycl-1.2.1.pdf) for accessor definition) |
| LhsMapper | determines the tensor contraction mapper type for left-hand-side matrix |
| RhsMapper | determines the tensor contraction mapper type for right-hand-side matrix |
| StorageIndex | determines the StorageIndex Type |
| Vectorizable | determines whether or not the vectorization is enabled for the Eigen expression. |
| scratch | local memory containing tiles of LHS and RHS tensors for each work-group |
| lhs | determines the left-hand-side flattened tensor (tensor mapper) |
| rhs | determines the right-hand-side flattened tensor (tensor mapper) |
| out_res | determines the output tensor containing the contraction result |
| rng | determines the total input data size |