This repository has been archived by the owner on Nov 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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 (#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
e456dc4
commit 6ca9092
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