MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / GetTaskName

Function GetTaskName

tensorflow/core/common_runtime/eager/context.cc:536–543  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

534
535namespace {
536Status GetTaskName(Device* d, string* task_name) {
537 string ignored;
538 if (!DeviceNameUtils::SplitDeviceName(d->name(), task_name, &ignored)) {
539 return errors::InvalidArgument("Unable to parse device name: ", d->name());
540 }
541
542 return Status::OK();
543}
544} // namespace
545
546bool EagerContext::IsLocalDeviceName(

Callers 1

GetClientMethod · 0.85

Calls 2

InvalidArgumentFunction · 0.85
nameMethod · 0.65

Tested by

no test coverage detected