Caffe2 - C++ API
A deep learning, cross platform ML framework
Related Pages
Modules
Data Structures
Files
C++ API
Python API
GitHub
File List
Globals
caffe2
operators
while_op.cc
1
#include "caffe2/operators/while_op.h"
2
3
namespace
caffe2
{
4
5
REGISTER_CPU_OPERATOR(While, WhileOp<CPUContext>);
6
7
OPERATOR_SCHEMA(While)
8
.NumInputs(1, INT_MAX)
9
.NumOutputs(0, INT_MAX)
10
.SetDoc(R
"DOC(
11
'While' control operator, first input is a scalar boolean blob that stores loop's
12
condition value. Accepts 'loop_net' (required) and 'cond_net' (optional) arguments for
13
loop's body and condition subnets respectively. If condition subnet is specified,
14
it is executed before the first and after each iteration. Subnets are executed in
15
the same workspace as 'While'.
16
)DOC")
17
.Arg(
"loop_net"
,
"Net executed on each iteration"
)
18
.Arg(
"cond_net"
,
"Net to (re)compute condition value"
)
19
.Input(0,
"condition"
,
"Scalar boolean condition"
)
20
.AllowInplace([](
int
in,
int
out) ->
bool
{
return
true
; });
21
22
}
// namespace caffe2
caffe2
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...
Definition:
blob.h:13
Generated on Thu Mar 21 2019 13:06:20 for Caffe2 - C++ API by
1.8.11