27 lines
543 B
C++
27 lines
543 B
C++
// Copyright (c) OpenMMLab. All rights reserved.
|
|
|
|
#ifndef MMDEPLOY_SRC_MODULE_TRANSFORM_MODULE_H_
|
|
#define MMDEPLOY_SRC_MODULE_TRANSFORM_MODULE_H_
|
|
|
|
#include "core/value.h"
|
|
|
|
namespace mmdeploy {
|
|
|
|
class Transform;
|
|
|
|
class TransformModule {
|
|
public:
|
|
~TransformModule();
|
|
TransformModule(TransformModule&&) noexcept;
|
|
|
|
explicit TransformModule(const Value& args);
|
|
Result<Value> operator()(const Value& input);
|
|
|
|
private:
|
|
std::unique_ptr<Transform> transform_;
|
|
};
|
|
|
|
} // namespace mmdeploy
|
|
|
|
#endif // MMDEPLOY_SRC_MODULE_TRANSFORM_MODULE_H_
|