27 lines
537 B
C
27 lines
537 B
C
|
// Copyright (c) OpenMMLab. All rights reserved.
|
||
|
|
||
|
#ifndef MMDEPLOY_SRC_MODULE_NET_MODULE_H_
|
||
|
#define MMDEPLOY_SRC_MODULE_NET_MODULE_H_
|
||
|
|
||
|
#include "core/status_code.h"
|
||
|
#include "core/tensor.h"
|
||
|
#include "core/value.h"
|
||
|
|
||
|
namespace mmdeploy {
|
||
|
|
||
|
class NetModule {
|
||
|
public:
|
||
|
~NetModule();
|
||
|
explicit NetModule(const Value& args);
|
||
|
NetModule(NetModule&&) = default;
|
||
|
Result<Value> operator()(const Value& input);
|
||
|
|
||
|
private:
|
||
|
struct Impl;
|
||
|
std::unique_ptr<Impl> impl_;
|
||
|
};
|
||
|
|
||
|
} // namespace mmdeploy
|
||
|
|
||
|
#endif // MMDEPLOY_SRC_MODULE_NET_MODULE_H_
|