8 #ifndef MXNET_CPP_OP_H_ 9 #define MXNET_CPP_OP_H_ 17 #include "dmlc/optional.h" 113 return Operator(
"broadcast_minimum")
237 bool keep_highest =
false) {
241 .
SetParam(
"target_shape", target_shape)
242 .
SetParam(
"keep_highest", keep_highest)
457 dmlc::optional<int> end) {
548 dmlc::optional<int> axis = dmlc::optional<int>()) {
666 const std::vector<Symbol>& data,
673 .CreateSymbol(symbol_name);
916 const std::vector<Symbol>& args) {
919 .CreateSymbol(symbol_name);
955 dmlc::optional<int> axis = dmlc::optional<int>(),
956 bool keepdims =
false) {
997 dmlc::optional<int> axis = dmlc::optional<int>(),
998 bool keepdims =
false) {
1083 dmlc::optional<int> axis = dmlc::optional<int>(),
1084 bool keepdims =
false) {
1135 bool transpose_a =
false,
1136 bool transpose_b =
false) {
1138 .
SetParam(
"transpose_a", transpose_a)
1139 .
SetParam(
"transpose_b", transpose_b)
1170 bool transpose_a =
false,
1171 bool transpose_b =
false) {
1173 .
SetParam(
"transpose_a", transpose_a)
1174 .
SetParam(
"transpose_b", transpose_b)
1351 static const char *CastDtypeValues[] = {
1359 .
SetParam(
"dtype", CastDtypeValues[
int(dtype)])
1996 bool keepdims =
false,
1997 bool exclude =
false) {
2033 bool keepdims =
false,
2034 bool exclude =
false) {
2070 bool keepdims =
false,
2071 bool exclude =
false) {
2109 bool keepdims =
false,
2110 bool exclude =
false) {
2148 bool keepdims =
false,
2149 bool exclude =
false) {
2185 bool keepdims =
false,
2186 bool exclude =
false) {
2222 bool keepdims =
false,
2223 bool exclude =
false) {
2388 dmlc::optional<int> axis = dmlc::optional<int>(-1),
2391 bool is_ascend =
false) {
2392 static const char *TopkRetTypValues[] = {
2401 .
SetParam(
"ret_typ", TopkRetTypValues[
int(ret_typ)])
2441 dmlc::optional<int> axis = dmlc::optional<int>(-1),
2442 bool is_ascend =
true) {
2482 dmlc::optional<int> axis = dmlc::optional<int>(-1),
2483 bool is_ascend =
true) {
2653 static const char *EmbeddingDtypeValues[] = {
2662 .
SetParam(
"output_dim", output_dim)
2663 .
SetParam(
"dtype", EmbeddingDtypeValues[
int(dtype)])
2723 static const char *TakeModeValues[] = {
2730 .
SetParam(
"mode", TakeModeValues[
int(mode)])
2830 double on_value = 1,
2831 double off_value = 0,
2833 static const char *One_hotDtypeValues[] = {
2844 .
SetParam(
"dtype", One_hotDtypeValues[
int(dtype)])
2988 return Operator(
"broadcast_not_equal")
3019 return Operator(
"broadcast_greater")
3050 return Operator(
"broadcast_greater_equal")
3081 return Operator(
"broadcast_lesser")
3112 return Operator(
"broadcast_lesser_equal")
3233 static const char *Cast_storageStypeValues[] = {
3239 .
SetParam(
"stype", Cast_storageStypeValues[
int(stype)])
3606 const std::vector<Symbol>& data,
3607 const std::string& op_type) {
3610 .CreateSymbol(symbol_name);
3723 static const char *LeakyReLUActTypeValues[] = {
3730 .
SetParam(
"act_type", LeakyReLUActTypeValues[
int(act_type)])
3732 .
SetParam(
"lower_bound", lower_bound)
3733 .
SetParam(
"upper_bound", upper_bound)
3769 uint32_t dim2 = 0) {
3838 bool fix_gamma =
true,
3839 bool use_global_stats =
false,
3840 bool output_mean_var =
false) {
3845 .
SetParam(
"use_global_stats", use_global_stats)
3846 .
SetParam(
"output_mean_var", output_mean_var)
3895 const std::vector<Symbol>& data,
3902 .CreateSymbol(symbol_name);
3942 .
SetParam(
"rescale_grad", rescale_grad)
3943 .
SetParam(
"clip_gradient", clip_gradient)
4004 .
SetParam(
"rescale_grad", rescale_grad)
4005 .
SetParam(
"clip_gradient", clip_gradient)
4037 .
SetParam(
"rescale_grad", rescale_grad)
4038 .
SetParam(
"clip_gradient", clip_gradient)
4071 return Operator(
"mp_sgd_mom_update")
4075 .
SetParam(
"rescale_grad", rescale_grad)
4076 .
SetParam(
"clip_gradient", clip_gradient)
4149 .
SetParam(
"rescale_grad", rescale_grad)
4150 .
SetParam(
"clip_gradient", clip_gradient)
4227 .
SetParam(
"rescale_grad", rescale_grad)
4228 .
SetParam(
"clip_gradient", clip_gradient)
4229 .
SetParam(
"clip_weights", clip_weights)
4295 return Operator(
"rmspropalex_update")
4301 .
SetParam(
"rescale_grad", rescale_grad)
4302 .
SetParam(
"clip_gradient", clip_gradient)
4303 .
SetParam(
"clip_weights", clip_weights)
4367 .
SetParam(
"rescale_grad", rescale_grad)
4368 .
SetParam(
"clip_gradient", clip_gradient)
4485 double constant_value = 0) {
4486 static const char *PadModeValues[] = {
4492 .
SetParam(
"mode", PadModeValues[
int(mode)])
4494 .
SetParam(
"constant_value", constant_value)
4513 return Operator(
"IdentityAttachKLSparseReg")
4514 .
SetParam(
"sparseness_target", sparseness_target)
4596 bool squeeze_axis =
false) {
4598 .
SetParam(
"num_outputs", num_outputs)
4600 .
SetParam(
"squeeze_axis", squeeze_axis)
4645 return Operator(
"softmax_cross_entropy")
4682 const std::vector<Symbol>& data,
4686 uint32_t num_filter = 0,
4688 uint64_t workspace = 512) {
4689 static const char *UpSamplingSampleTypeValues[] = {
4693 static const char *UpSamplingMultiInputModeValues[] = {
4699 .
SetParam(
"sample_type", UpSamplingSampleTypeValues[
int(sample_type)])
4701 .
SetParam(
"num_filter", num_filter)
4702 .
SetParam(
"multi_input_mode", UpSamplingMultiInputModeValues[
int(multi_input_mode)])
4705 .CreateSymbol(symbol_name);
4779 bool fix_gamma =
true,
4780 bool use_global_stats =
false,
4781 bool output_mean_var =
false,
4783 bool cudnn_off =
false) {
4788 .
SetParam(
"use_global_stats", use_global_stats)
4789 .
SetParam(
"output_mean_var", output_mean_var)
4795 .
SetInput(
"moving_mean", moving_mean)
4796 .
SetInput(
"moving_var", moving_var)
4892 uint32_t state_size,
4893 uint32_t num_layers,
4895 bool bidirectional =
false,
4897 bool state_outputs =
false) {
4898 static const char *RNNModeValues[] = {
4905 .
SetParam(
"state_size", state_size)
4906 .
SetParam(
"num_layers", num_layers)
4907 .
SetParam(
"mode", RNNModeValues[
int(mode)])
4908 .
SetParam(
"bidirectional", bidirectional)
4910 .
SetParam(
"state_outputs", state_outputs)
4912 .
SetInput(
"parameters", parameters)
4914 .
SetInput(
"state_cell", state_cell)
4978 uint32_t num_filter,
4982 uint32_t num_group = 1,
4983 uint64_t workspace = 1024,
4984 bool no_bias =
false,
4986 bool cudnn_off =
false,
4988 static const char *Convolution_v1CudnnTuneValues[] = {
4991 "limited_workspace",
4994 static const char *Convolution_v1LayoutValues[] = {
5003 .
SetParam(
"num_filter", num_filter)
5010 .
SetParam(
"cudnn_tune", Convolution_v1CudnnTuneValues[
int(cudnn_tune)])
5012 .
SetParam(
"layout", Convolution_v1LayoutValues[
int(layout)])
5040 const std::vector<Symbol>& data,
5044 bool center_crop =
false) {
5049 .
SetParam(
"center_crop", center_crop)
5051 .CreateSymbol(symbol_name);
5082 static const char *SpatialTransformerTransformTypeValues[] = {
5085 static const char *SpatialTransformerSamplerTypeValues[] = {
5088 return Operator(
"SpatialTransformer")
5089 .
SetParam(
"transform_type", SpatialTransformerTransformTypeValues[
int(transform_type)])
5090 .
SetParam(
"sampler_type", SpatialTransformerSamplerTypeValues[
int(sampler_type)])
5091 .
SetParam(
"target_shape", target_shape)
5148 uint32_t num_filter,
5154 uint32_t num_group = 1,
5155 uint64_t workspace = 512,
5156 bool no_bias =
true,
5158 bool cudnn_off =
false,
5160 static const char *DeconvolutionCudnnTuneValues[] = {
5163 "limited_workspace",
5166 static const char *DeconvolutionLayoutValues[] = {
5176 .
SetParam(
"num_filter", num_filter)
5181 .
SetParam(
"target_shape", target_shape)
5185 .
SetParam(
"cudnn_tune", DeconvolutionCudnnTuneValues[
int(cudnn_tune)])
5187 .
SetParam(
"layout", DeconvolutionLayoutValues[
int(layout)])
5302 bool multi_output =
false,
5303 bool use_ignore =
false,
5304 bool preserve_shape =
false,
5306 bool out_grad =
false,
5308 static const char *SoftmaxOutputNormalizationValues[] = {
5314 .
SetParam(
"grad_scale", grad_scale)
5315 .
SetParam(
"ignore_label", ignore_label)
5316 .
SetParam(
"multi_output", multi_output)
5317 .
SetParam(
"use_ignore", use_ignore)
5318 .
SetParam(
"preserve_shape", preserve_shape)
5319 .
SetParam(
"normalization", SoftmaxOutputNormalizationValues[
int(normalization)])
5321 .
SetParam(
"smooth_alpha", smooth_alpha)
5366 bool multi_output =
false,
5367 bool use_ignore =
false,
5368 bool preserve_shape =
false,
5370 bool out_grad =
false,
5372 static const char *SoftmaxNormalizationValues[] = {
5378 .
SetParam(
"grad_scale", grad_scale)
5379 .
SetParam(
"ignore_label", ignore_label)
5380 .
SetParam(
"multi_output", multi_output)
5381 .
SetParam(
"use_ignore", use_ignore)
5382 .
SetParam(
"preserve_shape", preserve_shape)
5383 .
SetParam(
"normalization", SoftmaxNormalizationValues[
int(normalization)])
5385 .
SetParam(
"smooth_alpha", smooth_alpha)
5468 bool use_sequence_length =
false) {
5470 .
SetParam(
"use_sequence_length", use_sequence_length)
5472 .
SetInput(
"sequence_length", sequence_length)
5533 bool use_sequence_length =
false) {
5535 .
SetParam(
"use_sequence_length", use_sequence_length)
5537 .
SetInput(
"sequence_length", sequence_length)
5592 uint32_t kernel_size = 1,
5593 uint32_t max_displacement = 1,
5594 uint32_t stride1 = 1,
5595 uint32_t stride2 = 1,
5596 uint32_t pad_size = 0,
5597 bool is_multiply =
true) {
5599 .
SetParam(
"kernel_size", kernel_size)
5600 .
SetParam(
"max_displacement", max_displacement)
5604 .
SetParam(
"is_multiply", is_multiply)
5629 mx_float regularization_coefficient = 1,
5630 bool use_linear =
false) {
5633 .
SetParam(
"regularization_coefficient", regularization_coefficient)
5634 .
SetParam(
"use_linear", use_linear)
5714 static const char *L2NormalizationModeValues[] = {
5721 .
SetParam(
"mode", L2NormalizationModeValues[
int(mode)])
5806 bool no_bias =
false,
5807 bool flatten =
true) {
5809 .
SetParam(
"num_hidden", num_hidden)
5898 bool use_sequence_length =
false,
5901 .
SetParam(
"use_sequence_length", use_sequence_length)
5904 .
SetInput(
"sequence_length", sequence_length)
5930 static const char *GridGeneratorTransformTypeValues[] = {
5935 .
SetParam(
"transform_type", GridGeneratorTransformTypeValues[
int(transform_type)])
5936 .
SetParam(
"target_shape", target_shape)
6011 bool global_pool =
false,
6015 static const char *Pooling_v1PoolTypeValues[] = {
6020 static const char *Pooling_v1PoolingConventionValues[] = {
6026 .
SetParam(
"pool_type", Pooling_v1PoolTypeValues[
int(pool_type)])
6027 .
SetParam(
"global_pool", global_pool)
6028 .
SetParam(
"pooling_convention", Pooling_v1PoolingConventionValues[
int(pooling_convention)])
6155 uint32_t num_filter,
6159 uint32_t num_group = 1,
6160 uint64_t workspace = 1024,
6161 bool no_bias =
false,
6163 bool cudnn_off =
false,
6165 static const char *ConvolutionCudnnTuneValues[] = {
6168 "limited_workspace",
6171 static const char *ConvolutionLayoutValues[] = {
6181 .
SetParam(
"num_filter", num_filter)
6188 .
SetParam(
"cudnn_tune", ConvolutionCudnnTuneValues[
int(cudnn_tune)])
6190 .
SetParam(
"layout", ConvolutionLayoutValues[
int(layout)])
6358 bool global_pool =
false,
6359 bool cudnn_off =
false,
6363 static const char *PoolingPoolTypeValues[] = {
6368 static const char *PoolingPoolingConventionValues[] = {
6374 .
SetParam(
"pool_type", PoolingPoolTypeValues[
int(pool_type)])
6375 .
SetParam(
"global_pool", global_pool)
6377 .
SetParam(
"pooling_convention", PoolingPoolingConventionValues[
int(pooling_convention)])
6434 static const char *DropoutModeValues[] = {
6440 .
SetParam(
"mode", DropoutModeValues[
int(mode)])
6475 static const char *ActivationActTypeValues[] = {
6482 .
SetParam(
"act_type", ActivationActTypeValues[
int(act_type)])
6549 .
SetParam(
"pooled_size", pooled_size)
6550 .
SetParam(
"spatial_scale", spatial_scale)
6584 return Operator(
"LinearRegressionOutput")
6585 .
SetParam(
"grad_scale", grad_scale)
6620 return Operator(
"MAERegressionOutput")
6621 .
SetParam(
"grad_scale", grad_scale)
6656 return Operator(
"LogisticRegressionOutput")
6657 .
SetParam(
"grad_scale", grad_scale)
6707 static const char *SoftmaxActivationModeValues[] = {
6711 return Operator(
"SoftmaxActivation")
6712 .
SetParam(
"mode", SoftmaxActivationModeValues[
int(mode)])
6766 static const char *MakeLossNormalizationValues[] = {
6772 .
SetParam(
"grad_scale", grad_scale)
6773 .
SetParam(
"valid_thresh", valid_thresh)
6774 .
SetParam(
"normalization", MakeLossNormalizationValues[
int(normalization)])
6790 return Operator(
"choose_element_0index")
6809 return Operator(
"fill_element_0index")
6870 return Operator(
"broadcast_maximum")
6901 return Operator(
"broadcast_minimum")
7021 bool keep_highest =
false) {
7025 .
SetParam(
"target_shape", target_shape)
7026 .
SetParam(
"keep_highest", keep_highest)
7231 dmlc::optional<int> end) {
7318 dmlc::optional<int> axis = dmlc::optional<int>()) {
7701 dmlc::optional<int> axis = dmlc::optional<int>(),
7702 bool keepdims =
false) {
7741 dmlc::optional<int> axis = dmlc::optional<int>(),
7742 bool keepdims =
false) {
7823 dmlc::optional<int> axis = dmlc::optional<int>(),
7824 bool keepdims =
false) {
7873 bool transpose_a =
false,
7874 bool transpose_b =
false) {
7876 .
SetParam(
"transpose_a", transpose_a)
7877 .
SetParam(
"transpose_b", transpose_b)
7906 bool transpose_a =
false,
7907 bool transpose_b =
false) {
7909 .
SetParam(
"transpose_a", transpose_a)
7910 .
SetParam(
"transpose_b", transpose_b)
8065 static const char *CastDtypeValues[] = {
8073 .
SetParam(
"dtype", CastDtypeValues[
int(dtype)])
8662 bool keepdims =
false,
8663 bool exclude =
false) {
8697 bool keepdims =
false,
8698 bool exclude =
false) {
8732 bool keepdims =
false,
8733 bool exclude =
false) {
8769 bool keepdims =
false,
8770 bool exclude =
false) {
8806 bool keepdims =
false,
8807 bool exclude =
false) {
8841 bool keepdims =
false,
8842 bool exclude =
false) {
8876 bool keepdims =
false,
8877 bool exclude =
false) {
9022 dmlc::optional<int> axis = dmlc::optional<int>(-1),
9025 bool is_ascend =
false) {
9026 static const char *TopkRetTypValues[] = {
9035 .
SetParam(
"ret_typ", TopkRetTypValues[
int(ret_typ)])
9073 dmlc::optional<int> axis = dmlc::optional<int>(-1),
9074 bool is_ascend =
true) {
9112 dmlc::optional<int> axis = dmlc::optional<int>(-1),
9113 bool is_ascend =
true) {
9263 static const char *EmbeddingDtypeValues[] = {
9272 .
SetParam(
"output_dim", output_dim)
9273 .
SetParam(
"dtype", EmbeddingDtypeValues[
int(dtype)])
9321 static const char *TakeModeValues[] = {
9328 .
SetParam(
"mode", TakeModeValues[
int(mode)])
9414 double on_value = 1,
9415 double off_value = 0,
9417 static const char *One_hotDtypeValues[] = {
9428 .
SetParam(
"dtype", One_hotDtypeValues[
int(dtype)])
9564 return Operator(
"broadcast_not_equal")
9593 return Operator(
"broadcast_greater")
9622 return Operator(
"broadcast_greater_equal")
9651 return Operator(
"broadcast_lesser")
9680 return Operator(
"broadcast_lesser_equal")
9787 static const char *Cast_storageStypeValues[] = {
9793 .
SetParam(
"stype", Cast_storageStypeValues[
int(stype)])
10131 const std::string& op_type) {
10232 static const char *LeakyReLUActTypeValues[] = {
10239 .
SetParam(
"act_type", LeakyReLUActTypeValues[
int(act_type)])
10241 .
SetParam(
"lower_bound", lower_bound)
10242 .
SetParam(
"upper_bound", upper_bound)
10276 uint32_t dim2 = 0) {
10343 bool fix_gamma =
true,
10344 bool use_global_stats =
false,
10345 bool output_mean_var =
false) {
10350 .
SetParam(
"use_global_stats", use_global_stats)
10351 .
SetParam(
"output_mean_var", output_mean_var)
10443 .
SetParam(
"rescale_grad", rescale_grad)
10444 .
SetParam(
"clip_gradient", clip_gradient)
10503 .
SetParam(
"rescale_grad", rescale_grad)
10504 .
SetParam(
"clip_gradient", clip_gradient)
10534 .
SetParam(
"rescale_grad", rescale_grad)
10535 .
SetParam(
"clip_gradient", clip_gradient)
10566 return Operator(
"mp_sgd_mom_update")
10570 .
SetParam(
"rescale_grad", rescale_grad)
10571 .
SetParam(
"clip_gradient", clip_gradient)
10642 .
SetParam(
"rescale_grad", rescale_grad)
10643 .
SetParam(
"clip_gradient", clip_gradient)
10718 .
SetParam(
"rescale_grad", rescale_grad)
10719 .
SetParam(
"clip_gradient", clip_gradient)
10720 .
SetParam(
"clip_weights", clip_weights)
10784 return Operator(
"rmspropalex_update")
10790 .
SetParam(
"rescale_grad", rescale_grad)
10791 .
SetParam(
"clip_gradient", clip_gradient)
10792 .
SetParam(
"clip_weights", clip_weights)
10854 .
SetParam(
"rescale_grad", rescale_grad)
10855 .
SetParam(
"clip_gradient", clip_gradient)
10961 double constant_value = 0) {
10962 static const char *PadModeValues[] = {
10968 .
SetParam(
"mode", PadModeValues[
int(mode)])
10970 .
SetParam(
"constant_value", constant_value)
10987 return Operator(
"IdentityAttachKLSparseReg")
10988 .
SetParam(
"sparseness_target", sparseness_target)
11068 bool squeeze_axis =
false) {
11070 .
SetParam(
"num_outputs", num_outputs)
11072 .
SetParam(
"squeeze_axis", squeeze_axis)
11115 return Operator(
"softmax_cross_entropy")
11139 uint32_t num_filter = 0,
11141 uint64_t workspace = 512) {
11142 static const char *UpSamplingSampleTypeValues[] = {
11146 static const char *UpSamplingMultiInputModeValues[] = {
11152 .
SetParam(
"sample_type", UpSamplingSampleTypeValues[
int(sample_type)])
11154 .
SetParam(
"num_filter", num_filter)
11155 .
SetParam(
"multi_input_mode", UpSamplingMultiInputModeValues[
int(multi_input_mode)])
11228 double eps = 0.001,
11230 bool fix_gamma =
true,
11231 bool use_global_stats =
false,
11232 bool output_mean_var =
false,
11234 bool cudnn_off =
false) {
11239 .
SetParam(
"use_global_stats", use_global_stats)
11240 .
SetParam(
"output_mean_var", output_mean_var)
11246 .
SetInput(
"moving_mean", moving_mean)
11247 .
SetInput(
"moving_var", moving_var)
11330 uint32_t state_size,
11331 uint32_t num_layers,
11333 bool bidirectional =
false,
11335 bool state_outputs =
false) {
11336 static const char *RNNModeValues[] = {
11343 .
SetParam(
"state_size", state_size)
11344 .
SetParam(
"num_layers", num_layers)
11345 .
SetParam(
"mode", RNNModeValues[
int(mode)])
11346 .
SetParam(
"bidirectional", bidirectional)
11348 .
SetParam(
"state_outputs", state_outputs)
11350 .
SetInput(
"parameters", parameters)
11352 .
SetInput(
"state_cell", state_cell)
11387 uint32_t num_filter,
11391 uint32_t num_group = 1,
11392 uint64_t workspace = 1024,
11393 bool no_bias =
false,
11395 bool cudnn_off =
false,
11397 static const char *Convolution_v1CudnnTuneValues[] = {
11400 "limited_workspace",
11403 static const char *Convolution_v1LayoutValues[] = {
11412 .
SetParam(
"num_filter", num_filter)
11419 .
SetParam(
"cudnn_tune", Convolution_v1CudnnTuneValues[
int(cudnn_tune)])
11421 .
SetParam(
"layout", Convolution_v1LayoutValues[
int(layout)])
11451 bool center_crop =
false) {
11456 .
SetParam(
"center_crop", center_crop)
11475 static const char *SpatialTransformerTransformTypeValues[] = {
11478 static const char *SpatialTransformerSamplerTypeValues[] = {
11481 return Operator(
"SpatialTransformer")
11482 .
SetParam(
"transform_type", SpatialTransformerTransformTypeValues[
int(transform_type)])
11483 .
SetParam(
"sampler_type", SpatialTransformerSamplerTypeValues[
int(sampler_type)])
11484 .
SetParam(
"target_shape", target_shape)
11519 uint32_t num_filter,
11525 uint32_t num_group = 1,
11526 uint64_t workspace = 512,
11527 bool no_bias =
true,
11529 bool cudnn_off =
false,
11531 static const char *DeconvolutionCudnnTuneValues[] = {
11534 "limited_workspace",
11537 static const char *DeconvolutionLayoutValues[] = {
11547 .
SetParam(
"num_filter", num_filter)
11552 .
SetParam(
"target_shape", target_shape)
11556 .
SetParam(
"cudnn_tune", DeconvolutionCudnnTuneValues[
int(cudnn_tune)])
11558 .
SetParam(
"layout", DeconvolutionLayoutValues[
int(layout)])
11663 bool multi_output =
false,
11664 bool use_ignore =
false,
11665 bool preserve_shape =
false,
11667 bool out_grad =
false,
11669 static const char *SoftmaxOutputNormalizationValues[] = {
11675 .
SetParam(
"grad_scale", grad_scale)
11676 .
SetParam(
"ignore_label", ignore_label)
11677 .
SetParam(
"multi_output", multi_output)
11678 .
SetParam(
"use_ignore", use_ignore)
11679 .
SetParam(
"preserve_shape", preserve_shape)
11680 .
SetParam(
"normalization", SoftmaxOutputNormalizationValues[
int(normalization)])
11682 .
SetParam(
"smooth_alpha", smooth_alpha)
11717 bool multi_output =
false,
11718 bool use_ignore =
false,
11719 bool preserve_shape =
false,
11721 bool out_grad =
false,
11723 static const char *SoftmaxNormalizationValues[] = {
11729 .
SetParam(
"grad_scale", grad_scale)
11730 .
SetParam(
"ignore_label", ignore_label)
11731 .
SetParam(
"multi_output", multi_output)
11732 .
SetParam(
"use_ignore", use_ignore)
11733 .
SetParam(
"preserve_shape", preserve_shape)
11734 .
SetParam(
"normalization", SoftmaxNormalizationValues[
int(normalization)])
11736 .
SetParam(
"smooth_alpha", smooth_alpha)
11817 bool use_sequence_length =
false) {
11818 return Operator(
"SequenceReverse")
11819 .
SetParam(
"use_sequence_length", use_sequence_length)
11821 .
SetInput(
"sequence_length", sequence_length)
11880 bool use_sequence_length =
false) {
11882 .
SetParam(
"use_sequence_length", use_sequence_length)
11884 .
SetInput(
"sequence_length", sequence_length)
11937 uint32_t kernel_size = 1,
11938 uint32_t max_displacement = 1,
11939 uint32_t stride1 = 1,
11940 uint32_t stride2 = 1,
11941 uint32_t pad_size = 0,
11942 bool is_multiply =
true) {
11944 .
SetParam(
"kernel_size", kernel_size)
11945 .
SetParam(
"max_displacement", max_displacement)
11949 .
SetParam(
"is_multiply", is_multiply)
11972 mx_float regularization_coefficient = 1,
11973 bool use_linear =
false) {
11976 .
SetParam(
"regularization_coefficient", regularization_coefficient)
11977 .
SetParam(
"use_linear", use_linear)
12047 static const char *L2NormalizationModeValues[] = {
12052 return Operator(
"L2Normalization")
12054 .
SetParam(
"mode", L2NormalizationModeValues[
int(mode)])
12135 bool no_bias =
false,
12136 bool flatten =
true) {
12138 .
SetParam(
"num_hidden", num_hidden)
12225 bool use_sequence_length =
false,
12228 .
SetParam(
"use_sequence_length", use_sequence_length)
12231 .
SetInput(
"sequence_length", sequence_length)
12247 static const char *GridGeneratorTransformTypeValues[] = {
12252 .
SetParam(
"transform_type", GridGeneratorTransformTypeValues[
int(transform_type)])
12253 .
SetParam(
"target_shape", target_shape)
12311 bool global_pool =
false,
12315 static const char *Pooling_v1PoolTypeValues[] = {
12320 static const char *Pooling_v1PoolingConventionValues[] = {
12326 .
SetParam(
"pool_type", Pooling_v1PoolTypeValues[
int(pool_type)])
12327 .
SetParam(
"global_pool", global_pool)
12328 .
SetParam(
"pooling_convention", Pooling_v1PoolingConventionValues[
int(pooling_convention)])
12432 uint32_t num_filter,
12436 uint32_t num_group = 1,
12437 uint64_t workspace = 1024,
12438 bool no_bias =
false,
12440 bool cudnn_off =
false,
12442 static const char *ConvolutionCudnnTuneValues[] = {
12445 "limited_workspace",
12448 static const char *ConvolutionLayoutValues[] = {
12458 .
SetParam(
"num_filter", num_filter)
12465 .
SetParam(
"cudnn_tune", ConvolutionCudnnTuneValues[
int(cudnn_tune)])
12467 .
SetParam(
"layout", ConvolutionLayoutValues[
int(layout)])
12555 return Operator(
"BilinearSampler")
12616 bool global_pool =
false,
12617 bool cudnn_off =
false,
12621 static const char *PoolingPoolTypeValues[] = {
12626 static const char *PoolingPoolingConventionValues[] = {
12632 .
SetParam(
"pool_type", PoolingPoolTypeValues[
int(pool_type)])
12633 .
SetParam(
"global_pool", global_pool)
12635 .
SetParam(
"pooling_convention", PoolingPoolingConventionValues[
int(pooling_convention)])
12683 static const char *DropoutModeValues[] = {
12689 .
SetParam(
"mode", DropoutModeValues[
int(mode)])
12713 static const char *ActivationActTypeValues[] = {
12720 .
SetParam(
"act_type", ActivationActTypeValues[
int(act_type)])
12785 .
SetParam(
"pooled_size", pooled_size)
12786 .
SetParam(
"spatial_scale", spatial_scale)
12818 return Operator(
"LinearRegressionOutput")
12819 .
SetParam(
"grad_scale", grad_scale)
12852 return Operator(
"MAERegressionOutput")
12853 .
SetParam(
"grad_scale", grad_scale)
12886 return Operator(
"LogisticRegressionOutput")
12887 .
SetParam(
"grad_scale", grad_scale)
12927 static const char *SoftmaxActivationModeValues[] = {
12931 return Operator(
"SoftmaxActivation")
12932 .
SetParam(
"mode", SoftmaxActivationModeValues[
int(mode)])
12974 static const char *MakeLossNormalizationValues[] = {
12980 .
SetParam(
"grad_scale", grad_scale)
12981 .
SetParam(
"valid_thresh", valid_thresh)
12982 .
SetParam(
"normalization", MakeLossNormalizationValues[
int(normalization)])
12996 return Operator(
"choose_element_0index")
13013 return Operator(
"fill_element_0index")
13022 #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:6150
Symbol fix(const std::string &symbol_name, Symbol data)
Definition: op.h:1621
Symbol Crop(const std::string &symbol_name, const std::vector< Symbol > &data, int num_args, Shape offset=Shape(0, 0), Shape h_w=Shape(0, 0), bool center_crop=false)
Definition: op.h:5039
Symbol min(const std::string &symbol_name, Symbol data, Shape axis=Shape(), bool keepdims=false, bool exclude=false)
Definition: op.h:2219
Symbol broadcast_mul(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:824
Symbol arcsin(const std::string &symbol_name, Symbol data)
Definition: op.h:3343
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:5801
Symbol arccosh(const std::string &symbol_name, Symbol data)
Definition: op.h:3560
Symbol arctan(const std::string &symbol_name, Symbol data)
Definition: op.h:3395
Symbol SwapAxis(const std::string &symbol_name, Symbol data, uint32_t dim1=0, uint32_t dim2=0)
Definition: op.h:3766
Symbol cast_storage(const std::string &symbol_name, Symbol data, Cast_storageStype stype)
Definition: op.h:3230
Symbol nansum(const std::string &symbol_name, Symbol data, Shape axis=Shape(), bool keepdims=false, bool exclude=false)
Definition: op.h:2106
Symbol add_n(const std::string &symbol_name, const std::vector< Symbol > &args)
Definition: op.h:915
Symbol log1p(const std::string &symbol_name, Symbol data)
Definition: op.h:1868
SoftmaxActivationMode
Definition: op.h:6666
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:4026
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:5076
Symbol slice(const std::string &symbol_name, Symbol data, Shape begin, Shape end, Shape step=Shape())
Definition: op.h:408
Symbol exp(const std::string &symbol_name, Symbol data)
Definition: op.h:1780
Symbol transpose(const std::string &symbol_name, Symbol data, Shape axes=Shape())
Definition: op.h:320
Symbol clip(const std::string &symbol_name, Symbol data, mx_float a_min, mx_float a_max)
Definition: op.h:500
Symbol elemwise_div(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:2577
Symbol ROIPooling(const std::string &symbol_name, Symbol data, Symbol rois, Shape pooled_size, mx_float spatial_scale)
Definition: op.h:6543
Symbol broadcast_div(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:855
Symbol nanprod(const std::string &symbol_name, Symbol data, Shape axis=Shape(), bool keepdims=false, bool exclude=false)
Definition: op.h:2145
Convolution_v1Layout
Definition: op.h:4937
Symbol argmin(const std::string &symbol_name, Symbol data, dmlc::optional< int > axis=dmlc::optional< int >(), bool keepdims=false)
Definition: op.h:995
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:4061
Symbol broadcast_lesser(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:3078
Symbol fill_element_0index(const std::string &symbol_name, Symbol lhs, Symbol mhs, Symbol rhs)
Definition: op.h:6805
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:4973
Symbol broadcast_not_equal(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:2985
TakeMode
Definition: op.h:2673
Symbol Embedding(const std::string &symbol_name, Symbol data, Symbol weight, int input_dim, int output_dim, EmbeddingDtype dtype=EmbeddingDtype::kFloat32)
Definition: op.h:2647
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:4351
Symbol reciprocal(const std::string &symbol_name, Symbol data)
Definition: op.h:1401
TopkRetTyp
Definition: op.h:2338
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:4887
namespace of mxnet
Definition: base.h:127
Symbol reshape_like(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:1310
Pooling_v1PoolingConvention
Definition: op.h:5951
Symbol broadcast_lesser_equal(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:3109
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:4850
Symbol sign(const std::string &symbol_name, Symbol data)
Definition: op.h:1453
GridGeneratorTransformType
Definition: op.h:5911
Cast_storageStype
Definition: op.h:3181
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:723
RNNMode
Definition: op.h:4865
PadMode
Definition: op.h:4379
Symbol smooth_l1(const std::string &symbol_name, Symbol data, mx_float scalar)
Definition: op.h:3170
Symbol where(const std::string &symbol_name, Symbol condition, Symbol x, Symbol y)
Definition: op.h:3134
Symbol Dropout(const std::string &symbol_name, Symbol data, mx_float p=0.5, DropoutMode mode=DropoutMode::kTraining)
Definition: op.h:6430
Symbol expm1(const std::string &symbol_name, Symbol data)
Definition: op.h:1892
Symbol elemwise_add(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:2506
PoolingPoolType
Definition: op.h:6288
Symbol relu(const std::string &symbol_name, Symbol data)
Definition: op.h:1198
Symbol reverse(const std::string &symbol_name, Symbol data, Shape axis)
Definition: op.h:633
Symbol rsqrt(const std::string &symbol_name, Symbol data)
Definition: op.h:1706
Symbol Pooling(const std::string &symbol_name, Symbol data, Shape kernel, PoolingPoolType pool_type, bool global_pool=false, bool cudnn_off=false, PoolingPoolingConvention pooling_convention=PoolingPoolingConvention::kValid, Shape stride=Shape(), Shape pad=Shape())
Definition: op.h:6354
Symbol Pooling_v1(const std::string &symbol_name, Symbol data, Shape kernel, Pooling_v1PoolType pool_type, bool global_pool=false, Pooling_v1PoolingConvention pooling_convention=Pooling_v1PoolingConvention::kValid, Shape stride=Shape(), Shape pad=Shape())
Definition: op.h:6007
SpatialTransformerTransformType
Definition: op.h:5056
ActivationActType
Definition: op.h:6447
Symbol sqrt(const std::string &symbol_name, Symbol data)
Definition: op.h:1680
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:5362
Symbol rint(const std::string &symbol_name, Symbol data)
Definition: op.h:1509
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:4508
Symbol sinh(const std::string &symbol_name, Symbol data)
Definition: op.h:3470
Symbol scatter_nd(const std::string &symbol_name, Symbol data, Symbol indices, Shape shape)
Definition: op.h:2921
Symbol broadcast_greater_equal(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:3047
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:5753
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:3991
Symbol max(const std::string &symbol_name, Symbol data, Shape axis=Shape(), bool keepdims=false, bool exclude=false)
Definition: op.h:2182
Symbol arcsinh(const std::string &symbol_name, Symbol data)
Definition: op.h:3540
Symbol MAERegressionOutput(const std::string &symbol_name, Symbol data, Symbol label, mx_float grad_scale=1)
Definition: op.h:6616
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:3932
Symbol SliceChannel(const std::string &symbol_name, Symbol data, int num_outputs, int axis=1, bool squeeze_axis=false)
Definition: op.h:4592
PoolingPoolingConvention
Definition: op.h:6296
Symbol broadcast_minimum(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:110
Symbol broadcast_maximum(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:77
Symbol Cast(const std::string &symbol_name, Symbol data, CastDtype dtype)
Definition: op.h:1348
DeconvolutionLayout
Definition: op.h:5108
Symbol trunc(const std::string &symbol_name, Symbol data)
Definition: op.h:1594
Pooling_v1PoolType
Definition: op.h:5943
Symbol round(const std::string &symbol_name, Symbol data)
Definition: op.h:1479
Symbol log_softmax(const std::string &symbol_name, Symbol data, int axis=-1)
Definition: op.h:3673
Symbol cos(const std::string &symbol_name, Symbol data)
Definition: op.h:3288
Symbol SequenceMask(const std::string &symbol_name, Symbol data, Symbol sequence_length, bool use_sequence_length=false, mx_float value=0)
Definition: op.h:5895
Symbol L2Normalization(const std::string &symbol_name, Symbol data, mx_float eps=1e-10, L2NormalizationMode mode=L2NormalizationMode::kInstance)
Definition: op.h:5710
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:5589
Symbol zeros_like(const std::string &symbol_name, Symbol data)
Definition: op.h:699
EmbeddingDtype
Definition: op.h:2588
Symbol batch_dot(const std::string &symbol_name, Symbol lhs, Symbol rhs, bool transpose_a=false, bool transpose_b=false)
Definition: op.h:1167
Symbol broadcast_mod(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:886
Symbol cbrt(const std::string &symbol_name, Symbol data)
Definition: op.h:1730
Symbol prod(const std::string &symbol_name, Symbol data, Shape axis=Shape(), bool keepdims=false, bool exclude=false)
Definition: op.h:2067
operator helper functions
Symbol mean(const std::string &symbol_name, Symbol data, Shape axis=Shape(), bool keepdims=false, bool exclude=false)
Definition: op.h:2030
Symbol tanh(const std::string &symbol_name, Symbol data)
Definition: op.h:3517
Symbol broadcast_to(const std::string &symbol_name, Symbol data, Shape shape=Shape())
Definition: op.h:2300
Symbol elemwise_sub(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:2530
DropoutMode
Definition: op.h:6386
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:6761
Symbol log(const std::string &symbol_name, Symbol data)
Definition: op.h:1801
Symbol sigmoid(const std::string &symbol_name, Symbol data)
Definition: op.h:1220
Symbol SequenceReverse(const std::string &symbol_name, Symbol data, Symbol sequence_length, bool use_sequence_length=false)
Definition: op.h:5465
CastDtype
Definition: op.h:1321
ConvolutionLayout
Definition: op.h:6047
Symbol LogisticRegressionOutput(const std::string &symbol_name, Symbol data, Symbol label, mx_float grad_scale=1)
Definition: op.h:6652
Symbol gamma(const std::string &symbol_name, Symbol data)
Definition: op.h:1910
Symbol sin(const std::string &symbol_name, Symbol data)
Definition: op.h:3264
UpSamplingMultiInputMode
Definition: op.h:4661
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:2557
SpatialTransformerSamplerType
Definition: op.h:5062
Symbol Pad(const std::string &symbol_name, Symbol data, PadMode mode, Shape pad_width, double constant_value=0)
Definition: op.h:4481
Symbol square(const std::string &symbol_name, Symbol data)
Definition: op.h:1651
One_hotDtype
Definition: op.h:2775
UpSamplingSampleType
Definition: op.h:4653
Symbol norm(const std::string &symbol_name, Symbol data)
Definition: op.h:2326
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:4211
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:3717
Symbol make_loss(const std::string &symbol_name, Symbol data)
Definition: op.h:1296
Symbol SoftmaxActivation(const std::string &symbol_name, Symbol data, SoftmaxActivationMode mode=SoftmaxActivationMode::kInstance)
Definition: op.h:6704
Symbol broadcast_equal(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:2954
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:5143
Symbol broadcast_add(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:757
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:4131
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:3315
Convolution_v1CudnnTune
Definition: op.h:4927
Symbol repeat(const std::string &symbol_name, Symbol data, int repeats, dmlc::optional< int > axis=dmlc::optional< int >())
Definition: op.h:545
Symbol slice_axis(const std::string &symbol_name, Symbol data, int axis, int begin, dmlc::optional< int > end)
Definition: op.h:453
Symbol expand_dims(const std::string &symbol_name, Symbol data, int axis)
Definition: op.h:344
Symbol arctanh(const std::string &symbol_name, Symbol data)
Definition: op.h:3583
Symbol softmax_cross_entropy(const std::string &symbol_name, Symbol data, Symbol label)
Definition: op.h:4642
Symbol pick(const std::string &symbol_name, Symbol data, Symbol index, dmlc::optional< int > axis=dmlc::optional< int >(), bool keepdims=false)
Definition: op.h:1080
Symbol broadcast_axis(const std::string &symbol_name, Symbol data, Shape axis=Shape(), Shape size=Shape())
Definition: op.h:2261
Symbol abs(const std::string &symbol_name, Symbol data)
Definition: op.h:1427
Symbol cosh(const std::string &symbol_name, Symbol data)
Definition: op.h:3492
Symbol sort(const std::string &symbol_name, Symbol data, dmlc::optional< int > axis=dmlc::optional< int >(-1), bool is_ascend=true)
Definition: op.h:2439
Symbol gather_nd(const std::string &symbol_name, Symbol data, Symbol indices)
Definition: op.h:2876
Symbol BilinearSampler(const std::string &symbol_name, Symbol data, Symbol grid)
Definition: op.h:6277
Symbol Custom(const std::string &symbol_name, const std::vector< Symbol > &data, const std::string &op_type)
Definition: op.h:3605
Symbol broadcast_hypot(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:149
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:3832
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:4681
Symbol Activation(const std::string &symbol_name, Symbol data, ActivationActType act_type)
Definition: op.h:6472
float mx_float
manually define float
Definition: c_api.h:60
Symbol 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:5625
Symbol radians(const std::string &symbol_name, Symbol data)
Definition: op.h:3445
Symbol Concat(const std::string &symbol_name, const std::vector< Symbol > &data, int num_args, int dim=1)
Definition: op.h:3894
L2NormalizationMode
Definition: op.h:5642
Symbol stack(const std::string &symbol_name, const std::vector< Symbol > &data, int num_args, int axis=0)
Definition: op.h:665
Symbol floor(const std::string &symbol_name, Symbol data)
Definition: op.h:1565
Symbol broadcast_sub(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:793
Symbol take(const std::string &symbol_name, Symbol a, Symbol indices, int axis=0, TakeMode mode=TakeMode::kClip)
Definition: op.h:2718
Symbol ceil(const std::string &symbol_name, Symbol data)
Definition: op.h:1537
Symbol gammaln(const std::string &symbol_name, Symbol data)
Definition: op.h:1928
Symbol tile(const std::string &symbol_name, Symbol data, Shape reps)
Definition: op.h:601
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:4281
Symbol argsort(const std::string &symbol_name, Symbol data, dmlc::optional< int > axis=dmlc::optional< int >(-1), bool is_ascend=true)
Definition: op.h:2480
SoftmaxNormalization
Definition: op.h:5329
Symbol softmax(const std::string &symbol_name, Symbol data, int axis=-1)
Definition: op.h:3642
DeconvolutionCudnnTune
Definition: op.h:5099
ConvolutionCudnnTune
Definition: op.h:6037
Symbol broadcast_greater(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:3016
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:4771
Symbol rcbrt(const std::string &symbol_name, Symbol data)
Definition: op.h:1754
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:2386
Symbol broadcast_power(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:44
SoftmaxOutputNormalization
Definition: op.h:5196
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:5297
Symbol Flatten(const std::string &symbol_name, Symbol data)
Definition: op.h:277
Symbol BlockGrad(const std::string &symbol_name, Symbol data)
Definition: op.h:1260
LeakyReLUActType
Definition: op.h:3684
Symbol arccos(const std::string &symbol_name, Symbol data)
Definition: op.h:3368
Symbol argmax_channel(const std::string &symbol_name, Symbol data)
Definition: op.h:1028
Symbol batch_take(const std::string &symbol_name, Symbol a, Symbol indices)
Definition: op.h:2764
Symbol LinearRegressionOutput(const std::string &symbol_name, Symbol data, Symbol label, mx_float grad_scale=1)
Definition: op.h:6580
Symbol choose_element_0index(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:6787
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:232
Symbol degrees(const std::string &symbol_name, Symbol data)
Definition: op.h:3420
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:2827
Symbol SequenceLast(const std::string &symbol_name, Symbol data, Symbol sequence_length, bool use_sequence_length=false)
Definition: op.h:5530
Symbol negative(const std::string &symbol_name, Symbol data)
Definition: op.h:1378
Symbol GridGenerator(const std::string &symbol_name, Symbol data, GridGeneratorTransformType transform_type, Shape target_shape=Shape(0, 0))
Definition: op.h:5926
Symbol argmax(const std::string &symbol_name, Symbol data, dmlc::optional< int > axis=dmlc::optional< int >(), bool keepdims=false)
Definition: op.h:953
Operator interface.
Definition: operator.h:43
Symbol interface.
Definition: symbol.h:72
Symbol sum(const std::string &symbol_name, Symbol data, Shape axis=Shape(), bool keepdims=false, bool exclude=false)
Definition: op.h:1993
MakeLossNormalization
Definition: op.h:6721
Symbol log10(const std::string &symbol_name, Symbol data)
Definition: op.h:1822
Symbol dot(const std::string &symbol_name, Symbol lhs, Symbol rhs, bool transpose_a=false, bool transpose_b=false)
Definition: op.h:1132
Symbol log2(const std::string &symbol_name, Symbol data)
Definition: op.h:1843