mirror of
https://github.com/open-mmlab/mmdeploy.git
synced 2025-01-14 08:09:43 +08:00
12 lines
297 B
C++
12 lines
297 B
C++
|
// Copyright (c) OpenMMLab. All rights reserved.
|
||
|
|
||
|
#include "common.h"
|
||
|
|
||
|
#include "archive/value_archive.h"
|
||
|
|
||
|
mmdeploy::graph::BaseNode::BaseNode(const mmdeploy::Value& cfg) {
|
||
|
from_value(cfg["input"], inputs_);
|
||
|
from_value(cfg["output"], outputs_);
|
||
|
name_ = cfg.value<std::string>("name", "");
|
||
|
}
|