26 #ifndef MXNET_CPP_OP_SUPPL_H_ 27 #define MXNET_CPP_OP_SUPPL_H_ 65 return Operator(
"_Maximum")(lhs, rhs)
69 return Operator(
"_Minimum")(lhs, rhs)
74 .SetParam(
"scalar", scalar)
79 .SetParam(
"scalar", scalar)
83 return Operator(
"_RMinusScalar")(rhs)
84 .SetParam(
"scalar", scalar)
89 .SetParam(
"scalar", scalar)
94 .SetParam(
"scalar", scalar)
99 .SetParam(
"scalar", scalar)
104 .SetParam(
"scalar", scalar)
109 .SetParam(
"scalar", scalar)
113 return Operator(
"_PowerScalar")(lhs)
114 .SetParam(
"scalar", scalar)
118 return Operator(
"_RPowerScalar")(rhs)
119 .SetParam(
"scalar", scalar)
123 return Operator(
"_MaximumScalar")(lhs)
124 .SetParam(
"scalar", scalar)
128 return Operator(
"_MinimumScalar")(lhs)
129 .SetParam(
"scalar", scalar)
141 bool center_crop =
false) {
146 .
SetParam(
"center_crop", center_crop)
164 const std::string& act_type) {
165 assert(act_type ==
"relu" ||
166 act_type ==
"sigmoid" ||
167 act_type ==
"softrelu" ||
170 .
SetParam(
"act_type", act_type.c_str())
171 .SetInput(
"data", data)
178 #endif // MXNET_CPP_OP_SUPPL_H_
Symbol _MulScalar(Symbol lhs, mx_float scalar)
Definition: op_suppl.h:87
namespace of mxnet
Definition: base.h:126
Operator & SetInput(const std::string &name, Symbol symbol)
add an input symbol
Symbol _MaximumScalar(Symbol lhs, mx_float scalar)
Definition: op_suppl.h:122
dynamic shape class that can hold shape of arbirary dimension
Definition: shape.h:42
Symbol _RPowerScalar(mx_float scalar, Symbol rhs)
Definition: op_suppl.h:117
Symbol _ModScalar(Symbol lhs, mx_float scalar)
Definition: op_suppl.h:102
Symbol _MinimumScalar(Symbol lhs, mx_float scalar)
Definition: op_suppl.h:127
Symbol _Maximum(Symbol lhs, Symbol rhs)
Definition: op_suppl.h:64
meta include file for mxnet.cpp
Symbol _DivScalar(Symbol lhs, mx_float scalar)
Definition: op_suppl.h:92
Symbol _RModScalar(mx_float scalar, Symbol rhs)
Definition: op_suppl.h:107
Symbol _Div(Symbol lhs, Symbol rhs)
Definition: op_suppl.h:52
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=0)
Definition: op.h:5010
Symbol _PowerScalar(Symbol lhs, mx_float scalar)
Definition: op_suppl.h:112
Symbol _Minus(Symbol lhs, Symbol rhs)
Definition: op_suppl.h:48
Symbol _Minimum(Symbol lhs, Symbol rhs)
Definition: op_suppl.h:68
Symbol _Mul(Symbol lhs, Symbol rhs)
Definition: op_suppl.h:44
Symbol _MinusScalar(Symbol lhs, mx_float scalar)
Definition: op_suppl.h:77
Symbol CreateSymbol(const std::string &name="")
create a Symbol from the current operator
Symbol _RMinusScalar(mx_float scalar, Symbol rhs)
Definition: op_suppl.h:82
Operator & SetParam(const std::string &name, const T &value)
set config parameters
Definition: operator.h:57
Symbol _Mod(Symbol lhs, Symbol rhs)
Definition: op_suppl.h:56
Symbol _PlusScalar(Symbol lhs, mx_float scalar)
Definition: op_suppl.h:72
Symbol _Power(Symbol lhs, Symbol rhs)
Definition: op_suppl.h:60
Symbol Activation(const std::string &symbol_name, Symbol data, ActivationActType act_type)
Definition: op.h:6443
float mx_float
manually define float
Definition: c_api.h:59
Symbol _RDivScalar(mx_float scalar, Symbol rhs)
Definition: op_suppl.h:97
Symbol _Plus(Symbol lhs, Symbol rhs)
Definition: op_suppl.h:40
Operator interface.
Definition: operator.h:42
Symbol interface.
Definition: symbol.h:71