Caffe2 - C++ API
A deep learning, cross platform ML framework
recurrent_network_blob_fetcher_op.cc
1 #include "caffe2/operators/rnn/recurrent_network_blob_fetcher_op.h"
2 
3 namespace caffe2 {
4 
5 REGISTER_CPU_OPERATOR(
6  RecurrentNetworkBlobFetcher,
7  RecurrentNetworkBlobFetcherOp<CPUContext>);
8 
9 OPERATOR_SCHEMA(RecurrentNetworkBlobFetcher)
10  .NumInputs(1)
11  .NumOutputs(1)
12  .SetDoc(R"DOC(
13 Retrieves blobs from scratch workspaces (which contain intermediate recurrent
14 network computation for each timestep) and puts them in the global
15 workspace under CPUContext.
16 )DOC")
17  .Arg("prefix", "Prefix string to prepend extracted blobs.")
18  .Input(
19  0,
20  "ScratchWorkspaceBlob",
21  "Name of scratch workspace blob returned by recurrent network.")
22  .Output(
23  0,
24  "blob_names",
25  "1D tensor of strings containing extracted blob names.");
26 
27 SHOULD_NOT_DO_GRADIENT(RecurrentNetworkBlobFetcher);
28 } // namespace caffe2
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...
Definition: blob.h:13