mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-13 20:26:03 +08:00
Made it possible to run tensor chipping operations on CUDA devices
This commit is contained in:
parent
2ca55a3ae4
commit
40e6250fc3
@ -50,7 +50,7 @@ struct nested<TensorChippingOp<DimId, XprType>, 1, typename eval<TensorChippingO
|
|||||||
template <DenseIndex DimId>
|
template <DenseIndex DimId>
|
||||||
struct DimensionId
|
struct DimensionId
|
||||||
{
|
{
|
||||||
DimensionId(DenseIndex dim) {
|
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE DimensionId(DenseIndex dim) {
|
||||||
eigen_assert(dim == DimId);
|
eigen_assert(dim == DimId);
|
||||||
}
|
}
|
||||||
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE DenseIndex actualDim() const {
|
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE DenseIndex actualDim() const {
|
||||||
@ -60,7 +60,7 @@ struct DimensionId
|
|||||||
template <>
|
template <>
|
||||||
struct DimensionId<Dynamic>
|
struct DimensionId<Dynamic>
|
||||||
{
|
{
|
||||||
DimensionId(DenseIndex dim) : actual_dim(dim) {
|
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE DimensionId(DenseIndex dim) : actual_dim(dim) {
|
||||||
eigen_assert(dim >= 0);
|
eigen_assert(dim >= 0);
|
||||||
}
|
}
|
||||||
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE DenseIndex actualDim() const {
|
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE DenseIndex actualDim() const {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user