From 3840c1f43316059bff19a01fd564b7384df2554a Mon Sep 17 00:00:00 2001 From: Megvii Engine Team Date: Fri, 28 Aug 2020 17:59:03 +0800 Subject: [PATCH] fix(mge/imperative): use logical reprentation of compnode GitOrigin-RevId: 9d104de3aa3f5894b8d2081c18dce7bb4d86628b --- imperative/python/src/common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imperative/python/src/common.cpp b/imperative/python/src/common.cpp index 047a0f80f..d4ef442e5 100644 --- a/imperative/python/src/common.cpp +++ b/imperative/python/src/common.cpp @@ -16,7 +16,7 @@ void init_common(py::module m) { py::class_(m, "CompNode") .def(py::init()) .def(py::init(py::overload_cast(&CompNode::load))) - .def("__str__", &CompNode::to_string) + .def("__str__", &CompNode::to_string_logical) .def_static("_sync_all", &CompNode::sync_all) .def(py::self == py::self) .def_static("_get_device_count", &CompNode::get_device_count, -- GitLab