2019-07-25 13:36:35 +08:00
|
|
|
//
|
|
|
|
|
// CPUDepthToSpace.hpp
|
|
|
|
|
// MNN
|
|
|
|
|
//
|
|
|
|
|
// Created by MNN on 2019/07/15.
|
|
|
|
|
// Copyright © 2018, Alibaba Group Holding Limited
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
#ifndef CPUDepthToSpace_hpp
|
|
|
|
|
#define CPUDepthToSpace_hpp
|
|
|
|
|
|
2019-12-27 22:16:57 +08:00
|
|
|
#include "core/Execution.hpp"
|
2019-07-25 13:36:35 +08:00
|
|
|
|
|
|
|
|
namespace MNN {
|
|
|
|
|
|
|
|
|
|
template <typename T>
|
|
|
|
|
class CPUDepthToSpace : public Execution {
|
|
|
|
|
public:
|
|
|
|
|
CPUDepthToSpace(Backend* backend, const MNN::Op* op);
|
|
|
|
|
virtual ~CPUDepthToSpace() = default;
|
|
|
|
|
virtual ErrorCode onResize(const std::vector<Tensor*> &inputs, const std::vector<Tensor*> &outputs) override;
|
|
|
|
|
virtual ErrorCode onExecute(const std::vector<Tensor*> &inputs, const std::vector<Tensor*> &outputs) override;
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
const MNN::Op* mOp;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace MNN
|
|
|
|
|
|
|
|
|
|
#endif /* CPUDepthToSpace */
|