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

Commit

Permalink
Update tutorial.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Wang Gu committed Nov 18, 2015
1 parent 93ba9de commit f9436b9
Showing 1 changed file with 2 additions and 2 deletions.
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 f9436b9

Please sign in to comment.