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

Method ListDevices

tensorflow/core/common_runtime/direct_session.cc:2357–2366  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2355}
2356
2357::tensorflow::Status DirectSession::ListDevices(
2358 std::vector<DeviceAttributes>* response) {
2359 response->clear();
2360 response->reserve(devices_.size());
2361 for (Device* d : devices_) {
2362 const DeviceAttributes& attrs = d->attributes();
2363 response->emplace_back(attrs);
2364 }
2365 return ::tensorflow::Status::OK();
2366}
2367
2368::tensorflow::Status DirectSession::Reset(
2369 const std::vector<string>& containers) {

Callers 2

DirectSessionMethod · 0.45
~DirectSessionMethod · 0.45

Calls 4

clearMethod · 0.45
reserveMethod · 0.45
sizeMethod · 0.45
emplace_backMethod · 0.45

Tested by

no test coverage detected