Caffe2 - C++ API
A deep learning, cross platform ML framework
quantize_dnnlowp_op.h
1 #pragma once
2 
3 #include "caffe2/core/operator.h"
4 #include "caffe2/quantization/server/caffe2_dnnlowp_utils.h"
5 
6 namespace caffe2 {
7 
8 template <typename T>
9 class QuantizeDNNLowPOp final : public Operator<CPUContext> {
10  public:
11  USE_OPERATOR_FUNCTIONS(CPUContext);
12  QuantizeDNNLowPOp(const OperatorDef& operator_def, Workspace* ws);
13 
14  bool RunOnDevice() override;
15 
16  private:
17  std::unique_ptr<dnnlowp::QuantizationFactory> qfactory_;
18  bool arguments_parsed_{false};
19 }; // class QuantizeDNNLowPOp
20 
21 } // namespace caffe2
The CPU Context, representing the bare minimum of what a Context class in Caffe2 should implement...
Definition: context.h:40
Workspace is a class that holds all the related objects created during runtime: (1) all blobs...
Definition: workspace.h:47
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...
Definition: blob.h:13