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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
