[tf.data] Fix flaky test data/kernel_tests:memory_cleanup_test.

PiperOrigin-RevId: 375748975
Change-Id: Ic51aa3b13fe95401c7138c4ffefbfdad5777f0eb
diff --git a/tensorflow/python/data/kernel_tests/BUILD b/tensorflow/python/data/kernel_tests/BUILD
index c6803f4..b419ced 100644
--- a/tensorflow/python/data/kernel_tests/BUILD
+++ b/tensorflow/python/data/kernel_tests/BUILD
@@ -569,7 +569,7 @@
     name = "memory_cleanup_test",
     size = "small",
     srcs = ["memory_cleanup_test.py"],
-    shard_count = 2,
+    shard_count = 12,
     tags = [
         "no_cuda_asan",  # TODO(b/183963686)
         "notsan",  # TODO(b/144706539)