samskalicky commented on issue #17270: Dynamic custom operator GPU support
URL: https://github.com/apache/incubator-mxnet/pull/17270#issuecomment-578355722
 
 
   @rondogency can you try this:
   ```
   template <class T>
   class Registry {
    public:
     /*!
      * \brief get singleton pointer to class
      * \returns pointer to class
      */
     static Registry* get() {
       static Registry inst __attribute__ ((visibility ("hidden")));
       return &inst;
     }
   ```

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


With regards,
Apache Git Services

Reply via email to