MNN/source/backend/cpu/CPUFloatToInt8.hpp

31 lines
726 B
C++
Raw Normal View History

//
// CPUFloatToInt8.hpp
// MNN
//
// Created by MNN on 2019/6/19.
// Copyright © 2018, Alibaba Group Holding Limited
//
#ifndef CPUFloatToInt8_hpp
#define CPUFloatToInt8_hpp
2019-12-27 22:16:57 +08:00
#include "core/Execution.hpp"
namespace MNN {
class CPUFloatToInt8 : public Execution {
public:
CPUFloatToInt8(Backend *backend, const MNN::Op *param);
virtual ~CPUFloatToInt8();
virtual ErrorCode onExecute(const std::vector<Tensor *> &inputs, const std::vector<Tensor *> &outputs) override;
virtual ErrorCode onResize(const std::vector<Tensor *> &inputs, const std::vector<Tensor *> &outputs) override;
private:
std::shared_ptr<Tensor> mScales;
2020-11-05 16:41:56 +08:00
int mClipBits;
};
} // namespace MNN
#endif /* CPUFloatToInt8_hpp */