Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Merge pull request #5 from wangg12/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
Wang Gu committed Nov 18, 2015
2 parents 63e1ae6 + f9436b9 commit d5c74ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion doc/python/kvstore.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ control how data is merged.
>>> def update(key, input, stored):
>>> print "update on key: %d" % key
>>> stored += input * 2
>>> kv.set_updater(update)
>>> kv._set_updater(update)
>>> kv.pull(3, out=a)
>>> print a.asnumpy()
[[ 4. 4. 4.]
Expand Down
4 changes: 2 additions & 2 deletions doc/python/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ In default, `NDArray` performs elemental-wise operations:
```python
>>> a = mx.nd.ones((2, 3)) * 2
>>> b = mx.nd.ones((2, 3)) * 4
>>> print a.asnumpy()
>>> print b.asnumpy()
[[ 4. 4. 4.]
[ 4. 4. 4.]]
>>> c = a + b
Expand Down Expand Up @@ -419,7 +419,7 @@ control how data is merged.
>>> def update(key, input, stored):
>>> print "update on key: %d" % key
>>> stored += input * 2
>>> kv.set_updater(update)
>>> kv._set_updater(update)
>>> kv.pull(3, out=a)
>>> print a.asnumpy()
[[ 4. 4. 4.]
Expand Down

0 comments on commit d5c74ea

Please sign in to comment.