8 #ifndef MXNET_CPP_OP_H_     9 #define MXNET_CPP_OP_H_    17 #include "dmlc/optional.h"   138                                  bool get_prob = 
false,
   140   static const char *Sample_multinomialDtypeValues[] = {
   143   return Operator(
"sample_multinomial")
   146            .
SetParam(
"dtype", Sample_multinomialDtypeValues[
int(dtype)])
   201   static const char *Sample_uniformDtypeValues[] = {
   209            .
SetParam(
"dtype", Sample_uniformDtypeValues[
int(dtype)])
   265   static const char *Sample_normalDtypeValues[] = {
   273            .
SetParam(
"dtype", Sample_normalDtypeValues[
int(dtype)])
   329   static const char *Sample_gammaDtypeValues[] = {
   337            .
SetParam(
"dtype", Sample_gammaDtypeValues[
int(dtype)])
   390   static const char *Sample_exponentialDtypeValues[] = {
   396   return Operator(
"sample_exponential")
   398            .
SetParam(
"dtype", Sample_exponentialDtypeValues[
int(dtype)])
   452   static const char *Sample_poissonDtypeValues[] = {
   460            .
SetParam(
"dtype", Sample_poissonDtypeValues[
int(dtype)])
   517   static const char *Sample_negative_binomialDtypeValues[] = {
   523   return Operator(
"sample_negative_binomial")
   525            .
SetParam(
"dtype", Sample_negative_binomialDtypeValues[
int(dtype)])
   583   static const char *Sample_generalized_negative_binomialDtypeValues[] = {
   589   return Operator(
"sample_generalized_negative_binomial")
   591            .
SetParam(
"dtype", Sample_generalized_negative_binomialDtypeValues[
int(dtype)])
   634                              const std::string& ctx = 
"",
   636   static const char *Random_uniformDtypeValues[] = {
   646            .
SetParam(
"dtype", Random_uniformDtypeValues[
int(dtype)])
   685                             const std::string& ctx = 
"",
   687   static const char *Random_normalDtypeValues[] = {
   697            .
SetParam(
"dtype", Random_normalDtypeValues[
int(dtype)])
   734                            const std::string& ctx = 
"",
   736   static const char *Random_gammaDtypeValues[] = {
   746            .
SetParam(
"dtype", Random_gammaDtypeValues[
int(dtype)])
   781                                  const std::string& ctx = 
"",
   783   static const char *Random_exponentialDtypeValues[] = {
   789   return Operator(
"random_exponential")
   792            .
SetParam(
"dtype", Random_exponentialDtypeValues[
int(dtype)])
   828                              const std::string& ctx = 
"",
   830   static const char *Random_poissonDtypeValues[] = {
   839            .
SetParam(
"dtype", Random_poissonDtypeValues[
int(dtype)])
   878                                        const std::string& ctx = 
"",
   880   static const char *Random_negative_binomialDtypeValues[] = {
   886   return Operator(
"random_negative_binomial")
   890            .
SetParam(
"dtype", Random_negative_binomialDtypeValues[
int(dtype)])
   930                                                    const std::string& ctx = 
"",
   932   static const char *Random_generalized_negative_binomialDtypeValues[] = {
   938   return Operator(
"random_generalized_negative_binomial")
   942            .
SetParam(
"dtype", Random_generalized_negative_binomialDtypeValues[
int(dtype)])
  1004   return Operator(
"broadcast_maximum")
  1037   return Operator(
"broadcast_minimum")
  1161                       bool keep_highest = 
false) {
  1165            .
SetParam(
"target_shape", target_shape)
  1166            .
SetParam(
"keep_highest", keep_highest)
  1357                          dmlc::optional<int> end) {
  1400                   bool transpose_a = 
false,
  1401                   bool transpose_b = 
false) {
  1403            .
SetParam(
"transpose_a", transpose_a)
  1404            .
SetParam(
"transpose_b", transpose_b)
  1435                         bool transpose_a = 
false,
  1436                         bool transpose_b = 
false) {
  1438            .
SetParam(
"transpose_a", transpose_a)
  1439            .
SetParam(
"transpose_b", transpose_b)
  1516                      dmlc::optional<int> axis = dmlc::optional<int>()) {
  1634                     const std::vector<Symbol>& data,
  1641            .CreateSymbol(symbol_name);
  1872                     const std::vector<Symbol>& args) {
  1875            .CreateSymbol(symbol_name);
  1911                      dmlc::optional<int> axis = dmlc::optional<int>(),
  1912                      bool keepdims = 
false) {
  1953                      dmlc::optional<int> axis = dmlc::optional<int>(),
  1954                      bool keepdims = 
false) {
  2039                    dmlc::optional<int> axis = dmlc::optional<int>(),
  2040                    bool keepdims = 
false) {
  2096                   bool keepdims = 
false,
  2097                   bool exclude = 
false) {
  2133                    bool keepdims = 
false,
  2134                    bool exclude = 
false) {
  2170                    bool keepdims = 
false,
  2171                    bool exclude = 
false) {
  2209                      bool keepdims = 
false,
  2210                      bool exclude = 
false) {
  2248                       bool keepdims = 
false,
  2249                       bool exclude = 
false) {
  2285                   bool keepdims = 
false,
  2286                   bool exclude = 
false) {
  2322                   bool keepdims = 
false,
  2323                   bool exclude = 
false) {
  2488                    dmlc::optional<int> axis = dmlc::optional<int>(-1),
  2491                    bool is_ascend = 
false) {
  2492   static const char *TopkRetTypValues[] = {
  2501            .
SetParam(
"ret_typ", TopkRetTypValues[
int(ret_typ)])
  2541                    dmlc::optional<int> axis = dmlc::optional<int>(-1),
  2542                    bool is_ascend = 
true) {
  2582                       dmlc::optional<int> axis = dmlc::optional<int>(-1),
  2583                       bool is_ascend = 
true) {
  2736   static const char *CastDtypeValues[] = {
  2744            .
SetParam(
"dtype", CastDtypeValues[
int(dtype)])
  3537   static const char *EmbeddingDtypeValues[] = {
  3546            .
SetParam(
"output_dim", output_dim)
  3547            .
SetParam(
"dtype", EmbeddingDtypeValues[
int(dtype)])
  3607   static const char *TakeModeValues[] = {
  3614            .
SetParam(
"mode", TakeModeValues[
int(mode)])
  3714                       double on_value = 1,
  3715                       double off_value = 0,
  3717   static const char *One_hotDtypeValues[] = {
  3728            .
SetParam(
"dtype", One_hotDtypeValues[
int(dtype)])
  3789   return Operator(
"broadcast_not_equal")
  3820   return Operator(
"broadcast_greater")
  3851   return Operator(
"broadcast_greater_equal")
  3882   return Operator(
"broadcast_lesser")
  3913   return Operator(
"broadcast_lesser_equal")
  3968                           bool transpose_a = 
false,
  3969                           bool transpose_b = 
false,
  3973            .
SetParam(
"transpose_a", transpose_a)
  3974            .
SetParam(
"transpose_b", transpose_b)
  4027                            bool transpose_a = 
false,
  4028                            bool transpose_b = 
false,
  4031            .
SetParam(
"transpose_a", transpose_a)
  4032            .
SetParam(
"transpose_b", transpose_b)
  4174                           bool rightside = 
false,
  4236                           bool rightside = 
false,
  4277   return Operator(
"linalg_sumlogdiag")
  4359                      const std::vector<Symbol>& data,
  4360                      const std::string& op_type) {
  4363            .CreateSymbol(symbol_name);
  4397                        uint32_t dim2 = 0) {
  4446   static const char *LeakyReLUActTypeValues[] = {
  4453            .
SetParam(
"act_type", LeakyReLUActTypeValues[
int(act_type)])
  4455            .
SetParam(
"lower_bound", lower_bound)
  4456            .
SetParam(
"upper_bound", upper_bound)
  4522                            bool fix_gamma = 
true,
  4523                            bool use_global_stats = 
false,
  4524                            bool output_mean_var = 
false) {
  4529            .
SetParam(
"use_global_stats", use_global_stats)
  4530            .
SetParam(
"output_mean_var", output_mean_var)
  4579                      const std::vector<Symbol>& data,
  4586            .CreateSymbol(symbol_name);
  4620            .
SetParam(
"rescale_grad", rescale_grad)
  4621            .
SetParam(
"clip_gradient", clip_gradient)
  4675            .
SetParam(
"rescale_grad", rescale_grad)
  4676            .
SetParam(
"clip_gradient", clip_gradient)
  4708            .
SetParam(
"rescale_grad", rescale_grad)
  4709            .
SetParam(
"clip_gradient", clip_gradient)
  4742   return Operator(
"mp_sgd_mom_update")
  4746            .
SetParam(
"rescale_grad", rescale_grad)
  4747            .
SetParam(
"clip_gradient", clip_gradient)
  4812            .
SetParam(
"rescale_grad", rescale_grad)
  4813            .
SetParam(
"clip_gradient", clip_gradient)
  4890            .
SetParam(
"rescale_grad", rescale_grad)
  4891            .
SetParam(
"clip_gradient", clip_gradient)
  4892            .
SetParam(
"clip_weights", clip_weights)
  4958   return Operator(
"rmspropalex_update")
  4964            .
SetParam(
"rescale_grad", rescale_grad)
  4965            .
SetParam(
"clip_gradient", clip_gradient)
  4966            .
SetParam(
"clip_weights", clip_weights)
  5084                   double constant_value = 0) {
  5085   static const char *PadModeValues[] = {
  5091            .
SetParam(
"mode", PadModeValues[
int(mode)])
  5093            .
SetParam(
"constant_value", constant_value)
  5112   return Operator(
"IdentityAttachKLSparseReg")
  5113            .
SetParam(
"sparseness_target", sparseness_target)
  5195                            bool squeeze_axis = 
false) {
  5197            .
SetParam(
"num_outputs", num_outputs)
  5199            .
SetParam(
"squeeze_axis", squeeze_axis)
  5244   return Operator(
"softmax_cross_entropy")
  5281                          const std::vector<Symbol>& data,
  5285                          uint32_t num_filter = 0,
  5287                          uint64_t workspace = 512) {
  5288   static const char *UpSamplingSampleTypeValues[] = {
  5292   static const char *UpSamplingMultiInputModeValues[] = {
  5298            .
SetParam(
"sample_type", UpSamplingSampleTypeValues[
int(sample_type)])
  5300            .
SetParam(
"num_filter", num_filter)
  5301            .
SetParam(
"multi_input_mode", UpSamplingMultiInputModeValues[
int(multi_input_mode)])
  5304            .CreateSymbol(symbol_name);
  5378                         bool fix_gamma = 
true,
  5379                         bool use_global_stats = 
false,
  5380                         bool output_mean_var = 
false,
  5382                         bool cudnn_off = 
false) {
  5387            .
SetParam(
"use_global_stats", use_global_stats)
  5388            .
SetParam(
"output_mean_var", output_mean_var)
  5394            .
SetInput(
"moving_mean", moving_mean)
  5395            .
SetInput(
"moving_var", moving_var)
  5491                   uint32_t state_size,
  5492                   uint32_t num_layers,
  5494                   bool bidirectional = 
false,
  5496                   bool state_outputs = 
false) {
  5497   static const char *RNNModeValues[] = {
  5504            .
SetParam(
"state_size", state_size)
  5505            .
SetParam(
"num_layers", num_layers)
  5506            .
SetParam(
"mode", RNNModeValues[
int(mode)])
  5507            .
SetParam(
"bidirectional", bidirectional)
  5509            .
SetParam(
"state_outputs", state_outputs)
  5511            .
SetInput(
"parameters", parameters)
  5513            .
SetInput(
"state_cell", state_cell)
  5577                              uint32_t num_filter,
  5581                              uint32_t num_group = 1,
  5582                              uint64_t workspace = 1024,
  5583                              bool no_bias = 
false,
  5585                              bool cudnn_off = 
false,
  5587   static const char *Convolution_v1CudnnTuneValues[] = {
  5590     "limited_workspace",
  5593   static const char *Convolution_v1LayoutValues[] = {
  5602            .
SetParam(
"num_filter", num_filter)
  5609            .
SetParam(
"cudnn_tune", Convolution_v1CudnnTuneValues[
int(cudnn_tune)])
  5611            .
SetParam(
"layout", Convolution_v1LayoutValues[
int(layout)])
  5639                    const std::vector<Symbol>& data,
  5643                    bool center_crop = 
false) {
  5648            .
SetParam(
"center_crop", center_crop)
  5650            .CreateSymbol(symbol_name);
  5681   static const char *SpatialTransformerTransformTypeValues[] = {
  5684   static const char *SpatialTransformerSamplerTypeValues[] = {
  5687   return Operator(
"SpatialTransformer")
  5688            .
SetParam(
"transform_type", SpatialTransformerTransformTypeValues[
int(transform_type)])
  5689            .
SetParam(
"sampler_type", SpatialTransformerSamplerTypeValues[
int(sampler_type)])
  5690            .
SetParam(
"target_shape", target_shape)
  5747                             uint32_t num_filter,
  5753                             uint32_t num_group = 1,
  5754                             uint64_t workspace = 512,
  5755                             bool no_bias = 
true,
  5757                             bool cudnn_off = 
false,
  5759   static const char *DeconvolutionCudnnTuneValues[] = {
  5762     "limited_workspace",
  5765   static const char *DeconvolutionLayoutValues[] = {
  5775            .
SetParam(
"num_filter", num_filter)
  5780            .
SetParam(
"target_shape", target_shape)
  5784            .
SetParam(
"cudnn_tune", DeconvolutionCudnnTuneValues[
int(cudnn_tune)])
  5786            .
SetParam(
"layout", DeconvolutionLayoutValues[
int(layout)])
  5898                             bool multi_output = 
false,
  5899                             bool use_ignore = 
false,
  5900                             bool preserve_shape = 
false,
  5902                             bool out_grad = 
false) {
  5903   static const char *SoftmaxOutputNormalizationValues[] = {
  5909            .
SetParam(
"grad_scale", grad_scale)
  5910            .
SetParam(
"ignore_label", ignore_label)
  5911            .
SetParam(
"multi_output", multi_output)
  5912            .
SetParam(
"use_ignore", use_ignore)
  5913            .
SetParam(
"preserve_shape", preserve_shape)
  5914            .
SetParam(
"normalization", SoftmaxOutputNormalizationValues[
int(normalization)])
  5957                       bool multi_output = 
false,
  5958                       bool use_ignore = 
false,
  5959                       bool preserve_shape = 
false,
  5961                       bool out_grad = 
false) {
  5962   static const char *SoftmaxNormalizationValues[] = {
  5968            .
SetParam(
"grad_scale", grad_scale)
  5969            .
SetParam(
"ignore_label", ignore_label)
  5970            .
SetParam(
"multi_output", multi_output)
  5971            .
SetParam(
"use_ignore", use_ignore)
  5972            .
SetParam(
"preserve_shape", preserve_shape)
  5973            .
SetParam(
"normalization", SoftmaxNormalizationValues[
int(normalization)])
  6057                               bool use_sequence_length = 
false) {
  6059            .
SetParam(
"use_sequence_length", use_sequence_length)
  6061            .
SetInput(
"sequence_length", sequence_length)
  6122                            bool use_sequence_length = 
false) {
  6124            .
SetParam(
"use_sequence_length", use_sequence_length)
  6126            .
SetInput(
"sequence_length", sequence_length)
  6181                           uint32_t kernel_size = 1,
  6182                           uint32_t max_displacement = 1,
  6183                           uint32_t stride1 = 1,
  6184                           uint32_t stride2 = 1,
  6185                           uint32_t pad_size = 0,
  6186                           bool is_multiply = 
true) {
  6188            .
SetParam(
"kernel_size", kernel_size)
  6189            .
SetParam(
"max_displacement", max_displacement)
  6193            .
SetParam(
"is_multiply", is_multiply)
  6218                         mx_float regularization_coefficient = 1,
  6219                         bool use_linear = 
false) {
  6222            .
SetParam(
"regularization_coefficient", regularization_coefficient)
  6223            .
SetParam(
"use_linear", use_linear)
  6303   static const char *L2NormalizationModeValues[] = {
  6310            .
SetParam(
"mode", L2NormalizationModeValues[
int(mode)])
  6387                              bool no_bias = 
false) {
  6389            .
SetParam(
"num_hidden", num_hidden)
  6477                            bool use_sequence_length = 
false,
  6480            .
SetParam(
"use_sequence_length", use_sequence_length)
  6483            .
SetInput(
"sequence_length", sequence_length)
  6509   static const char *GridGeneratorTransformTypeValues[] = {
  6514            .
SetParam(
"transform_type", GridGeneratorTransformTypeValues[
int(transform_type)])
  6515            .
SetParam(
"target_shape", target_shape)
  6590                          bool global_pool = 
false,
  6594   static const char *Pooling_v1PoolTypeValues[] = {
  6599   static const char *Pooling_v1PoolingConventionValues[] = {
  6605            .
SetParam(
"pool_type", Pooling_v1PoolTypeValues[
int(pool_type)])
  6606            .
SetParam(
"global_pool", global_pool)
  6607            .
SetParam(
"pooling_convention", Pooling_v1PoolingConventionValues[
int(pooling_convention)])
  6734                           uint32_t num_filter,
  6738                           uint32_t num_group = 1,
  6739                           uint64_t workspace = 1024,
  6740                           bool no_bias = 
false,
  6742                           bool cudnn_off = 
false,
  6744   static const char *ConvolutionCudnnTuneValues[] = {
  6747     "limited_workspace",
  6750   static const char *ConvolutionLayoutValues[] = {
  6760            .
SetParam(
"num_filter", num_filter)
  6767            .
SetParam(
"cudnn_tune", ConvolutionCudnnTuneValues[
int(cudnn_tune)])
  6769            .
SetParam(
"layout", ConvolutionLayoutValues[
int(layout)])
  6937                       bool global_pool = 
false,
  6938                       bool cudnn_off = 
false,
  6942   static const char *PoolingPoolTypeValues[] = {
  6947   static const char *PoolingPoolingConventionValues[] = {
  6953            .
SetParam(
"pool_type", PoolingPoolTypeValues[
int(pool_type)])
  6954            .
SetParam(
"global_pool", global_pool)
  6956            .
SetParam(
"pooling_convention", PoolingPoolingConventionValues[
int(pooling_convention)])
  7013   static const char *DropoutModeValues[] = {
  7019            .
SetParam(
"mode", DropoutModeValues[
int(mode)])
  7054   static const char *ActivationActTypeValues[] = {
  7061            .
SetParam(
"act_type", ActivationActTypeValues[
int(act_type)])
  7128            .
SetParam(
"pooled_size", pooled_size)
  7129            .
SetParam(
"spatial_scale", spatial_scale)
  7163   return Operator(
"LinearRegressionOutput")
  7164            .
SetParam(
"grad_scale", grad_scale)
  7199   return Operator(
"MAERegressionOutput")
  7200            .
SetParam(
"grad_scale", grad_scale)
  7235   return Operator(
"LogisticRegressionOutput")
  7236            .
SetParam(
"grad_scale", grad_scale)
  7286   static const char *SoftmaxActivationModeValues[] = {
  7290   return Operator(
"SoftmaxActivation")
  7291            .
SetParam(
"mode", SoftmaxActivationModeValues[
int(mode)])
  7345   static const char *MakeLossNormalizationValues[] = {
  7351            .
SetParam(
"grad_scale", grad_scale)
  7352            .
SetParam(
"valid_thresh", valid_thresh)
  7353            .
SetParam(
"normalization", MakeLossNormalizationValues[
int(normalization)])
  7369   return Operator(
"choose_element_0index")
  7388   return Operator(
"fill_element_0index")
  7499                                  bool get_prob = 
false,
  7501   static const char *Sample_multinomialDtypeValues[] = {
  7504   return Operator(
"sample_multinomial")
  7507            .
SetParam(
"dtype", Sample_multinomialDtypeValues[
int(dtype)])
  7551   static const char *Sample_uniformDtypeValues[] = {
  7559            .
SetParam(
"dtype", Sample_uniformDtypeValues[
int(dtype)])
  7604   static const char *Sample_normalDtypeValues[] = {
  7612            .
SetParam(
"dtype", Sample_normalDtypeValues[
int(dtype)])
  7657   static const char *Sample_gammaDtypeValues[] = {
  7665            .
SetParam(
"dtype", Sample_gammaDtypeValues[
int(dtype)])
  7707   static const char *Sample_exponentialDtypeValues[] = {
  7713   return Operator(
"sample_exponential")
  7715            .
SetParam(
"dtype", Sample_exponentialDtypeValues[
int(dtype)])
  7758   static const char *Sample_poissonDtypeValues[] = {
  7766            .
SetParam(
"dtype", Sample_poissonDtypeValues[
int(dtype)])
  7812   static const char *Sample_negative_binomialDtypeValues[] = {
  7818   return Operator(
"sample_negative_binomial")
  7820            .
SetParam(
"dtype", Sample_negative_binomialDtypeValues[
int(dtype)])
  7867   static const char *Sample_generalized_negative_binomialDtypeValues[] = {
  7873   return Operator(
"sample_generalized_negative_binomial")
  7875            .
SetParam(
"dtype", Sample_generalized_negative_binomialDtypeValues[
int(dtype)])
  7907                              const std::string& ctx = 
"",
  7909   static const char *Random_uniformDtypeValues[] = {
  7919            .
SetParam(
"dtype", Random_uniformDtypeValues[
int(dtype)])
  7947                             const std::string& ctx = 
"",
  7949   static const char *Random_normalDtypeValues[] = {
  7959            .
SetParam(
"dtype", Random_normalDtypeValues[
int(dtype)])
  7985                            const std::string& ctx = 
"",
  7987   static const char *Random_gammaDtypeValues[] = {
  7997            .
SetParam(
"dtype", Random_gammaDtypeValues[
int(dtype)])
  8021                                  const std::string& ctx = 
"",
  8023   static const char *Random_exponentialDtypeValues[] = {
  8029   return Operator(
"random_exponential")
  8032            .
SetParam(
"dtype", Random_exponentialDtypeValues[
int(dtype)])
  8057                              const std::string& ctx = 
"",
  8059   static const char *Random_poissonDtypeValues[] = {
  8068            .
SetParam(
"dtype", Random_poissonDtypeValues[
int(dtype)])
  8096                                        const std::string& ctx = 
"",
  8098   static const char *Random_negative_binomialDtypeValues[] = {
  8104   return Operator(
"random_negative_binomial")
  8108            .
SetParam(
"dtype", Random_negative_binomialDtypeValues[
int(dtype)])
  8137                                                    const std::string& ctx = 
"",
  8139   static const char *Random_generalized_negative_binomialDtypeValues[] = {
  8145   return Operator(
"random_generalized_negative_binomial")
  8149            .
SetParam(
"dtype", Random_generalized_negative_binomialDtypeValues[
int(dtype)])
  8207   return Operator(
"broadcast_maximum")
  8238   return Operator(
"broadcast_minimum")
  8358                       bool keep_highest = 
false) {
  8362            .
SetParam(
"target_shape", target_shape)
  8363            .
SetParam(
"keep_highest", keep_highest)
  8544                          dmlc::optional<int> end) {
  8585                   bool transpose_a = 
false,
  8586                   bool transpose_b = 
false) {
  8588            .
SetParam(
"transpose_a", transpose_a)
  8589            .
SetParam(
"transpose_b", transpose_b)
  8618                         bool transpose_a = 
false,
  8619                         bool transpose_b = 
false) {
  8621            .
SetParam(
"transpose_a", transpose_a)
  8622            .
SetParam(
"transpose_b", transpose_b)
  8695                      dmlc::optional<int> axis = dmlc::optional<int>()) {
  9066                      dmlc::optional<int> axis = dmlc::optional<int>(),
  9067                      bool keepdims = 
false) {
  9106                      dmlc::optional<int> axis = dmlc::optional<int>(),
  9107                      bool keepdims = 
false) {
  9188                    dmlc::optional<int> axis = dmlc::optional<int>(),
  9189                    bool keepdims = 
false) {
  9243                   bool keepdims = 
false,
  9244                   bool exclude = 
false) {
  9278                    bool keepdims = 
false,
  9279                    bool exclude = 
false) {
  9313                    bool keepdims = 
false,
  9314                    bool exclude = 
false) {
  9350                      bool keepdims = 
false,
  9351                      bool exclude = 
false) {
  9387                       bool keepdims = 
false,
  9388                       bool exclude = 
false) {
  9422                   bool keepdims = 
false,
  9423                   bool exclude = 
false) {
  9457                   bool keepdims = 
false,
  9458                   bool exclude = 
false) {
  9603                    dmlc::optional<int> axis = dmlc::optional<int>(-1),
  9606                    bool is_ascend = 
false) {
  9607   static const char *TopkRetTypValues[] = {
  9616            .
SetParam(
"ret_typ", TopkRetTypValues[
int(ret_typ)])
  9654                    dmlc::optional<int> axis = dmlc::optional<int>(-1),
  9655                    bool is_ascend = 
true) {
  9693                       dmlc::optional<int> axis = dmlc::optional<int>(-1),
  9694                       bool is_ascend = 
true) {
  9825   static const char *CastDtypeValues[] = {
  9833            .
SetParam(
"dtype", CastDtypeValues[
int(dtype)])
 10544   static const char *EmbeddingDtypeValues[] = {
 10553            .
SetParam(
"output_dim", output_dim)
 10554            .
SetParam(
"dtype", EmbeddingDtypeValues[
int(dtype)])
 10602   static const char *TakeModeValues[] = {
 10609            .
SetParam(
"mode", TakeModeValues[
int(mode)])
 10695                       double on_value = 1,
 10696                       double off_value = 0,
 10698   static const char *One_hotDtypeValues[] = {
 10709            .
SetParam(
"dtype", One_hotDtypeValues[
int(dtype)])
 10737   return Operator(
"broadcast_equal")
 10766   return Operator(
"broadcast_not_equal")
 10795   return Operator(
"broadcast_greater")
 10824   return Operator(
"broadcast_greater_equal")
 10853   return Operator(
"broadcast_lesser")
 10882   return Operator(
"broadcast_lesser_equal")
 10935                           bool transpose_a = 
false,
 10936                           bool transpose_b = 
false,
 10940            .
SetParam(
"transpose_a", transpose_a)
 10941            .
SetParam(
"transpose_b", transpose_b)
 10992                            bool transpose_a = 
false,
 10993                            bool transpose_b = 
false,
 10994                            double alpha = 1) {
 10996            .
SetParam(
"transpose_a", transpose_a)
 10997            .
SetParam(
"transpose_b", transpose_b)
 11133                           bool rightside = 
false,
 11134                           double alpha = 1) {
 11193                           bool rightside = 
false,
 11194                           double alpha = 1) {
 11232   return Operator(
"linalg_sumlogdiag")
 11309                      const std::string& op_type) {
 11344                        uint32_t dim2 = 0) {
 11382   static const char *LeakyReLUActTypeValues[] = {
 11389            .
SetParam(
"act_type", LeakyReLUActTypeValues[
int(act_type)])
 11391            .
SetParam(
"lower_bound", lower_bound)
 11392            .
SetParam(
"upper_bound", upper_bound)
 11456                            bool fix_gamma = 
true,
 11457                            bool use_global_stats = 
false,
 11458                            bool output_mean_var = 
false) {
 11463            .
SetParam(
"use_global_stats", use_global_stats)
 11464            .
SetParam(
"output_mean_var", output_mean_var)
 11550            .
SetParam(
"rescale_grad", rescale_grad)
 11551            .
SetParam(
"clip_gradient", clip_gradient)
 11603            .
SetParam(
"rescale_grad", rescale_grad)
 11604            .
SetParam(
"clip_gradient", clip_gradient)
 11634            .
SetParam(
"rescale_grad", rescale_grad)
 11635            .
SetParam(
"clip_gradient", clip_gradient)
 11666   return Operator(
"mp_sgd_mom_update")
 11670            .
SetParam(
"rescale_grad", rescale_grad)
 11671            .
SetParam(
"clip_gradient", clip_gradient)
 11734            .
SetParam(
"rescale_grad", rescale_grad)
 11735            .
SetParam(
"clip_gradient", clip_gradient)
 11810            .
SetParam(
"rescale_grad", rescale_grad)
 11811            .
SetParam(
"clip_gradient", clip_gradient)
 11812            .
SetParam(
"clip_weights", clip_weights)
 11876   return Operator(
"rmspropalex_update")
 11882            .
SetParam(
"rescale_grad", rescale_grad)
 11883            .
SetParam(
"clip_gradient", clip_gradient)
 11884            .
SetParam(
"clip_weights", clip_weights)
 11991                   double constant_value = 0) {
 11992   static const char *PadModeValues[] = {
 11998            .
SetParam(
"mode", PadModeValues[
int(mode)])
 12000            .
SetParam(
"constant_value", constant_value)
 12017   return Operator(
"IdentityAttachKLSparseReg")
 12018            .
SetParam(
"sparseness_target", sparseness_target)
 12098                            bool squeeze_axis = 
false) {
 12100            .
SetParam(
"num_outputs", num_outputs)
 12102            .
SetParam(
"squeeze_axis", squeeze_axis)
 12145   return Operator(
"softmax_cross_entropy")
 12169                          uint32_t num_filter = 0,
 12171                          uint64_t workspace = 512) {
 12172   static const char *UpSamplingSampleTypeValues[] = {
 12176   static const char *UpSamplingMultiInputModeValues[] = {
 12182            .
SetParam(
"sample_type", UpSamplingSampleTypeValues[
int(sample_type)])
 12184            .
SetParam(
"num_filter", num_filter)
 12185            .
SetParam(
"multi_input_mode", UpSamplingMultiInputModeValues[
int(multi_input_mode)])
 12258                         double eps = 0.001,
 12260                         bool fix_gamma = 
true,
 12261                         bool use_global_stats = 
false,
 12262                         bool output_mean_var = 
false,
 12264                         bool cudnn_off = 
false) {
 12269            .
SetParam(
"use_global_stats", use_global_stats)
 12270            .
SetParam(
"output_mean_var", output_mean_var)
 12276            .
SetInput(
"moving_mean", moving_mean)
 12277            .
SetInput(
"moving_var", moving_var)
 12360                   uint32_t state_size,
 12361                   uint32_t num_layers,
 12363                   bool bidirectional = 
false,
 12365                   bool state_outputs = 
false) {
 12366   static const char *RNNModeValues[] = {
 12373            .
SetParam(
"state_size", state_size)
 12374            .
SetParam(
"num_layers", num_layers)
 12375            .
SetParam(
"mode", RNNModeValues[
int(mode)])
 12376            .
SetParam(
"bidirectional", bidirectional)
 12378            .
SetParam(
"state_outputs", state_outputs)
 12380            .
SetInput(
"parameters", parameters)
 12382            .
SetInput(
"state_cell", state_cell)
 12417                              uint32_t num_filter,
 12421                              uint32_t num_group = 1,
 12422                              uint64_t workspace = 1024,
 12423                              bool no_bias = 
false,
 12425                              bool cudnn_off = 
false,
 12427   static const char *Convolution_v1CudnnTuneValues[] = {
 12430     "limited_workspace",
 12433   static const char *Convolution_v1LayoutValues[] = {
 12442            .
SetParam(
"num_filter", num_filter)
 12449            .
SetParam(
"cudnn_tune", Convolution_v1CudnnTuneValues[
int(cudnn_tune)])
 12451            .
SetParam(
"layout", Convolution_v1LayoutValues[
int(layout)])
 12481                    bool center_crop = 
false) {
 12486            .
SetParam(
"center_crop", center_crop)
 12505   static const char *SpatialTransformerTransformTypeValues[] = {
 12508   static const char *SpatialTransformerSamplerTypeValues[] = {
 12511   return Operator(
"SpatialTransformer")
 12512            .
SetParam(
"transform_type", SpatialTransformerTransformTypeValues[
int(transform_type)])
 12513            .
SetParam(
"sampler_type", SpatialTransformerSamplerTypeValues[
int(sampler_type)])
 12514            .
SetParam(
"target_shape", target_shape)
 12549                             uint32_t num_filter,
 12555                             uint32_t num_group = 1,
 12556                             uint64_t workspace = 512,
 12557                             bool no_bias = 
true,
 12559                             bool cudnn_off = 
false,
 12561   static const char *DeconvolutionCudnnTuneValues[] = {
 12564     "limited_workspace",
 12567   static const char *DeconvolutionLayoutValues[] = {
 12577            .
SetParam(
"num_filter", num_filter)
 12582            .
SetParam(
"target_shape", target_shape)
 12586            .
SetParam(
"cudnn_tune", DeconvolutionCudnnTuneValues[
int(cudnn_tune)])
 12588            .
SetParam(
"layout", DeconvolutionLayoutValues[
int(layout)])
 12690                             bool multi_output = 
false,
 12691                             bool use_ignore = 
false,
 12692                             bool preserve_shape = 
false,
 12694                             bool out_grad = 
false) {
 12695   static const char *SoftmaxOutputNormalizationValues[] = {
 12701            .
SetParam(
"grad_scale", grad_scale)
 12702            .
SetParam(
"ignore_label", ignore_label)
 12703            .
SetParam(
"multi_output", multi_output)
 12704            .
SetParam(
"use_ignore", use_ignore)
 12705            .
SetParam(
"preserve_shape", preserve_shape)
 12706            .
SetParam(
"normalization", SoftmaxOutputNormalizationValues[
int(normalization)])
 12739                       bool multi_output = 
false,
 12740                       bool use_ignore = 
false,
 12741                       bool preserve_shape = 
false,
 12743                       bool out_grad = 
false) {
 12744   static const char *SoftmaxNormalizationValues[] = {
 12750            .
SetParam(
"grad_scale", grad_scale)
 12751            .
SetParam(
"ignore_label", ignore_label)
 12752            .
SetParam(
"multi_output", multi_output)
 12753            .
SetParam(
"use_ignore", use_ignore)
 12754            .
SetParam(
"preserve_shape", preserve_shape)
 12755            .
SetParam(
"normalization", SoftmaxNormalizationValues[
int(normalization)])
 12837                               bool use_sequence_length = 
false) {
 12838   return Operator(
"SequenceReverse")
 12839            .
SetParam(
"use_sequence_length", use_sequence_length)
 12841            .
SetInput(
"sequence_length", sequence_length)
 12900                            bool use_sequence_length = 
false) {
 12902            .
SetParam(
"use_sequence_length", use_sequence_length)
 12904            .
SetInput(
"sequence_length", sequence_length)
 12957                           uint32_t kernel_size = 1,
 12958                           uint32_t max_displacement = 1,
 12959                           uint32_t stride1 = 1,
 12960                           uint32_t stride2 = 1,
 12961                           uint32_t pad_size = 0,
 12962                           bool is_multiply = 
true) {
 12964            .
SetParam(
"kernel_size", kernel_size)
 12965            .
SetParam(
"max_displacement", max_displacement)
 12969            .
SetParam(
"is_multiply", is_multiply)
 12992                         mx_float regularization_coefficient = 1,
 12993                         bool use_linear = 
false) {
 12996            .
SetParam(
"regularization_coefficient", regularization_coefficient)
 12997            .
SetParam(
"use_linear", use_linear)
 13067   static const char *L2NormalizationModeValues[] = {
 13072   return Operator(
"L2Normalization")
 13074            .
SetParam(
"mode", L2NormalizationModeValues[
int(mode)])
 13147                              bool no_bias = 
false) {
 13149            .
SetParam(
"num_hidden", num_hidden)
 13235                            bool use_sequence_length = 
false,
 13238            .
SetParam(
"use_sequence_length", use_sequence_length)
 13241            .
SetInput(
"sequence_length", sequence_length)
 13257   static const char *GridGeneratorTransformTypeValues[] = {
 13262            .
SetParam(
"transform_type", GridGeneratorTransformTypeValues[
int(transform_type)])
 13263            .
SetParam(
"target_shape", target_shape)
 13321                          bool global_pool = 
false,
 13325   static const char *Pooling_v1PoolTypeValues[] = {
 13330   static const char *Pooling_v1PoolingConventionValues[] = {
 13336            .
SetParam(
"pool_type", Pooling_v1PoolTypeValues[
int(pool_type)])
 13337            .
SetParam(
"global_pool", global_pool)
 13338            .
SetParam(
"pooling_convention", Pooling_v1PoolingConventionValues[
int(pooling_convention)])
 13442                           uint32_t num_filter,
 13446                           uint32_t num_group = 1,
 13447                           uint64_t workspace = 1024,
 13448                           bool no_bias = 
false,
 13450                           bool cudnn_off = 
false,
 13452   static const char *ConvolutionCudnnTuneValues[] = {
 13455     "limited_workspace",
 13458   static const char *ConvolutionLayoutValues[] = {
 13468            .
SetParam(
"num_filter", num_filter)
 13475            .
SetParam(
"cudnn_tune", ConvolutionCudnnTuneValues[
int(cudnn_tune)])
 13477            .
SetParam(
"layout", ConvolutionLayoutValues[
int(layout)])
 13565   return Operator(
"BilinearSampler")
 13626                       bool global_pool = 
false,
 13627                       bool cudnn_off = 
false,
 13631   static const char *PoolingPoolTypeValues[] = {
 13636   static const char *PoolingPoolingConventionValues[] = {
 13642            .
SetParam(
"pool_type", PoolingPoolTypeValues[
int(pool_type)])
 13643            .
SetParam(
"global_pool", global_pool)
 13645            .
SetParam(
"pooling_convention", PoolingPoolingConventionValues[
int(pooling_convention)])
 13693   static const char *DropoutModeValues[] = {
 13699            .
SetParam(
"mode", DropoutModeValues[
int(mode)])
 13723   static const char *ActivationActTypeValues[] = {
 13730            .
SetParam(
"act_type", ActivationActTypeValues[
int(act_type)])
 13795            .
SetParam(
"pooled_size", pooled_size)
 13796            .
SetParam(
"spatial_scale", spatial_scale)
 13828   return Operator(
"LinearRegressionOutput")
 13829            .
SetParam(
"grad_scale", grad_scale)
 13862   return Operator(
"MAERegressionOutput")
 13863            .
SetParam(
"grad_scale", grad_scale)
 13896   return Operator(
"LogisticRegressionOutput")
 13897            .
SetParam(
"grad_scale", grad_scale)
 13937   static const char *SoftmaxActivationModeValues[] = {
 13941   return Operator(
"SoftmaxActivation")
 13942            .
SetParam(
"mode", SoftmaxActivationModeValues[
int(mode)])
 13984   static const char *MakeLossNormalizationValues[] = {
 13990            .
SetParam(
"grad_scale", grad_scale)
 13991            .
SetParam(
"valid_thresh", valid_thresh)
 13992            .
SetParam(
"normalization", MakeLossNormalizationValues[
int(normalization)])
 14006   return Operator(
"choose_element_0index")
 14023   return Operator(
"fill_element_0index")
 14032 #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:6729
Symbol sample_multinomial(const std::string &symbol_name, Symbol data, Shape shape=Shape(), bool get_prob=false, Sample_multinomialDtype dtype=Sample_multinomialDtype::kInt32)
Definition: op.h:135
Symbol fix(const std::string &symbol_name, Symbol data)
Definition: op.h:2959
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:5638
Symbol min(const std::string &symbol_name, Symbol data, Shape axis=Shape(), bool keepdims=false, bool exclude=false)
Definition: op.h:2319
Symbol broadcast_mul(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:1786
Symbol linalg_gemm(const std::string &symbol_name, Symbol A, Symbol B, Symbol C, bool transpose_a=false, bool transpose_b=false, double alpha=1, double beta=1)
Definition: op.h:3964
Symbol arcsin(const std::string &symbol_name, Symbol data)
Definition: op.h:3240
Symbol arccosh(const std::string &symbol_name, Symbol data)
Definition: op.h:3417
Symbol arctan(const std::string &symbol_name, Symbol data)
Definition: op.h:3285
Symbol SwapAxis(const std::string &symbol_name, Symbol data, uint32_t dim1=0, uint32_t dim2=0)
Definition: op.h:4394
Symbol nansum(const std::string &symbol_name, Symbol data, Shape axis=Shape(), bool keepdims=false, bool exclude=false)
Definition: op.h:2206
Symbol add_n(const std::string &symbol_name, const std::vector< Symbol > &args)
Definition: op.h:1871
Symbol log1p(const std::string &symbol_name, Symbol data)
Definition: op.h:3154
SoftmaxActivationMode
Definition: op.h:7245
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:4697
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:5675
Sample_uniformDtype
Definition: op.h:153
Symbol exp(const std::string &symbol_name, Symbol data)
Definition: op.h:3055
Symbol transpose(const std::string &symbol_name, Symbol data, Shape axes=Shape())
Definition: op.h:1244
Symbol clip(const std::string &symbol_name, Symbol data, mx_float a_min, mx_float a_max)
Definition: op.h:1468
Symbol ROIPooling(const std::string &symbol_name, Symbol data, Symbol rois, Shape pooled_size, mx_float spatial_scale)
Definition: op.h:7122
Symbol broadcast_div(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:1817
Random_poissonDtype
Definition: op.h:798
Random_negative_binomialDtype
Definition: op.h:845
Symbol nanprod(const std::string &symbol_name, Symbol data, Shape axis=Shape(), bool keepdims=false, bool exclude=false)
Definition: op.h:2245
Convolution_v1Layout
Definition: op.h:5536
Symbol argmin(const std::string &symbol_name, Symbol data, dmlc::optional< int > axis=dmlc::optional< int >(), bool keepdims=false)
Definition: op.h:1951
Symbol linalg_potri(const std::string &symbol_name, Symbol A)
Definition: op.h:4116
Symbol linalg_trmm(const std::string &symbol_name, Symbol A, Symbol B, bool transpose=false, bool rightside=false, double alpha=1)
Definition: op.h:4170
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:4732
Symbol broadcast_lesser(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:3879
Symbol fill_element_0index(const std::string &symbol_name, Symbol lhs, Symbol mhs, Symbol rhs)
Definition: op.h:7384
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:5572
Symbol broadcast_not_equal(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:3786
TakeMode
Definition: op.h:3557
Symbol Embedding(const std::string &symbol_name, Symbol data, Symbol weight, int input_dim, int output_dim, EmbeddingDtype dtype=EmbeddingDtype::kFloat32)
Definition: op.h:3531
Symbol reciprocal(const std::string &symbol_name, Symbol data)
Definition: op.h:2780
TopkRetTyp
Definition: op.h:2438
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:5486
namespace of mxnet 
Definition: base.h:126
Sample_exponentialDtype
Definition: op.h:345
Pooling_v1PoolingConvention
Definition: op.h:6530
Symbol broadcast_lesser_equal(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:3910
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:5449
Symbol sign(const std::string &symbol_name, Symbol data)
Definition: op.h:2822
GridGeneratorTransformType
Definition: op.h:6490
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:1685
RNNMode
Definition: op.h:5464
PadMode
Definition: op.h:4978
Symbol smooth_l1(const std::string &symbol_name, Symbol data, mx_float scalar)
Definition: op.h:4334
Symbol where(const std::string &symbol_name, Symbol condition, Symbol x, Symbol y)
Definition: op.h:4298
Symbol Dropout(const std::string &symbol_name, Symbol data, mx_float p=0.5, DropoutMode mode=DropoutMode::kTraining)
Definition: op.h:7009
Symbol expm1(const std::string &symbol_name, Symbol data)
Definition: op.h:3173
Symbol elemwise_add(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:2598
PoolingPoolType
Definition: op.h:6867
Symbol relu(const std::string &symbol_name, Symbol data)
Definition: op.h:2620
Symbol reverse(const std::string &symbol_name, Symbol data, Shape axis)
Definition: op.h:1601
Symbol rsqrt(const std::string &symbol_name, Symbol data)
Definition: op.h:3031
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:6933
Symbol sample_exponential(const std::string &symbol_name, Symbol lam, Shape shape=Shape(), Sample_exponentialDtype dtype=Sample_exponentialDtype::kNone)
Definition: op.h:386
Symbol sample_poisson(const std::string &symbol_name, Symbol lam, Shape shape=Shape(), Sample_poissonDtype dtype=Sample_poissonDtype::kNone)
Definition: op.h:448
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:6586
SpatialTransformerTransformType
Definition: op.h:5655
Symbol random_exponential(const std::string &symbol_name, mx_float lam=1, Shape shape=Shape(), const std::string &ctx="", Random_exponentialDtype dtype=Random_exponentialDtype::kNone)
Definition: op.h:778
ActivationActType
Definition: op.h:7026
Symbol sqrt(const std::string &symbol_name, Symbol data)
Definition: op.h:3007
Symbol random_normal(const std::string &symbol_name, mx_float loc=0, mx_float scale=1, Shape shape=Shape(), const std::string &ctx="", Random_normalDtype dtype=Random_normalDtype::kNone)
Definition: op.h:681
Symbol rint(const std::string &symbol_name, Symbol data)
Definition: op.h:2868
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:5107
Symbol sinh(const std::string &symbol_name, Symbol data)
Definition: op.h:3345
Symbol broadcast_greater_equal(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:3848
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:6342
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:4662
Symbol max(const std::string &symbol_name, Symbol data, Shape axis=Shape(), bool keepdims=false, bool exclude=false)
Definition: op.h:2282
Symbol arcsinh(const std::string &symbol_name, Symbol data)
Definition: op.h:3401
Random_gammaDtype
Definition: op.h:703
Symbol MAERegressionOutput(const std::string &symbol_name, Symbol data, Symbol label, mx_float grad_scale=1)
Definition: op.h:7195
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:4610
Symbol SliceChannel(const std::string &symbol_name, Symbol data, int num_outputs, int axis=1, bool squeeze_axis=false)
Definition: op.h:5191
PoolingPoolingConvention
Definition: op.h:6875
Symbol broadcast_minimum(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:1034
Sample_gammaDtype
Definition: op.h:281
Symbol broadcast_maximum(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:1001
Random_generalized_negative_binomialDtype
Definition: op.h:896
Symbol Cast(const std::string &symbol_name, Symbol data, CastDtype dtype)
Definition: op.h:2733
DeconvolutionLayout
Definition: op.h:5707
Symbol trunc(const std::string &symbol_name, Symbol data)
Definition: op.h:2938
Pooling_v1PoolType
Definition: op.h:6522
Symbol sample_generalized_negative_binomial(const std::string &symbol_name, Symbol mu, Symbol alpha, Shape shape=Shape(), Sample_generalized_negative_binomialDtype dtype=Sample_generalized_negative_binomialDtype::kNone)
Definition: op.h:578
Symbol round(const std::string &symbol_name, Symbol data)
Definition: op.h:2843
Sample_normalDtype
Definition: op.h:217
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:3195
Symbol sample_uniform(const std::string &symbol_name, Symbol low, Symbol high, Shape shape=Shape(), Sample_uniformDtype dtype=Sample_uniformDtype::kNone)
Definition: op.h:196
Symbol SequenceMask(const std::string &symbol_name, Symbol data, Symbol sequence_length, bool use_sequence_length=false, mx_float value=0)
Definition: op.h:6474
Symbol L2Normalization(const std::string &symbol_name, Symbol data, mx_float eps=1e-10, L2NormalizationMode mode=L2NormalizationMode::kInstance)
Definition: op.h:6299
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:6178
Symbol random_gamma(const std::string &symbol_name, mx_float alpha=1, mx_float beta=1, Shape shape=Shape(), const std::string &ctx="", Random_gammaDtype dtype=Random_gammaDtype::kNone)
Definition: op.h:730
Symbol zeros_like(const std::string &symbol_name, Symbol data)
Definition: op.h:1661
EmbeddingDtype
Definition: op.h:3472
Symbol batch_dot(const std::string &symbol_name, Symbol lhs, Symbol rhs, bool transpose_a=false, bool transpose_b=false)
Definition: op.h:1432
Symbol broadcast_mod(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:1848
Symbol FullyConnected(const std::string &symbol_name, Symbol data, Symbol weight, Symbol bias, int num_hidden, bool no_bias=false)
Definition: op.h:6382
Symbol prod(const std::string &symbol_name, Symbol data, Shape axis=Shape(), bool keepdims=false, bool exclude=false)
Definition: op.h:2167
operator helper functions 
Symbol mean(const std::string &symbol_name, Symbol data, Shape axis=Shape(), bool keepdims=false, bool exclude=false)
Definition: op.h:2130
Symbol tanh(const std::string &symbol_name, Symbol data)
Definition: op.h:3385
Symbol random_poisson(const std::string &symbol_name, mx_float lam=1, Shape shape=Shape(), const std::string &ctx="", Random_poissonDtype dtype=Random_poissonDtype::kNone)
Definition: op.h:825
Symbol broadcast_to(const std::string &symbol_name, Symbol data, Shape shape=Shape())
Definition: op.h:2400
Symbol sample_negative_binomial(const std::string &symbol_name, Symbol k, Symbol p, Shape shape=Shape(), Sample_negative_binomialDtype dtype=Sample_negative_binomialDtype::kNone)
Definition: op.h:512
DropoutMode
Definition: op.h:6965
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:7340
Symbol log(const std::string &symbol_name, Symbol data)
Definition: op.h:3074
Symbol sigmoid(const std::string &symbol_name, Symbol data)
Definition: op.h:2640
Symbol SequenceReverse(const std::string &symbol_name, Symbol data, Symbol sequence_length, bool use_sequence_length=false)
Definition: op.h:6054
CastDtype
Definition: op.h:2706
ConvolutionLayout
Definition: op.h:6626
Random_exponentialDtype
Definition: op.h:752
Symbol LogisticRegressionOutput(const std::string &symbol_name, Symbol data, Symbol label, mx_float grad_scale=1)
Definition: op.h:7231
Symbol gamma(const std::string &symbol_name, Symbol data)
Definition: op.h:3448
Symbol sin(const std::string &symbol_name, Symbol data)
Definition: op.h:3134
Random_uniformDtype
Definition: op.h:599
UpSamplingMultiInputMode
Definition: op.h:5260
Symbol CreateSymbol(const std::string &name="")
create a Symbol from the current operator 
SpatialTransformerSamplerType
Definition: op.h:5661
Symbol Pad(const std::string &symbol_name, Symbol data, PadMode mode, Shape pad_width, double constant_value=0)
Definition: op.h:5080
Symbol square(const std::string &symbol_name, Symbol data)
Definition: op.h:2983
One_hotDtype
Definition: op.h:3659
UpSamplingSampleType
Definition: op.h:5252
Sample_poissonDtype
Definition: op.h:405
Symbol random_generalized_negative_binomial(const std::string &symbol_name, mx_float mu=1, mx_float alpha=1, Shape shape=Shape(), const std::string &ctx="", Random_generalized_negative_binomialDtype dtype=Random_generalized_negative_binomialDtype::kNone)
Definition: op.h:926
Symbol norm(const std::string &symbol_name, Symbol data)
Definition: op.h:2426
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:4874
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:4440
Symbol make_loss(const std::string &symbol_name, Symbol data)
Definition: op.h:2697
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)
Definition: op.h:5893
Symbol SoftmaxActivation(const std::string &symbol_name, Symbol data, SoftmaxActivationMode mode=SoftmaxActivationMode::kInstance)
Definition: op.h:7283
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)
Definition: op.h:5953
Symbol slice(const std::string &symbol_name, Symbol data, Shape begin, Shape end)
Definition: op.h:1310
Symbol broadcast_equal(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:3755
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:5742
Symbol broadcast_add(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:1719
Symbol linalg_trsm(const std::string &symbol_name, Symbol A, Symbol B, bool transpose=false, bool rightside=false, double alpha=1)
Definition: op.h:4232
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:4794
Sample_multinomialDtype
Definition: op.h:93
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:3217
Convolution_v1CudnnTune
Definition: op.h:5526
Symbol repeat(const std::string &symbol_name, Symbol data, int repeats, dmlc::optional< int > axis=dmlc::optional< int >())
Definition: op.h:1513
Symbol slice_axis(const std::string &symbol_name, Symbol data, int axis, int begin, dmlc::optional< int > end)
Definition: op.h:1353
Symbol expand_dims(const std::string &symbol_name, Symbol data, int axis)
Definition: op.h:1268
Symbol arctanh(const std::string &symbol_name, Symbol data)
Definition: op.h:3433
Symbol softmax_cross_entropy(const std::string &symbol_name, Symbol data, Symbol label)
Definition: op.h:5241
Symbol pick(const std::string &symbol_name, Symbol data, Symbol index, dmlc::optional< int > axis=dmlc::optional< int >(), bool keepdims=false)
Definition: op.h:2036
Symbol broadcast_axis(const std::string &symbol_name, Symbol data, Shape axis=Shape(), Shape size=Shape())
Definition: op.h:2361
Symbol abs(const std::string &symbol_name, Symbol data)
Definition: op.h:2801
Symbol sample_normal(const std::string &symbol_name, Symbol mu, Symbol sigma, Shape shape=Shape(), Sample_normalDtype dtype=Sample_normalDtype::kNone)
Definition: op.h:260
Symbol cosh(const std::string &symbol_name, Symbol data)
Definition: op.h:3365
Symbol sort(const std::string &symbol_name, Symbol data, dmlc::optional< int > axis=dmlc::optional< int >(-1), bool is_ascend=true)
Definition: op.h:2539
Symbol BilinearSampler(const std::string &symbol_name, Symbol data, Symbol grid)
Definition: op.h:6856
Symbol Custom(const std::string &symbol_name, const std::vector< Symbol > &data, const std::string &op_type)
Definition: op.h:4358
Symbol linalg_sumlogdiag(const std::string &symbol_name, Symbol A)
Definition: op.h:4275
Symbol broadcast_hypot(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:1073
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:4516
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:5280
Symbol Activation(const std::string &symbol_name, Symbol data, ActivationActType act_type)
Definition: op.h:7051
float mx_float
manually define float 
Definition: c_api.h:59
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:6214
Symbol radians(const std::string &symbol_name, Symbol data)
Definition: op.h:3325
Symbol Concat(const std::string &symbol_name, const std::vector< Symbol > &data, int num_args, int dim=1)
Definition: op.h:4578
L2NormalizationMode
Definition: op.h:6231
Symbol stack(const std::string &symbol_name, const std::vector< Symbol > &data, int num_args, int axis=0)
Definition: op.h:1633
Symbol floor(const std::string &symbol_name, Symbol data)
Definition: op.h:2914
Symbol broadcast_sub(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:1755
Symbol linalg_potrf(const std::string &symbol_name, Symbol A)
Definition: op.h:4074
Symbol take(const std::string &symbol_name, Symbol a, Symbol indices, int axis=0, TakeMode mode=TakeMode::kClip)
Definition: op.h:3602
Symbol ceil(const std::string &symbol_name, Symbol data)
Definition: op.h:2891
Symbol gammaln(const std::string &symbol_name, Symbol data)
Definition: op.h:3463
Symbol tile(const std::string &symbol_name, Symbol data, Shape reps)
Definition: op.h:1569
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:4944
Sample_negative_binomialDtype
Definition: op.h:467
Symbol argsort(const std::string &symbol_name, Symbol data, dmlc::optional< int > axis=dmlc::optional< int >(-1), bool is_ascend=true)
Definition: op.h:2580
SoftmaxNormalization
Definition: op.h:5923
Symbol softmax(const std::string &symbol_name, Symbol data, int axis=-1)
Definition: op.h:51
DeconvolutionCudnnTune
Definition: op.h:5698
ConvolutionCudnnTune
Definition: op.h:6616
Symbol broadcast_greater(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:3817
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:5370
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:2486
Symbol random_uniform(const std::string &symbol_name, mx_float low=0, mx_float high=1, Shape shape=Shape(), const std::string &ctx="", Random_uniformDtype dtype=Random_uniformDtype::kNone)
Definition: op.h:630
Symbol broadcast_power(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:968
Symbol sample_gamma(const std::string &symbol_name, Symbol alpha, Symbol beta, Shape shape=Shape(), Sample_gammaDtype dtype=Sample_gammaDtype::kNone)
Definition: op.h:324
SoftmaxOutputNormalization
Definition: op.h:5795
Symbol Flatten(const std::string &symbol_name, Symbol data)
Definition: op.h:1201
Symbol BlockGrad(const std::string &symbol_name, Symbol data)
Definition: op.h:2680
LeakyReLUActType
Definition: op.h:4407
Symbol arccos(const std::string &symbol_name, Symbol data)
Definition: op.h:3263
Symbol argmax_channel(const std::string &symbol_name, Symbol data)
Definition: op.h:1984
Symbol batch_take(const std::string &symbol_name, Symbol a, Symbol indices)
Definition: op.h:3648
Symbol LinearRegressionOutput(const std::string &symbol_name, Symbol data, Symbol label, mx_float grad_scale=1)
Definition: op.h:7159
Symbol random_negative_binomial(const std::string &symbol_name, int k=1, mx_float p=1, Shape shape=Shape(), const std::string &ctx="", Random_negative_binomialDtype dtype=Random_negative_binomialDtype::kNone)
Definition: op.h:874
Sample_generalized_negative_binomialDtype
Definition: op.h:533
Symbol choose_element_0index(const std::string &symbol_name, Symbol lhs, Symbol rhs)
Definition: op.h:7366
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:1156
Symbol degrees(const std::string &symbol_name, Symbol data)
Definition: op.h:3305
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:3711
Symbol SequenceLast(const std::string &symbol_name, Symbol data, Symbol sequence_length, bool use_sequence_length=false)
Definition: op.h:6119
Random_normalDtype
Definition: op.h:652
Symbol negative(const std::string &symbol_name, Symbol data)
Definition: op.h:2757
Symbol GridGenerator(const std::string &symbol_name, Symbol data, GridGeneratorTransformType transform_type, Shape target_shape=Shape(0, 0))
Definition: op.h:6505
Symbol linalg_gemm2(const std::string &symbol_name, Symbol A, Symbol B, bool transpose_a=false, bool transpose_b=false, double alpha=1)
Definition: op.h:4024
Symbol argmax(const std::string &symbol_name, Symbol data, dmlc::optional< int > axis=dmlc::optional< int >(), bool keepdims=false)
Definition: op.h:1909
Operator interface. 
Definition: operator.h:42
Symbol interface. 
Definition: symbol.h:71
Symbol sum(const std::string &symbol_name, Symbol data, Shape axis=Shape(), bool keepdims=false, bool exclude=false)
Definition: op.h:2093
MakeLossNormalization
Definition: op.h:7300
Symbol log10(const std::string &symbol_name, Symbol data)
Definition: op.h:3093
Symbol dot(const std::string &symbol_name, Symbol lhs, Symbol rhs, bool transpose_a=false, bool transpose_b=false)
Definition: op.h:1397
Symbol log2(const std::string &symbol_name, Symbol data)
Definition: op.h:3112