mirror of https://github.com/alibaba/MNN.git
30 lines
702 B
C++
30 lines
702 B
C++
|
//
|
||
|
// CPUFloatToInt8.hpp
|
||
|
// MNN
|
||
|
//
|
||
|
// Created by MNN on 2019/6/19.
|
||
|
// Copyright © 2018, Alibaba Group Holding Limited
|
||
|
//
|
||
|
|
||
|
#ifndef CPUFloatToInt8_hpp
|
||
|
#define CPUFloatToInt8_hpp
|
||
|
|
||
|
#include "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;
|
||
|
};
|
||
|
|
||
|
} // namespace MNN
|
||
|
|
||
|
#endif /* CPUFloatToInt8_hpp */
|