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

Method GetStatusAsyncWithOptions

tensorflow/core/distributed_runtime/worker.cc:44–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44void Worker::GetStatusAsyncWithOptions(const GetStatusRequest* request,
45 GetStatusResponse* response,
46 StatusCallback done,
47 CallOptions* call_opts) {
48 DeviceMgr* dm = env_->device_mgr;
49 std::vector<DeviceAttributes> devices;
50 dm->ListDeviceAttributes(&devices);
51 response->mutable_device_attributes()->Reserve(devices.size());
52 for (auto& d : devices) {
53 response->add_device_attributes()->Swap(&d);
54 }
55 done(Status::OK());
56}
57
58void Worker::CreateWorkerSessionAsync(const CreateWorkerSessionRequest* request,
59 CreateWorkerSessionResponse* response,

Callers 1

NewRemoteDevicesFunction · 0.45

Calls 4

ListDeviceAttributesMethod · 0.80
ReserveMethod · 0.45
sizeMethod · 0.45
SwapMethod · 0.45

Tested by

no test coverage detected