mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-03-07 18:27:40 +08:00
Silenced a couple of compilation warnings.
This commit is contained in:
parent
d011d05fd6
commit
10d286f55b
@ -747,7 +747,7 @@ class TensorBlockMapper {
|
||||
// block dimension sizes based on "square" dimension size target.
|
||||
const size_t dim_size_target = static_cast<const size_t>(
|
||||
std::pow(static_cast<float>(min_target_size),
|
||||
1.0 / static_cast<float>(block_dim_sizes.rank())));
|
||||
1.0f / static_cast<float>(block_dim_sizes.rank())));
|
||||
for (size_t i = 0; i < block_dim_sizes.rank(); ++i) {
|
||||
// TODO(andydavis) Adjust the inner most 'block_dim_size' to make it
|
||||
// a multiple of the packet size. Note that reducing
|
||||
|
@ -61,8 +61,8 @@ class TensorShufflingOp : public TensorBase<TensorShufflingOp<Shuffle, XprType>
|
||||
typedef typename Eigen::internal::traits<TensorShufflingOp>::StorageKind StorageKind;
|
||||
typedef typename Eigen::internal::traits<TensorShufflingOp>::Index Index;
|
||||
|
||||
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorShufflingOp(const XprType& expr, const Shuffle& shuffle)
|
||||
: m_xpr(expr), m_shuffle(shuffle) {}
|
||||
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorShufflingOp(const XprType& expr, const Shuffle& shfl)
|
||||
: m_xpr(expr), m_shuffle(shfl) {}
|
||||
|
||||
EIGEN_DEVICE_FUNC
|
||||
const Shuffle& shufflePermutation() const { return m_shuffle; }
|
||||
|
Loading…
Reference in New Issue
Block a user