Fix BlockAccess enum in CwiseUnaryOp evaluator

This commit is contained in:
Eugene Zhulenev 2018-08-10 17:37:58 -07:00
parent 855b68896b
commit 35d90e8960
2 changed files with 3 additions and 4 deletions

View File

@ -357,7 +357,7 @@ struct TensorEvaluator<const TensorCwiseUnaryOp<UnaryOp, ArgType>, Device>
IsAligned = TensorEvaluator<ArgType, Device>::IsAligned,
PacketAccess = TensorEvaluator<ArgType, Device>::PacketAccess &
internal::functor_traits<UnaryOp>::PacketAccess,
BlockAccess = TensorEvaluator<ArgType, Device>::PacketAccess,
BlockAccess = TensorEvaluator<ArgType, Device>::BlockAccess,
PreferBlockAccess = TensorEvaluator<ArgType, Device>::PreferBlockAccess,
Layout = TensorEvaluator<ArgType, Device>::Layout,
CoordAccess = false, // to be implemented

View File

@ -135,9 +135,8 @@ struct IsTileable {
// Check that block evaluation is supported and it's a preferred option (at
// least one sub-expression has much faster block evaluation, e.g.
// broadcasting).
static const bool value =
TensorEvaluator<Expression, Device>::BlockAccess &
TensorEvaluator<Expression, Device>::PreferBlockAccess;
static const bool value = TensorEvaluator<Expression, Device>::BlockAccess &&
TensorEvaluator<Expression, Device>::PreferBlockAccess;
};
template <typename Expression, typename Device,