def use_fast_math() -> bool:
    """
    Whether the fast math option should be used for the device code generation.
    Fast math implies the use of approximate math operations (say,
    a division operation), allowing to gain speed at the cost of accuracy.
    Default value to get from environment variable is "1".
    """
    return os.getenv("AIT_USE_FAST_MATH", "1") == "1"
Whether the fast math option should be used for the device code generation.
Fast math implies the use of approximate math operations (say,
a division operation), allowing to gain speed at the cost of accuracy.
Default value to get from environment variable is "1".
python/aitemplate/utils/environ.py