forked from apache/mxnet
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix bug in 'device' type kvstore (apache#12350)
* fix bug in 'device' type kvstore When we init a key after another key pushed. This key has no merged_buf_ in file 'comm.h', but the inited_ is true. So it can't pull this new key. ``` import mxnet as mx a=mx.nd.array([1,2,3], ctx=mx.gpu(0)) b=mx.nd.array([0,0,0], ctx=mx.gpu(0)) kv=mx.kv.create('device') kv.init('1', a) kv.push('1', [a,a,a,a]) kv.pull('1', b) kv.init('2', a) kv.pull('2', b) ``` * add kv test pull
- Loading branch information
1 parent
77e173f
commit 796bd0e
Showing
2 changed files
with
22 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters