Home
last modified time | relevance | path

Searched refs:max_parallelism (Results 1 – 10 of 10) sorted by relevance

/external/tensorflow/tensorflow/core/util/
Dwork_sharder.cc25 void SetPerThreadMaxParallelism(int max_parallelism) { in SetPerThreadMaxParallelism() argument
26 CHECK_LE(0, max_parallelism); in SetPerThreadMaxParallelism()
27 per_thread_max_parallism = max_parallelism; in SetPerThreadMaxParallelism()
32 void Shard(int max_parallelism, thread::ThreadPool* workers, int64 total, in Shard() argument
38 max_parallelism = std::min(max_parallelism, GetPerThreadMaxParallelism()); in Shard()
39 if (max_parallelism <= 1) { in Shard()
44 if (max_parallelism >= workers->NumThreads()) { in Shard()
50 max_parallelism); in Shard()
56 const Runner& runner, int max_parallelism) { in Do() argument
66 std::max<int>(1, std::min(static_cast<int64>(max_parallelism), in Do()
Dwork_sharder.h57 void Shard(int max_parallelism, thread::ThreadPool* workers, int64 total,
68 void SetPerThreadMaxParallelism(int max_parallelism);
74 ScopedPerThreadMaxParallelism(int max_parallelism) in ScopedPerThreadMaxParallelism() argument
76 SetPerThreadMaxParallelism(max_parallelism); in ScopedPerThreadMaxParallelism()
96 const Runner& runner, int max_parallelism);
/external/tensorflow/tensorflow/compiler/xla/service/cpu/
Dparallel_task_assignment.cc32 SimpleCostModel(const int64 max_parallelism, in SimpleCostModel() argument
34 : max_parallelism_(max_parallelism), shape_size_(shape_size) {} in SimpleCostModel()
53 DefaultCostModel(const int64 max_parallelism, in DefaultCostModel() argument
56 : max_parallelism_(max_parallelism), in DefaultCostModel()
65 int64 max_parallelism; in GetParallelTaskCount() local
77 max_parallelism = in GetParallelTaskCount()
84 max_parallelism = max_parallelism_; in GetParallelTaskCount()
97 return std::min(max_parallelism, in GetParallelTaskCount()
108 const int64 max_parallelism, in ParallelTaskAssignment() argument
112 VLOG(1) << "ParallelTaskAssignment max_parallelism: " << max_parallelism; in ParallelTaskAssignment()
[all …]
Dparallel_task_assignment.h41 ParallelTaskAssignment(const int64 max_parallelism,
68 ParallelTaskAssigner(const int64 max_parallelism, in ParallelTaskAssigner() argument
71 : max_parallelism_(max_parallelism), in ParallelTaskAssigner()
Dcpu_compiler.cc368 const int max_parallelism = in RunHloPassesAfterLayoutAssn() local
379 max_parallelism, ShapeSizeBytesFunction(), target_machine_features); in RunHloPassesAfterLayoutAssn()
/external/tensorflow/tensorflow/core/kernels/data/
Ddataset_utils.cc267 std::function<void(std::function<void()>)> runner, int max_parallelism) { in RunnerWithMaxParallelism() argument
269 [max_parallelism]( in RunnerWithMaxParallelism()
274 [max_parallelism](const std::function<void()>& fn) { in RunnerWithMaxParallelism()
275 ScopedPerThreadMaxParallelism scope(max_parallelism); in RunnerWithMaxParallelism()
Dmap_defun_op.cc154 int max_parallelism) in ComputeOptions()
160 if (max_parallelism >= 1) { in ComputeOptions()
161 runner = RunnerWithMaxParallelism(*ctx->runner(), max_parallelism); in ComputeOptions()
Ddataset_utils.h111 std::function<void(std::function<void()>)> runner, int max_parallelism);
/external/tensorflow/tensorflow/core/kernels/
Dredux_functor.h50 const int64 max_parallelism = total_workload / parallel_cell_size; in operator() local
56 std::min(max_parallelism, Eigen::divup(total_workload, min_block_size)); in operator()
/external/tensorflow/tensorflow/core/kernels/data/experimental/
Dthreadpool_dataset_op.cc310 auto max_parallelism = dataset()->max_intra_op_parallelism_; in GetNextInternal() local
312 RunnerWithMaxParallelism(*ctx->runner(), max_parallelism); in GetNextInternal()