pultarmi opened a new issue #20037:
URL: https://github.com/apache/incubator-mxnet/issues/20037


   ## Description
   mxnet.recordio.pack followed by mxnet.recordio.unpack is returning wrong 
result.
   
   Input:
   HEADER(flag=2, label=17672687.0, id=0, id2=0)
   
   Expected output:
   HEADER(flag=2, label=17672687.0, id=0, id2=0)
   
   Actual output:
   HEADER(flag=0, label=17672688.0, id=0, id2=0)
   
   ## To Reproduce
   import mxnet as mx
   from mxnet import recordio
   
   header = mx.recordio.IRHeader(flag=2, label=17672687.0, id=0, id2=0)
   s = mx.recordio.pack(header, b'')
   header_ = recordio.unpack(s)[0]
   print('original header ', header)
   print('header packed and unpacked', header_)
   
   ## What have you tried to solve it?
   Tried different versions of Python (3.9.0, 3.8.3, 3.6.13) and of mxnet 
(mxnet==1.7.0.post1 and mxnet==1.5.0)
   
   ## Environment
   Python 3 script.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to