inductor: fix the CPP issue of flag_to_float (#94730)
Fix https://github.com/pytorch/pytorch/issues/94725.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/94730
Approved by: https://github.com/jgong5, https://github.com/lezcano, https://github.com/jansel