admin管理员组文章数量:1356704
first time to ask questions in stack overflow. please share your valuable experiences, i am trying to model FP16 num operations, like fp16 a,b a+b=?, i need set to different rounding mode and make sure the result complies/align with ieee754 standard. i searched around, no one seems do the same thing before, i am trying to use gmpy2 lib, it has a context, but the context create function ieee() only accept 32,64..., 16 is a eligal number, I know we can set context.emax, context.emin, context.precision, but which value should i assign them? seems context.emax=15, context.emin=-14, context.precison=10 seems not work.
looking forward to comments? thanks ahead guys.
i want to know gmpy2.context.emax/emin/precision value, when FP16 context used. and why we use that value.
本文标签:
版权声明:本文标题:python 2.7 - how to model FP16 operation using gmpy2? like fp16 add. rounding mode must also take in consideration - Stack Overf 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744046273a2581581.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论