Caffe2 - C++ API
A deep learning, cross platform ML framework
quant_decomp_zstd_op.h
1 #ifndef QUANT_DECOMP_OP_H_
2 #define QUANT_DECOMP_OP_H_
3 
4 #include "caffe2/core/context.h"
5 #include "caffe2/core/operator.h"
6 
7 namespace caffe2 {
8 
9 // Decompress a set of tensors compressed using zstd,
10 // see quant_decomp_op_test.py for how to compress
11 class QuantDecompZstdOp final : public Operator<CPUContext> {
12  public:
13  USE_OPERATOR_FUNCTIONS(CPUContext);
14  QuantDecompZstdOp(const OperatorDef& operator_def, Workspace* ws)
15  : Operator<CPUContext>(operator_def, ws) {}
16 
17  ~QuantDecompZstdOp() {}
18 
19  bool RunOnDevice() override;
20 };
21 
22 } // namespace caffe2
23 #endif // QUANT_DECOMP_OP_H_
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