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).

Reply via email to