diff options
author | Rasmus Munk Larsen <rmlarsen@google.com> | 2020-07-28 19:19:37 +0000 |
---|---|---|
committer | Rasmus Munk Larsen <rmlarsen@google.com> | 2020-07-28 19:19:37 +0000 |
commit | b92206676c06c5a139c7c5eaa13455b0d9f40581 (patch) | |
tree | fa8f1bf3a08594b77e7c1f3e4e135f7e21a16230 /unsupported/Eigen/CXX11/src/Tensor | |
parent | 99da2e1a8da4130279aa3becd6c23be0181edb07 (diff) |
Inherit alignment trait from argument in TensorBroadcasting to avoid segfault when the argument is unaligned.
Diffstat (limited to 'unsupported/Eigen/CXX11/src/Tensor')
-rw-r--r-- | unsupported/Eigen/CXX11/src/Tensor/TensorBroadcasting.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorBroadcasting.h b/unsupported/Eigen/CXX11/src/Tensor/TensorBroadcasting.h index 3408f90d1..fc75c8d9a 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorBroadcasting.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorBroadcasting.h @@ -112,7 +112,7 @@ struct TensorEvaluator<const TensorBroadcastingOp<Broadcast, ArgType>, Device> typedef typename Storage::Type EvaluatorPointerType; enum { - IsAligned = true, + IsAligned = TensorEvaluator<ArgType, Device>::IsAligned, PacketAccess = TensorEvaluator<ArgType, Device>::PacketAccess, BlockAccess = TensorEvaluator<ArgType, Device>::BlockAccess, PreferBlockAccess = true, |