Caffe2 - C++ API
A deep learning, cross platform ML framework
remove_data_blocks_op.cc
1 #include "caffe2/operators/remove_data_blocks_op.h"
2 
3 namespace caffe2 {
4 namespace {
5 REGISTER_CPU_OPERATOR(RemoveDataBlocks, RemoveDataBlocksOp<CPUContext>);
6 
7 OPERATOR_SCHEMA(RemoveDataBlocks)
8  .NumInputs(2)
9  .NumOutputs(1)
10  .SetDoc(R"DOC(
11 Shrink the data tensor by removing data blocks with given zero-based indices in
12 the outermost dimension of the tensor. Indices are not assumed in any order or
13 unique but with the range [0, blocks_size). Indices could be empty.
14  )DOC")
15  .Input(0, "data", "a N-D data tensor, N >= 1")
16  .Input(1, "indices", "zero-based indices of blocks to be removed")
17  .Output(
18  0,
19  "shrunk data",
20  "data after removing data blocks indexed by 'indices'");
21 
22 SHOULD_NOT_DO_GRADIENT(RemoveDataBlocks);
23 } // namespace
24 } // namespace caffe2
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...
Definition: blob.h:13