fix an error when I reorder the line ids.

PiperOrigin-RevId: 294734836
Change-Id: Ieda2ec9ed3b2575e82281da769f2a9faf85d3f06
This commit is contained in:
A. Unique TensorFlower 2020-02-12 13:00:54 -08:00 committed by TensorFlower Gardener
parent 77e9ffb9b2
commit b547feade6

View File

@ -28,7 +28,7 @@ constexpr int kThreadIdHloModule = kThreadIdDerivedMin + 2;
constexpr int kThreadIdHloOp = kThreadIdDerivedMin + 3;
constexpr int kThreadIdOverhead = kThreadIdDerivedMin + 4;
// Last derived stream/thread id.
constexpr int kThreadIdDerivedMax = kThreadIdHloModule;
constexpr int kThreadIdDerivedMax = kThreadIdOverhead;
static inline bool IsDerivedThreadId(int thread_id) {
return thread_id >= kThreadIdDerivedMin && thread_id <= kThreadIdDerivedMax;