HisiFish opened a new pull request #4503: fix serialization precision loss in 
float
URL: https://github.com/apache/incubator-tvm/pull/4503
 
 
   When we want to serialize(such as pickle.dumps) a tvm.tensor object, we will 
get a precision loss caused by std::to_string()。
   For example, a2.value will be 0.0 while a.value=0.00000001 in the following: 
       import tvm
       import pickle
       a = tvm.const(0.00000001, 'float32')
       a2 = pickle.loads(pickle.dumps(a))
   
   Thanks for contributing to TVM!   Please refer to guideline 
https://docs.tvm.ai/contribute/ for useful information and tips. After the pull 
request is submitted, please request code reviews from 
[Reviewers](https://github.com/apache/incubator-tvm/blob/master/CONTRIBUTORS.md#reviewers)
 by @ them in the pull request thread.
   

----------------------------------------------------------------
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]


With regards,
Apache Git Services

Reply via email to