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