| 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) { |
no test coverage detected