// // CPUScaleInt8.hpp // MNN // // Created by MNN on 2023/05/04. // #ifndef CPUScaleInt8_hpp #define CPUScaleInt8_hpp #include #include "core/Execution.hpp" namespace MNN { #ifdef MNN_SUPPORT_QUANT_EXTEND class CPUScaleInt8 : public Execution { public: CPUScaleInt8(const Op *op, Backend *bn); virtual ~CPUScaleInt8(); virtual ErrorCode onExecute(const std::vector &inputs, const std::vector &outputs) override; virtual ErrorCode onResize(const std::vector &inputs, const std::vector &outputs) override; private: std::shared_ptr mScaleBias; std::vector mOutputQuantInfo; std::vector mInputQuantInfo; int32_t mShiftBits; }; #endif } // namespace MNN #endif /* CPUScaleInt8_hpp */