27 #ifndef MXNET_CPP_OP_SUPPL_H_ 28 #define MXNET_CPP_OP_SUPPL_H_ 66 return Operator(
"_Maximum")(lhs, rhs)
70 return Operator(
"_Minimum")(lhs, rhs)
75 .SetParam(
"scalar", scalar)
80 .SetParam(
"scalar", scalar)
84 return Operator(
"_RMinusScalar")(rhs)
85 .SetParam(
"scalar", scalar)
90 .SetParam(
"scalar", scalar)
95 .SetParam(
"scalar", scalar)
100 .SetParam(
"scalar", scalar)
105 .SetParam(
"scalar", scalar)
110 .SetParam(
"scalar", scalar)
114 return Operator(
"_PowerScalar")(lhs)
115 .SetParam(
"scalar", scalar)
119 return Operator(
"_RPowerScalar")(rhs)
120 .SetParam(
"scalar", scalar)
124 return Operator(
"_MaximumScalar")(lhs)
125 .SetParam(
"scalar", scalar)
129 return Operator(
"_MinimumScalar")(lhs)
130 .SetParam(
"scalar", scalar)
142 bool center_crop =
false) {
147 .
SetParam(
"center_crop", center_crop)
165 const std::string& act_type) {
166 assert(act_type ==
"relu" ||
167 act_type ==
"sigmoid" ||
168 act_type ==
"softrelu" ||
171 .
SetParam(
"act_type", act_type.c_str())
172 .SetInput(
"data", data)
179 #endif // MXNET_CPP_OP_SUPPL_H_
Symbol Crop(const std::string &symbol_name, const std::vector< Symbol > &data, int num_args, Shape offset=Shape(0, 0), Shape h_w=Shape(0, 0), bool center_crop=false)
Definition: op.h:5039
Symbol _MulScalar(Symbol lhs, mx_float scalar)
Definition: op_suppl.h:88
namespace of mxnet
Definition: base.h:127
Operator & SetInput(const std::string &name, Symbol symbol)
add an input symbol
Symbol _MaximumScalar(Symbol lhs, mx_float scalar)
Definition: op_suppl.h:123
dynamic shape class that can hold shape of arbirary dimension
Definition: shape.h:43
Symbol _RPowerScalar(mx_float scalar, Symbol rhs)
Definition: op_suppl.h:118
Symbol _ModScalar(Symbol lhs, mx_float scalar)
Definition: op_suppl.h:103
Symbol _MinimumScalar(Symbol lhs, mx_float scalar)
Definition: op_suppl.h:128
Symbol _Maximum(Symbol lhs, Symbol rhs)
Definition: op_suppl.h:65
meta include file for mxnet.cpp
Symbol _DivScalar(Symbol lhs, mx_float scalar)
Definition: op_suppl.h:93
Symbol _RModScalar(mx_float scalar, Symbol rhs)
Definition: op_suppl.h:108
Symbol _Div(Symbol lhs, Symbol rhs)
Definition: op_suppl.h:53
Symbol _PowerScalar(Symbol lhs, mx_float scalar)
Definition: op_suppl.h:113
Symbol _Minus(Symbol lhs, Symbol rhs)
Definition: op_suppl.h:49
Symbol _Minimum(Symbol lhs, Symbol rhs)
Definition: op_suppl.h:69
Symbol _Mul(Symbol lhs, Symbol rhs)
Definition: op_suppl.h:45
Symbol _MinusScalar(Symbol lhs, mx_float scalar)
Definition: op_suppl.h:78
Symbol CreateSymbol(const std::string &name="")
create a Symbol from the current operator
Symbol _RMinusScalar(mx_float scalar, Symbol rhs)
Definition: op_suppl.h:83
Operator & SetParam(const std::string &name, const T &value)
set config parameters
Definition: operator.h:58
Symbol _Mod(Symbol lhs, Symbol rhs)
Definition: op_suppl.h:57
Symbol _PlusScalar(Symbol lhs, mx_float scalar)
Definition: op_suppl.h:73
Symbol _Power(Symbol lhs, Symbol rhs)
Definition: op_suppl.h:61
Symbol Activation(const std::string &symbol_name, Symbol data, ActivationActType act_type)
Definition: op.h:6472
float mx_float
manually define float
Definition: c_api.h:60
Symbol _RDivScalar(mx_float scalar, Symbol rhs)
Definition: op_suppl.h:98
Symbol _Plus(Symbol lhs, Symbol rhs)
Definition: op_suppl.h:41
Operator interface.
Definition: operator.h:43
Symbol interface.
Definition: symbol.h:72