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

Method ResetDevice

tensorflow/compiler/xla/client/client.cc:150–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150Status Client::ResetDevice() {
151 ResetDeviceRequest request;
152 ResetDeviceResponse response;
153
154 VLOG(1) << "making reset device request";
155 VLOG(3) << "ResetDeviceRequest: {" << request.DebugString() << "}";
156 Status s = stub_->ResetDevice(&request, &response);
157 VLOG(1) << "done with request";
158
159 if (!s.ok()) {
160 return s;
161 }
162 VLOG(3) << "ResetDeviceResponse: {" << response.DebugString() << "}";
163 return Status::OK();
164}
165
166StatusOr<Literal> Client::ExecuteAndTransfer(
167 const XlaComputation& computation, absl::Span<GlobalData* const> arguments,

Callers

nothing calls this directly

Calls 2

DebugStringMethod · 0.45
okMethod · 0.45

Tested by

no test coverage detected