XJDKC commented on pull request #697: URL: https://github.com/apache/singa/pull/697#issuecomment-633222142
Sorry, the example above is just to show how to create a layer so I don't consider using the latest APIs. And there are no direct params in Model. If we let users override set_params/get_params,the code for every layer is quite similar. ```Python def get_params(self): self.param_names = ['W', 'b'] super(LayerName, self).get_params() def set_params(self, **params): self.param_names = ['W', 'b'] super(LayerName, self).set_params() ``` ---------------------------------------------------------------- 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: us...@infra.apache.org