MNN/source/backend/cpu/CPUQuantizedLogistic.hpp

34 lines
898 B
C++
Raw Normal View History

2019-04-17 10:49:11 +08:00
//
// CPUQuantizedLogistic.hpp
// MNN
//
// Created by MNN on 2018/12/12.
// Copyright © 2018, Alibaba Group Holding Limited
//
#ifndef CPUQuantizedLogistic_hpp
#define CPUQuantizedLogistic_hpp
2019-12-27 22:16:57 +08:00
#include "core/Execution.hpp"
2019-04-17 10:49:11 +08:00
#include "TFQuantizeOp_generated.h"
namespace MNN {
class CPUQuantizedLogistic : public Execution {
public:
CPUQuantizedLogistic(Backend *backend, const Op *op);
virtual ~CPUQuantizedLogistic() = default;
virtual ErrorCode onResize(const std::vector<Tensor *> &inputs, const std::vector<Tensor *> &outputs) override;
virtual ErrorCode onExecute(const std::vector<Tensor *> &inputs, const std::vector<Tensor *> &outputs) override;
private:
const QuantizedLogistic *mLogisticParam;
int mInputMultiplier;
int mInputZeroPoint;
2019-04-17 10:49:11 +08:00
int mInputLeftShift;
int mInputRangeRadius;
};
} // namespace MNN
#endif /* CPUQuantizedLogistic_hpp */