Just a quick typo fix: parallism -> parallelism
Found while reviewing #32166, zero changes outside this file. PiperOrigin-RevId: 270284646
This commit is contained in:
parent
52084c979b
commit
dfed968d9d
@ -20,14 +20,14 @@ limitations under the License.
|
|||||||
|
|
||||||
namespace tensorflow {
|
namespace tensorflow {
|
||||||
|
|
||||||
/* ABSL_CONST_INIT */ thread_local int per_thread_max_parallism = 1000000;
|
/* ABSL_CONST_INIT */ thread_local int per_thread_max_parallelism = 1000000;
|
||||||
|
|
||||||
void SetPerThreadMaxParallelism(int max_parallelism) {
|
void SetPerThreadMaxParallelism(int max_parallelism) {
|
||||||
CHECK_LE(0, max_parallelism);
|
CHECK_LE(0, max_parallelism);
|
||||||
per_thread_max_parallism = max_parallelism;
|
per_thread_max_parallelism = max_parallelism;
|
||||||
}
|
}
|
||||||
|
|
||||||
int GetPerThreadMaxParallelism() { return per_thread_max_parallism; }
|
int GetPerThreadMaxParallelism() { return per_thread_max_parallelism; }
|
||||||
|
|
||||||
void Shard(int max_parallelism, thread::ThreadPool* workers, int64 total,
|
void Shard(int max_parallelism, thread::ThreadPool* workers, int64 total,
|
||||||
int64 cost_per_unit, std::function<void(int64, int64)> work) {
|
int64 cost_per_unit, std::function<void(int64, int64)> work) {
|
||||||
|
Loading…
Reference in New Issue
Block a user