Tensor: clang tidy fixes.

PiperOrigin-RevId: 493703073
This commit is contained in:
Nikolay Chirkov 2022-12-07 14:04:37 -08:00 committed by Copybara-Service
parent 955f090f9f
commit ea74db86dd

View File

@ -551,7 +551,7 @@ Tensor::CpuReadView Tensor::GetCpuReadView() const {
});
} else
#endif // MEDIAPIPE_OPENGL_ES_VERSION >= MEDIAPIPE_OPENGL_ES_31
{
// Transfer data from texture if not transferred from SSBO/MTLBuffer
// yet.
if (valid_ & kValidOpenGlTexture2d) {
@ -582,6 +582,7 @@ Tensor::CpuReadView Tensor::GetCpuReadView() const {
}
});
}
}
#endif // MEDIAPIPE_OPENGL_ES_VERSION >= MEDIAPIPE_OPENGL_ES_30
valid_ |= kValidCpu;
}