mirror of
https://github.com/open-mmlab/mmdeploy.git
synced 2025-01-14 08:09:43 +08:00
24 lines
543 B
C
24 lines
543 B
C
|
// Copyright (c) OpenMMLab. All rights reserved.
|
||
|
|
||
|
#ifndef MMDEPLOY_SRC_PREPROCESS_TRANSFORM_COMPOSE_H_
|
||
|
#define MMDEPLOY_SRC_PREPROCESS_TRANSFORM_COMPOSE_H_
|
||
|
|
||
|
#include "transform.h"
|
||
|
|
||
|
namespace mmdeploy {
|
||
|
|
||
|
class Compose : public Transform {
|
||
|
public:
|
||
|
explicit Compose(const Value& args, int version = 0);
|
||
|
~Compose() override = default;
|
||
|
|
||
|
Result<Value> Process(const Value& input) override;
|
||
|
|
||
|
private:
|
||
|
std::vector<std::unique_ptr<Transform>> transforms_;
|
||
|
};
|
||
|
|
||
|
} // namespace mmdeploy
|
||
|
|
||
|
#endif // MMDEPLOY_SRC_PREPROCESS_TRANSFORM_COMPOSE_H_
|