Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove pointer arithmetic in StorageObj::AllocNDArray (#7890)
The data pointers returned by AllocDataSpace are intended to be opaque handlers, where previous implementation assumed pointer arithmetic is valid on them. Updated to instead use the byte_offset field to indicate the offset in the allocated array. Co-authored-by: Eric Lunderberg <elunderberg@octoml.ai>
- Loading branch information