Go to the documentation of this file.
26 #ifndef MXNET_CPP_OP_SUPPL_H_
27 #define MXNET_CPP_OP_SUPPL_H_
41 return Operator(
"_Plus")(lhs, rhs).CreateSymbol();
44 return Operator(
"_Mul")(lhs, rhs).CreateSymbol();
47 return Operator(
"_Minus")(lhs, rhs).CreateSymbol();
50 return Operator(
"_Div")(lhs, rhs).CreateSymbol();
53 return Operator(
"_Mod")(lhs, rhs).CreateSymbol();
56 return Operator(
"_Power")(lhs, rhs).CreateSymbol();
59 return Operator(
"_Maximum")(lhs, rhs).CreateSymbol();
62 return Operator(
"_Minimum")(lhs, rhs).CreateSymbol();
109 bool center_crop =
false) {
114 .
SetParam(
"center_crop", center_crop)
130 assert(act_type ==
"relu" || act_type ==
"sigmoid" || act_type ==
"softrelu" ||
133 .
SetParam(
"act_type", act_type.c_str())
141 #endif // MXNET_CPP_OP_SUPPL_H_
Symbol _Minimum(Symbol lhs, Symbol rhs)
Definition: op_suppl.h:61
namespace of mxnet
Definition: api_registry.h:33
Symbol _MinusScalar(Symbol lhs, mx_float scalar)
Definition: op_suppl.h:67
Symbol Activation(const std::string &symbol_name, Symbol data, const std::string &act_type)
Apply activation function to input. Softmax Activation is only available with CUDNN on GPUand will be...
Definition: op_suppl.h:129
Operator & SetInput(const std::string &name, const Symbol &symbol)
add an input symbol
Symbol _Minus(Symbol lhs, Symbol rhs)
Definition: op_suppl.h:46
Symbol _RMinusScalar(mx_float scalar, Symbol rhs)
Definition: op_suppl.h:70
ScalarExp< DType > scalar(DType s)
create an scalar expression
Definition: expression.h:103
Symbol _Mul(Symbol lhs, Symbol rhs)
Definition: op_suppl.h:43
Symbol _Power(Symbol lhs, Symbol rhs)
Definition: op_suppl.h:55
meta include file for mxnet.cpp
Symbol _PlusScalar(Symbol lhs, mx_float scalar)
Definition: op_suppl.h:64
Symbol _Mod(Symbol lhs, Symbol rhs)
Definition: op_suppl.h:52
Operator interface.
Definition: operator.h:42
Symbol _RDivScalar(mx_float scalar, Symbol rhs)
Definition: op_suppl.h:79
Symbol _Plus(Symbol lhs, Symbol rhs)
Definition: op_suppl.h:40
float mx_float
manually define float
Definition: c_api.h:67
Operator & SetParam(const std::string &name, const T &value)
set config parameters
Definition: operator.h:57
Symbol _MulScalar(Symbol lhs, mx_float scalar)
Definition: op_suppl.h:73
Symbol CreateSymbol(const std::string &name="")
create a Symbol from the current operator
Symbol _MaximumScalar(Symbol lhs, mx_float scalar)
Definition: op_suppl.h:94
dynamic shape class that can hold shape of arbirary dimension
Definition: shape.h:42
Symbol Crop(const std::string &symbol_name, int num_args, Symbol data, Symbol crop_like, Shape offset=Shape(0, 0), Shape h_w=Shape(0, 0), bool center_crop=false)
Definition: op_suppl.h:103
Symbol _ModScalar(Symbol lhs, mx_float scalar)
Definition: op_suppl.h:82
Symbol _RPowerScalar(mx_float scalar, Symbol rhs)
Definition: op_suppl.h:91
Symbol _DivScalar(Symbol lhs, mx_float scalar)
Definition: op_suppl.h:76
Symbol _RModScalar(mx_float scalar, Symbol rhs)
Definition: op_suppl.h:85
definition of io, such as DataIter
Symbol _MinimumScalar(Symbol lhs, mx_float scalar)
Definition: op_suppl.h:97
base definitions for mxnetcpp
Symbol _Maximum(Symbol lhs, Symbol rhs)
Definition: op_suppl.h:58
Symbol _Div(Symbol lhs, Symbol rhs)
Definition: op_suppl.h:49
Symbol _PowerScalar(Symbol lhs, mx_float scalar)
Definition: op_suppl.h:88
Symbol interface.
Definition: symbol.h:73