Skip to content

Conversation

@tqchen
Copy link
Member

@tqchen tqchen commented Sep 6, 2025

This PR Updates the NDArray => Tensor.

Both tensor and ndarray are commonly used terms.

Because the term Tensor is getting more common in the context of ML, we do the rename to stay more aligned with torch.Tensor and DLTensor.

@tqchen
Copy link
Member Author

tqchen commented Sep 6, 2025

Upgrade Guide

  • tvm.nd.empty => tvm.runtime.empty
  • tvm.nd.NDArray=>tvm.runtime.Tensor
  • tvm.nd.from_dlpack=>tvm.runtime.from_dlpack

Try to also look for cases where runtime::Tensor and te::Tensor gets into same namespace that may cause conflict, add prefix

This PR Updates the NDArray => Tensor.

Both tensor and ndarray are commonly used terms.

Because the term Tensor is getting more common in the context of ML,
we do the rename to stay more aligned with torch.Tensor and DLTensor.
@cyx-6 cyx-6 merged commit 3c36ce2 into main Sep 6, 2025
13 checks passed
yzh119 pushed a commit to flashinfer-ai/flashinfer that referenced this pull request Sep 7, 2025
## 📌 Description

The latest TVM ffi refactor renames `NDArray` to `Tensor`, to align with
the terminology in PyTorch. This PR updates flashinfer tvm binding with
the rename.

apache/tvm#18275

## 🔍 Related Issues

N/A

## 🚀 Pull Request Checklist

Thank you for contributing to FlashInfer! Before we review your pull
request, please make sure the following items are complete.

### ✅ Pre-commit Checks

- [x] I have installed `pre-commit` by running `pip install pre-commit`
(or used your preferred method).
- [x] I have installed the hooks with `pre-commit install`.
- [x] I have run the hooks manually with `pre-commit run --all-files`
and fixed any reported issues.

> If you are unsure about how to set up `pre-commit`, see [the
pre-commit documentation](https://pre-commit.com/).

## 🧪 Tests

N/A

## Reviewer Notes

N/A
@tqchen tqchen deleted the tensor branch September 8, 2025 22:34
tqchen added a commit to tqchen/tvm that referenced this pull request Sep 13, 2025
This PR Updates the NDArray => Tensor.

Both tensor and ndarray are commonly used terms.

Because the term Tensor is getting more common in the context of ML,
we do the rename to stay more aligned with torch.Tensor and DLTensor.
tqchen added a commit to tqchen/tvm that referenced this pull request Sep 13, 2025
This PR Updates the NDArray => Tensor.

Both tensor and ndarray are commonly used terms.

Because the term Tensor is getting more common in the context of ML,
we do the rename to stay more aligned with torch.Tensor and DLTensor.
tqchen added a commit to tqchen/tvm that referenced this pull request Sep 13, 2025
This PR Updates the NDArray => Tensor.

Both tensor and ndarray are commonly used terms.

Because the term Tensor is getting more common in the context of ML,
we do the rename to stay more aligned with torch.Tensor and DLTensor.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants