pfk-beta opened a new pull request, #11126: URL: https://github.com/apache/tvm/pull/11126
Hello, I'm not sure whether it needs RFC, but it was little messy in python runtime code (related to my answer, not main thread in this post https://discuss.tvm.apache.org/t/pre-rfc-more-meaningful-names-in-rpc-module-in-python/12618). I have moved `device, cpu, cuda, gpu, opencl, cl, vulkan, metal, mtl, vpi, rocm, ext_dev` functions from `tvm.runtime.ndarray` to `tvm.runtime.devices` and reimported them in `tvm.runtime`, so we can use following statement: ``` import tvm.runtime runtime.cpu(0) ``` In previous version there was mix of following: ``` import tvm tvm.cpu() ``` ``` from tvm.runtime import ndarray as _nd _nd.cuda(0) ``` -- 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]
