2019-04-17 10:49:11 +08:00
|
|
|
//
|
|
|
|
// CPUBatchToSpaceND.hpp
|
|
|
|
// MNN
|
|
|
|
//
|
|
|
|
// Created by MNN on 2018/12/19.
|
|
|
|
// Copyright © 2018, Alibaba Group Holding Limited
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef CPUBatchToSpaceND_hpp
|
|
|
|
#define CPUBatchToSpaceND_hpp
|
|
|
|
|
|
|
|
#include <functional>
|
2019-12-27 22:16:57 +08:00
|
|
|
#include "core/Execution.hpp"
|
2019-04-17 10:49:11 +08:00
|
|
|
namespace MNN {
|
|
|
|
|
|
|
|
class CPUBatchToSpaceND : public Execution {
|
|
|
|
public:
|
|
|
|
CPUBatchToSpaceND(const Op *op, Backend *bn);
|
|
|
|
virtual ~CPUBatchToSpaceND() = default;
|
|
|
|
virtual ErrorCode onExecute(const std::vector<Tensor *> &inputs, const std::vector<Tensor *> &outputs) override;
|
|
|
|
virtual ErrorCode onResize(const std::vector<Tensor *> &inputs, const std::vector<Tensor *> &outputs) override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
const Op *mOp;
|
|
|
|
std::function<void()> mRun;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace MNN
|
|
|
|
|
|
|
|
#endif /* CPUBatchToSpaceND_hpp */
|