Issue around constant folding when working with views that share memory. I have a fix in the local branch. Will put up a PR shortly.
# Ensure we copy the array to avoid BufferError when numpy operations
# (like split) create views that share memory with original tensors
if isinstance(array, np.ndarray) and not array.flags["OWNDATA"]:
array = array.copy()
Issue around constant folding when working with views that share memory. I have a fix in the local branch. Will put up a PR shortly.