Skip to content

Commit ac9e5bc

Browse files
authored
Simplify
Signed-off-by: Axel Huebl <[email protected]>
1 parent 63a0071 commit ac9e5bc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/dlpack/DLPack.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ void init_DLPack(py::module& m)
1010
// register types only if not already present, e.g., from another library
1111
// that also implements DLPack bindings and exposes the types
1212

13-
py::type pyDLDeviceType = false; // TODO: py::type::of<DLDeviceType>();
13+
// TODO: py::type pyDLDeviceType = py::type::of<DLDeviceType>();
14+
bool pyDLDeviceType = false;
1415
if (!pyDLDeviceType) {
1516
py::native_enum<DLDeviceType>(m, "DLDeviceType", "enum.IntEnum")
1617
.value("kDLCPU", DLDeviceType::kDLCPU)

0 commit comments

Comments
 (0)