You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2019/02/11 10:51:31 UTC

[GitHub] Bumblebee1964 opened a new issue #14116: Failure in generated op.h in version 1.3.1

Bumblebee1964 opened a new issue #14116: Failure in generated op.h in version 1.3.1
URL: https://github.com/apache/incubator-mxnet/issues/14116
 
 
   Note: Providing complete information in the most concise form is the best way to get help. This issue template serves as the checklist for essential information to most of the technical issues and bug reports. For non-technical issues and feature requests, feel free to present the information in what you believe is the best form.
   
   For Q & A and discussion, please start a discussion thread at https://discuss.mxnet.io 
   
   ## Description
   When compiling MXNET with CPP package, an op.h header is generated with syntax errors. Compared to version 1.3.0, some operators have been added to have this syntax error (missing type specifier in argument list of inline function)
   
   ## Environment info (Required)
   WINDOWS 10 Pro, X64
   MXNET 1.3.1.
   VS2017
   MKL
   OPENCV 3.4.5
   CMake 3.13.4
   CUDA 9.2
   CUDNN 9.2
   
   ## Build info (Required if built from source)
   
   Compiler: VS2017
   
   MXNet commit hash:
   (Paste the output of `git rev-parse HEAD` here.)
   
   Build config:
   1>------ Build started: Project: cpp_package_op_h, Configuration: Release x64 ------
   1>"Running: OpWrapperGenerator.py"
   1>D:/Projects/MXNet-versions/MxNet1-3-1/build/Release/libmxnet.dll
   1>argument "lrs" of operator "multi_sgd_update" has unknown type ", required"
   1>argument "wds" of operator "multi_sgd_update" has unknown type ", required"
   1>argument "lrs" of operator "multi_sgd_mom_update" has unknown type ", required"
   1>argument "wds" of operator "multi_sgd_mom_update" has unknown type ", required"
   1>argument "lrs" of operator "multi_mp_sgd_update" has unknown type ", required"
   1>argument "wds" of operator "multi_mp_sgd_update" has unknown type ", required"
   1>argument "lrs" of operator "multi_mp_sgd_mom_update" has unknown type ", required"
   1>argument "wds" of operator "multi_mp_sgd_mom_update" has unknown type ", required"
   ========== Build: 1 succeeded, 0 failed, 3 up-to-date, 0 skipped ==========
   
   Problem in generated code (the parameters lrs and wds):
   `inline Symbol multi_sgd_update(const std::string& symbol_name,
                                  const std::vector<Symbol>& data,
                                   lrs,
                                   wds,
                                  mx_float rescale_grad = 1,
                                  mx_float clip_gradient = -1,
                                  int num_weights = 1) {
     return Operator("multi_sgd_update")
              .SetParam("lrs", lrs)
              .SetParam("wds", wds)
              .SetParam("rescale_grad", rescale_grad)
              .SetParam("clip_gradient", clip_gradient)
              .SetParam("num_weights", num_weights)
   (data)
              .CreateSymbol(symbol_name);
   }`
   
   The same for the inline functions: 
   multi_sgd_mom_update
   multi_mp_sgd_update
   multi_mp_sgd_mom_update
   ..and overloaded functions
   
   ## Error Message:
   
   ## Minimum reproducible example
   
   
   ## Steps to reproduce
   
   1.
   2.
   
   ## What have you tried to solve it?
   
   1. op.h generation worked with same system / compiler settings for 1.3.0
   2.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services