Files
alibaba--mnn/source/backend/hiai/execution/NPUConvolutionInt8.hpp
T
2026-07-13 13:33:03 +08:00

33 lines
800 B
C++

//
// NPUConvolutionInt8.hpp
// MNN
//
// Created by MNN on 2019/09/11.
// Copyright © 2018, Alibaba Group Holding Limited
//
#ifndef MNN_NPUCONVOLUTION_INT8_HPP
#define MNN_NPUCONVOLUTION_INT8_HPP
#include "NPUCommonExecution.hpp"
#include "NPUBackend.hpp"
namespace MNN {
class NPUConvolutionInt8 : public NPUCommonExecution {
public:
NPUConvolutionInt8(Backend *b, const Op *op, const std::vector<Tensor *> &inputs, const std::vector<Tensor *> &outputs);
ErrorCode onResize(const std::vector<Tensor *> &inputs, const std::vector<Tensor *> &outputs);
virtual ~NPUConvolutionInt8() = default;
private:
hiai::op::Const mConst_w;
hiai::op::Const mConst_b;
shared_ptr<hiai::op::Activation> mRelu_conv;
};
} // namespace MNN
#endif // MNN_NPUCONVOLUTION_INT8_HPP