This repository was archived by the owner on Apr 28, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
tensor_comprehensions/pybinds Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ PYBIND11_MODULE(tc, m) {
106
106
m.def (
107
107
" set_dump_cuda" , [](bool dump_cuda) { tc::FLAGS_dump_cuda = dump_cuda; });
108
108
109
- py::class_<ATenCudaTuner>(m, " ATenCudaTuner" )
109
+ py::class_<ATenCudaTuner>(m, " ATenCudaTuner" , py::module_local () )
110
110
.def (py::init<const std::string>())
111
111
.def (
112
112
" pop_size" ,
@@ -204,7 +204,8 @@ PYBIND11_MODULE(tc, m) {
204
204
numCandidates);
205
205
});
206
206
207
- py::class_<ATenCudaCompilationUnit>(m, " ATenCompilationUnit" )
207
+ py::class_<ATenCudaCompilationUnit>(
208
+ m, " ATenCompilationUnit" , py::module_local ())
208
209
.def (py::init<>())
209
210
.def (" define" , &ATenCudaCompilationUnit::define, " Define the TC language" )
210
211
.def (
@@ -255,7 +256,8 @@ PYBIND11_MODULE(tc, m) {
255
256
py::class_<tc::CudaMappingOptions>(
256
257
m,
257
258
" CudaMappingOptions" ,
258
- " MappingCudaMappingOptions for a Tensor Comprehensions (TC)" )
259
+ " CudaMappingOptions for a Tensor Comprehensions (TC)" ,
260
+ py::module_local ())
259
261
.def (
260
262
py::init ([](std::string type) {
261
263
if (type == " naive" ) {
You can’t perform that action at this time.
0 commit comments