We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63a0071 commit ac9e5bcCopy full SHA for ac9e5bc
src/dlpack/DLPack.cpp
@@ -10,7 +10,8 @@ void init_DLPack(py::module& m)
10
// register types only if not already present, e.g., from another library
11
// that also implements DLPack bindings and exposes the types
12
13
- py::type pyDLDeviceType = false; // TODO: py::type::of<DLDeviceType>();
+ // TODO: py::type pyDLDeviceType = py::type::of<DLDeviceType>();
14
+ bool pyDLDeviceType = false;
15
if (!pyDLDeviceType) {
16
py::native_enum<DLDeviceType>(m, "DLDeviceType", "enum.IntEnum")
17
.value("kDLCPU", DLDeviceType::kDLCPU)
0 commit comments