Home
last modified time | relevance | path

Searched refs:has_replica (Results 1 – 11 of 11) sorted by relevance

/external/tensorflow/tensorflow/core/util/
Ddevice_name_utils.cc119 p->has_replica = !absl::ConsumePrefix(&fullname, "*"); in ParseFullName()
120 if (p->has_replica && !ConsumeNumber(&fullname, &p->replica)) { in ParseFullName()
185 if (!parsed_name->has_replica) { in CompleteName()
187 parsed_name->has_replica = true; in CompleteName()
215 if (!(parsed_basename.has_job && parsed_basename.has_replica && in CanonicalizeDeviceName()
242 if (pn.has_replica) strings::StrAppend(&buf, "/replica:", pn.replica); in ParsedNameToString()
262 if (less_specific.has_replica && in IsSpecification()
263 (!more_specific.has_replica || in IsSpecification()
288 if (a.has_replica && b.has_replica && (a.replica != b.replica)) { in AreCompatibleDevNames()
309 if (less_specific.has_replica) { in EnsureSpecification()
[all …]
Ddevice_name_utils.h55 has_replica = false; in Clear()
68 (has_replica ? (other.has_replica && replica == other.replica)
69 : !other.has_replica) &&
79 bool has_replica = false; member
110 return name.has_job || name.has_replica || name.has_task || name.has_type || in HasSomeDetails()
Ddevice_name_utils_test.cc93 EXPECT_TRUE(p.has_replica); in TEST()
109 EXPECT_TRUE(p.has_replica); in TEST()
125 EXPECT_TRUE(p.has_replica); in TEST()
139 EXPECT_TRUE(p.has_replica); in TEST()
151 EXPECT_TRUE(p.has_replica); in TEST()
163 EXPECT_TRUE(p.has_replica); in TEST()
175 EXPECT_TRUE(p.has_replica); in TEST()
187 EXPECT_FALSE(p.has_replica); in TEST()
197 EXPECT_TRUE(p.has_replica); in TEST()
209 EXPECT_TRUE(p.has_replica); in TEST()
/external/tensorflow/tensorflow/core/distributed_runtime/
Dremote_device.cc100 !worker_name_parsed.has_job || !worker_name_parsed.has_replica || in NewRemoteDevices()
Dmaster.cc334 (!x.has_replica || !y.has_replica || x.replica == y.replica) && in Intersects()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/utils/
Deval_util.cc71 if (parsed_name.has_replica) parsed_name.replica = 0; in ForceUseLocalhostDevice()
/external/tensorflow/tensorflow/core/common_runtime/eager/
Deager_operation.cc152 if (!device_parsed_name_.has_job && !device_parsed_name_.has_replica && in IsLocal()
Dcontext.cc845 pw.has_replica = true; in SetRemoteDeviceFilters()
901 (!pn.has_replica || !pf.has_replica || pn.replica == pf.replica) && in FilterDevicesForRemoteWorkers()
/external/tensorflow/tensorflow/core/grappler/
Dgrappler_item.cc155 } else if (!name.has_job || !name.has_replica || !name.has_task || in AddDevice()
/external/tensorflow/tensorflow/core/distributed_runtime/rpc/
Dgrpc_channel.cc328 if (!parsed.has_replica || parsed.replica != 0) { in TranslateTask()
/external/tensorflow/tensorflow/core/common_runtime/
Dfunction.cc1626 if (caller_parsed_device_.has_replica) { in BodyNodeDevice()
1627 ndef_parsed_device.has_replica = caller_parsed_device_.has_replica; in BodyNodeDevice()