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>
25 lines
561 B
C++
25 lines
561 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_;
|
|
Stream stream_;
|
|
};
|
|
|
|
} // namespace mmdeploy
|
|
|
|
#endif // MMDEPLOY_SRC_PREPROCESS_TRANSFORM_COMPOSE_H_
|