8 #ifndef MXNET_CPP_OP_H_ 9 #define MXNET_CPP_OP_H_ 17 #include "dmlc/optional.h" 63 const std::vector<Symbol>& args) {
66 .CreateSymbol(symbol_name);
85 const std::vector<Symbol>& data,
86 const std::string& op_type) {
89 .CreateSymbol(symbol_name);
150 return Operator(
"broadcast_maximum")
183 return Operator(
"broadcast_minimum")
307 bool keep_highest =
false) {
311 .
SetParam(
"target_shape", target_shape)
312 .
SetParam(
"keep_highest", keep_highest)
530 dmlc::optional<int> end) {
693 dmlc::optional<int> axis = dmlc::optional<int>()) {
811 const std::vector<Symbol>& data,
818 .CreateSymbol(symbol_name);
844 const std::vector<Symbol>& data,
845 dmlc::optional<Shape> axis = dmlc::optional<Shape>()) {
849 .CreateSymbol(symbol_name);
1098 const std::vector<Symbol>& args) {
1101 .CreateSymbol(symbol_name);
1137 dmlc::optional<int> axis = dmlc::optional<int>(),
1138 bool keepdims =
false) {
1179 dmlc::optional<int> axis = dmlc::optional<int>(),
1180 bool keepdims =
false) {
1265 dmlc::optional<int> axis = dmlc::optional<int>(),
1266 bool keepdims =
false) {
1318 bool transpose_a =
false,
1319 bool transpose_b =
false) {
1321 .
SetParam(
"transpose_a", transpose_a)
1322 .
SetParam(
"transpose_b", transpose_b)
1353 bool transpose_a =
false,
1354 bool transpose_b =
false) {
1356 .
SetParam(
"transpose_a", transpose_a)
1357 .
SetParam(
"transpose_b", transpose_b)
1558 static const char *CastDtypeValues[] = {
1568 .
SetParam(
"dtype", CastDtypeValues[
int(dtype)])
2204 dmlc::optional<Shape> axis = dmlc::optional<Shape>(),
2205 bool keepdims =
false,
2206 bool exclude =
false) {
2241 dmlc::optional<Shape> axis = dmlc::optional<Shape>(),
2242 bool keepdims =
false,
2243 bool exclude =
false) {
2278 dmlc::optional<Shape> axis = dmlc::optional<Shape>(),
2279 bool keepdims =
false,
2280 bool exclude =
false) {
2317 dmlc::optional<Shape> axis = dmlc::optional<Shape>(),
2318 bool keepdims =
false,
2319 bool exclude =
false) {
2356 dmlc::optional<Shape> axis = dmlc::optional<Shape>(),
2357 bool keepdims =
false,
2358 bool exclude =
false) {
2393 dmlc::optional<Shape> axis = dmlc::optional<Shape>(),
2394 bool keepdims =
false,
2395 bool exclude =
false) {
2430 dmlc::optional<Shape> axis = dmlc::optional<Shape>(),
2431 bool keepdims =
false,
2432 bool exclude =
false) {
2558 dmlc::optional<Shape> axis = dmlc::optional<Shape>(),
2559 bool keepdims =
false) {
2623 dmlc::optional<int> axis = dmlc::optional<int>(-1),
2626 bool is_ascend =
false) {
2627 static const char *TopkRetTypValues[] = {
2636 .
SetParam(
"ret_typ", TopkRetTypValues[
int(ret_typ)])
2676 dmlc::optional<int> axis = dmlc::optional<int>(-1),
2677 bool is_ascend =
true) {
2717 dmlc::optional<int> axis = dmlc::optional<int>(-1),
2718 bool is_ascend =
true) {
2890 static const char *EmbeddingDtypeValues[] = {
2901 .
SetParam(
"output_dim", output_dim)
2902 .
SetParam(
"dtype", EmbeddingDtypeValues[
int(dtype)])
2966 static const char *TakeModeValues[] = {
2973 .
SetParam(
"mode", TakeModeValues[
int(mode)])
3075 double on_value = 1,
3076 double off_value = 0,
3078 static const char *One_hotDtypeValues[] = {
3091 .
SetParam(
"dtype", One_hotDtypeValues[
int(dtype)])
3235 return Operator(
"broadcast_not_equal")
3266 return Operator(
"broadcast_greater")
3297 return Operator(
"broadcast_greater_equal")
3328 return Operator(
"broadcast_lesser")
3359 return Operator(
"broadcast_lesser_equal")
3501 static const char *Cast_storageStypeValues[] = {
3507 .
SetParam(
"stype", Cast_storageStypeValues[
int(stype)])
3898 bool global_pool =
false,
3899 bool cudnn_off =
false,
3903 static const char *PoolingPoolTypeValues[] = {
3908 static const char *PoolingPoolingConventionValues[] = {
3914 .
SetParam(
"pool_type", PoolingPoolTypeValues[
int(pool_type)])
3915 .
SetParam(
"global_pool", global_pool)
3917 .
SetParam(
"pooling_convention", PoolingPoolingConventionValues[
int(pooling_convention)])
4047 uint32_t num_filter,
4053 uint32_t num_group = 1,
4054 uint64_t workspace = 512,
4055 bool no_bias =
true,
4057 bool cudnn_off =
false,
4059 static const char *DeconvolutionCudnnTuneValues[] = {
4062 "limited_workspace",
4065 static const char *DeconvolutionLayoutValues[] = {
4075 .
SetParam(
"num_filter", num_filter)
4080 .
SetParam(
"target_shape", target_shape)
4084 .
SetParam(
"cudnn_tune", DeconvolutionCudnnTuneValues[
int(cudnn_tune)])
4086 .
SetParam(
"layout", DeconvolutionLayoutValues[
int(layout)])
4125 static const char *ActivationActTypeValues[] = {
4133 .
SetParam(
"act_type", ActivationActTypeValues[
int(act_type)])
4210 bool fix_gamma =
true,
4211 bool use_global_stats =
false,
4212 bool output_mean_var =
false,
4214 bool cudnn_off =
false) {
4219 .
SetParam(
"use_global_stats", use_global_stats)
4220 .
SetParam(
"output_mean_var", output_mean_var)
4226 .
SetInput(
"moving_mean", moving_mean)
4227 .
SetInput(
"moving_var", moving_var)
4354 uint32_t num_filter,
4358 uint32_t num_group = 1,
4359 uint64_t workspace = 1024,
4360 bool no_bias =
false,
4362 bool cudnn_off =
false,
4364 static const char *ConvolutionCudnnTuneValues[] = {
4367 "limited_workspace",
4370 static const char *ConvolutionLayoutValues[] = {
4380 .
SetParam(
"num_filter", num_filter)
4387 .
SetParam(
"cudnn_tune", ConvolutionCudnnTuneValues[
int(cudnn_tune)])
4389 .
SetParam(
"layout", ConvolutionLayoutValues[
int(layout)])
4427 const std::vector<Symbol>& data,
4431 uint32_t num_filter = 0,
4433 uint64_t workspace = 512) {
4434 static const char *UpSamplingSampleTypeValues[] = {
4438 static const char *UpSamplingMultiInputModeValues[] = {
4444 .
SetParam(
"sample_type", UpSamplingSampleTypeValues[
int(sample_type)])
4446 .
SetParam(
"num_filter", num_filter)
4447 .
SetParam(
"multi_input_mode", UpSamplingMultiInputModeValues[
int(multi_input_mode)])
4450 .CreateSymbol(symbol_name);
4495 const std::vector<Symbol>& data,
4502 .CreateSymbol(symbol_name);
4549 bool output_mean_var =
false) {
4553 .
SetParam(
"output_mean_var", output_mean_var)
4654 static const char *DropoutModeValues[] = {
4660 .
SetParam(
"mode", DropoutModeValues[
int(mode)])
4710 static const char *SoftmaxActivationModeValues[] = {
4714 return Operator(
"SoftmaxActivation")
4715 .
SetParam(
"mode", SoftmaxActivationModeValues[
int(mode)])
4762 bool no_bias =
false,
4763 bool flatten =
true) {
4765 .
SetParam(
"num_hidden", num_hidden)
4883 double constant_value = 0) {
4884 static const char *PadModeValues[] = {
4890 .
SetParam(
"mode", PadModeValues[
int(mode)])
4892 .
SetParam(
"constant_value", constant_value)
4941 static const char *LeakyReLUActTypeValues[] = {
4948 .
SetParam(
"act_type", LeakyReLUActTypeValues[
int(act_type)])
4950 .
SetParam(
"lower_bound", lower_bound)
4951 .
SetParam(
"upper_bound", upper_bound)
4988 uint32_t dim2 = 0) {
5059 bool fix_gamma =
true,
5060 bool use_global_stats =
false,
5061 bool output_mean_var =
false) {
5066 .
SetParam(
"use_global_stats", use_global_stats)
5067 .
SetParam(
"output_mean_var", output_mean_var)
5114 return Operator(
"softmax_cross_entropy")
5153 return Operator(
"LinearRegressionOutput")
5154 .
SetParam(
"grad_scale", grad_scale)
5194 return Operator(
"MAERegressionOutput")
5195 .
SetParam(
"grad_scale", grad_scale)
5235 return Operator(
"LogisticRegressionOutput")
5236 .
SetParam(
"grad_scale", grad_scale)
5256 return Operator(
"IdentityAttachKLSparseReg")
5257 .
SetParam(
"sparseness_target", sparseness_target)
5302 .
SetParam(
"rescale_grad", rescale_grad)
5303 .
SetParam(
"clip_gradient", clip_gradient)
5357 .
SetParam(
"rescale_grad", rescale_grad)
5358 .
SetParam(
"clip_gradient", clip_gradient)
5403 .
SetParam(
"rescale_grad", rescale_grad)
5404 .
SetParam(
"clip_gradient", clip_gradient)
5468 .
SetParam(
"rescale_grad", rescale_grad)
5469 .
SetParam(
"clip_gradient", clip_gradient)
5501 .
SetParam(
"rescale_grad", rescale_grad)
5502 .
SetParam(
"clip_gradient", clip_gradient)
5535 return Operator(
"mp_sgd_mom_update")
5539 .
SetParam(
"rescale_grad", rescale_grad)
5540 .
SetParam(
"clip_gradient", clip_gradient)
5601 .
SetParam(
"rescale_grad", rescale_grad)
5602 .
SetParam(
"clip_gradient", clip_gradient)
5676 .
SetParam(
"rescale_grad", rescale_grad)
5677 .
SetParam(
"clip_gradient", clip_gradient)
5754 .
SetParam(
"rescale_grad", rescale_grad)
5755 .
SetParam(
"clip_gradient", clip_gradient)
5756 .
SetParam(
"clip_weights", clip_weights)
5822 return Operator(
"rmspropalex_update")
5828 .
SetParam(
"rescale_grad", rescale_grad)
5829 .
SetParam(
"clip_gradient", clip_gradient)
5830 .
SetParam(
"clip_weights", clip_weights)
5894 .
SetParam(
"rescale_grad", rescale_grad)
5895 .
SetParam(
"clip_gradient", clip_gradient)
5978 bool squeeze_axis =
false) {
5980 .
SetParam(
"num_outputs", num_outputs)
5982 .
SetParam(
"squeeze_axis", squeeze_axis)
6072 static const char *GridGeneratorTransformTypeValues[] = {
6077 .
SetParam(
"transform_type", GridGeneratorTransformTypeValues[
int(transform_type)])
6078 .
SetParam(
"target_shape", target_shape)
6153 bool global_pool =
false,
6157 static const char *Pooling_v1PoolTypeValues[] = {
6162 static const char *Pooling_v1PoolingConventionValues[] = {
6168 .
SetParam(
"pool_type", Pooling_v1PoolTypeValues[
int(pool_type)])
6169 .
SetParam(
"global_pool", global_pool)
6170 .
SetParam(
"pooling_convention", Pooling_v1PoolingConventionValues[
int(pooling_convention)])
6206 uint32_t state_size,
6207 uint32_t num_layers,
6209 bool bidirectional =
false,
6211 bool state_outputs =
false) {
6212 static const char *RNNModeValues[] = {
6219 .
SetParam(
"state_size", state_size)
6220 .
SetParam(
"num_layers", num_layers)
6221 .
SetParam(
"mode", RNNModeValues[
int(mode)])
6222 .
SetParam(
"bidirectional", bidirectional)
6224 .
SetParam(
"state_outputs", state_outputs)
6226 .
SetInput(
"parameters", parameters)
6228 .
SetInput(
"state_cell", state_cell)
6294 uint32_t num_filter,
6298 uint32_t num_group = 1,
6299 uint64_t workspace = 1024,
6300 bool no_bias =
false,
6302 bool cudnn_off =
false,
6304 static const char *Convolution_v1CudnnTuneValues[] = {
6307 "limited_workspace",
6310 static const char *Convolution_v1LayoutValues[] = {
6319 .
SetParam(
"num_filter", num_filter)
6326 .
SetParam(
"cudnn_tune", Convolution_v1CudnnTuneValues[
int(cudnn_tune)])
6328 .
SetParam(
"layout", Convolution_v1LayoutValues[
int(layout)])
6356 const std::vector<Symbol>& data,
6360 bool center_crop =
false) {
6365 .
SetParam(
"center_crop", center_crop)
6367 .CreateSymbol(symbol_name);
6449 bool use_sequence_length =
false,
6452 .
SetParam(
"use_sequence_length", use_sequence_length)
6455 .
SetInput(
"sequence_length", sequence_length)
6487 static const char *SpatialTransformerTransformTypeValues[] = {
6490 static const char *SpatialTransformerSamplerTypeValues[] = {
6493 return Operator(
"SpatialTransformer")
6494 .
SetParam(
"transform_type", SpatialTransformerTransformTypeValues[
int(transform_type)])
6495 .
SetParam(
"sampler_type", SpatialTransformerSamplerTypeValues[
int(sampler_type)])
6496 .
SetParam(
"target_shape", target_shape)
6610 bool multi_output =
false,
6611 bool use_ignore =
false,
6612 bool preserve_shape =
false,
6614 bool out_grad =
false,
6616 static const char *SoftmaxOutputNormalizationValues[] = {
6622 .
SetParam(
"grad_scale", grad_scale)
6623 .
SetParam(
"ignore_label", ignore_label)
6624 .
SetParam(
"multi_output", multi_output)
6625 .
SetParam(
"use_ignore", use_ignore)
6626 .
SetParam(
"preserve_shape", preserve_shape)
6627 .
SetParam(
"normalization", SoftmaxOutputNormalizationValues[
int(normalization)])
6629 .
SetParam(
"smooth_alpha", smooth_alpha)
6674 bool multi_output =
false,
6675 bool use_ignore =
false,
6676 bool preserve_shape =
false,
6678 bool out_grad =
false,
6680 static const char *SoftmaxNormalizationValues[] = {
6686 .
SetParam(
"grad_scale", grad_scale)
6687 .
SetParam(
"ignore_label", ignore_label)
6688 .
SetParam(
"multi_output", multi_output)
6689 .
SetParam(
"use_ignore", use_ignore)
6690 .
SetParam(
"preserve_shape", preserve_shape)
6691 .
SetParam(
"normalization", SoftmaxNormalizationValues[
int(normalization)])
6693 .
SetParam(
"smooth_alpha", smooth_alpha)
6849 .
SetParam(
"pooled_size", pooled_size)
6850 .
SetParam(
"spatial_scale", spatial_scale)
6914 bool use_sequence_length =
false,
6917 .
SetParam(
"use_sequence_length", use_sequence_length)
6920 .
SetInput(
"sequence_length", sequence_length)
6998 static const char *L2NormalizationModeValues[] = {
7005 .
SetParam(
"mode", L2NormalizationModeValues[
int(mode)])
7059 static const char *MakeLossNormalizationValues[] = {
7065 .
SetParam(
"grad_scale", grad_scale)
7066 .
SetParam(
"valid_thresh", valid_thresh)
7067 .
SetParam(
"normalization", MakeLossNormalizationValues[
int(normalization)])
7091 mx_float regularization_coefficient = 1,
7092 bool use_linear =
false) {
7095 .
SetParam(
"regularization_coefficient", regularization_coefficient)
7096 .
SetParam(
"use_linear", use_linear)
7154 uint32_t kernel_size = 1,
7155 uint32_t max_displacement = 1,
7156 uint32_t stride1 = 1,
7157 uint32_t stride2 = 1,
7158 uint32_t pad_size = 0,
7159 bool is_multiply =
true) {
7161 .
SetParam(
"kernel_size", kernel_size)
7162 .
SetParam(
"max_displacement", max_displacement)
7166 .
SetParam(
"is_multiply", is_multiply)
7253 bool use_sequence_length =
false,
7257 .
SetParam(
"use_sequence_length", use_sequence_length)
7261 .
SetInput(
"sequence_length", sequence_length)
7276 return Operator(
"choose_element_0index")
7295 return Operator(
"fill_element_0index")
7362 const std::string& op_type) {
7422 return Operator(
"broadcast_maximum")
7453 return Operator(
"broadcast_minimum")
7573 bool keep_highest =
false) {
7577 .
SetParam(
"target_shape", target_shape)
7578 .
SetParam(
"keep_highest", keep_highest)
7786 dmlc::optional<int> end) {
7861 .
SetInput(
"shape_like", shape_like)
7943 dmlc::optional<int> axis = dmlc::optional<int>()) {
8087 dmlc::optional<Shape> axis = dmlc::optional<Shape>()) {
8361 dmlc::optional<int> axis = dmlc::optional<int>(),
8362 bool keepdims =
false) {
8401 dmlc::optional<int> axis = dmlc::optional<int>(),
8402 bool keepdims =
false) {
8483 dmlc::optional<int> axis = dmlc::optional<int>(),
8484 bool keepdims =
false) {
8534 bool transpose_a =
false,
8535 bool transpose_b =
false) {
8537 .
SetParam(
"transpose_a", transpose_a)
8538 .
SetParam(
"transpose_b", transpose_b)
8567 bool transpose_a =
false,
8568 bool transpose_b =
false) {
8570 .
SetParam(
"transpose_a", transpose_a)
8571 .
SetParam(
"transpose_b", transpose_b)
8746 static const char *CastDtypeValues[] = {
8756 .
SetParam(
"dtype", CastDtypeValues[
int(dtype)])
9344 dmlc::optional<Shape> axis = dmlc::optional<Shape>(),
9345 bool keepdims =
false,
9346 bool exclude =
false) {
9379 dmlc::optional<Shape> axis = dmlc::optional<Shape>(),
9380 bool keepdims =
false,
9381 bool exclude =
false) {
9414 dmlc::optional<Shape> axis = dmlc::optional<Shape>(),
9415 bool keepdims =
false,
9416 bool exclude =
false) {
9451 dmlc::optional<Shape> axis = dmlc::optional<Shape>(),
9452 bool keepdims =
false,
9453 bool exclude =
false) {
9488 dmlc::optional<Shape> axis = dmlc::optional<Shape>(),
9489 bool keepdims =
false,
9490 bool exclude =
false) {
9523 dmlc::optional<Shape> axis = dmlc::optional<Shape>(),
9524 bool keepdims =
false,
9525 bool exclude =
false) {
9558 dmlc::optional<Shape> axis = dmlc::optional<Shape>(),
9559 bool keepdims =
false,
9560 bool exclude =
false) {
9680 dmlc::optional<Shape> axis = dmlc::optional<Shape>(),
9681 bool keepdims =
false) {
9731 dmlc::optional<int> axis = dmlc::optional<int>(-1),
9734 bool is_ascend =
false) {
9735 static const char *TopkRetTypValues[] = {
9744 .
SetParam(
"ret_typ", TopkRetTypValues[
int(ret_typ)])
9782 dmlc::optional<int> axis = dmlc::optional<int>(-1),
9783 bool is_ascend =
true) {
9821 dmlc::optional<int> axis = dmlc::optional<int>(-1),
9822 bool is_ascend =
true) {
9972 static const char *EmbeddingDtypeValues[] = {
9983 .
SetParam(
"output_dim", output_dim)
9984 .
SetParam(
"dtype", EmbeddingDtypeValues[
int(dtype)])
10036 static const char *TakeModeValues[] = {
10043 .
SetParam(
"mode", TakeModeValues[
int(mode)])
10129 double on_value = 1,
10130 double off_value = 0,
10132 static const char *One_hotDtypeValues[] = {
10145 .
SetParam(
"dtype", One_hotDtypeValues[
int(dtype)])
10252 return Operator(
"broadcast_equal")
10281 return Operator(
"broadcast_not_equal")
10310 return Operator(
"broadcast_greater")
10339 return Operator(
"broadcast_greater_equal")
10368 return Operator(
"broadcast_lesser")
10397 return Operator(
"broadcast_lesser_equal")
10525 static const char *Cast_storageStypeValues[] = {
10531 .
SetParam(
"stype", Cast_storageStypeValues[
int(stype)])
10877 bool global_pool =
false,
10878 bool cudnn_off =
false,
10882 static const char *PoolingPoolTypeValues[] = {
10887 static const char *PoolingPoolingConventionValues[] = {
10893 .
SetParam(
"pool_type", PoolingPoolTypeValues[
int(pool_type)])
10894 .
SetParam(
"global_pool", global_pool)
10896 .
SetParam(
"pooling_convention", PoolingPoolingConventionValues[
int(pooling_convention)])
11000 uint32_t num_filter,
11006 uint32_t num_group = 1,
11007 uint64_t workspace = 512,
11008 bool no_bias =
true,
11010 bool cudnn_off =
false,
11012 static const char *DeconvolutionCudnnTuneValues[] = {
11015 "limited_workspace",
11018 static const char *DeconvolutionLayoutValues[] = {
11028 .
SetParam(
"num_filter", num_filter)
11033 .
SetParam(
"target_shape", target_shape)
11037 .
SetParam(
"cudnn_tune", DeconvolutionCudnnTuneValues[
int(cudnn_tune)])
11039 .
SetParam(
"layout", DeconvolutionLayoutValues[
int(layout)])
11066 static const char *ActivationActTypeValues[] = {
11074 .
SetParam(
"act_type", ActivationActTypeValues[
int(act_type)])
11147 double eps = 0.001,
11149 bool fix_gamma =
true,
11150 bool use_global_stats =
false,
11151 bool output_mean_var =
false,
11153 bool cudnn_off =
false) {
11158 .
SetParam(
"use_global_stats", use_global_stats)
11159 .
SetParam(
"output_mean_var", output_mean_var)
11165 .
SetInput(
"moving_mean", moving_mean)
11166 .
SetInput(
"moving_var", moving_var)
11270 uint32_t num_filter,
11274 uint32_t num_group = 1,
11275 uint64_t workspace = 1024,
11276 bool no_bias =
false,
11278 bool cudnn_off =
false,
11280 static const char *ConvolutionCudnnTuneValues[] = {
11283 "limited_workspace",
11286 static const char *ConvolutionLayoutValues[] = {
11296 .
SetParam(
"num_filter", num_filter)
11303 .
SetParam(
"cudnn_tune", ConvolutionCudnnTuneValues[
int(cudnn_tune)])
11305 .
SetParam(
"layout", ConvolutionLayoutValues[
int(layout)])
11330 uint32_t num_filter = 0,
11332 uint64_t workspace = 512) {
11333 static const char *UpSamplingSampleTypeValues[] = {
11337 static const char *UpSamplingMultiInputModeValues[] = {
11343 .
SetParam(
"sample_type", UpSamplingSampleTypeValues[
int(sample_type)])
11345 .
SetParam(
"num_filter", num_filter)
11346 .
SetParam(
"multi_input_mode", UpSamplingMultiInputModeValues[
int(multi_input_mode)])
11444 bool output_mean_var =
false) {
11448 .
SetParam(
"output_mean_var", output_mean_var)
11538 static const char *DropoutModeValues[] = {
11544 .
SetParam(
"mode", DropoutModeValues[
int(mode)])
11584 static const char *SoftmaxActivationModeValues[] = {
11588 return Operator(
"SoftmaxActivation")
11589 .
SetParam(
"mode", SoftmaxActivationModeValues[
int(mode)])
11634 bool no_bias =
false,
11635 bool flatten =
true) {
11637 .
SetParam(
"num_hidden", num_hidden)
11744 double constant_value = 0) {
11745 static const char *PadModeValues[] = {
11751 .
SetParam(
"mode", PadModeValues[
int(mode)])
11753 .
SetParam(
"constant_value", constant_value)
11791 static const char *LeakyReLUActTypeValues[] = {
11798 .
SetParam(
"act_type", LeakyReLUActTypeValues[
int(act_type)])
11800 .
SetParam(
"lower_bound", lower_bound)
11801 .
SetParam(
"upper_bound", upper_bound)
11836 uint32_t dim2 = 0) {
11905 bool fix_gamma =
true,
11906 bool use_global_stats =
false,
11907 bool output_mean_var =
false) {
11912 .
SetParam(
"use_global_stats", use_global_stats)
11913 .
SetParam(
"output_mean_var", output_mean_var)
11958 return Operator(
"softmax_cross_entropy")
11995 return Operator(
"LinearRegressionOutput")
11996 .
SetParam(
"grad_scale", grad_scale)
12034 return Operator(
"MAERegressionOutput")
12035 .
SetParam(
"grad_scale", grad_scale)
12073 return Operator(
"LogisticRegressionOutput")
12074 .
SetParam(
"grad_scale", grad_scale)
12092 return Operator(
"IdentityAttachKLSparseReg")
12093 .
SetParam(
"sparseness_target", sparseness_target)
12136 .
SetParam(
"rescale_grad", rescale_grad)
12137 .
SetParam(
"clip_gradient", clip_gradient)
12189 .
SetParam(
"rescale_grad", rescale_grad)
12190 .
SetParam(
"clip_gradient", clip_gradient)
12233 .
SetParam(
"rescale_grad", rescale_grad)
12234 .
SetParam(
"clip_gradient", clip_gradient)
12296 .
SetParam(
"rescale_grad", rescale_grad)
12297 .
SetParam(
"clip_gradient", clip_gradient)
12327 .
SetParam(
"rescale_grad", rescale_grad)
12328 .
SetParam(
"clip_gradient", clip_gradient)
12359 return Operator(
"mp_sgd_mom_update")
12363 .
SetParam(
"rescale_grad", rescale_grad)
12364 .
SetParam(
"clip_gradient", clip_gradient)
12423 .
SetParam(
"rescale_grad", rescale_grad)
12424 .
SetParam(
"clip_gradient", clip_gradient)
12496 .
SetParam(
"rescale_grad", rescale_grad)
12497 .
SetParam(
"clip_gradient", clip_gradient)
12572 .
SetParam(
"rescale_grad", rescale_grad)
12573 .
SetParam(
"clip_gradient", clip_gradient)
12574 .
SetParam(
"clip_weights", clip_weights)
12638 return Operator(
"rmspropalex_update")
12644 .
SetParam(
"rescale_grad", rescale_grad)
12645 .
SetParam(
"clip_gradient", clip_gradient)
12646 .
SetParam(
"clip_weights", clip_weights)
12708 .
SetParam(
"rescale_grad", rescale_grad)
12709 .
SetParam(
"clip_gradient", clip_gradient)
12790 bool squeeze_axis =
false) {
12792 .
SetParam(
"num_outputs", num_outputs)
12794 .
SetParam(
"squeeze_axis", squeeze_axis)
12872 static const char *GridGeneratorTransformTypeValues[] = {
12877 .
SetParam(
"transform_type", GridGeneratorTransformTypeValues[
int(transform_type)])
12878 .
SetParam(
"target_shape", target_shape)
12936 bool global_pool =
false,
12940 static const char *Pooling_v1PoolTypeValues[] = {
12945 static const char *Pooling_v1PoolingConventionValues[] = {
12951 .
SetParam(
"pool_type", Pooling_v1PoolTypeValues[
int(pool_type)])
12952 .
SetParam(
"global_pool", global_pool)
12953 .
SetParam(
"pooling_convention", Pooling_v1PoolingConventionValues[
int(pooling_convention)])
12978 uint32_t state_size,
12979 uint32_t num_layers,
12981 bool bidirectional =
false,
12983 bool state_outputs =
false) {
12984 static const char *RNNModeValues[] = {
12991 .
SetParam(
"state_size", state_size)
12992 .
SetParam(
"num_layers", num_layers)
12993 .
SetParam(
"mode", RNNModeValues[
int(mode)])
12994 .
SetParam(
"bidirectional", bidirectional)
12996 .
SetParam(
"state_outputs", state_outputs)
12998 .
SetInput(
"parameters", parameters)
13000 .
SetInput(
"state_cell", state_cell)
13037 uint32_t num_filter,
13041 uint32_t num_group = 1,
13042 uint64_t workspace = 1024,
13043 bool no_bias =
false,
13045 bool cudnn_off =
false,
13047 static const char *Convolution_v1CudnnTuneValues[] = {
13050 "limited_workspace",
13053 static const char *Convolution_v1LayoutValues[] = {
13062 .
SetParam(
"num_filter", num_filter)
13069 .
SetParam(
"cudnn_tune", Convolution_v1CudnnTuneValues[
int(cudnn_tune)])
13071 .
SetParam(
"layout", Convolution_v1LayoutValues[
int(layout)])
13101 bool center_crop =
false) {
13106 .
SetParam(
"center_crop", center_crop)
13188 bool use_sequence_length =
false,
13190 return Operator(
"SequenceReverse")
13191 .
SetParam(
"use_sequence_length", use_sequence_length)
13194 .
SetInput(
"sequence_length", sequence_length)
13212 static const char *SpatialTransformerTransformTypeValues[] = {
13215 static const char *SpatialTransformerSamplerTypeValues[] = {
13218 return Operator(
"SpatialTransformer")
13219 .
SetParam(
"transform_type", SpatialTransformerTransformTypeValues[
int(transform_type)])
13220 .
SetParam(
"sampler_type", SpatialTransformerSamplerTypeValues[
int(sampler_type)])
13221 .
SetParam(
"target_shape", target_shape)
13325 bool multi_output =
false,
13326 bool use_ignore =
false,
13327 bool preserve_shape =
false,
13329 bool out_grad =
false,
13331 static const char *SoftmaxOutputNormalizationValues[] = {
13337 .
SetParam(
"grad_scale", grad_scale)
13338 .
SetParam(
"ignore_label", ignore_label)
13339 .
SetParam(
"multi_output", multi_output)
13340 .
SetParam(
"use_ignore", use_ignore)
13341 .
SetParam(
"preserve_shape", preserve_shape)
13342 .
SetParam(
"normalization", SoftmaxOutputNormalizationValues[
int(normalization)])
13344 .
SetParam(
"smooth_alpha", smooth_alpha)
13379 bool multi_output =
false,
13380 bool use_ignore =
false,
13381 bool preserve_shape =
false,
13383 bool out_grad =
false,
13385 static const char *SoftmaxNormalizationValues[] = {
13391 .
SetParam(
"grad_scale", grad_scale)
13392 .
SetParam(
"ignore_label", ignore_label)
13393 .
SetParam(
"multi_output", multi_output)
13394 .
SetParam(
"use_ignore", use_ignore)
13395 .
SetParam(
"preserve_shape", preserve_shape)
13396 .
SetParam(
"normalization", SoftmaxNormalizationValues[
int(normalization)])
13398 .
SetParam(
"smooth_alpha", smooth_alpha)
13484 return Operator(
"BilinearSampler")
13550 .
SetParam(
"pooled_size", pooled_size)
13551 .
SetParam(
"spatial_scale", spatial_scale)
13613 bool use_sequence_length =
false,
13616 .
SetParam(
"use_sequence_length", use_sequence_length)
13619 .
SetInput(
"sequence_length", sequence_length)
13687 static const char *L2NormalizationModeValues[] = {
13692 return Operator(
"L2Normalization")
13694 .
SetParam(
"mode", L2NormalizationModeValues[
int(mode)])
13736 static const char *MakeLossNormalizationValues[] = {
13742 .
SetParam(
"grad_scale", grad_scale)
13743 .
SetParam(
"valid_thresh", valid_thresh)
13744 .
SetParam(
"normalization", MakeLossNormalizationValues[
int(normalization)])
13766 mx_float regularization_coefficient = 1,
13767 bool use_linear =
false) {
13770 .
SetParam(
"regularization_coefficient", regularization_coefficient)
13771 .
SetParam(
"use_linear", use_linear)
13827 uint32_t kernel_size = 1,
13828 uint32_t max_displacement = 1,
13829 uint32_t stride1 = 1,
13830 uint32_t stride2 = 1,
13831 uint32_t pad_size = 0,
13832 bool is_multiply =
true) {
13834 .
SetParam(
"kernel_size", kernel_size)
13835 .
SetParam(
"max_displacement", max_displacement)
13839 .
SetParam(
"is_multiply", is_multiply)
13924 bool use_sequence_length =
false,
13928 .
SetParam(
"use_sequence_length", use_sequence_length)
13932 .
SetInput(
"sequence_length", sequence_length)
13945 return Operator(
"choose_element_0index")
13962 return Operator(
"fill_element_0index")
13971 #endif // MXNET_CPP_OP_H_ Symbol Convolution(const std::string &symbol_name, Symbol data, Symbol weight, Symbol bias, Shape kernel, uint32_t num_filter, Shape stride=Shape(), Shape dilate=Shape(), Shape pad=Shape(), uint32_t num_group=1, uint64_t workspace=1024, bool no_bias=false, ConvolutionCudnnTune cudnn_tune=ConvolutionCudnnTune::kNone, bool cudnn_off=false, ConvolutionLayout layout=ConvolutionLayout::kNone)
Definition: op.h:4349
Symbol fix(const std::string &symbol_name, Symbol data)
Definition: op.h:1830
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:6355
Symbol broadcast_mul(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:1003
Symbol arcsin(const std::string &symbol_name, Symbol data)
Definition: op.h:3611
Symbol FullyConnected(const std::string &symbol_name, Symbol data, Symbol weight, Symbol bias, int num_hidden, bool no_bias=false, bool flatten=true)
Definition: op.h:4757
Symbol arccosh(const std::string &symbol_name, Symbol data)
Definition: op.h:3828
Symbol arctan(const std::string &symbol_name, Symbol data)
Definition: op.h:3663
Symbol SwapAxis(const std::string &symbol_name, Symbol data, uint32_t dim1=0, uint32_t dim2=0)
Definition: op.h:4985
Symbol cast_storage(const std::string &symbol_name, Symbol data, Cast_storageStype stype)
Definition: op.h:3498
Symbol add_n(const std::string &symbol_name, const std::vector< Symbol > &args)
Definition: op.h:1097
Symbol log1p(const std::string &symbol_name, Symbol data)
Definition: op.h:2077
SoftmaxActivationMode
Definition: op.h:4669
Symbol mp_sgd_update(const std::string &symbol_name, Symbol weight, Symbol grad, Symbol weight32, mx_float lr, mx_float wd=0, mx_float rescale_grad=1, mx_float clip_gradient=-1)
Definition: op.h:5490
Symbol SpatialTransformer(const std::string &symbol_name, Symbol data, Symbol loc, SpatialTransformerTransformType transform_type, SpatialTransformerSamplerType sampler_type, Shape target_shape=Shape(0, 0))
Definition: op.h:6481
Symbol slice(const std::string &symbol_name, Symbol data, Shape begin, Shape end, Shape step=Shape())
Definition: op.h:481
Symbol exp(const std::string &symbol_name, Symbol data)
Definition: op.h:1989
Symbol transpose(const std::string &symbol_name, Symbol data, Shape axes=Shape())
Definition: op.h:393
Symbol clip(const std::string &symbol_name, Symbol data, mx_float a_min, mx_float a_max)
Definition: op.h:645
Symbol elemwise_div(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:2812
Symbol ROIPooling(const std::string &symbol_name, Symbol data, Symbol rois, Shape pooled_size, mx_float spatial_scale)
Definition: op.h:6843
Symbol broadcast_div(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:1037
Convolution_v1Layout
Definition: op.h:6251
Symbol argmin(const std::string &symbol_name, Symbol data, dmlc::optional< int > axis=dmlc::optional< int >(), bool keepdims=false)
Definition: op.h:1177
Symbol SequenceReverse(const std::string &symbol_name, Symbol data, Symbol sequence_length, bool use_sequence_length=false, int axis=0)
Definition: op.h:6446
Symbol mp_sgd_mom_update(const std::string &symbol_name, Symbol weight, Symbol grad, Symbol mom, Symbol weight32, mx_float lr, mx_float momentum=0, mx_float wd=0, mx_float rescale_grad=1, mx_float clip_gradient=-1)
Definition: op.h:5525
Symbol broadcast_lesser(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:3325
Symbol fill_element_0index(const std::string &symbol_name, Symbol lhs, Symbol mhs, Symbol rhs)
Definition: op.h:7291
Symbol Convolution_v1(const std::string &symbol_name, Symbol data, Symbol weight, Symbol bias, Shape kernel, uint32_t num_filter, Shape stride=Shape(), Shape dilate=Shape(), Shape pad=Shape(), uint32_t num_group=1, uint64_t workspace=1024, bool no_bias=false, Convolution_v1CudnnTune cudnn_tune=Convolution_v1CudnnTune::kNone, bool cudnn_off=false, Convolution_v1Layout layout=Convolution_v1Layout::kNone)
Definition: op.h:6289
Symbol broadcast_not_equal(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:3232
TakeMode
Definition: op.h:2912
Symbol Embedding(const std::string &symbol_name, Symbol data, Symbol weight, int input_dim, int output_dim, EmbeddingDtype dtype=EmbeddingDtype::kFloat32)
Definition: op.h:2884
Symbol SequenceLast(const std::string &symbol_name, Symbol data, Symbol sequence_length, bool use_sequence_length=false, int axis=0)
Definition: op.h:6911
Symbol ftrl_update(const std::string &symbol_name, Symbol weight, Symbol grad, Symbol z, Symbol n, mx_float lr, mx_float lamda1=0.01, mx_float beta=1, mx_float wd=0, mx_float rescale_grad=1, mx_float clip_gradient=-1)
Definition: op.h:5878
Symbol reciprocal(const std::string &symbol_name, Symbol data)
Definition: op.h:1610
TopkRetTyp
Definition: op.h:2573
Symbol RNN(const std::string &symbol_name, Symbol data, Symbol parameters, Symbol state, Symbol state_cell, uint32_t state_size, uint32_t num_layers, RNNMode mode, bool bidirectional=false, mx_float p=0, bool state_outputs=false)
Definition: op.h:6201
namespace of mxnet
Definition: base.h:118
Symbol reshape_like(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:1515
Pooling_v1PoolingConvention
Definition: op.h:6093
Symbol broadcast_lesser_equal(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:3356
Operator & SetInput(const std::string &name, Symbol symbol)
add an input symbol
Symbol InstanceNorm(const std::string &symbol_name, Symbol data, Symbol gamma, Symbol beta, mx_float eps=0.001)
Definition: op.h:6037
Symbol sign(const std::string &symbol_name, Symbol data)
Definition: op.h:1662
GridGeneratorTransformType
Definition: op.h:6053
Cast_storageStype
Definition: op.h:3447
dynamic shape class that can hold shape of arbirary dimension
Definition: shape.h:43
Symbol ones_like(const std::string &symbol_name, Symbol data)
Definition: op.h:899
RNNMode
Definition: op.h:6179
PadMode
Definition: op.h:4777
Symbol smooth_l1(const std::string &symbol_name, Symbol data, mx_float scalar)
Definition: op.h:3436
Symbol where(const std::string &symbol_name, Symbol condition, Symbol x, Symbol y)
Definition: op.h:3400
Symbol expm1(const std::string &symbol_name, Symbol data)
Definition: op.h:2101
Symbol elemwise_add(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:2741
PoolingPoolType
Definition: op.h:3860
Symbol relu(const std::string &symbol_name, Symbol data)
Definition: op.h:1381
Symbol reverse(const std::string &symbol_name, Symbol data, Shape axis)
Definition: op.h:778
Symbol rsqrt(const std::string &symbol_name, Symbol data)
Definition: op.h:1915
SpatialTransformerTransformType
Definition: op.h:6461
ActivationActType
Definition: op.h:4095
Symbol sqrt(const std::string &symbol_name, Symbol data)
Definition: op.h:1889
Symbol Softmax(const std::string &symbol_name, Symbol data, mx_float grad_scale=1, mx_float ignore_label=-1, bool multi_output=false, bool use_ignore=false, bool preserve_shape=false, SoftmaxNormalization normalization=SoftmaxNormalization::kNull, bool out_grad=false, mx_float smooth_alpha=0)
Definition: op.h:6670
Symbol rint(const std::string &symbol_name, Symbol data)
Definition: op.h:1718
Symbol IdentityAttachKLSparseReg(const std::string &symbol_name, Symbol data, mx_float sparseness_target=0.1, mx_float penalty=0.001, mx_float momentum=0.9)
Definition: op.h:5251
Symbol sinh(const std::string &symbol_name, Symbol data)
Definition: op.h:3738
Symbol scatter_nd(const std::string &symbol_name, Symbol data, Symbol indices, Shape shape)
Definition: op.h:3168
Symbol broadcast_greater_equal(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:3294
Symbol LRN(const std::string &symbol_name, Symbol data, uint32_t nsize, mx_float alpha=0.0001, mx_float beta=0.75, mx_float knorm=2)
Definition: op.h:4587
Symbol sgd_mom_update(const std::string &symbol_name, Symbol weight, Symbol grad, Symbol mom, mx_float lr, mx_float momentum=0, mx_float wd=0, mx_float rescale_grad=1, mx_float clip_gradient=-1)
Definition: op.h:5455
Symbol LayerNorm(const std::string &symbol_name, Symbol data, Symbol gamma, Symbol beta, int axis=-1, mx_float eps=1e-05, bool output_mean_var=false)
Definition: op.h:4543
Symbol arcsinh(const std::string &symbol_name, Symbol data)
Definition: op.h:3808
Symbol sgd_update(const std::string &symbol_name, Symbol weight, Symbol grad, mx_float lr, mx_float wd=0, mx_float rescale_grad=1, mx_float clip_gradient=-1)
Definition: op.h:5393
Symbol MAERegressionOutput(const std::string &symbol_name, Symbol data, Symbol label, mx_float grad_scale=1)
Definition: op.h:5190
Symbol SliceChannel(const std::string &symbol_name, Symbol data, int num_outputs, int axis=1, bool squeeze_axis=false)
Definition: op.h:5974
PoolingPoolingConvention
Definition: op.h:3868
Symbol broadcast_minimum(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:180
Symbol broadcast_maximum(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:147
Symbol Cast(const std::string &symbol_name, Symbol data, CastDtype dtype)
Definition: op.h:1555
DeconvolutionLayout
Definition: op.h:4004
Symbol trunc(const std::string &symbol_name, Symbol data)
Definition: op.h:1803
Pooling_v1PoolType
Definition: op.h:6085
Symbol round(const std::string &symbol_name, Symbol data)
Definition: op.h:1688
Symbol Dropout(const std::string &symbol_name, Symbol data, mx_float p=0.5, DropoutMode mode=DropoutMode::kTraining, Shape axes=Shape())
Definition: op.h:4649
Symbol squeeze(const std::string &symbol_name, const std::vector< Symbol > &data, dmlc::optional< Shape > axis=dmlc::optional< Shape >())
Definition: op.h:843
Symbol log_softmax(const std::string &symbol_name, Symbol data, int axis=-1)
Definition: op.h:3984
Symbol khatri_rao(const std::string &symbol_name, const std::vector< Symbol > &args)
Definition: op.h:62
Symbol cos(const std::string &symbol_name, Symbol data)
Definition: op.h:3556
Symbol L2Normalization(const std::string &symbol_name, Symbol data, mx_float eps=1e-10, L2NormalizationMode mode=L2NormalizationMode::kInstance)
Definition: op.h:6994
Symbol max(const std::string &symbol_name, Symbol data, dmlc::optional< Shape > axis=dmlc::optional< Shape >(), bool keepdims=false, bool exclude=false)
Definition: op.h:2391
Symbol Correlation(const std::string &symbol_name, Symbol data1, Symbol data2, uint32_t kernel_size=1, uint32_t max_displacement=1, uint32_t stride1=1, uint32_t stride2=1, uint32_t pad_size=0, bool is_multiply=true)
Definition: op.h:7151
Symbol zeros_like(const std::string &symbol_name, Symbol data)
Definition: op.h:875
EmbeddingDtype
Definition: op.h:2823
Symbol batch_dot(const std::string &symbol_name, Symbol lhs, Symbol rhs, bool transpose_a=false, bool transpose_b=false)
Definition: op.h:1350
Symbol broadcast_mod(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:1068
Symbol cbrt(const std::string &symbol_name, Symbol data)
Definition: op.h:1939
operator helper functions
Symbol tanh(const std::string &symbol_name, Symbol data)
Definition: op.h:3785
Symbol broadcast_to(const std::string &symbol_name, Symbol data, Shape shape=Shape())
Definition: op.h:2509
Symbol elemwise_sub(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:2765
DropoutMode
Definition: op.h:4604
Symbol norm(const std::string &symbol_name, Symbol data, int ord=2, dmlc::optional< Shape > axis=dmlc::optional< Shape >(), bool keepdims=false)
Definition: op.h:2555
Symbol MakeLoss(const std::string &symbol_name, Symbol data, mx_float grad_scale=1, mx_float valid_thresh=0, MakeLossNormalization normalization=MakeLossNormalization::kNull)
Definition: op.h:7054
Symbol log(const std::string &symbol_name, Symbol data)
Definition: op.h:2010
Symbol sigmoid(const std::string &symbol_name, Symbol data)
Definition: op.h:1403
CastDtype
Definition: op.h:1526
ConvolutionLayout
Definition: op.h:4243
Symbol LogisticRegressionOutput(const std::string &symbol_name, Symbol data, Symbol label, mx_float grad_scale=1)
Definition: op.h:5231
Symbol gamma(const std::string &symbol_name, Symbol data)
Definition: op.h:2119
Symbol sin(const std::string &symbol_name, Symbol data)
Definition: op.h:3532
UpSamplingMultiInputMode
Definition: op.h:4406
Symbol CreateSymbol(const std::string &name="")
create a Symbol from the current operator
Symbol elemwise_mul(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:2792
SpatialTransformerSamplerType
Definition: op.h:6467
Symbol Pad(const std::string &symbol_name, Symbol data, PadMode mode, Shape pad_width, double constant_value=0)
Definition: op.h:4879
Symbol square(const std::string &symbol_name, Symbol data)
Definition: op.h:1860
Symbol LeakyReLU(const std::string &symbol_name, Symbol data, Symbol gamma, LeakyReLUActType act_type=LeakyReLUActType::kLeaky, mx_float slope=0.25, mx_float lower_bound=0.125, mx_float upper_bound=0.334)
Definition: op.h:4934
One_hotDtype
Definition: op.h:3018
Symbol nansum(const std::string &symbol_name, Symbol data, dmlc::optional< Shape > axis=dmlc::optional< Shape >(), bool keepdims=false, bool exclude=false)
Definition: op.h:2315
UpSamplingSampleType
Definition: op.h:4398
Symbol rmsprop_update(const std::string &symbol_name, Symbol weight, Symbol grad, Symbol n, mx_float lr, mx_float gamma1=0.95, mx_float epsilon=1e-08, mx_float wd=0, mx_float rescale_grad=1, mx_float clip_gradient=-1, mx_float clip_weights=-1)
Definition: op.h:5738
Symbol make_loss(const std::string &symbol_name, Symbol data)
Definition: op.h:1501
Symbol SoftmaxActivation(const std::string &symbol_name, Symbol data, SoftmaxActivationMode mode=SoftmaxActivationMode::kInstance)
Definition: op.h:4707
Symbol broadcast_equal(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:3201
Symbol nanprod(const std::string &symbol_name, Symbol data, dmlc::optional< Shape > axis=dmlc::optional< Shape >(), bool keepdims=false, bool exclude=false)
Definition: op.h:2354
Symbol Deconvolution(const std::string &symbol_name, Symbol data, Symbol weight, Symbol bias, Shape kernel, uint32_t num_filter, Shape stride=Shape(), Shape dilate=Shape(), Shape pad=Shape(), Shape adj=Shape(), Shape target_shape=Shape(), uint32_t num_group=1, uint64_t workspace=512, bool no_bias=true, DeconvolutionCudnnTune cudnn_tune=DeconvolutionCudnnTune::kNone, bool cudnn_off=false, DeconvolutionLayout layout=DeconvolutionLayout::kNone)
Definition: op.h:4042
Symbol broadcast_add(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:933
Symbol adam_update(const std::string &symbol_name, Symbol weight, Symbol grad, Symbol mean, Symbol var, mx_float lr, mx_float beta1=0.9, mx_float beta2=0.999, mx_float epsilon=1e-08, mx_float wd=0, mx_float rescale_grad=1, mx_float clip_gradient=-1)
Definition: op.h:5658
Operator & SetParam(const std::string &name, const T &value)
set config parameters
Definition: operator.h:58
Symbol tan(const std::string &symbol_name, Symbol data)
Definition: op.h:3583
Convolution_v1CudnnTune
Definition: op.h:6241
Symbol repeat(const std::string &symbol_name, Symbol data, int repeats, dmlc::optional< int > axis=dmlc::optional< int >())
Definition: op.h:690
Symbol slice_axis(const std::string &symbol_name, Symbol data, int axis, int begin, dmlc::optional< int > end)
Definition: op.h:526
Symbol expand_dims(const std::string &symbol_name, Symbol data, int axis)
Definition: op.h:417
Symbol arctanh(const std::string &symbol_name, Symbol data)
Definition: op.h:3851
Symbol softmax_cross_entropy(const std::string &symbol_name, Symbol data, Symbol label)
Definition: op.h:5111
Symbol pick(const std::string &symbol_name, Symbol data, Symbol index, dmlc::optional< int > axis=dmlc::optional< int >(), bool keepdims=false)
Definition: op.h:1262
Symbol broadcast_axis(const std::string &symbol_name, Symbol data, Shape axis=Shape(), Shape size=Shape())
Definition: op.h:2470
Symbol abs(const std::string &symbol_name, Symbol data)
Definition: op.h:1636
Symbol cosh(const std::string &symbol_name, Symbol data)
Definition: op.h:3760
Symbol sort(const std::string &symbol_name, Symbol data, dmlc::optional< int > axis=dmlc::optional< int >(-1), bool is_ascend=true)
Definition: op.h:2674
Symbol gather_nd(const std::string &symbol_name, Symbol data, Symbol indices)
Definition: op.h:3123
Symbol slice_like(const std::string &symbol_name, Symbol data, Symbol shape_like, Shape axes=Shape())
Definition: op.h:600
Symbol Pooling(const std::string &symbol_name, Symbol data, Shape kernel=Shape(), PoolingPoolType pool_type=PoolingPoolType::kMax, bool global_pool=false, bool cudnn_off=false, PoolingPoolingConvention pooling_convention=PoolingPoolingConvention::kValid, Shape stride=Shape(), Shape pad=Shape())
Definition: op.h:3894
Symbol BilinearSampler(const std::string &symbol_name, Symbol data, Symbol grid)
Definition: op.h:6778
Symbol Custom(const std::string &symbol_name, const std::vector< Symbol > &data, const std::string &op_type)
Definition: op.h:84
Symbol Pooling_v1(const std::string &symbol_name, Symbol data, Shape kernel=Shape(), Pooling_v1PoolType pool_type=Pooling_v1PoolType::kMax, bool global_pool=false, Pooling_v1PoolingConvention pooling_convention=Pooling_v1PoolingConvention::kValid, Shape stride=Shape(), Shape pad=Shape())
Definition: op.h:6149
Symbol broadcast_hypot(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:219
Symbol BatchNorm_v1(const std::string &symbol_name, Symbol data, Symbol gamma, Symbol beta, mx_float eps=0.001, mx_float momentum=0.9, bool fix_gamma=true, bool use_global_stats=false, bool output_mean_var=false)
Definition: op.h:5053
Symbol UpSampling(const std::string &symbol_name, const std::vector< Symbol > &data, uint32_t scale, UpSamplingSampleType sample_type, int num_args, uint32_t num_filter=0, UpSamplingMultiInputMode multi_input_mode=UpSamplingMultiInputMode::kConcat, uint64_t workspace=512)
Definition: op.h:4426
Symbol Activation(const std::string &symbol_name, Symbol data, ActivationActType act_type)
Definition: op.h:4122
float mx_float
manually define float
Definition: c_api.h:60
Symbol SVMOutput(const std::string &symbol_name, Symbol data, Symbol label, mx_float margin=1, mx_float regularization_coefficient=1, bool use_linear=false)
Definition: op.h:7087
Symbol radians(const std::string &symbol_name, Symbol data)
Definition: op.h:3713
Symbol Concat(const std::string &symbol_name, const std::vector< Symbol > &data, int num_args, int dim=1)
Definition: op.h:4494
Symbol ftml_update(const std::string &symbol_name, Symbol weight, Symbol grad, Symbol d, Symbol v, Symbol z, mx_float lr, mx_float beta1=0.9, mx_float beta2=0.999, mx_float epsilon=1e-08, mx_float wd=0, mx_float rescale_grad=1, mx_float clip_gradient=-1)
Definition: op.h:5582
L2NormalizationMode
Definition: op.h:6926
Symbol SequenceMask(const std::string &symbol_name, Symbol data, Symbol sequence_length, bool use_sequence_length=false, mx_float value=0, int axis=0)
Definition: op.h:7250
Symbol stack(const std::string &symbol_name, const std::vector< Symbol > &data, int num_args, int axis=0)
Definition: op.h:810
Symbol floor(const std::string &symbol_name, Symbol data)
Definition: op.h:1774
Symbol broadcast_sub(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:969
Symbol take(const std::string &symbol_name, Symbol a, Symbol indices, int axis=0, TakeMode mode=TakeMode::kClip)
Definition: op.h:2961
Symbol ceil(const std::string &symbol_name, Symbol data)
Definition: op.h:1746
Symbol gammaln(const std::string &symbol_name, Symbol data)
Definition: op.h:2137
Symbol tile(const std::string &symbol_name, Symbol data, Shape reps)
Definition: op.h:746
Symbol min(const std::string &symbol_name, Symbol data, dmlc::optional< Shape > axis=dmlc::optional< Shape >(), bool keepdims=false, bool exclude=false)
Definition: op.h:2428
Symbol signum_update(const std::string &symbol_name, Symbol weight, Symbol grad, Symbol mom, mx_float lr, mx_float momentum=0, mx_float wd=0, mx_float rescale_grad=1, mx_float clip_gradient=-1, mx_float wd_lh=0)
Definition: op.h:5343
Symbol rmspropalex_update(const std::string &symbol_name, Symbol weight, Symbol grad, Symbol n, Symbol g, Symbol delta, mx_float lr, mx_float gamma1=0.95, mx_float gamma2=0.9, mx_float epsilon=1e-08, mx_float wd=0, mx_float rescale_grad=1, mx_float clip_gradient=-1, mx_float clip_weights=-1)
Definition: op.h:5808
Symbol argsort(const std::string &symbol_name, Symbol data, dmlc::optional< int > axis=dmlc::optional< int >(-1), bool is_ascend=true)
Definition: op.h:2715
SoftmaxNormalization
Definition: op.h:6637
Symbol softmax(const std::string &symbol_name, Symbol data, int axis=-1)
Definition: op.h:3953
DeconvolutionCudnnTune
Definition: op.h:3995
ConvolutionCudnnTune
Definition: op.h:4233
Symbol prod(const std::string &symbol_name, Symbol data, dmlc::optional< Shape > axis=dmlc::optional< Shape >(), bool keepdims=false, bool exclude=false)
Definition: op.h:2276
Symbol broadcast_greater(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:3263
Symbol BatchNorm(const std::string &symbol_name, Symbol data, Symbol gamma, Symbol beta, Symbol moving_mean, Symbol moving_var, double eps=0.001, mx_float momentum=0.9, bool fix_gamma=true, bool use_global_stats=false, bool output_mean_var=false, int axis=1, bool cudnn_off=false)
Definition: op.h:4202
Symbol rcbrt(const std::string &symbol_name, Symbol data)
Definition: op.h:1963
Symbol topk(const std::string &symbol_name, Symbol data, dmlc::optional< int > axis=dmlc::optional< int >(-1), int k=1, TopkRetTyp ret_typ=TopkRetTyp::kIndices, bool is_ascend=false)
Definition: op.h:2621
Symbol signsgd_update(const std::string &symbol_name, Symbol weight, Symbol grad, mx_float lr, mx_float wd=0, mx_float rescale_grad=1, mx_float clip_gradient=-1)
Definition: op.h:5292
Symbol broadcast_power(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:114
SoftmaxOutputNormalization
Definition: op.h:6504
Symbol SoftmaxOutput(const std::string &symbol_name, Symbol data, Symbol label, mx_float grad_scale=1, mx_float ignore_label=-1, bool multi_output=false, bool use_ignore=false, bool preserve_shape=false, SoftmaxOutputNormalization normalization=SoftmaxOutputNormalization::kNull, bool out_grad=false, mx_float smooth_alpha=0)
Definition: op.h:6605
Symbol Flatten(const std::string &symbol_name, Symbol data)
Definition: op.h:350
Symbol BlockGrad(const std::string &symbol_name, Symbol data)
Definition: op.h:1465
LeakyReLUActType
Definition: op.h:4899
Symbol arccos(const std::string &symbol_name, Symbol data)
Definition: op.h:3636
Symbol argmax_channel(const std::string &symbol_name, Symbol data)
Definition: op.h:1210
Symbol batch_take(const std::string &symbol_name, Symbol a, Symbol indices)
Definition: op.h:3007
Symbol mean(const std::string &symbol_name, Symbol data, dmlc::optional< Shape > axis=dmlc::optional< Shape >(), bool keepdims=false, bool exclude=false)
Definition: op.h:2239
Symbol LinearRegressionOutput(const std::string &symbol_name, Symbol data, Symbol label, mx_float grad_scale=1)
Definition: op.h:5149
Symbol softsign(const std::string &symbol_name, Symbol data)
Definition: op.h:1425
Symbol choose_element_0index(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:7273
Symbol Reshape(const std::string &symbol_name, Symbol data, Shape shape=Shape(), bool reverse=false, Shape target_shape=Shape(), bool keep_highest=false)
Definition: op.h:302
Symbol degrees(const std::string &symbol_name, Symbol data)
Definition: op.h:3688
Symbol one_hot(const std::string &symbol_name, Symbol indices, int depth, double on_value=1, double off_value=0, One_hotDtype dtype=One_hotDtype::kFloat32)
Definition: op.h:3072
Symbol negative(const std::string &symbol_name, Symbol data)
Definition: op.h:1587
Symbol sum(const std::string &symbol_name, Symbol data, dmlc::optional< Shape > axis=dmlc::optional< Shape >(), bool keepdims=false, bool exclude=false)
Definition: op.h:2202
Symbol GridGenerator(const std::string &symbol_name, Symbol data, GridGeneratorTransformType transform_type, Shape target_shape=Shape(0, 0))
Definition: op.h:6068
Symbol argmax(const std::string &symbol_name, Symbol data, dmlc::optional< int > axis=dmlc::optional< int >(), bool keepdims=false)
Definition: op.h:1135
Operator interface.
Definition: operator.h:43
Symbol interface.
Definition: symbol.h:72
MakeLossNormalization
Definition: op.h:7014
Symbol log10(const std::string &symbol_name, Symbol data)
Definition: op.h:2031
Symbol dot(const std::string &symbol_name, Symbol lhs, Symbol rhs, bool transpose_a=false, bool transpose_b=false)
Definition: op.h:1315
Symbol log2(const std::string &symbol_name, Symbol data)
Definition: op.h:2052