[TF port] Add port::GetCurrentCPU and port::NumTotalCPUs.
GetCurrentCPU: returns the current CPU of the calling thread. NumTotalCPUs: attempts to get the total number of physical cores on the system When both return non-failing values, we expect 0 <= GetCurrentCPU < NumTotalCPUs. PiperOrigin-RevId: 225088316
Showing
想要评论请 注册 或 登录