Caffe2 - C++ API
A deep learning, cross platform ML framework
batch_permutation_dnnlowp_op.h
1 #pragma once
2 
3 #include "caffe2/operators/copy_op.h"
4 #include "caffe2/quantization/server/dnnlowp_op.h"
5 
6 namespace caffe2 {
7 
8 // FIXME
9 using BatchPermutationFP32Op = CopyOp<CPUContext, CPUContext, CPUContext>;
10 
11 template <typename T>
13  : public DNNLowPOp<T, BatchPermutationFP32Op> {
14  public:
15  USE_OPERATOR_FUNCTIONS(CPUContext);
16  USE_DNNLOWP_OPERATOR_BASE_FUNCTIONS(T, BatchPermutationFP32Op);
17 
18  BatchPermutationDNNLowPOp(const OperatorDef& operator_def, Workspace* ws)
19  : BaseType(operator_def, ws) {}
20 
21  bool RunOnDevice() override;
22 
23  private:
24  INPUT_TAGS(INPUT, INDICES);
25  OUTPUT_TAGS(OUTPUT);
26 };
27 
28 } // 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
A convenient base class for C2 operators with DNNLOWP engine.
Definition: dnnlowp_op.h:77