ITADN

Constant folding override

#2890Opensrikris-sridhar 创建于 2026-04-15
S
srikris-sridharcommented
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()
1 条评论