current_device_lto#

nvmath.device.current_device_lto()[source]#

用于获取当前设备上链接时优化 (LTO) 的默认代码类型的辅助函数。

返回值:

一个 CodeType 对象,表示当前设备的默认 LTO 代码类型。