ZHAIXINGZHAIYUE commented on issue #14434: could  i set multi kv_store in 
distribute training program?
URL: 
https://github.com/apache/incubator-mxnet/issues/14434#issuecomment-525156954
 
 
   @eric-haibin-lin @zachgk  当使用update_on_kvstore=False 时, mxnet 
如何保证初始化的权重在不同的节点上都是一样的?
   ```
   def _initialize_kvstore(kvstore, param_arrays, arg_params, param_names, 
update_on_kvstore):
       """Initialize kvstore"""
       for idx, param_on_devs in enumerate(param_arrays):
           name = param_names[idx]
           kvstore.init(name, arg_params[name])
   
           if update_on_kvstore:
               kvstore.pull(name, param_on_devs, priority=-idx)
   ```

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