mirror of https://github.com/alibaba/MNN.git
32 lines
707 B
C++
32 lines
707 B
C++
//
|
|
// CPUEltwiseInt8.hpp
|
|
// MNN
|
|
//
|
|
// Created by MNN on 2019/08/08.
|
|
// Copyright © 2018, Alibaba Group Holding Limited
|
|
//
|
|
|
|
#ifndef CPUEltwiseInt8_hpp
|
|
#define CPUEltwiseInt8_hpp
|
|
|
|
#include "core/Execution.hpp"
|
|
|
|
namespace MNN {
|
|
|
|
class CPUEltwiseInt8 : public Execution {
|
|
public:
|
|
CPUEltwiseInt8(Backend *backend, const Op *op);
|
|
virtual ~CPUEltwiseInt8();
|
|
virtual ErrorCode onExecute(const std::vector<Tensor *> &inputs, const std::vector<Tensor *> &outputs) override;
|
|
|
|
private:
|
|
std::shared_ptr<Tensor> mInput0Scales;
|
|
std::shared_ptr<Tensor> mInput1Scales;
|
|
std::shared_ptr<Tensor> mOutputScales;
|
|
bool isEltwiseInt8 = true;
|
|
};
|
|
|
|
} // namespace MNN
|
|
|
|
#endif /* CPUEltwiseInt8_hpp */
|