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/12 01:33:29 UTC

[GitHub] ly-atdawn opened a new issue #9387: Init bias term in every layer

ly-atdawn opened a new issue #9387: Init bias term in every layer
URL: https://github.com/apache/incubator-mxnet/issues/9387
 
 
   I want to set like this:
   weight init like: mx.initializer.Xavier(rnd_type="uniform", factor_type="avg", magnitude=1.0)
   bias init like:
   
   @mx.init.register
   # @alias('myinit')
   class CustomInit(mx.init.Initializer):
       def init(self):
           super(CustomInit, self).init()
       def _init_weight(self, _, arr):
           pass
           # arr[:] = 0.1
       def _init_bias(self, _, arr):
           arr[:] = 0.1
   
   How can implement this? Help a lot

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