Skip to content
Snippets Groups Projects
Verified Commit cb54c9aa authored by Justin Carpentier's avatar Justin Carpentier
Browse files

core: try a fix for old version of Eigen

parent 8d5068a9
No related branches found
No related tags found
No related merge requests found
Pipeline #25963 failed
...@@ -250,7 +250,10 @@ struct numpy_allocator_impl_tensor<Eigen::TensorRef<TensorType> > { ...@@ -250,7 +250,10 @@ struct numpy_allocator_impl_tensor<Eigen::TensorRef<TensorType> > {
return pyArray; return pyArray;
} else { } else {
return NumpyAllocator<TensorType>::allocate(tensor, nd, shape); return NumpyAllocator<TensorType>::allocate(
static_cast<Eigen::TensorBase<Eigen::TensorRef<TensorType> > &>(
tensor),
nd, shape);
} }
} }
}; };
...@@ -278,7 +281,11 @@ struct numpy_allocator_impl_tensor<const Eigen::TensorRef<const TensorType> > { ...@@ -278,7 +281,11 @@ struct numpy_allocator_impl_tensor<const Eigen::TensorRef<const TensorType> > {
return pyArray; return pyArray;
} else { } else {
return NumpyAllocator<TensorType>::allocate(tensor, nd, shape); return NumpyAllocator<TensorType>::allocate(
static_cast<
const Eigen::TensorBase<Eigen::TensorRef<const TensorType> > &>(
tensor),
nd, shape);
} }
} }
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment