2019-07-11 13:56:52 +08:00
|
|
|
//
|
|
|
|
// CPUInt8ToFloat.hpp
|
|
|
|
// MNN
|
|
|
|
//
|
|
|
|
// Created by MNN on 2019/5/22.
|
|
|
|
// Copyright © 2018, Alibaba Group Holding Limited
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef CPUInt8ToFloat_hpp
|
|
|
|
#define CPUInt8ToFloat_hpp
|
|
|
|
|
2019-12-27 22:16:57 +08:00
|
|
|
#include "core/Execution.hpp"
|
|
|
|
#include <MNN/Tensor.hpp>
|
2019-07-11 13:56:52 +08:00
|
|
|
|
|
|
|
namespace MNN {
|
|
|
|
|
|
|
|
class CPUInt8ToFloat : public Execution {
|
|
|
|
public:
|
|
|
|
CPUInt8ToFloat(Backend *backend, const MNN::Op *param);
|
|
|
|
virtual ~CPUInt8ToFloat();
|
|
|
|
virtual ErrorCode onExecute(const std::vector<Tensor *> &inputs, const std::vector<Tensor *> &outputs) override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
std::shared_ptr<Tensor> mScales;
|
2020-12-13 11:03:03 +08:00
|
|
|
bool mSingle = false;
|
2019-07-11 13:56:52 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace MNN
|
|
|
|
|
|
|
|
#endif /* CPUInt8ToFloat_hpp */
|