You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/10/12 06:49:15 UTC
[GitHub] HaoLiuHust commented on issue #12806: when use python3 to write
recodeio, "can't concat str to bytes" will happen
HaoLiuHust commented on issue #12806: when use python3 to write recodeio, "can't concat str to bytes" will happen
URL: https://github.com/apache/incubator-mxnet/issues/12806#issuecomment-429222785
how to reproduce:
```
import mxnet as mx
header-mx.recordio.IRHeader(0,[0,1],0,0)
s=mx.recordio.pack(header,'')#error will occur here
```
the error finally occur in recordio.py, line340:
```
s=label.tostring()+s
```
since label.tostring() is a bytes in python3. when use python2, it will be ok
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services