8 #ifndef MXNET_CPP_OP_H_ 9 #define MXNET_CPP_OP_H_ 17 #include "dmlc/optional.h" 149 return Operator(
"broadcast_maximum")
182 return Operator(
"broadcast_minimum")
306 bool keep_highest = 0) {
310 .
SetParam(
"target_shape", target_shape)
311 .
SetParam(
"keep_highest", keep_highest)
505 dmlc::optional<int> end) {
596 dmlc::optional<int> axis = dmlc::optional<int>()) {
714 const std::vector<Symbol>& data,
721 .CreateSymbol(symbol_name);
964 const std::vector<Symbol>& args) {
967 .CreateSymbol(symbol_name);
1003 dmlc::optional<int> axis = dmlc::optional<int>(),
1004 bool keepdims = 0) {
1045 dmlc::optional<int> axis = dmlc::optional<int>(),
1046 bool keepdims = 0) {
1131 dmlc::optional<int> axis = dmlc::optional<int>(),
1132 bool keepdims = 0) {
1183 bool transpose_a = 0,
1184 bool transpose_b = 0) {
1186 .
SetParam(
"transpose_a", transpose_a)
1187 .
SetParam(
"transpose_b", transpose_b)
1218 bool transpose_a = 0,
1219 bool transpose_b = 0) {
1221 .
SetParam(
"transpose_a", transpose_a)
1222 .
SetParam(
"transpose_b", transpose_b)
1399 static const char *CastDtypeValues[] = {
1407 .
SetParam(
"dtype", CastDtypeValues[
int(dtype)])
2436 dmlc::optional<int> axis = dmlc::optional<int>(-1),
2439 bool is_ascend = 0) {
2440 static const char *TopkRetTypValues[] = {
2449 .
SetParam(
"ret_typ", TopkRetTypValues[
int(ret_typ)])
2489 dmlc::optional<int> axis = dmlc::optional<int>(-1),
2490 bool is_ascend = 1) {
2530 dmlc::optional<int> axis = dmlc::optional<int>(-1),
2531 bool is_ascend = 1) {
2698 static const char *EmbeddingDtypeValues[] = {
2707 .
SetParam(
"output_dim", output_dim)
2708 .
SetParam(
"dtype", EmbeddingDtypeValues[
int(dtype)])
2768 static const char *TakeModeValues[] = {
2775 .
SetParam(
"mode", TakeModeValues[
int(mode)])
2875 double on_value = 1,
2876 double off_value = 0,
2878 static const char *One_hotDtypeValues[] = {
2889 .
SetParam(
"dtype", One_hotDtypeValues[
int(dtype)])
3028 return Operator(
"broadcast_not_equal")
3059 return Operator(
"broadcast_greater")
3090 return Operator(
"broadcast_greater_equal")
3121 return Operator(
"broadcast_lesser")
3152 return Operator(
"broadcast_lesser_equal")
3273 static const char *Cast_storageStypeValues[] = {
3279 .
SetParam(
"stype", Cast_storageStypeValues[
int(stype)])
3646 const std::vector<Symbol>& data,
3647 const std::string& op_type) {
3650 .CreateSymbol(symbol_name);
3684 uint32_t dim2 = 0) {
3733 static const char *LeakyReLUActTypeValues[] = {
3740 .
SetParam(
"act_type", LeakyReLUActTypeValues[
int(act_type)])
3742 .
SetParam(
"lower_bound", lower_bound)
3743 .
SetParam(
"upper_bound", upper_bound)
3810 bool use_global_stats = 0,
3811 bool output_mean_var = 0) {
3816 .
SetParam(
"use_global_stats", use_global_stats)
3817 .
SetParam(
"output_mean_var", output_mean_var)
3866 const std::vector<Symbol>& data,
3873 .CreateSymbol(symbol_name);
3913 .
SetParam(
"rescale_grad", rescale_grad)
3914 .
SetParam(
"clip_gradient", clip_gradient)
3975 .
SetParam(
"rescale_grad", rescale_grad)
3976 .
SetParam(
"clip_gradient", clip_gradient)
4008 .
SetParam(
"rescale_grad", rescale_grad)
4009 .
SetParam(
"clip_gradient", clip_gradient)
4042 return Operator(
"mp_sgd_mom_update")
4046 .
SetParam(
"rescale_grad", rescale_grad)
4047 .
SetParam(
"clip_gradient", clip_gradient)
4120 .
SetParam(
"rescale_grad", rescale_grad)
4121 .
SetParam(
"clip_gradient", clip_gradient)
4198 .
SetParam(
"rescale_grad", rescale_grad)
4199 .
SetParam(
"clip_gradient", clip_gradient)
4200 .
SetParam(
"clip_weights", clip_weights)
4266 return Operator(
"rmspropalex_update")
4272 .
SetParam(
"rescale_grad", rescale_grad)
4273 .
SetParam(
"clip_gradient", clip_gradient)
4274 .
SetParam(
"clip_weights", clip_weights)
4338 .
SetParam(
"rescale_grad", rescale_grad)
4339 .
SetParam(
"clip_gradient", clip_gradient)
4456 double constant_value = 0) {
4457 static const char *PadModeValues[] = {
4463 .
SetParam(
"mode", PadModeValues[
int(mode)])
4465 .
SetParam(
"constant_value", constant_value)
4484 return Operator(
"IdentityAttachKLSparseReg")
4485 .
SetParam(
"sparseness_target", sparseness_target)
4567 bool squeeze_axis = 0) {
4569 .
SetParam(
"num_outputs", num_outputs)
4571 .
SetParam(
"squeeze_axis", squeeze_axis)
4616 return Operator(
"softmax_cross_entropy")
4653 const std::vector<Symbol>& data,
4657 uint32_t num_filter = 0,
4659 uint64_t workspace = 512) {
4660 static const char *UpSamplingSampleTypeValues[] = {
4664 static const char *UpSamplingMultiInputModeValues[] = {
4670 .
SetParam(
"sample_type", UpSamplingSampleTypeValues[
int(sample_type)])
4672 .
SetParam(
"num_filter", num_filter)
4673 .
SetParam(
"multi_input_mode", UpSamplingMultiInputModeValues[
int(multi_input_mode)])
4676 .CreateSymbol(symbol_name);
4751 bool use_global_stats = 0,
4752 bool output_mean_var = 0,
4754 bool cudnn_off = 0) {
4759 .
SetParam(
"use_global_stats", use_global_stats)
4760 .
SetParam(
"output_mean_var", output_mean_var)
4766 .
SetInput(
"moving_mean", moving_mean)
4767 .
SetInput(
"moving_var", moving_var)
4863 uint32_t state_size,
4864 uint32_t num_layers,
4866 bool bidirectional = 0,
4868 bool state_outputs = 0) {
4869 static const char *RNNModeValues[] = {
4876 .
SetParam(
"state_size", state_size)
4877 .
SetParam(
"num_layers", num_layers)
4878 .
SetParam(
"mode", RNNModeValues[
int(mode)])
4879 .
SetParam(
"bidirectional", bidirectional)
4881 .
SetParam(
"state_outputs", state_outputs)
4883 .
SetInput(
"parameters", parameters)
4885 .
SetInput(
"state_cell", state_cell)
4949 uint32_t num_filter,
4953 uint32_t num_group = 1,
4954 uint64_t workspace = 1024,
4959 static const char *Convolution_v1CudnnTuneValues[] = {
4962 "limited_workspace",
4965 static const char *Convolution_v1LayoutValues[] = {
4974 .
SetParam(
"num_filter", num_filter)
4981 .
SetParam(
"cudnn_tune", Convolution_v1CudnnTuneValues[
int(cudnn_tune)])
4983 .
SetParam(
"layout", Convolution_v1LayoutValues[
int(layout)])
5011 const std::vector<Symbol>& data,
5015 bool center_crop = 0) {
5020 .
SetParam(
"center_crop", center_crop)
5022 .CreateSymbol(symbol_name);
5053 static const char *SpatialTransformerTransformTypeValues[] = {
5056 static const char *SpatialTransformerSamplerTypeValues[] = {
5059 return Operator(
"SpatialTransformer")
5060 .
SetParam(
"transform_type", SpatialTransformerTransformTypeValues[
int(transform_type)])
5061 .
SetParam(
"sampler_type", SpatialTransformerSamplerTypeValues[
int(sampler_type)])
5062 .
SetParam(
"target_shape", target_shape)
5119 uint32_t num_filter,
5125 uint32_t num_group = 1,
5126 uint64_t workspace = 512,
5131 static const char *DeconvolutionCudnnTuneValues[] = {
5134 "limited_workspace",
5137 static const char *DeconvolutionLayoutValues[] = {
5147 .
SetParam(
"num_filter", num_filter)
5152 .
SetParam(
"target_shape", target_shape)
5156 .
SetParam(
"cudnn_tune", DeconvolutionCudnnTuneValues[
int(cudnn_tune)])
5158 .
SetParam(
"layout", DeconvolutionLayoutValues[
int(layout)])
5273 bool multi_output = 0,
5274 bool use_ignore = 0,
5275 bool preserve_shape = 0,
5279 static const char *SoftmaxOutputNormalizationValues[] = {
5285 .
SetParam(
"grad_scale", grad_scale)
5286 .
SetParam(
"ignore_label", ignore_label)
5287 .
SetParam(
"multi_output", multi_output)
5288 .
SetParam(
"use_ignore", use_ignore)
5289 .
SetParam(
"preserve_shape", preserve_shape)
5290 .
SetParam(
"normalization", SoftmaxOutputNormalizationValues[
int(normalization)])
5292 .
SetParam(
"smooth_alpha", smooth_alpha)
5337 bool multi_output = 0,
5338 bool use_ignore = 0,
5339 bool preserve_shape = 0,
5343 static const char *SoftmaxNormalizationValues[] = {
5349 .
SetParam(
"grad_scale", grad_scale)
5350 .
SetParam(
"ignore_label", ignore_label)
5351 .
SetParam(
"multi_output", multi_output)
5352 .
SetParam(
"use_ignore", use_ignore)
5353 .
SetParam(
"preserve_shape", preserve_shape)
5354 .
SetParam(
"normalization", SoftmaxNormalizationValues[
int(normalization)])
5356 .
SetParam(
"smooth_alpha", smooth_alpha)
5439 bool use_sequence_length = 0) {
5441 .
SetParam(
"use_sequence_length", use_sequence_length)
5443 .
SetInput(
"sequence_length", sequence_length)
5504 bool use_sequence_length = 0) {
5506 .
SetParam(
"use_sequence_length", use_sequence_length)
5508 .
SetInput(
"sequence_length", sequence_length)
5563 uint32_t kernel_size = 1,
5564 uint32_t max_displacement = 1,
5565 uint32_t stride1 = 1,
5566 uint32_t stride2 = 1,
5567 uint32_t pad_size = 0,
5568 bool is_multiply = 1) {
5570 .
SetParam(
"kernel_size", kernel_size)
5571 .
SetParam(
"max_displacement", max_displacement)
5575 .
SetParam(
"is_multiply", is_multiply)
5600 mx_float regularization_coefficient = 1,
5601 bool use_linear = 0) {
5604 .
SetParam(
"regularization_coefficient", regularization_coefficient)
5605 .
SetParam(
"use_linear", use_linear)
5685 static const char *L2NormalizationModeValues[] = {
5692 .
SetParam(
"mode", L2NormalizationModeValues[
int(mode)])
5780 .
SetParam(
"num_hidden", num_hidden)
5869 bool use_sequence_length = 0,
5872 .
SetParam(
"use_sequence_length", use_sequence_length)
5875 .
SetInput(
"sequence_length", sequence_length)
5901 static const char *GridGeneratorTransformTypeValues[] = {
5906 .
SetParam(
"transform_type", GridGeneratorTransformTypeValues[
int(transform_type)])
5907 .
SetParam(
"target_shape", target_shape)
5982 bool global_pool = 0,
5986 static const char *Pooling_v1PoolTypeValues[] = {
5991 static const char *Pooling_v1PoolingConventionValues[] = {
5997 .
SetParam(
"pool_type", Pooling_v1PoolTypeValues[
int(pool_type)])
5998 .
SetParam(
"global_pool", global_pool)
5999 .
SetParam(
"pooling_convention", Pooling_v1PoolingConventionValues[
int(pooling_convention)])
6126 uint32_t num_filter,
6130 uint32_t num_group = 1,
6131 uint64_t workspace = 1024,
6136 static const char *ConvolutionCudnnTuneValues[] = {
6139 "limited_workspace",
6142 static const char *ConvolutionLayoutValues[] = {
6152 .
SetParam(
"num_filter", num_filter)
6159 .
SetParam(
"cudnn_tune", ConvolutionCudnnTuneValues[
int(cudnn_tune)])
6161 .
SetParam(
"layout", ConvolutionLayoutValues[
int(layout)])
6329 bool global_pool = 0,
6334 static const char *PoolingPoolTypeValues[] = {
6339 static const char *PoolingPoolingConventionValues[] = {
6345 .
SetParam(
"pool_type", PoolingPoolTypeValues[
int(pool_type)])
6346 .
SetParam(
"global_pool", global_pool)
6348 .
SetParam(
"pooling_convention", PoolingPoolingConventionValues[
int(pooling_convention)])
6405 static const char *DropoutModeValues[] = {
6411 .
SetParam(
"mode", DropoutModeValues[
int(mode)])
6446 static const char *ActivationActTypeValues[] = {
6453 .
SetParam(
"act_type", ActivationActTypeValues[
int(act_type)])
6520 .
SetParam(
"pooled_size", pooled_size)
6521 .
SetParam(
"spatial_scale", spatial_scale)
6555 return Operator(
"LinearRegressionOutput")
6556 .
SetParam(
"grad_scale", grad_scale)
6591 return Operator(
"MAERegressionOutput")
6592 .
SetParam(
"grad_scale", grad_scale)
6627 return Operator(
"LogisticRegressionOutput")
6628 .
SetParam(
"grad_scale", grad_scale)
6678 static const char *SoftmaxActivationModeValues[] = {
6682 return Operator(
"SoftmaxActivation")
6683 .
SetParam(
"mode", SoftmaxActivationModeValues[
int(mode)])
6737 static const char *MakeLossNormalizationValues[] = {
6743 .
SetParam(
"grad_scale", grad_scale)
6744 .
SetParam(
"valid_thresh", valid_thresh)
6745 .
SetParam(
"normalization", MakeLossNormalizationValues[
int(normalization)])
6761 return Operator(
"choose_element_0index")
6780 return Operator(
"fill_element_0index")
6906 return Operator(
"broadcast_maximum")
6937 return Operator(
"broadcast_minimum")
7057 bool keep_highest = 0) {
7061 .
SetParam(
"target_shape", target_shape)
7062 .
SetParam(
"keep_highest", keep_highest)
7246 dmlc::optional<int> end) {
7333 dmlc::optional<int> axis = dmlc::optional<int>()) {
7716 dmlc::optional<int> axis = dmlc::optional<int>(),
7717 bool keepdims = 0) {
7756 dmlc::optional<int> axis = dmlc::optional<int>(),
7757 bool keepdims = 0) {
7838 dmlc::optional<int> axis = dmlc::optional<int>(),
7839 bool keepdims = 0) {
7888 bool transpose_a = 0,
7889 bool transpose_b = 0) {
7891 .
SetParam(
"transpose_a", transpose_a)
7892 .
SetParam(
"transpose_b", transpose_b)
7921 bool transpose_a = 0,
7922 bool transpose_b = 0) {
7924 .
SetParam(
"transpose_a", transpose_a)
7925 .
SetParam(
"transpose_b", transpose_b)
8080 static const char *CastDtypeValues[] = {
8088 .
SetParam(
"dtype", CastDtypeValues[
int(dtype)])
9037 dmlc::optional<int> axis = dmlc::optional<int>(-1),
9040 bool is_ascend = 0) {
9041 static const char *TopkRetTypValues[] = {
9050 .
SetParam(
"ret_typ", TopkRetTypValues[
int(ret_typ)])
9088 dmlc::optional<int> axis = dmlc::optional<int>(-1),
9089 bool is_ascend = 1) {
9127 dmlc::optional<int> axis = dmlc::optional<int>(-1),
9128 bool is_ascend = 1) {
9275 static const char *EmbeddingDtypeValues[] = {
9284 .
SetParam(
"output_dim", output_dim)
9285 .
SetParam(
"dtype", EmbeddingDtypeValues[
int(dtype)])
9333 static const char *TakeModeValues[] = {
9340 .
SetParam(
"mode", TakeModeValues[
int(mode)])
9426 double on_value = 1,
9427 double off_value = 0,
9429 static const char *One_hotDtypeValues[] = {
9440 .
SetParam(
"dtype", One_hotDtypeValues[
int(dtype)])
9571 return Operator(
"broadcast_not_equal")
9600 return Operator(
"broadcast_greater")
9629 return Operator(
"broadcast_greater_equal")
9658 return Operator(
"broadcast_lesser")
9687 return Operator(
"broadcast_lesser_equal")
9794 static const char *Cast_storageStypeValues[] = {
9800 .
SetParam(
"stype", Cast_storageStypeValues[
int(stype)])
10138 const std::string& op_type) {
10173 uint32_t dim2 = 0) {
10211 static const char *LeakyReLUActTypeValues[] = {
10218 .
SetParam(
"act_type", LeakyReLUActTypeValues[
int(act_type)])
10220 .
SetParam(
"lower_bound", lower_bound)
10221 .
SetParam(
"upper_bound", upper_bound)
10285 bool fix_gamma = 1,
10286 bool use_global_stats = 0,
10287 bool output_mean_var = 0) {
10292 .
SetParam(
"use_global_stats", use_global_stats)
10293 .
SetParam(
"output_mean_var", output_mean_var)
10385 .
SetParam(
"rescale_grad", rescale_grad)
10386 .
SetParam(
"clip_gradient", clip_gradient)
10445 .
SetParam(
"rescale_grad", rescale_grad)
10446 .
SetParam(
"clip_gradient", clip_gradient)
10476 .
SetParam(
"rescale_grad", rescale_grad)
10477 .
SetParam(
"clip_gradient", clip_gradient)
10508 return Operator(
"mp_sgd_mom_update")
10512 .
SetParam(
"rescale_grad", rescale_grad)
10513 .
SetParam(
"clip_gradient", clip_gradient)
10584 .
SetParam(
"rescale_grad", rescale_grad)
10585 .
SetParam(
"clip_gradient", clip_gradient)
10660 .
SetParam(
"rescale_grad", rescale_grad)
10661 .
SetParam(
"clip_gradient", clip_gradient)
10662 .
SetParam(
"clip_weights", clip_weights)
10726 return Operator(
"rmspropalex_update")
10732 .
SetParam(
"rescale_grad", rescale_grad)
10733 .
SetParam(
"clip_gradient", clip_gradient)
10734 .
SetParam(
"clip_weights", clip_weights)
10796 .
SetParam(
"rescale_grad", rescale_grad)
10797 .
SetParam(
"clip_gradient", clip_gradient)
10903 double constant_value = 0) {
10904 static const char *PadModeValues[] = {
10910 .
SetParam(
"mode", PadModeValues[
int(mode)])
10912 .
SetParam(
"constant_value", constant_value)
10929 return Operator(
"IdentityAttachKLSparseReg")
10930 .
SetParam(
"sparseness_target", sparseness_target)
11010 bool squeeze_axis = 0) {
11012 .
SetParam(
"num_outputs", num_outputs)
11014 .
SetParam(
"squeeze_axis", squeeze_axis)
11057 return Operator(
"softmax_cross_entropy")
11081 uint32_t num_filter = 0,
11083 uint64_t workspace = 512) {
11084 static const char *UpSamplingSampleTypeValues[] = {
11088 static const char *UpSamplingMultiInputModeValues[] = {
11094 .
SetParam(
"sample_type", UpSamplingSampleTypeValues[
int(sample_type)])
11096 .
SetParam(
"num_filter", num_filter)
11097 .
SetParam(
"multi_input_mode", UpSamplingMultiInputModeValues[
int(multi_input_mode)])
11170 double eps = 0.001,
11172 bool fix_gamma = 1,
11173 bool use_global_stats = 0,
11174 bool output_mean_var = 0,
11176 bool cudnn_off = 0) {
11181 .
SetParam(
"use_global_stats", use_global_stats)
11182 .
SetParam(
"output_mean_var", output_mean_var)
11188 .
SetInput(
"moving_mean", moving_mean)
11189 .
SetInput(
"moving_var", moving_var)
11272 uint32_t state_size,
11273 uint32_t num_layers,
11275 bool bidirectional = 0,
11277 bool state_outputs = 0) {
11278 static const char *RNNModeValues[] = {
11285 .
SetParam(
"state_size", state_size)
11286 .
SetParam(
"num_layers", num_layers)
11287 .
SetParam(
"mode", RNNModeValues[
int(mode)])
11288 .
SetParam(
"bidirectional", bidirectional)
11290 .
SetParam(
"state_outputs", state_outputs)
11292 .
SetInput(
"parameters", parameters)
11294 .
SetInput(
"state_cell", state_cell)
11329 uint32_t num_filter,
11333 uint32_t num_group = 1,
11334 uint64_t workspace = 1024,
11337 bool cudnn_off = 0,
11339 static const char *Convolution_v1CudnnTuneValues[] = {
11342 "limited_workspace",
11345 static const char *Convolution_v1LayoutValues[] = {
11354 .
SetParam(
"num_filter", num_filter)
11361 .
SetParam(
"cudnn_tune", Convolution_v1CudnnTuneValues[
int(cudnn_tune)])
11363 .
SetParam(
"layout", Convolution_v1LayoutValues[
int(layout)])
11393 bool center_crop = 0) {
11398 .
SetParam(
"center_crop", center_crop)
11417 static const char *SpatialTransformerTransformTypeValues[] = {
11420 static const char *SpatialTransformerSamplerTypeValues[] = {
11423 return Operator(
"SpatialTransformer")
11424 .
SetParam(
"transform_type", SpatialTransformerTransformTypeValues[
int(transform_type)])
11425 .
SetParam(
"sampler_type", SpatialTransformerSamplerTypeValues[
int(sampler_type)])
11426 .
SetParam(
"target_shape", target_shape)
11461 uint32_t num_filter,
11467 uint32_t num_group = 1,
11468 uint64_t workspace = 512,
11471 bool cudnn_off = 0,
11473 static const char *DeconvolutionCudnnTuneValues[] = {
11476 "limited_workspace",
11479 static const char *DeconvolutionLayoutValues[] = {
11489 .
SetParam(
"num_filter", num_filter)
11494 .
SetParam(
"target_shape", target_shape)
11498 .
SetParam(
"cudnn_tune", DeconvolutionCudnnTuneValues[
int(cudnn_tune)])
11500 .
SetParam(
"layout", DeconvolutionLayoutValues[
int(layout)])
11605 bool multi_output = 0,
11606 bool use_ignore = 0,
11607 bool preserve_shape = 0,
11611 static const char *SoftmaxOutputNormalizationValues[] = {
11617 .
SetParam(
"grad_scale", grad_scale)
11618 .
SetParam(
"ignore_label", ignore_label)
11619 .
SetParam(
"multi_output", multi_output)
11620 .
SetParam(
"use_ignore", use_ignore)
11621 .
SetParam(
"preserve_shape", preserve_shape)
11622 .
SetParam(
"normalization", SoftmaxOutputNormalizationValues[
int(normalization)])
11624 .
SetParam(
"smooth_alpha", smooth_alpha)
11659 bool multi_output = 0,
11660 bool use_ignore = 0,
11661 bool preserve_shape = 0,
11665 static const char *SoftmaxNormalizationValues[] = {
11671 .
SetParam(
"grad_scale", grad_scale)
11672 .
SetParam(
"ignore_label", ignore_label)
11673 .
SetParam(
"multi_output", multi_output)
11674 .
SetParam(
"use_ignore", use_ignore)
11675 .
SetParam(
"preserve_shape", preserve_shape)
11676 .
SetParam(
"normalization", SoftmaxNormalizationValues[
int(normalization)])
11678 .
SetParam(
"smooth_alpha", smooth_alpha)
11759 bool use_sequence_length = 0) {
11760 return Operator(
"SequenceReverse")
11761 .
SetParam(
"use_sequence_length", use_sequence_length)
11763 .
SetInput(
"sequence_length", sequence_length)
11822 bool use_sequence_length = 0) {
11824 .
SetParam(
"use_sequence_length", use_sequence_length)
11826 .
SetInput(
"sequence_length", sequence_length)
11879 uint32_t kernel_size = 1,
11880 uint32_t max_displacement = 1,
11881 uint32_t stride1 = 1,
11882 uint32_t stride2 = 1,
11883 uint32_t pad_size = 0,
11884 bool is_multiply = 1) {
11886 .
SetParam(
"kernel_size", kernel_size)
11887 .
SetParam(
"max_displacement", max_displacement)
11891 .
SetParam(
"is_multiply", is_multiply)
11914 mx_float regularization_coefficient = 1,
11915 bool use_linear = 0) {
11918 .
SetParam(
"regularization_coefficient", regularization_coefficient)
11919 .
SetParam(
"use_linear", use_linear)
11989 static const char *L2NormalizationModeValues[] = {
11994 return Operator(
"L2Normalization")
11996 .
SetParam(
"mode", L2NormalizationModeValues[
int(mode)])
12078 bool flatten = 1) {
12080 .
SetParam(
"num_hidden", num_hidden)
12167 bool use_sequence_length = 0,
12170 .
SetParam(
"use_sequence_length", use_sequence_length)
12173 .
SetInput(
"sequence_length", sequence_length)
12189 static const char *GridGeneratorTransformTypeValues[] = {
12194 .
SetParam(
"transform_type", GridGeneratorTransformTypeValues[
int(transform_type)])
12195 .
SetParam(
"target_shape", target_shape)
12253 bool global_pool = 0,
12257 static const char *Pooling_v1PoolTypeValues[] = {
12262 static const char *Pooling_v1PoolingConventionValues[] = {
12268 .
SetParam(
"pool_type", Pooling_v1PoolTypeValues[
int(pool_type)])
12269 .
SetParam(
"global_pool", global_pool)
12270 .
SetParam(
"pooling_convention", Pooling_v1PoolingConventionValues[
int(pooling_convention)])
12374 uint32_t num_filter,
12378 uint32_t num_group = 1,
12379 uint64_t workspace = 1024,
12382 bool cudnn_off = 0,
12384 static const char *ConvolutionCudnnTuneValues[] = {
12387 "limited_workspace",
12390 static const char *ConvolutionLayoutValues[] = {
12400 .
SetParam(
"num_filter", num_filter)
12407 .
SetParam(
"cudnn_tune", ConvolutionCudnnTuneValues[
int(cudnn_tune)])
12409 .
SetParam(
"layout", ConvolutionLayoutValues[
int(layout)])
12497 return Operator(
"BilinearSampler")
12558 bool global_pool = 0,
12559 bool cudnn_off = 0,
12563 static const char *PoolingPoolTypeValues[] = {
12568 static const char *PoolingPoolingConventionValues[] = {
12574 .
SetParam(
"pool_type", PoolingPoolTypeValues[
int(pool_type)])
12575 .
SetParam(
"global_pool", global_pool)
12577 .
SetParam(
"pooling_convention", PoolingPoolingConventionValues[
int(pooling_convention)])
12625 static const char *DropoutModeValues[] = {
12631 .
SetParam(
"mode", DropoutModeValues[
int(mode)])
12655 static const char *ActivationActTypeValues[] = {
12662 .
SetParam(
"act_type", ActivationActTypeValues[
int(act_type)])
12727 .
SetParam(
"pooled_size", pooled_size)
12728 .
SetParam(
"spatial_scale", spatial_scale)
12760 return Operator(
"LinearRegressionOutput")
12761 .
SetParam(
"grad_scale", grad_scale)
12794 return Operator(
"MAERegressionOutput")
12795 .
SetParam(
"grad_scale", grad_scale)
12828 return Operator(
"LogisticRegressionOutput")
12829 .
SetParam(
"grad_scale", grad_scale)
12869 static const char *SoftmaxActivationModeValues[] = {
12873 return Operator(
"SoftmaxActivation")
12874 .
SetParam(
"mode", SoftmaxActivationModeValues[
int(mode)])
12916 static const char *MakeLossNormalizationValues[] = {
12922 .
SetParam(
"grad_scale", grad_scale)
12923 .
SetParam(
"valid_thresh", valid_thresh)
12924 .
SetParam(
"normalization", MakeLossNormalizationValues[
int(normalization)])
12938 return Operator(
"choose_element_0index")
12955 return Operator(
"fill_element_0index")
12964 #endif // MXNET_CPP_OP_H_
Symbol fix(const std::string &symbol_name, Symbol data)
Definition: op.h:1669
Symbol broadcast_mul(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:872
Symbol arcsin(const std::string &symbol_name, Symbol data)
Definition: op.h:3383
Symbol arccosh(const std::string &symbol_name, Symbol data)
Definition: op.h:3600
Symbol arctan(const std::string &symbol_name, Symbol data)
Definition: op.h:3435
Symbol SwapAxis(const std::string &symbol_name, Symbol data, uint32_t dim1=0, uint32_t dim2=0)
Definition: op.h:3681
Symbol cast_storage(const std::string &symbol_name, Symbol data, Cast_storageStype stype)
Definition: op.h:3270
Symbol add_n(const std::string &symbol_name, const std::vector< Symbol > &args)
Definition: op.h:963
Symbol log1p(const std::string &symbol_name, Symbol data)
Definition: op.h:1916
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=0, Convolution_v1CudnnTune cudnn_tune=Convolution_v1CudnnTune::kNone, bool cudnn_off=0, Convolution_v1Layout layout=Convolution_v1Layout::kNone)
Definition: op.h:4944
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=1, bool use_global_stats=0, bool output_mean_var=0)
Definition: op.h:3803
SoftmaxActivationMode
Definition: op.h:6637
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:3997
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:5047
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=0, mx_float p=0, bool state_outputs=0)
Definition: op.h:4858
Symbol exp(const std::string &symbol_name, Symbol data)
Definition: op.h:1828
Symbol transpose(const std::string &symbol_name, Symbol data, Shape axes=Shape())
Definition: op.h:389
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=1)
Definition: op.h:5560
Symbol clip(const std::string &symbol_name, Symbol data, mx_float a_min, mx_float a_max)
Definition: op.h:548
Symbol elemwise_div(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:2622
Symbol ROIPooling(const std::string &symbol_name, Symbol data, Symbol rois, Shape pooled_size, mx_float spatial_scale)
Definition: op.h:6514
Symbol broadcast_div(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:903
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=1, bool use_global_stats=0, bool output_mean_var=0, int axis=1, bool cudnn_off=0)
Definition: op.h:4742
Convolution_v1Layout
Definition: op.h:4908
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:4032
Symbol broadcast_lesser(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:3118
Symbol fill_element_0index(const std::string &symbol_name, Symbol lhs, Symbol mhs, Symbol rhs)
Definition: op.h:6776
Symbol SliceChannel(const std::string &symbol_name, Symbol data, int num_outputs, int axis=1, bool squeeze_axis=0)
Definition: op.h:4563
Symbol broadcast_not_equal(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:3025
TakeMode
Definition: op.h:2718
Symbol Embedding(const std::string &symbol_name, Symbol data, Symbol weight, int input_dim, int output_dim, EmbeddingDtype dtype=EmbeddingDtype::kFloat32)
Definition: op.h:2692
Symbol sort(const std::string &symbol_name, Symbol data, dmlc::optional< int > axis=dmlc::optional< int >(-1), bool is_ascend=1)
Definition: op.h:2487
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:4322
Symbol reciprocal(const std::string &symbol_name, Symbol data)
Definition: op.h:1449
TopkRetTyp
Definition: op.h:2386
namespace of mxnet
Definition: base.h:126
Symbol reshape_like(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:1358
Pooling_v1PoolingConvention
Definition: op.h:5922
Symbol broadcast_lesser_equal(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:3149
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:4821
Symbol sign(const std::string &symbol_name, Symbol data)
Definition: op.h:1501
Symbol argmax(const std::string &symbol_name, Symbol data, dmlc::optional< int > axis=dmlc::optional< int >(), bool keepdims=0)
Definition: op.h:1001
GridGeneratorTransformType
Definition: op.h:5882
Symbol argsort(const std::string &symbol_name, Symbol data, dmlc::optional< int > axis=dmlc::optional< int >(-1), bool is_ascend=1)
Definition: op.h:2528
Cast_storageStype
Definition: op.h:3221
dynamic shape class that can hold shape of arbirary dimension
Definition: shape.h:42
Symbol ones_like(const std::string &symbol_name, Symbol data)
Definition: op.h:771
RNNMode
Definition: op.h:4836
Symbol SequenceMask(const std::string &symbol_name, Symbol data, Symbol sequence_length, bool use_sequence_length=0, mx_float value=0)
Definition: op.h:5866
PadMode
Definition: op.h:4350
Symbol smooth_l1(const std::string &symbol_name, Symbol data, mx_float scalar)
Definition: op.h:3210
Symbol where(const std::string &symbol_name, Symbol condition, Symbol x, Symbol y)
Definition: op.h:3174
Symbol Dropout(const std::string &symbol_name, Symbol data, mx_float p=0.5, DropoutMode mode=DropoutMode::kTraining)
Definition: op.h:6401
Symbol expm1(const std::string &symbol_name, Symbol data)
Definition: op.h:1940
Symbol elemwise_add(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:2553
PoolingPoolType
Definition: op.h:6259
Symbol relu(const std::string &symbol_name, Symbol data)
Definition: op.h:1246
Symbol reverse(const std::string &symbol_name, Symbol data, Shape axis)
Definition: op.h:681
Symbol rsqrt(const std::string &symbol_name, Symbol data)
Definition: op.h:1754
SpatialTransformerTransformType
Definition: op.h:5027
ActivationActType
Definition: op.h:6418
Symbol sqrt(const std::string &symbol_name, Symbol data)
Definition: op.h:1728
Symbol rint(const std::string &symbol_name, Symbol data)
Definition: op.h:1557
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:4479
Symbol sinh(const std::string &symbol_name, Symbol data)
Definition: op.h:3510
Symbol scatter_nd(const std::string &symbol_name, Symbol data, Symbol indices, Shape shape)
Definition: op.h:2961
Symbol broadcast_greater_equal(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:3087
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:5724
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:3962
Symbol arcsinh(const std::string &symbol_name, Symbol data)
Definition: op.h:3580
Symbol max(const std::string &symbol_name, Symbol data, Shape axis=Shape(), bool keepdims=0, bool exclude=0)
Definition: op.h:2230
Symbol MAERegressionOutput(const std::string &symbol_name, Symbol data, Symbol label, mx_float grad_scale=1)
Definition: op.h:6587
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:3903
PoolingPoolingConvention
Definition: op.h:6267
Symbol Reshape(const std::string &symbol_name, Symbol data, Shape shape=Shape(), bool reverse=0, Shape target_shape=Shape(), bool keep_highest=0)
Definition: op.h:301
Symbol broadcast_minimum(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:179
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=1, DeconvolutionCudnnTune cudnn_tune=DeconvolutionCudnnTune::kNone, bool cudnn_off=0, DeconvolutionLayout layout=DeconvolutionLayout::kNone)
Definition: op.h:5114
Symbol broadcast_maximum(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:146
Symbol Cast(const std::string &symbol_name, Symbol data, CastDtype dtype)
Definition: op.h:1396
DeconvolutionLayout
Definition: op.h:5079
Symbol trunc(const std::string &symbol_name, Symbol data)
Definition: op.h:1642
Pooling_v1PoolType
Definition: op.h:5914
Symbol round(const std::string &symbol_name, Symbol data)
Definition: op.h:1527
Symbol log_softmax(const std::string &symbol_name, Symbol data, int axis=-1)
Definition: op.h:82
Symbol cos(const std::string &symbol_name, Symbol data)
Definition: op.h:3328
Symbol L2Normalization(const std::string &symbol_name, Symbol data, mx_float eps=1e-10, L2NormalizationMode mode=L2NormalizationMode::kInstance)
Definition: op.h:5681
Symbol zeros_like(const std::string &symbol_name, Symbol data)
Definition: op.h:747
EmbeddingDtype
Definition: op.h:2633
Symbol broadcast_mod(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:934
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 cbrt(const std::string &symbol_name, Symbol data)
Definition: op.h:1778
Symbol sum(const std::string &symbol_name, Symbol data, Shape axis=Shape(), bool keepdims=0, bool exclude=0)
Definition: op.h:2041
operator helper functions
Symbol tanh(const std::string &symbol_name, Symbol data)
Definition: op.h:3557
Symbol broadcast_to(const std::string &symbol_name, Symbol data, Shape shape=Shape())
Definition: op.h:2348
Symbol elemwise_sub(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:2576
DropoutMode
Definition: op.h:6357
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=0)
Definition: op.h:2434
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:6732
Symbol log(const std::string &symbol_name, Symbol data)
Definition: op.h:1849
Symbol Pooling_v1(const std::string &symbol_name, Symbol data, Shape kernel, Pooling_v1PoolType pool_type, bool global_pool=0, Pooling_v1PoolingConvention pooling_convention=Pooling_v1PoolingConvention::kValid, Shape stride=Shape(), Shape pad=Shape())
Definition: op.h:5978
Symbol SequenceLast(const std::string &symbol_name, Symbol data, Symbol sequence_length, bool use_sequence_length=0)
Definition: op.h:5501
Symbol sigmoid(const std::string &symbol_name, Symbol data)
Definition: op.h:1268
CastDtype
Definition: op.h:1369
ConvolutionLayout
Definition: op.h:6018
Symbol LogisticRegressionOutput(const std::string &symbol_name, Symbol data, Symbol label, mx_float grad_scale=1)
Definition: op.h:6623
Symbol gamma(const std::string &symbol_name, Symbol data)
Definition: op.h:1958
Symbol sin(const std::string &symbol_name, Symbol data)
Definition: op.h:3304
Symbol SVMOutput(const std::string &symbol_name, Symbol data, Symbol label, mx_float margin=1, mx_float regularization_coefficient=1, bool use_linear=0)
Definition: op.h:5596
UpSamplingMultiInputMode
Definition: op.h:4632
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:2602
SpatialTransformerSamplerType
Definition: op.h:5033
Symbol nansum(const std::string &symbol_name, Symbol data, Shape axis=Shape(), bool keepdims=0, bool exclude=0)
Definition: op.h:2154
Symbol Pad(const std::string &symbol_name, Symbol data, PadMode mode, Shape pad_width, double constant_value=0)
Definition: op.h:4452
Symbol square(const std::string &symbol_name, Symbol data)
Definition: op.h:1699
One_hotDtype
Definition: op.h:2820
UpSamplingSampleType
Definition: op.h:4624
Symbol norm(const std::string &symbol_name, Symbol data)
Definition: op.h:2374
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:4182
Symbol LeakyReLU(const std::string &symbol_name, Symbol data, 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:3727
Symbol make_loss(const std::string &symbol_name, Symbol data)
Definition: op.h:1344
Symbol argmin(const std::string &symbol_name, Symbol data, dmlc::optional< int > axis=dmlc::optional< int >(), bool keepdims=0)
Definition: op.h:1043
Symbol SoftmaxActivation(const std::string &symbol_name, Symbol data, SoftmaxActivationMode mode=SoftmaxActivationMode::kInstance)
Definition: op.h:6675
Symbol mean(const std::string &symbol_name, Symbol data, Shape axis=Shape(), bool keepdims=0, bool exclude=0)
Definition: op.h:2078
Symbol slice(const std::string &symbol_name, Symbol data, Shape begin, Shape end)
Definition: op.h:458
Symbol broadcast_equal(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:2994
Symbol batch_dot(const std::string &symbol_name, Symbol lhs, Symbol rhs, bool transpose_a=0, bool transpose_b=0)
Definition: op.h:1215
Symbol broadcast_add(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:805
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:4102
Operator & SetParam(const std::string &name, const T &value)
set config parameters
Definition: operator.h:57
Symbol tan(const std::string &symbol_name, Symbol data)
Definition: op.h:3355
Convolution_v1CudnnTune
Definition: op.h:4898
Symbol repeat(const std::string &symbol_name, Symbol data, int repeats, dmlc::optional< int > axis=dmlc::optional< int >())
Definition: op.h:593
Symbol slice_axis(const std::string &symbol_name, Symbol data, int axis, int begin, dmlc::optional< int > end)
Definition: op.h:501
Symbol expand_dims(const std::string &symbol_name, Symbol data, int axis)
Definition: op.h:413
Symbol arctanh(const std::string &symbol_name, Symbol data)
Definition: op.h:3623
Symbol softmax_cross_entropy(const std::string &symbol_name, Symbol data, Symbol label)
Definition: op.h:4613
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=0, ConvolutionCudnnTune cudnn_tune=ConvolutionCudnnTune::kNone, bool cudnn_off=0, ConvolutionLayout layout=ConvolutionLayout::kNone)
Definition: op.h:6121
Symbol broadcast_axis(const std::string &symbol_name, Symbol data, Shape axis=Shape(), Shape size=Shape())
Definition: op.h:2309
Symbol dot(const std::string &symbol_name, Symbol lhs, Symbol rhs, bool transpose_a=0, bool transpose_b=0)
Definition: op.h:1180
Symbol abs(const std::string &symbol_name, Symbol data)
Definition: op.h:1475
Symbol cosh(const std::string &symbol_name, Symbol data)
Definition: op.h:3532
Symbol gather_nd(const std::string &symbol_name, Symbol data, Symbol indices)
Definition: op.h:2922
Symbol FullyConnected(const std::string &symbol_name, Symbol data, Symbol weight, Symbol bias, int num_hidden, bool no_bias=0, bool flatten=1)
Definition: op.h:5772
Symbol BilinearSampler(const std::string &symbol_name, Symbol data, Symbol grid)
Definition: op.h:6248
Symbol Custom(const std::string &symbol_name, const std::vector< Symbol > &data, const std::string &op_type)
Definition: op.h:3645
Symbol SequenceReverse(const std::string &symbol_name, Symbol data, Symbol sequence_length, bool use_sequence_length=0)
Definition: op.h:5436
Symbol broadcast_hypot(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:218
Symbol SoftmaxOutput(const std::string &symbol_name, Symbol data, Symbol label, mx_float grad_scale=1, mx_float ignore_label=-1, bool multi_output=0, bool use_ignore=0, bool preserve_shape=0, SoftmaxOutputNormalization normalization=SoftmaxOutputNormalization::kNull, bool out_grad=0, mx_float smooth_alpha=0)
Definition: op.h:5268
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:4652
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 radians(const std::string &symbol_name, Symbol data)
Definition: op.h:3485
Symbol Concat(const std::string &symbol_name, const std::vector< Symbol > &data, int num_args, int dim=1)
Definition: op.h:3865
L2NormalizationMode
Definition: op.h:5613
Symbol stack(const std::string &symbol_name, const std::vector< Symbol > &data, int num_args, int axis=0)
Definition: op.h:713
Symbol min(const std::string &symbol_name, Symbol data, Shape axis=Shape(), bool keepdims=0, bool exclude=0)
Definition: op.h:2267
Symbol floor(const std::string &symbol_name, Symbol data)
Definition: op.h:1613
Symbol broadcast_sub(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:841
Symbol take(const std::string &symbol_name, Symbol a, Symbol indices, int axis=0, TakeMode mode=TakeMode::kClip)
Definition: op.h:2763
Symbol ceil(const std::string &symbol_name, Symbol data)
Definition: op.h:1585
Symbol gammaln(const std::string &symbol_name, Symbol data)
Definition: op.h:1976
Symbol tile(const std::string &symbol_name, Symbol data, Shape reps)
Definition: op.h:649
Symbol Softmax(const std::string &symbol_name, Symbol data, mx_float grad_scale=1, mx_float ignore_label=-1, bool multi_output=0, bool use_ignore=0, bool preserve_shape=0, SoftmaxNormalization normalization=SoftmaxNormalization::kNull, bool out_grad=0, mx_float smooth_alpha=0)
Definition: op.h:5333
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:4252
SoftmaxNormalization
Definition: op.h:5300
Symbol softmax(const std::string &symbol_name, Symbol data, int axis=-1)
Definition: op.h:51
DeconvolutionCudnnTune
Definition: op.h:5070
ConvolutionCudnnTune
Definition: op.h:6008
Symbol broadcast_greater(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:3056
Symbol rcbrt(const std::string &symbol_name, Symbol data)
Definition: op.h:1802
Symbol prod(const std::string &symbol_name, Symbol data, Shape axis=Shape(), bool keepdims=0, bool exclude=0)
Definition: op.h:2115
Symbol Pooling(const std::string &symbol_name, Symbol data, Shape kernel, PoolingPoolType pool_type, bool global_pool=0, bool cudnn_off=0, PoolingPoolingConvention pooling_convention=PoolingPoolingConvention::kValid, Shape stride=Shape(), Shape pad=Shape())
Definition: op.h:6325
Symbol broadcast_power(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:113
Symbol nanprod(const std::string &symbol_name, Symbol data, Shape axis=Shape(), bool keepdims=0, bool exclude=0)
Definition: op.h:2193
SoftmaxOutputNormalization
Definition: op.h:5167
Symbol Flatten(const std::string &symbol_name, Symbol data)
Definition: op.h:346
Symbol BlockGrad(const std::string &symbol_name, Symbol data)
Definition: op.h:1308
LeakyReLUActType
Definition: op.h:3694
Symbol arccos(const std::string &symbol_name, Symbol data)
Definition: op.h:3408
Symbol argmax_channel(const std::string &symbol_name, Symbol data)
Definition: op.h:1076
Symbol batch_take(const std::string &symbol_name, Symbol a, Symbol indices)
Definition: op.h:2809
Symbol LinearRegressionOutput(const std::string &symbol_name, Symbol data, Symbol label, mx_float grad_scale=1)
Definition: op.h:6551
Symbol choose_element_0index(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:6758
Symbol degrees(const std::string &symbol_name, Symbol data)
Definition: op.h:3460
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:2872
Symbol pick(const std::string &symbol_name, Symbol data, Symbol index, dmlc::optional< int > axis=dmlc::optional< int >(), bool keepdims=0)
Definition: op.h:1128
Symbol negative(const std::string &symbol_name, Symbol data)
Definition: op.h:1426
Symbol GridGenerator(const std::string &symbol_name, Symbol data, GridGeneratorTransformType transform_type, Shape target_shape=Shape(0, 0))
Definition: op.h:5897
Operator interface.
Definition: operator.h:42
Symbol interface.
Definition: symbol.h:71
MakeLossNormalization
Definition: op.h:6692
Symbol log10(const std::string &symbol_name, Symbol data)
Definition: op.h:1870
Symbol log2(const std::string &symbol_name, Symbol data)
Definition: op.h:1891