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

Method CopyToBackingStore

tensorflow/core/common_runtime/device_mgr.cc:60–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60StringPiece DeviceMgr::CopyToBackingStore(StringPiece s) {
61 size_t n = s.size();
62 char* space = name_backing_store_.Alloc(n);
63 memcpy(space, s.data(), n);
64 return StringPiece(space, n);
65}
66
67void DeviceMgr::ListDeviceAttributes(
68 std::vector<DeviceAttributes>* devices) const {

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.45
AllocMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected