piiswrong commented on a change in pull request #9460: Data-iterator tutorial 
made python3 compatible.
URL: https://github.com/apache/incubator-mxnet/pull/9460#discussion_r161949442
 
 

 ##########
 File path: docs/tutorials/basic/data.md
 ##########
 @@ -180,6 +184,30 @@ mod = mx.mod.Module(symbol=net)
 mod.fit(data_iter, num_epoch=5)
 ```
 
+A note on python 3 usage: Lot of the methods in mxnet use string for python2 
and bytes for python3. 
+In order to keep this tutorial readable, we are going to define a utility 
function that converts
+string to bytes in python 3 environment
+
+```python
+def str_or_bytes(str):
 
 Review comment:
   mxnet.base.py_str

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to