MNN/source/backend/cpu/CPUPool.hpp

29 lines
706 B
C++
Raw Normal View History

2019-04-17 10:49:11 +08:00
//
// CPUPool.hpp
// MNN
//
// Created by MNN on 2018/07/15.
// Copyright © 2018, Alibaba Group Holding Limited
//
#ifndef CPUPool_hpp
#define CPUPool_hpp
#include "CPUBackend.hpp"
namespace MNN {
class CPUPool : public Execution {
public:
CPUPool(Backend *b, const Pool *parameter);
virtual ~CPUPool() = 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 Pool *mParameter;
2019-07-03 16:47:16 +08:00
std::pair<int, std::function<void(int)> > mFunction;
2019-04-17 10:49:11 +08:00
};
} // namespace MNN
#endif /* CPUPool_hpp */