pytorch/caffe2/quantization/server/dequantize_dnnlowp_op.h
Jongsoo Park 3c2462cf24 use pragma once (#14163)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/14163

Some of the names we were using to guard the header file was too short (e.g. DYNAMIC_HISTOGRAM_H).

Reviewed By: csummersea

Differential Revision: D13115451

fbshipit-source-id: cef8c84c62922616ceea17effff7bdf8d67302a2
2018-11-20 00:56:04 -08:00

20 lines
478 B
C++

#pragma once
#include "caffe2/core/operator.h"
#include "caffe2/quantization/server/dnnlowp.h"
namespace caffe2 {
template <typename T>
class DequantizeDNNLowPOp final : public Operator<CPUContext> {
public:
USE_OPERATOR_FUNCTIONS(CPUContext);
DequantizeDNNLowPOp(const OperatorDef& operator_def, Workspace* ws);
bool RunOnDevice() override;
private:
std::unique_ptr<dnnlowp::QuantizationFactory> qfactory_;
}; // class DequantizeDNNLowPOp
} // namespace caffe2