Home
last modified time | relevance | path

Searched refs:Shard (Results 1 – 25 of 78) sorted by relevance

1234

/external/tensorflow/tensorflow/core/util/
Dwork_sharder_test.cc37 Shard(num_workers, threads, total, cost_per_unit, in RunSharding()
65 TEST(Shard, Basic) { in TEST() argument
79 TEST(Shard, OverflowTest) { in TEST() argument
85 Shard(workers, &threads, total_elements, cost_per_unit, in TEST()
101 Shard(arg - 1, &threads, total, 1, work); in BM_Sharding()
Dwork_sharder.h59 void Shard(int max_parallelism, thread::ThreadPool* workers, int64_t total,
Dwork_sharder.cc32 void Shard(int max_parallelism, thread::ThreadPool* workers, int64_t total, in Shard() function
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DIsValidUtf8TestUtil.java178 static final class Shard { class in IsValidUtf8TestUtil
184 public Shard(long index, long start, long lim, long expected) { in Shard() method in IsValidUtf8TestUtil.Shard
226 static final List<Shard> FOUR_BYTE_SHARDS =
229 private static List<Shard> generateFourByteShards(int numShards, long[] expected) { in generateFourByteShards()
231 List<Shard> shards = new ArrayList<>(numShards); in generateFourByteShards()
236 shards.add(new Shard(i, increment * i, increment * (i + 1), expected[i])); in generateFourByteShards()
DIsValidUtf8Test.java43 import com.google.protobuf.IsValidUtf8TestUtil.Shard;
134 for (Shard shard : IsValidUtf8TestUtil.FOUR_BYTE_SHARDS) { in testShardsHaveExpectedRoundTrippables()
/external/cronet/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
DIsValidUtf8TestUtil.java178 static final class Shard { class in IsValidUtf8TestUtil
184 public Shard(long index, long start, long lim, long expected) { in Shard() method in IsValidUtf8TestUtil.Shard
226 static final List<Shard> FOUR_BYTE_SHARDS =
229 private static List<Shard> generateFourByteShards(int numShards, long[] expected) { in generateFourByteShards()
231 List<Shard> shards = new ArrayList<>(numShards); in generateFourByteShards()
236 shards.add(new Shard(i, increment * i, increment * (i + 1), expected[i])); in generateFourByteShards()
DIsValidUtf8Test.java43 import com.google.protobuf.IsValidUtf8TestUtil.Shard;
134 for (Shard shard : IsValidUtf8TestUtil.FOUR_BYTE_SHARDS) { in testShardsHaveExpectedRoundTrippables()
/external/tensorflow/tensorflow/security/advisory/
Dtfsa-2020-014.md1 ## TFSA-2020-014: Integer truncation in Shard API usage
7 The [`Shard`
12 void Shard(int max_parallelism, thread::ThreadPool* workers, int64 total,
22 Shard(worker_threads.num_threads, worker_threads.workers,
/external/tensorflow/tensorflow/dtensor/tests/
Dtensor_layout_test.cc306 Shard shard1{1}; in TEST_F()
311 Shard shard2{2}; in TEST_F()
312 Shard shard3{3}; in TEST_F()
323 Shard shard1{3}; in TEST_F()
328 Shard shard2{7}; in TEST_F()
329 Shard shard3{8}; in TEST_F()
330 Shard shard4{9}; in TEST_F()
345 Shard shard{i, j}; in TEST_F()
/external/tensorflow/tensorflow/core/kernels/
Drecord_yielder.cc71 struct RecordYielder::Shard { struct in tensorflow::RecordYielder
134 std::vector<Shard> shards(N); in MainLoop()
136 Shard* shard = &shards[i]; in MainLoop()
198 void RecordYielder::ShardLoop(Shard* shard) { in ShardLoop()
Drecord_yielder.h152 struct Shard;
153 void ShardLoop(Shard* shard);
Ddiag_op.cc143 Shard(worker_threads.num_threads, worker_threads.workers, size, 5 * size, in operator ()()
164 Shard(worker_threads.num_threads, worker_threads.workers, size, 5, in operator ()()
Dsdca_ops.cc228 Shard(worker_threads.num_threads, worker_threads.workers, in DoCompute()
285 Shard(worker_threads.num_threads, worker_threads.workers, in Compute()
Dnth_element_op.cc120 Shard(worker_threads.num_threads, worker_threads.workers, num_rows, in operator ()()
Dsdca_internal.cc502 Shard(worker_threads.num_threads, worker_threads.workers, num_sparse_features, in CreateSparseFeatureRepresentation()
534 Shard(worker_threads.num_threads, worker_threads.workers, num_dense_features, in CreateDenseFeatureRepresentation()
582 Shard(worker_threads.num_threads, worker_threads.workers, num_examples, in ComputeSquaredNormPerExample()
/external/autotest/frontend/afe/
Drpc_interface_unittest.py226 self.assertRaises(models.Shard.DoesNotExist,
227 models.Shard.objects.get,
415 shard1 = models.Shard.objects.create(hostname='shard1')
431 shard1 = models.Shard.objects.create(hostname='shard1')
539 shard = models.Shard.objects.create(hostname='test_shard')
550 shard1 = models.Shard.smart_get(shard.id)
627 shard = models.Shard.objects.create(hostname=shard_hostname)
982 shard = models.Shard.objects.create(hostname='shard')
1122 shard = models.Shard.objects.create(hostname=shard_hostname)
1184 shard1 = models.Shard.objects.create(hostname='shard1')
[all …]
/external/autotest/server/cros/tradefed/tradefed_utils_unittest_data/
DCtsDeqpTestCases-trimmed-inaccurate.txt22 Shard 0 used: [chromeos6-row4-rack16-host9:22]
23 Shard 1 used: [chromeos6-row4-rack16-host17:22]
/external/tensorflow/tensorflow/dtensor/cc/
Dtensor_layout.cc88 const Shard& shard, in ExpandShardVector()
89 int dim_ind) -> std::vector<Shard> { in ExpandShardVector()
94 std::vector<Shard> expanded_shards; in ExpandShardVector()
100 Shard new_shard = shard; in ExpandShardVector()
108 std::vector<Shard> total_expanded_shards = shard_vec.shards; in ExpandShardVector()
110 std::vector<Shard> dim_expanded_shards; in ExpandShardVector()
112 std::vector<Shard> expanded_shards = ExpandShard(shard, dim_ind); in ExpandShardVector()
139 Shard first_shard_this = this->shards[0]; in operator ==()
140 Shard first_shard_other = other.shards[0]; in operator ==()
159 for (const Shard& shard : shards) in ToString()
[all …]
Dtensor_layout.h67 using Shard = std::vector<int>; variable
74 bool ContainsShard(const Shard& shard) const;
76 std::vector<Shard> shards;
/external/leveldb/util/
Dcache.cc349 static uint32_t Shard(uint32_t hash) { return hash >> (32 - kNumShardBits); } in Shard() function in leveldb::__anone441f5b80111::ShardedLRUCache
362 return shard_[Shard(hash)].Insert(key, hash, value, charge, deleter); in Insert()
366 return shard_[Shard(hash)].Lookup(key, hash); in Lookup()
370 shard_[Shard(h->hash)].Release(handle); in Release()
374 shard_[Shard(hash)].Erase(key, hash); in Erase()
/external/tensorflow/tensorflow/core/lib/io/
Dcache.cc361 static uint32_t Shard(uint32_t hash) { return hash >> (32 - kNumShardBits); } in Shard() function in tensorflow::table::__anon025143c70111::ShardedLRUCache
374 return shard_[Shard(hash)].Insert(key, hash, value, charge, deleter); in Insert()
378 return shard_[Shard(hash)].Lookup(key, hash); in Lookup()
382 shard_[Shard(h->hash)].Release(handle); in Release()
386 shard_[Shard(hash)].Erase(key, hash); in Erase()
/external/rust/crates/crossbeam-utils/src/sync/
Dsharded_lock.rs19 struct Shard { struct
78 shards: Box<[CachePadded<Shard>]>,
104 CachePadded::new(Shard { in new()
/external/tensorflow/tensorflow/core/kernels/sparse/
Dsparse_cholesky_op.cc112 Shard(worker_threads.num_threads, worker_threads.workers, batch_size, in Compute()
191 Shard(worker_threads.num_threads, worker_threads.workers, batch_size, in Compute()
Dsparse_ordering_amd_op.cc97 Shard( in Compute()
/external/tensorflow/tensorflow/core/protobuf/
Dsaver.proto26 // Shard the save files, one per device that has Variable nodes.

1234