Home
last modified time | relevance | path

Searched refs:cost_per_unit (Results 1 – 12 of 12) sorted by relevance

/external/tensorflow/tensorflow/core/util/
Dwork_sharder.cc33 int64 cost_per_unit, std::function<void(int64, int64)> work) { in Shard() argument
45 workers->ParallelFor(total, cost_per_unit, work); in Shard()
48 Sharder::Do(total, cost_per_unit, work, in Shard()
55 void Sharder::Do(int64 total, int64 cost_per_unit, const Work& work, in Do() argument
57 cost_per_unit = std::max(int64{1}, cost_per_unit); in Do()
67 total * cost_per_unit / kMinCostPerShard)); in Do()
Dwork_sharder_test.cc30 void RunSharding(int64 num_workers, int64 total, int64 cost_per_unit, in RunSharding() argument
37 Shard(num_workers, threads, total, cost_per_unit, in RunSharding()
50 LOG(INFO) << num_workers << " " << total << " " << cost_per_unit << " " in RunSharding()
68 for (auto cost_per_unit : {0, 1, 11, 102, 1003, 10005, 1000007}) { in TEST()
71 RunSharding(workers, total, cost_per_unit, maxp, &threads); in TEST()
82 const int64 cost_per_unit = 10; in TEST() local
84 Shard(workers, &threads, total_elements, cost_per_unit, in TEST()
Dwork_sharder.h58 int64 cost_per_unit, std::function<void(int64, int64)> work);
95 static void Do(int64 total, int64 cost_per_unit, const Work& work,
/external/tensorflow/tensorflow/core/lib/core/
Dthreadpool.cc96 void ParallelFor(int64 total, int64 cost_per_unit, in ParallelFor()
102 total, Eigen::TensorOpCost(0, 0, cost_per_unit), in ParallelFor()
179 void ThreadPool::ParallelFor(int64 total, int64 cost_per_unit, in ParallelFor() argument
181 impl_->ParallelFor(total, cost_per_unit, std::move(fn)); in ParallelFor()
185 int64 total, int64 cost_per_unit, in ParallelForWithWorkerId() argument
187 impl_->ParallelFor(total, cost_per_unit, in ParallelForWithWorkerId()
Dthreadpool.h94 void ParallelFor(int64 total, int64 cost_per_unit,
113 int64 total, int64 cost_per_unit,
Dthreadpool_test.cc239 static void BM_ParallelFor(int iters, int total, int cost_per_unit) { in BM_ParallelFor() argument
248 total, cost_per_unit, in BM_ParallelFor()
/external/tensorflow/tensorflow/contrib/nearest_neighbor/kernels/
Dhyperplane_lsh_probes.cc119 int64 cost_per_unit = 21 * num_hyperplanes_per_table * num_tables; in Compute() local
121 cost_per_unit += in Compute()
125 batch_size, cost_per_unit, [&](int64 start, int64 end) { in Compute()
/external/tensorflow/tensorflow/core/kernels/
Dconcat_lib_cpu.h36 int64 cost_per_unit, ElementCopier copier, in ConcatCPUImpl() argument
129 cost_per_unit, work); in ConcatCPUImpl()
138 int64 cost_per_unit, ElementCopier copier, in ConcatSYCLImpl() argument
Dreverse_op.cc79 const int64 cost_per_unit = input.NumElements() / N; in ReverseRows() local
81 Shard(worker_threads->num_threads, worker_threads->workers, N, cost_per_unit, in ReverseRows()
Dbatch_matmul_op_impl.h211 const int64 cost_per_unit =
218 (batch_size == 1 || cost_per_unit > kMaxCostOuterParallelism)) {
229 cost_per_unit,
/external/tensorflow/tensorflow/contrib/coder/kernels/
Dpmf_to_cdf_op.cc68 const int64 cost_per_unit = static_cast<int64>(50.0 * n * std::log2(n)); in Compute() local
72 pmf.dimension(0), cost_per_unit, in Compute()
/external/tensorflow/tensorflow/contrib/factorization/kernels/
Dmasked_matmul_ops.cc173 const int64 cost_per_unit = 20 * a_dim_1; in Compute() local
184 worker_threads.workers->ParallelFor(num_nonzero_elements, cost_per_unit, in Compute()