You are viewing a plain text version of this content. The canonical link for it is here.
Posted to discuss-archive@tvm.apache.org by "Kathryn-cat (via GitHub)" <gi...@apache.org> on 2026/04/02 17:44:44 UTC
[PR] [fix] Move container stream scanning from Cython to C++ for efficiency [tvm-ffi]
Kathryn-cat opened a new pull request, #521:
URL: https://github.com/apache/tvm-ffi/pull/521
When a packed FFI function receives containers (Array, List, Map, Dict) containing tensors, we scan for the first non-CPU tensor to capture stream context. Previously this scanning was done in Cython via repeated packed-function calls (size, getitem, iterator create/advance per element). This PR registers a single C++ function ffi.ContainerFindFirstNonCPUDevice that does the recursive scan natively.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org
For additional commands, e-mail: discuss-archive-help@tvm.apache.org
Re: [PR] [fix] Move container stream scanning from Cython to C++ for efficiency [tvm-ffi]
Posted by "junrushao (via GitHub)" <gi...@apache.org>.
junrushao merged PR #521:
URL: https://github.com/apache/tvm-ffi/pull/521
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org
For additional commands, e-mail: discuss-archive-help@tvm.apache.org