You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tvm.apache.org by Yan Zhang via Apache TVM Discuss <no...@discuss.tvm.ai> on 2022/06/21 07:32:56 UTC
[Apache TVM Discuss] [Development] [Denormal Number] How will TVM handle denormal numbers?
I am working on optimizing ResNeSt, and I have met the denormal issues. The following is the solution, which sets denormal numbers to zero.
But I am confused that **where should I put the codes**. There are some requirements:
1. Target should be checked. This solution can only be applied to CPU.
2. Developers can easily set `flust_to_zero` on or off.
3. The function can only be called once.
>
> //DAZ \
> _mm_setcsr( _mm_getcsr() | 0x0040 );\
> //FTZ\
> _mm_setcsr( _mm_getcsr() | 0x8000 );
---
[Visit Topic](https://discuss.tvm.apache.org/t/denormal-number-how-will-tvm-handle-denormal-numbers/12992/1) to respond.
You are receiving this because you enabled mailing list mode.
To unsubscribe from these emails, [click here](https://discuss.tvm.apache.org/email/unsubscribe/8f57134b2ef5d1fe31942c9dffb7ce3642a6f920aca7e9fdc6793272156e9ac6).