Home
last modified time | relevance | path

Searched refs:ParseLocalName (Results 1 – 6 of 6) sorted by relevance

/external/tensorflow/tensorflow/core/util/
Ddevice_name_utils_test.cc247 EXPECT_TRUE(DeviceNameUtils::ParseLocalName("CPU:10", &p)); in TEST()
250 EXPECT_FALSE(DeviceNameUtils::ParseLocalName("cpu:abc", &p)); in TEST()
251 EXPECT_FALSE(DeviceNameUtils::ParseLocalName("abc:", &p)); in TEST()
252 EXPECT_FALSE(DeviceNameUtils::ParseLocalName("abc", &p)); in TEST()
253 EXPECT_FALSE(DeviceNameUtils::ParseLocalName("myspecialdevice", &p)); in TEST()
Ddevice_name_utils.h154 static bool ParseLocalName(StringPiece name, ParsedName* parsed);
Ddevice_name_utils.cc233 if (ParseLocalName(fullname, &parsed_name)) { in CanonicalizeDeviceName()
445 bool DeviceNameUtils::ParseLocalName(StringPiece name, ParsedName* p) { in ParseLocalName() function in tensorflow::DeviceNameUtils
/external/tensorflow/tensorflow/core/grappler/costs/
Dvirtual_placer.cc149 parsed = DeviceNameUtils::ParseLocalName(lowercase_name, &parsed_name); in to_lfqn_or_empty()
/external/tensorflow/tensorflow/core/grappler/optimizers/
Dimplementation_selector.cc141 DeviceNameUtils::ParseLocalName(device, &parsed_name); in MaybeOptimizeFunctionCall()
/external/tensorflow/tensorflow/compiler/tests/
Drandomized_tests.cc862 if (!DeviceNameUtils::ParseLocalName(*tf_xla_test_device_ptr, &parsed_name)) { in ExpectTfAndXlaOutputsAreClose()