# 3rdparty/dlpack/apps/numpy\_dlpack/test.py Check failed: (IsAligned(tensor-\>dl\_tensor)) is false

**URL:** <https://discuss.tvm.apache.org/t/3rdparty-dlpack-apps-numpy-dlpack-test-py-check-failed-isaligned-tensor-dl-tensor-is-false/17676>\
**Category:** Uncategorized\
**Created:** [September 1, 2024, 9:10am UTC](https://discuss.tvm.apache.org/t/3rdparty-dlpack-apps-numpy-dlpack-test-py-check-failed-isaligned-tensor-dl-tensor-is-false/17676 "2024-09-01T09:10:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tempmac](https://discuss.tvm.apache.org/letter_avatar_proxy/v4/letter/t/8e7dd6/32.png) [@tempmac](https://discuss.tvm.apache.org/u/tempmac)\
**Post date:** [September 1, 2024, 9:10am UTC](https://discuss.tvm.apache.org/t/3rdparty-dlpack-apps-numpy-dlpack-test-py-check-failed-isaligned-tensor-dl-tensor-is-false/17676/1 "2024-09-01T09:10:26Z")

</div>

related: [how do I use dlpackrs with apache TVM for zero-copy?](https://discuss.tvm.apache.org/t/how-do-i-use-dlpackrs-with-apache-tvm-for-zero-copy/17658)

I’ve been trying to use dlpackrs, but kept getting segfaults when I tried to access items inside ArrayViewD converted from tvm’s NDArray.

trying to dig further, I noticed that when I run

`python 3rdparty/dlpack/apps/numpy_dlpack/test.py` inside my tvm build folder+venv, I get: `InternalError: Check failed: (IsAligned(tensor->dl_tensor)) is false: Data in DLManagedTensor is not aligned as required by NDArray`

is this related to some build configuration settings? (eg. cmakelist) or is it something broken inside tvm source code? thank you!
