Caffe2 - C++ API
A deep learning, cross platform ML framework
store_ops.h
1 #pragma once
2 
3 #include "store_handler.h"
4 
5 #include <caffe2/core/operator.h>
6 
7 namespace caffe2 {
8 
9 class StoreSetOp final : public Operator<CPUContext> {
10  public:
11  StoreSetOp(const OperatorDef& operator_def, Workspace* ws);
12  bool RunOnDevice() override;
13 
14  private:
15  std::string blobName_;
16 
17  INPUT_TAGS(HANDLER, DATA);
18 };
19 
20 class StoreGetOp final : public Operator<CPUContext> {
21  public:
22  StoreGetOp(const OperatorDef& operator_def, Workspace* ws);
23  bool RunOnDevice() override;
24 
25  private:
26  std::string blobName_;
27 
28  INPUT_TAGS(HANDLER);
29  OUTPUT_TAGS(DATA);
30 };
31 
32 class StoreAddOp final : public Operator<CPUContext> {
33  public:
34  StoreAddOp(const OperatorDef& operator_def, Workspace* ws);
35  bool RunOnDevice() override;
36 
37  private:
38  std::string blobName_;
39  int addValue_;
40 
41  INPUT_TAGS(HANDLER);
42  OUTPUT_TAGS(VALUE);
43 };
44 
45 class StoreWaitOp final : public Operator<CPUContext> {
46  public:
47  StoreWaitOp(const OperatorDef& operator_def, Workspace* ws);
48  bool RunOnDevice() override;
49 
50  private:
51  std::vector<std::string> blobNames_;
52 
53  INPUT_TAGS(HANDLER);
54 };
55 }
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