[neurun] Nit : fix OperandNode::BG_COLORS (#6384)
author이한종/On-Device Lab(SR)/Engineer/삼성전자 <hanjoung.lee@samsung.com>
Thu, 8 Aug 2019 07:04:05 +0000 (16:04 +0900)
committer이춘석/On-Device Lab(SR)/Staff Engineer/삼성전자 <chunseok.lee@samsung.com>
Thu, 8 Aug 2019 07:04:05 +0000 (16:04 +0900)
`BG_COLOR` is a static member of `Node` but it was refereced with a
subclass without a reason.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
runtimes/neurun/core/src/dumper/dot/DotDumper.cc

index bf147b7..d01b472 100644 (file)
@@ -69,7 +69,7 @@ void DotDumper::dump(const std::string &tag)
       uint32_t index = 1; // Start from 1 to avoid 0(red) which is too dark :(
       for (const auto backend : backend::BackendManager::instance().getAll())
       {
-        ret.emplace(backend, OperandNode::BG_COLORS[index]);
+        ret.emplace(backend, Node::BG_COLORS[index]);
         index = (index + 1) % (sizeof(Node::BG_COLORS) / sizeof(Node::BG_COLORS[0]));
       }
       return ret;