Fix sign-compare issues in task_utils.h
Fix sign-compare issues in task_utils.h

PiperOrigin-RevId: 356801440

tensorflow/tflite-support,tensorflow/tflite-support,tensorflow/tflite-support,tensorflow/tflite-support,tensorflow/tflite-support,tensorflow/tflite-support