MNN/source/backend/cpu/CPUPoolInt8.hpp

32 lines
784 B
C++
Raw Normal View History

//
// CPUPoolInt8.hpp
// MNN
//
// Created by MNN on 2019/06/10.
// Copyright © 2018, Alibaba Group Holding Limited
//
#ifndef CPUPoolInt8_hpp
#define CPUPoolInt8_hpp
#include "CPUBackend.hpp"
namespace MNN {
class CPUPoolInt8 : public Execution {
public:
CPUPoolInt8(Backend *b, const Pool *parameter);
virtual ~CPUPoolInt8() = 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;
int mThreadNumber;
std::function<void(int tId, const int8_t *src, int8_t *dst)> mThreadFunction;
};
} // namespace MNN
#endif /* CPUPoolInt8_hpp */