Searched refs:kNumShards (Results 1 – 6 of 6) sorted by relevance
152 static const int kNumShards = 25; variable154 static int num_created[kNumShards + 1];155 static int num_started[kNumShards + 1];156 static int num_joined[kNumShards + 1];204 pthread_t threads[kNumShards]; in ThreadedTestRegistry()205 RunThreadArgs args[kNumShards]; in ThreadedTestRegistry()206 for (int i = 0; i < kNumShards; i++) { in ThreadedTestRegistry()211 for (int i = 0; i < kNumShards; i++) { in ThreadedTestRegistry()219 for (int i = 1; i <= kNumShards; i++) { in ThreadedTestRegistry()232 kThreadsPerShard * kNumShards + 1, 10); in TEST()
153 static const int kNumShards = 25; variable155 static int num_created[kNumShards + 1];156 static int num_started[kNumShards + 1];157 static int num_joined[kNumShards + 1];204 pthread_t threads[kNumShards]; in ThreadedTestRegistry()205 RunThreadArgs args[kNumShards]; in ThreadedTestRegistry()206 for (int i = 0; i < kNumShards; i++) { in ThreadedTestRegistry()211 for (int i = 0; i < kNumShards; i++) { in ThreadedTestRegistry()219 for (int i = 1; i <= kNumShards; i++) { in ThreadedTestRegistry()232 kThreadsPerShard * kNumShards + 1, 10); in TEST()
349 static const int kNumShards = 1 << kNumShardBits; variable353 LRUCache shard_[kNumShards];365 const size_t per_shard = (capacity + (kNumShards - 1)) / kNumShards; in ShardedLRUCache()366 for (int s = 0; s < kNumShards; s++) { in ShardedLRUCache()396 for (int s = 0; s < kNumShards; s++) { in Prune()402 for (int s = 0; s < kNumShards; s++) { in TotalCharge()
27 static constexpr const char* const kNumShards = "num_shards"; variable
32 /* static */ constexpr const char* const ShardDatasetOp::kNumShards; member in tensorflow::data::ShardDatasetOp249 OP_REQUIRES_OK(ctx, ParseScalarArgument<int64>(ctx, kNumShards, &num_shards)); in MakeDataset()
47 input_names->emplace_back(ShardDatasetOp::kNumShards); in GetInputNames()