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 2018/01/15 04:08:07 UTC

[GitHub] rayjs opened a new issue #9429: How to provide std::vector of parameters to operator layer

rayjs opened a new issue #9429: How to provide std::vector<float> of parameters to operator layer
URL: https://github.com/apache/incubator-mxnet/issues/9429
 
 
   Hi I want to provide a float and an int vector as parameter to my operator. I have the following definition but I get compilation error. To get around this instead of `std::vector<int>`, I use `Tshape`, which works fine but for `float` it is not possible because `Tshape` accepts `int`.
   
   Please help.
   
   ```
   struct DummyParam : public dmlc::Parameter<DummyParam>
   {
       std::vector<float> vfloat;
      std::vector<int> vint;
       DMLC_DECLARE_PARAMETER(DummyParam)
       {
           DMLC_DECLARE_FIELD(vint).describe("Entries of vint vector");
           DMLC_DECLARE_FIELD(vfloat).describe("Entries of vfloat vector");
       }
   };
   ```
   Thank you

----------------------------------------------------------------
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