Caffe2 - C++ API
A deep learning, cross platform ML framework
quant_decomp_zstd_op.h
1 
17 #ifndef QUANT_DECOMP_OP_H_
18 #define QUANT_DECOMP_OP_H_
19 
20 #include "caffe2/core/context.h"
21 #include "caffe2/core/operator.h"
22 
23 namespace caffe2 {
24 
25 // Decompress a set of tensors compressed using zstd,
26 // see quant_decomp_op_test.py for how to compress
27 class QuantDecompZstdOp final : public Operator<CPUContext> {
28  public:
29  USE_OPERATOR_FUNCTIONS(CPUContext);
30  QuantDecompZstdOp(const OperatorDef& operator_def, Workspace* ws)
31  : Operator<CPUContext>(operator_def, ws) {}
32 
33  ~QuantDecompZstdOp() {}
34 
35  bool RunOnDevice() override;
36 };
37 
38 } // namespace caffe2
39 #endif // QUANT_DECOMP_OP_H_
The CPU Context, representing the bare minimum of what a Context class in Caffe2 should implement...
Definition: context.h:82
Workspace is a class that holds all the related objects created during runtime: (1) all blobs...
Definition: workspace.h:63
Copyright (c) 2016-present, Facebook, Inc.