Caffe2 - C++ API
A deep learning, cross platform ML framework
free_op.cc
1 
17 #include "caffe2/operators/free_op.h"
18 
19 namespace caffe2 {
20 REGISTER_CPU_OPERATOR(Free, FreeOp<CPUContext>);
21 SHOULD_NOT_DO_GRADIENT(Free);
22 
23 OPERATOR_SCHEMA(Free)
24  .NumInputs(1, INT_MAX)
25  .NumOutputs(1, INT_MAX)
26  .SameNumberOfOutput()
27  .EnforceOneToOneInplace()
28  .SetDoc(R"DOC(
29 Frees the content of the blobs. The input and output blobs should be
30 one-to-one inplace.)DOC");
31 } // namespace caffe2
Copyright (c) 2016-present, Facebook, Inc.