You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2019/12/11 09:56:44 UTC
[GitHub] [incubator-tvm] HisiFish opened a new pull request #4503: fix
serialization precision loss in float
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:
users@infra.apache.org
With regards,
Apache Git Services