Home
last modified time | relevance | path

Searched refs:replica_count (Results 1 – 14 of 14) sorted by relevance

/external/tensorflow/tensorflow/compiler/xla/service/
Dcomputation_placer.cc42 proto->set_replica_count(replica_count()); in Serialize()
47 for (int replica = 0; replica < replica_count(); ++replica) { in Serialize()
57 if (proto.replica_count() <= 0 || proto.computation_count() <= 0) { in Deserialize()
61 proto.replica_count(), proto.computation_count()); in Deserialize()
64 proto.replica_count(), proto.computation_count()); in Deserialize()
69 proto.replica_count()); in Deserialize()
70 for (int replica = 0; replica < proto.replica_count(); ++replica) { in Deserialize()
80 " Replicas: ", replica_count(), "\n"); in ToString()
83 for (int replica = 0; replica < replica_count(); ++replica) { in ToString()
92 int replica_count, in DeviceId() argument
[all …]
Dcomputation_placer.h41 DeviceAssignment(int replica_count, int computation_count) in DeviceAssignment() argument
42 : Array2D<int>(replica_count, computation_count, -1) { in DeviceAssignment()
43 CHECK_GT(replica_count, 0); in DeviceAssignment()
47 int replica_count() const { return height(); } in replica_count() function
73 int replica_count, int computation_count);
77 virtual StatusOr<DeviceAssignment> AssignDevices(int replica_count,
Dhlo_module_config.h80 void set_replica_count(int64 replica_count) { in set_replica_count() argument
81 replica_count_ = replica_count; in set_replica_count()
83 int64 replica_count() const { return replica_count_; } in replica_count() function
Dhlo_module_config.cc56 if (replica_count() != 1) { in compilation_cache_key()
57 StrAppend(&key, "::replica_count=", replica_count()); in compilation_cache_key()
Dservice.cc762 const int64 replica_count = options_.number_of_replicas(); in GetDeviceHandles() local
763 if (replica_count <= 0) { in GetDeviceHandles()
766 if (available_device_count < arg->device_count() * replica_count) { in GetDeviceHandles()
770 arg->device_count(), replica_count, available_device_count); in GetDeviceHandles()
1011 const int64 replica_count = options_.number_of_replicas(); in TransferToInfeed() local
1012 if (arg->replica_id() < 0 || arg->replica_id() >= replica_count) { in TransferToInfeed()
1017 replica_count, ").")); in TransferToInfeed()
1040 const int64 replica_count = options_.number_of_replicas(); in TransferFromOutfeed() local
1041 if (arg->replica_id() < 0 || arg->replica_id() >= replica_count) { in TransferFromOutfeed()
1044 arg->replica_id(), replica_count); in TransferFromOutfeed()
Delemental_ir_emitter.cc2441 if (hlo_module_config_.replica_count() != 1) { in MakeElementGenerator()
/external/tensorflow/tensorflow/compiler/xla/service/gpu/
Dnccl_all_reduce_thunk.cc48 int64 replica_count; member
68 replica_count, element_count, device_ordinal, generation_counter, in ToString()
151 return participants_.size() >= participant.replica_count; in SubmitParticipant()
164 (participants_.back().replica_count != participant.replica_count || in SubmitParticipant()
207 done_.emplace(participant.replica_count); in SubmitParticipant()
320 participant.replica_count = replica_count_; in ExecuteOnStream()
345 int64 replica_count, int64 element_count, in NcclAllReduceThunk() argument
350 replica_count_(replica_count), in NcclAllReduceThunk()
Dnccl_all_reduce_thunk.h43 NcclAllReduceThunk(int64 replica_count, int64 element_count,
Dir_emitter_unnested.cc1390 VLOG(2) << "AllReduce; replica count: " << hlo_module_config_.replica_count() in HandleAllReduce()
1397 hlo_module_config_.replica_count() > 1 && in HandleAllReduce()
1408 /*replica_count=*/hlo_module_config_.replica_count(), in HandleAllReduce()
1415 if (hlo_module_config_.replica_count() != 1) { in HandleAllReduce()
1420 hlo_module_config_.replica_count(), crs->operand_count(), in HandleAllReduce()
/external/tensorflow/tensorflow/compiler/xla/client/
Dclient_library.cc93 int replica_count = options.number_of_replicas(); in GetOrCreateLocalClient() local
108 service_options.set_number_of_replicas(replica_count); in GetOrCreateLocalClient()
/external/tensorflow/tensorflow/compiler/xla/python/
Dxla_client.py1828 def initialize_replica_count(replica_count): argument
1842 _default_replica_count = replica_count
Dlocal_computation_builder.cc218 int num_replicas = device_assignment_.replica_count(); in DeviceOrdinals()
/external/tensorflow/tensorflow/compiler/xla/
Dxla_data.proto343 int32 replica_count = 1; field
346 // Each logical computation runs on replica_count physical devices.
/external/tensorflow/tensorflow/compiler/xla/service/cpu/
Dir_emitter.cc1310 if (hlo_module_config_.replica_count() != 1) { in HandleAllReduce()