Open Danielmic opened 3 months ago
I draft a PR here https://github.com/pytorch/pytorch/pull/131882
These look to be private APIs -- could you elaborate on your use case for these functions?
I am using the PrivateUse1 backend, and I need to duplicate the same code implementation here. Therefore, I would like to see if these APIs can be made public. @janeyx99
š The feature, motivation and pitch
Currently there are some API are generic but defined in torch/csrc/cuda/Module.cpp and only exposed when USE_CUDA=ON
Alternatives
move then from torch::cuda::initModule(module) to torch::initModule()
Additional context
No response
cc @ptrblck @msaroufim