Home
last modified time | relevance | path

Searched refs:ParseFullName (Results 1 – 25 of 34) sorted by relevance

12

/external/tensorflow/tensorflow/core/util/
Ddevice_name_utils_test.cc30 if (!DeviceNameUtils::ParseFullName(original, &p)) { in RoundTripParsedName()
74 EXPECT_FALSE(DeviceNameUtils::ParseFullName("foobar", &p)); in TEST()
75 EXPECT_FALSE(DeviceNameUtils::ParseFullName( in TEST()
78 DeviceNameUtils::ParseFullName("/job:123/replica:1/task:2/gpu:", &p)); in TEST()
79 EXPECT_FALSE(DeviceNameUtils::ParseFullName( in TEST()
81 EXPECT_FALSE(DeviceNameUtils::ParseFullName( in TEST()
83 EXPECT_FALSE(DeviceNameUtils::ParseFullName( in TEST()
86 DeviceNameUtils::ParseFullName("/job:foo/replica:1/task:2/bar:3", &p)); in TEST()
87 EXPECT_FALSE(DeviceNameUtils::ParseFullName( in TEST()
89 EXPECT_TRUE(DeviceNameUtils::ParseFullName( in TEST()
[all …]
Ddevice_name_utils.cc114 bool DeviceNameUtils::ParseFullName(StringPiece fullname, ParsedName* p) { in ParseFullName() function in tensorflow::DeviceNameUtils
221 if (!ParseFullName(basename, &parsed_basename)) { in CanonicalizeDeviceName()
238 if (ParseFullName(fullname, &parsed_name)) { in CanonicalizeDeviceName()
420 return ParseFullName(src, &x) && ParseFullName(dst, &y) && in IsSameAddressSpace()
440 CHECK(ParseFullName(fullname, &x)) << fullname; in LocalName()
464 if (ParseFullName(name, &pn) && pn.has_type && pn.has_id) { in SplitDeviceName()
510 if (!DeviceNameUtils::ParseFullName(device_name, &device)) { in DeviceNameToCpuDeviceName()
Ddevice_name_utils.h89 static bool ParseFullName(StringPiece fullname, ParsedName* parsed);
/external/tensorflow/tensorflow/core/grappler/costs/
Dvirtual_placer.cc67 bool parsed = DeviceNameUtils::ParseFullName(lfqn, &parsed_name); in VirtualPlacer()
98 bool parsed = DeviceNameUtils::ParseFullName(lfqn, &parsed_name); in VirtualPlacer()
147 bool parsed = DeviceNameUtils::ParseFullName(lowercase_name, &parsed_name); in to_lfqn_or_empty()
Dutils.cc241 if (DeviceNameUtils::ParseFullName(device_str, &parsed)) { in GetDeviceInfo()
411 bool parsed = DeviceNameUtils::ParseFullName(device_name, &parsed_name); in GetDeviceClassForNonChannelDevice()
421 parsed = DeviceNameUtils::ParseFullName(name, &parsed_name); in GetDeviceClassForNonChannelDevice()
/external/tensorflow/tensorflow/core/distributed_runtime/
Dremote_device.cc82 if (!DeviceNameUtils::ParseFullName(worker_name, &worker_name_parsed) || in NewRemoteDevices()
93 CHECK(DeviceNameUtils::ParseFullName(da.name(), &device_name_parsed)) in NewRemoteDevices()
Dmaster.cc161 if (DeviceNameUtils::ParseFullName(filter, &parsed)) { in DeviceFinder()
184 CHECK(DeviceNameUtils::ParseFullName(local_device_name, in DeviceFinder()
344 if (DeviceNameUtils::ParseFullName(name, &x)) { in MatchFilters()
Dtest_utils.h147 CHECK(DeviceNameUtils::ParseFullName(it.first, &device_name)); in ListWorkersInJob()
Ddevice_resolver_distributed_test.cc190 ASSERT_TRUE(DeviceNameUtils::ParseFullName(dev_name, &parsed)); in TEST_F()
Dgraph_mgr.cc93 if (!DeviceNameUtils::ParseFullName(ndef.device(), &parsed)) { in ValidateGraphDefForDevices()
/external/tensorflow/tensorflow/python/util/
Dkernel_registry.cc45 if (!tensorflow::DeviceNameUtils::ParseFullName(node_def.device(), in TryFindKernelClass()
/external/tensorflow/tensorflow/core/common_runtime/
Ddevice.cc28 CHECK(DeviceNameUtils::ParseFullName(name(), &parsed_name_)) in Device()
Drenamed_device.cc26 CHECK(DeviceNameUtils::ParseFullName(new_base, &parsed_name)); in NewRenamedDevice()
Dcolocation_graph.cc181 if (!DeviceNameUtils::ParseFullName(device_name, &assigned_device_name_)) { in SetAssignedDeviceName()
191 if (!DeviceNameUtils::ParseFullName(node.requested_device(), in SetRequestedDeviceName()
412 DeviceNameUtils::ParseFullName(node.assigned_device_name(), &parsed); in AssignDevice()
748 if (DeviceNameUtils::ParseFullName(node->requested_device(), in GetDevicesForNode()
Dcollective_param_resolver_local.cc111 DeviceNameUtils::ParseFullName(device, &parsed_device); in CompleteGroupLocal()
194 if (!DeviceNameUtils::ParseFullName(dr->device, &parsed_name)) { in ParseRingOrder()
226 CHECK(DeviceNameUtils::ParseFullName(next_device, &parsed_name)); in OrderTaskDeviceMap()
/external/tensorflow/tensorflow/compiler/jit/
Dxla_cluster_util.cc89 if (!DeviceNameUtils::ParseFullName(device, &parsed)) { in DeviceToDeviceType()
285 TF_RET_CHECK(DeviceNameUtils::ParseFullName(device_name, &parsed_name)) in PickDeviceForXlaImpl()
Dclone_constants_for_better_clustering.cc67 DeviceNameUtils::ParseFullName(n->assigned_device_name(), &parsed)); in IsSmallHostConstant()
Dencapsulate_xla_computations_pass.cc53 if (DeviceNameUtils::ParseFullName(n->requested_device(), &parsed)) { in IsCpuGpuCompile()
/external/tensorflow/tensorflow/core/framework/
Drendezvous.cc103 DeviceNameUtils::ParseFullName(parts[0], &out->src) && in ParseKey()
105 DeviceNameUtils::ParseFullName(parts[2], &out->dst) && in ParseKey()
/external/tensorflow/tensorflow/compiler/tf2xla/
Dsharding_util.cc59 if (!DeviceNameUtils::ParseFullName(device_name, &parsed_device)) { in ParseShardingFromDevice()
/external/tensorflow/tensorflow/core/grappler/
Dgrappler_item.cc139 if (!DeviceNameUtils::ParseFullName(device, &name)) { in AddDevice()
Dutils.cc494 if (!DeviceNameUtils::ParseFullName(node.device(), &parsed_name)) { in IsKernelRegisteredForNode()
/external/tensorflow/tensorflow/core/distributed_runtime/rpc/
Dgrpc_channel.cc270 if (!DeviceNameUtils::ParseFullName(target, &parsed)) { in TranslateTask()
/external/tensorflow/tensorflow/core/grappler/clusters/
Dsingle_machine.cc91 if (!DeviceNameUtils::ParseFullName(dev.name(), &parsed)) { in Provision()
/external/tensorflow/tensorflow/compiler/tf2tensorrt/convert/
Dconvert_graph.cc223 DeviceNameUtils::ParseFullName(node_device, &parsed_name); in GetEngineInfo()
763 if (DeviceNameUtils::ParseFullName(engine.device, &parsed_name) && in GetDeviceAndAllocator()

12