mirror of
https://github.com/open-mmlab/mmdeploy.git
synced 2025-01-14 08:09:43 +08:00
* sync SDK changes according to performance benchmarks * fix end-of-file lint * fix clang-format issue * fix clang-format by adding 'clang-format off' * remove useless casts * remove 'data' argument of 'operator()' * change 'Tensor2Img' to 'TensorToImg' according to spec * correct tensor's name according spec Co-authored-by: lvhan028 <lvhan_028@163.com>
17 lines
388 B
C++
17 lines
388 B
C++
// Copyright (c) OpenMMLab. All rights reserved.
|
|
|
|
#include "common.h"
|
|
|
|
#include "archive/value_archive.h"
|
|
|
|
mmdeploy::graph::BaseNode::BaseNode(const mmdeploy::Value& cfg) {
|
|
try {
|
|
from_value(cfg["input"], inputs_);
|
|
from_value(cfg["output"], outputs_);
|
|
name_ = cfg.value<std::string>("name", "");
|
|
} catch (...) {
|
|
ERROR("error parsing config: {}", cfg);
|
|
throw;
|
|
}
|
|
}
|