How to set set_flush_denormal in C++

In python, we can set set_flush_denormal by calling torch.set_flush_denormal(True).
How to achieve this in C++?

Update:
I found it by calling torch::globalContext().setFlushDenormal(true); thanks.