mirror of https://github.com/alibaba/MNN.git
31 lines
671 B
C++
31 lines
671 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 "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;
|
||
|
};
|
||
|
|
||
|
} // namespace MNN
|
||
|
|
||
|
#endif /* CPUEltwiseInt8_hpp */
|