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

Method Device

tensorflow/core/common_runtime/device.cc:26–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24namespace tensorflow {
25
26Device::Device(Env* env, const DeviceAttributes& device_attributes)
27 : DeviceBase(env), device_attributes_(device_attributes) {
28 CHECK(DeviceNameUtils::ParseFullName(name(), &parsed_name_))
29 << "Invalid device name: " << name();
30 rmgr_ = new ResourceMgr(parsed_name_.job);
31 owned_rmgr_ = true;
32}
33
34Device::Device(Env* env, const DeviceAttributes& device_attributes,
35 const DeviceResourceMgrMap* dev_rmgr_map)

Calls 3

nameFunction · 0.85
findMethod · 0.45
endMethod · 0.45

Tested by 8

TEST_FFunction · 0.36
TESTFunction · 0.36
CreateNodeDefMethod · 0.36
TESTFunction · 0.36
FeedFetchBenchmarkHelperFunction · 0.36
TESTFunction · 0.36
ConstructOpFunction · 0.36
ConstructOpFunction · 0.36