id
int64
1
6.07M
name
stringlengths
1
295
code
stringlengths
12
426k
language
stringclasses
1 value
source_file
stringlengths
5
202
start_line
int64
1
158k
end_line
int64
1
158k
repo
dict
3,401
_publish_preempting
def _publish_preempting(self, preempt_rec: pb.RunPreemptingRecord) -> None: assert self._stub self._assign(preempt_rec) _ = self._stub.RunPreempting(preempt_rec)
python
wandb/sdk/interface/interface_grpc.py
130
133
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,402
_publish_output
def _publish_output(self, outdata: pb.OutputRecord) -> None: assert self._stub self._assign(outdata) _ = self._stub.Output(outdata)
python
wandb/sdk/interface/interface_grpc.py
135
138
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,403
_publish_output_raw
def _publish_output_raw(self, outdata: pb.OutputRawRecord) -> None: assert self._stub self._assign(outdata) _ = self._stub.OutputRaw(outdata)
python
wandb/sdk/interface/interface_grpc.py
140
143
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,404
_communicate_shutdown
def _communicate_shutdown(self) -> None: assert self._stub shutdown = pb.ShutdownRequest() self._assign(shutdown) _ = self._stub.Shutdown(shutdown)
python
wandb/sdk/interface/interface_grpc.py
145
149
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,405
_communicate_run_start
def _communicate_run_start( self, run_start: pb.RunStartRequest ) -> Optional[pb.RunStartResponse]: assert self._stub self._assign(run_start) try: run_start_response = self._stub.RunStart(run_start) except grpc.RpcError as e: logger.info(f"RUNSTART TIMEOUT: {e}") run_start_response = pb.RunStartResponse() return run_start_response # type: ignore
python
wandb/sdk/interface/interface_grpc.py
151
161
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,406
_publish_files
def _publish_files(self, files: pb.FilesRecord) -> None: assert self._stub self._assign(files) _ = self._stub.Files(files)
python
wandb/sdk/interface/interface_grpc.py
163
166
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,407
_publish_artifact
def _publish_artifact(self, proto_artifact: pb.ArtifactRecord) -> None: assert self._stub self._assign(proto_artifact) _ = self._stub.Artifact(proto_artifact)
python
wandb/sdk/interface/interface_grpc.py
168
171
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,408
_publish_link_artifact
def _publish_link_artifact(self, link_artifact: pb.LinkArtifactRecord) -> None: assert self._stub self._assign(link_artifact) _ = self._stub.LinkArtifact(link_artifact)
python
wandb/sdk/interface/interface_grpc.py
173
176
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,409
_publish_use_artifact
def _publish_use_artifact(self, use_artifact: pb.UseArtifactRecord) -> None: assert self._stub self._assign(use_artifact) _ = self._stub.UseArtifact(use_artifact)
python
wandb/sdk/interface/interface_grpc.py
178
181
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,410
_communicate_artifact
def _communicate_artifact( self, log_artifact: pb.LogArtifactRequest ) -> MessageFuture: art_send = pb.ArtifactSendRequest() art_send.artifact.CopyFrom(log_artifact.artifact) assert self._stub self._assign(art_send) art_send_resp = self._stub.ArtifactSend(art_send) xid = art_send_resp.xid future = MessageFuturePoll(self._future_poll_artifact, xid) return future
python
wandb/sdk/interface/interface_grpc.py
183
195
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,411
_future_poll_artifact
def _future_poll_artifact(self, xid: str) -> Optional[pb.Result]: art_poll = pb.ArtifactPollRequest(xid=xid) assert self._stub self._assign(art_poll) art_poll_resp = self._stub.ArtifactPoll(art_poll) if not art_poll_resp.ready: return None # emulate log_artifact response for old _communicate_artifact() protocol result = pb.Result() result.response.log_artifact_response.artifact_id = art_poll_resp.artifact_id result.response.log_artifact_response.error_message = ( art_poll_resp.error_message ) return result
python
wandb/sdk/interface/interface_grpc.py
197
213
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,412
_communicate_artifact_send
def _communicate_artifact_send( self, art_send: pb.ArtifactSendRequest ) -> Optional[pb.ArtifactSendResponse]: # NOTE: Not used in grpc interface now raise NotImplementedError
python
wandb/sdk/interface/interface_grpc.py
215
219
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,413
_communicate_artifact_poll
def _communicate_artifact_poll( self, art_send: pb.ArtifactPollRequest ) -> Optional[pb.ArtifactPollResponse]: # NOTE: Not used in grpc interface now raise NotImplementedError
python
wandb/sdk/interface/interface_grpc.py
221
225
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,414
_publish_artifact_done
def _publish_artifact_done(self, artifact_done: pb.ArtifactDoneRequest) -> None: # NOTE: Not used in grpc interface now raise NotImplementedError
python
wandb/sdk/interface/interface_grpc.py
227
229
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,415
_communicate_status
def _communicate_status( self, status: pb.StatusRequest ) -> Optional[pb.StatusResponse]: assert self._stub self._assign(status) status_response = self._stub.Status(status) return status_response # type: ignore
python
wandb/sdk/interface/interface_grpc.py
231
237
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,416
_communicate_network_status
def _communicate_network_status( self, status: pb.NetworkStatusRequest ) -> Optional[pb.NetworkStatusResponse]: assert self._stub self._assign(status) # TODO: implement return None
python
wandb/sdk/interface/interface_grpc.py
239
245
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,417
_deliver_network_status
def _deliver_network_status(self, status: pb.NetworkStatusRequest) -> MailboxHandle: assert self._stub self._assign(status) network_status_response = pb.NetworkStatusResponse() response = pb.Response(network_status_response=network_status_response) result = pb.Result(response=response) handle = self._deliver(result) return handle
python
wandb/sdk/interface/interface_grpc.py
247
254
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,418
_deliver_stop_status
def _deliver_stop_status(self, status: pb.StopStatusRequest) -> MailboxHandle: assert self._stub self._assign(status) stop_status_response = pb.StopStatusResponse() response = pb.Response(stop_status_response=stop_status_response) result = pb.Result(response=response) handle = self._deliver(result) return handle
python
wandb/sdk/interface/interface_grpc.py
256
263
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,419
_communicate_stop_status
def _communicate_stop_status( self, status: pb.StopStatusRequest ) -> Optional[pb.StopStatusResponse]: assert self._stub self._assign(status) # TODO: implement return None
python
wandb/sdk/interface/interface_grpc.py
265
271
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,420
_publish_alert
def _publish_alert(self, alert: pb.AlertRecord) -> None: assert self._stub self._assign(alert) _ = self._stub.Alert(alert)
python
wandb/sdk/interface/interface_grpc.py
273
276
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,421
_publish_tbdata
def _publish_tbdata(self, tbrecord: pb.TBRecord) -> None: assert self._stub self._assign(tbrecord) _ = self._stub.TBSend(tbrecord)
python
wandb/sdk/interface/interface_grpc.py
278
281
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,422
_publish_exit
def _publish_exit(self, exit_data: pb.RunExitRecord) -> None: assert self._stub self._assign(exit_data) _ = self._stub.RunExit(exit_data) return None
python
wandb/sdk/interface/interface_grpc.py
283
287
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,423
_communicate_poll_exit
def _communicate_poll_exit( self, poll_exit: pb.PollExitRequest ) -> Optional[pb.PollExitResponse]: assert self._stub self._assign(poll_exit) try: ret = self._stub.PollExit(poll_exit) except grpc.RpcError as e: logger.info(f"POLL EXIT TIMEOUT: {e}") ret = pb.PollExitResponse() return ret # type: ignore
python
wandb/sdk/interface/interface_grpc.py
289
299
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,424
_publish_keepalive
def _publish_keepalive(self, keepalive: pb.KeepaliveRequest) -> None: assert self._stub self._assign(keepalive) _ = self._stub.Keepalive(keepalive) return None
python
wandb/sdk/interface/interface_grpc.py
301
305
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,425
_communicate_server_info
def _communicate_server_info( self, server_info: pb.ServerInfoRequest ) -> Optional[pb.ServerInfoResponse]: assert self._stub self._assign(server_info) ret = self._stub.ServerInfo(server_info) return ret # type: ignore
python
wandb/sdk/interface/interface_grpc.py
307
313
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,426
_communicate_sampled_history
def _communicate_sampled_history( self, sampled_history: pb.SampledHistoryRequest ) -> Optional[pb.SampledHistoryResponse]: assert self._stub self._assign(sampled_history) ret = self._stub.SampledHistory(sampled_history) return ret # type: ignore
python
wandb/sdk/interface/interface_grpc.py
315
321
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,427
_publish_header
def _publish_header(self, header: pb.HeaderRecord) -> None: assert self._stub # TODO: implement?
python
wandb/sdk/interface/interface_grpc.py
323
325
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,428
_publish_pause
def _publish_pause(self, pause: pb.PauseRequest) -> None: assert self._stub self._assign(pause) _ = self._stub.Pause(pause)
python
wandb/sdk/interface/interface_grpc.py
327
330
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,429
_publish_resume
def _publish_resume(self, resume: pb.ResumeRequest) -> None: assert self._stub self._assign(resume) _ = self._stub.Resume(resume)
python
wandb/sdk/interface/interface_grpc.py
332
335
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,430
_deliver
def _deliver(self, result: pb.Result) -> MailboxHandle: # TODO: rework grpc implementation to be asynchronous? # for now we will just emulate the mailbox protocol handle = self._mailbox.get_handle() mailbox_slot = handle.address result.control.mailbox_slot = mailbox_slot self._mailbox.deliver(result) return handle
python
wandb/sdk/interface/interface_grpc.py
337
344
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,431
_deliver_run
def _deliver_run(self, run: pb.RunRecord) -> MailboxHandle: assert self._stub self._assign(run) run_result = self._stub.RunUpdate(run) result = pb.Result(run_result=run_result) handle = self._deliver(result) return handle
python
wandb/sdk/interface/interface_grpc.py
346
352
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,432
_deliver_check_version
def _deliver_check_version( self, check_version: pb.CheckVersionRequest ) -> MailboxHandle: assert self._stub self._assign(check_version) check_version_response = self._stub.CheckVersion(check_version) response = pb.Response(check_version_response=check_version_response) result = pb.Result(response=response) handle = self._deliver(result) return handle
python
wandb/sdk/interface/interface_grpc.py
354
363
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,433
_deliver_attach
def _deliver_attach(self, attach: pb.AttachRequest) -> MailboxHandle: assert self._stub self._assign(attach) attach_response = self._stub.Attach(attach) response = pb.Response(attach_response=attach_response) result = pb.Result(response=response) handle = self._deliver(result) return handle
python
wandb/sdk/interface/interface_grpc.py
365
372
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,434
_deliver_get_summary
def _deliver_get_summary(self, get_summary: pb.GetSummaryRequest) -> MailboxHandle: assert self._stub self._assign(get_summary) try: get_summary_response = self._stub.GetSummary(get_summary) except grpc.RpcError as e: logger.info(f"GET SUMMARY TIMEOUT: {e}") get_summary_response = pb.GetSummaryResponse() response = pb.Response(get_summary_response=get_summary_response) result = pb.Result(response=response) handle = self._deliver(result) return handle
python
wandb/sdk/interface/interface_grpc.py
374
385
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,435
_deliver_exit
def _deliver_exit(self, run_exit: pb.RunExitRecord) -> MailboxHandle: assert self._stub self._assign(run_exit) exit_result = self._stub.RunExit(run_exit) result = pb.Result(exit_result=exit_result) handle = self._deliver(result) return handle
python
wandb/sdk/interface/interface_grpc.py
387
393
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,436
_deliver_poll_exit
def _deliver_poll_exit(self, poll_exit: pb.PollExitRequest) -> MailboxHandle: assert self._stub self._assign(poll_exit) poll_exit_response = self._stub.PollExit(poll_exit) response = pb.Response(poll_exit_response=poll_exit_response) result = pb.Result(response=response) handle = self._deliver(result) return handle
python
wandb/sdk/interface/interface_grpc.py
395
402
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,437
_deliver_request_server_info
def _deliver_request_server_info( self, server_info: pb.ServerInfoRequest ) -> MailboxHandle: assert self._stub self._assign(server_info) server_info_response = self._stub.ServerInfo(server_info) response = pb.Response(server_info_response=server_info_response) result = pb.Result(response=response) handle = self._deliver(result) return handle
python
wandb/sdk/interface/interface_grpc.py
404
413
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,438
_deliver_request_sampled_history
def _deliver_request_sampled_history( self, sampled_history: pb.SampledHistoryRequest ) -> MailboxHandle: assert self._stub self._assign(sampled_history) sampled_history_response = self._stub.SampledHistory(sampled_history) response = pb.Response(sampled_history_response=sampled_history_response) result = pb.Result(response=response) handle = self._deliver(result) return handle
python
wandb/sdk/interface/interface_grpc.py
415
424
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,439
_deliver_request_run_status
def _deliver_request_run_status( self, run_status: pb.RunStatusRequest ) -> MailboxHandle: assert self._stub self._assign(run_status) run_status_response = self._stub.RunStatus(run_status) response = pb.Response(run_status_response=run_status_response) result = pb.Result(response=response) handle = self._deliver(result) return handle
python
wandb/sdk/interface/interface_grpc.py
426
435
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,440
_deliver_run_start
def _deliver_run_start(self, run_start: pb.RunStartRequest) -> MailboxHandle: assert self._stub self._assign(run_start) try: run_start_response = self._stub.RunStart(run_start) except grpc.RpcError as e: logger.info(f"RUNSTART TIMEOUT: {e}") run_start_response = pb.RunStartResponse() response = pb.Response(run_start_response=run_start_response) result = pb.Result(response=response) handle = self._deliver(result) return handle
python
wandb/sdk/interface/interface_grpc.py
437
448
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,441
join
def join(self) -> None: super().join()
python
wandb/sdk/interface/interface_grpc.py
450
451
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,442
__init__
def __init__(self, sock_client: SockClient, mailbox: Mailbox) -> None: self._sock_client = sock_client super().__init__(mailbox=mailbox)
python
wandb/sdk/interface/router_sock.py
21
23
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,443
_read_message
def _read_message(self) -> Optional["pb.Result"]: try: resp = self._sock_client.read_server_response(timeout=1) except SockClientClosedError: raise MessageRouterClosedError if not resp: return None msg = resp.result_communicate return msg
python
wandb/sdk/interface/router_sock.py
25
33
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,444
_send_message
def _send_message(self, record: "pb.Record") -> None: self._sock_client.send_record_communicate(record)
python
wandb/sdk/interface/router_sock.py
35
36
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,445
__init__
def __init__( self, process: Optional[BaseProcess] = None, process_check: bool = True, mailbox: Optional[Any] = None, ) -> None: super().__init__() self._transport_success_timestamp = time.monotonic() self._transport_failed = False self._process = process self._router = None self._process_check = process_check self._mailbox = mailbox self._init_router()
python
wandb/sdk/interface/interface_shared.py
34
47
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,446
_init_router
def _init_router(self) -> None: raise NotImplementedError
python
wandb/sdk/interface/interface_shared.py
50
51
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,447
transport_failed
def transport_failed(self) -> bool: return self._transport_failed
python
wandb/sdk/interface/interface_shared.py
54
55
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,448
transport_success_timestamp
def transport_success_timestamp(self) -> float: return self._transport_success_timestamp
python
wandb/sdk/interface/interface_shared.py
58
59
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,449
_transport_mark_failed
def _transport_mark_failed(self) -> None: self._transport_failed = True
python
wandb/sdk/interface/interface_shared.py
61
62
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,450
_transport_mark_success
def _transport_mark_success(self) -> None: self._transport_success_timestamp = time.monotonic()
python
wandb/sdk/interface/interface_shared.py
64
65
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,451
_publish_output
def _publish_output(self, outdata: pb.OutputRecord) -> None: rec = pb.Record() rec.output.CopyFrom(outdata) self._publish(rec)
python
wandb/sdk/interface/interface_shared.py
67
70
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,452
_publish_cancel
def _publish_cancel(self, cancel: pb.CancelRequest) -> None: rec = self._make_request(cancel=cancel) self._publish(rec)
python
wandb/sdk/interface/interface_shared.py
72
74
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,453
_publish_output_raw
def _publish_output_raw(self, outdata: pb.OutputRawRecord) -> None: rec = pb.Record() rec.output_raw.CopyFrom(outdata) self._publish(rec)
python
wandb/sdk/interface/interface_shared.py
76
79
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,454
_publish_tbdata
def _publish_tbdata(self, tbrecord: pb.TBRecord) -> None: rec = self._make_record(tbrecord=tbrecord) self._publish(rec)
python
wandb/sdk/interface/interface_shared.py
81
83
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,455
_publish_partial_history
def _publish_partial_history( self, partial_history: pb.PartialHistoryRequest ) -> None: rec = self._make_request(partial_history=partial_history) self._publish(rec)
python
wandb/sdk/interface/interface_shared.py
85
89
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,456
_publish_history
def _publish_history(self, history: pb.HistoryRecord) -> None: rec = self._make_record(history=history) self._publish(rec)
python
wandb/sdk/interface/interface_shared.py
91
93
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,457
_publish_preempting
def _publish_preempting(self, preempt_rec: pb.RunPreemptingRecord) -> None: rec = self._make_record(preempting=preempt_rec) self._publish(rec)
python
wandb/sdk/interface/interface_shared.py
95
97
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,458
_publish_telemetry
def _publish_telemetry(self, telem: tpb.TelemetryRecord) -> None: rec = self._make_record(telemetry=telem) self._publish(rec)
python
wandb/sdk/interface/interface_shared.py
99
101
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,459
_make_stats
def _make_stats(self, stats_dict: dict) -> pb.StatsRecord: stats = pb.StatsRecord() stats.stats_type = pb.StatsRecord.StatsType.SYSTEM stats.timestamp.GetCurrentTime() # todo: fix this, this is wrong :) for k, v in stats_dict.items(): item = stats.item.add() item.key = k item.value_json = json_dumps_safer(json_friendly(v)[0]) return stats
python
wandb/sdk/interface/interface_shared.py
103
111
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,460
_make_login
def _make_login(self, api_key: Optional[str] = None) -> pb.LoginRequest: login = pb.LoginRequest() if api_key: login.api_key = api_key return login
python
wandb/sdk/interface/interface_shared.py
113
117
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,461
_make_request
def _make_request( # noqa: C901 self, login: Optional[pb.LoginRequest] = None, get_summary: Optional[pb.GetSummaryRequest] = None, pause: Optional[pb.PauseRequest] = None, resume: Optional[pb.ResumeRequest] = None, status: Optional[pb.StatusRequest] = None, stop_status: Optional[pb.StopStatusRequest] = None, network_status: Optional[pb.NetworkStatusRequest] = None, poll_exit: Optional[pb.PollExitRequest] = None, partial_history: Optional[pb.PartialHistoryRequest] = None, sampled_history: Optional[pb.SampledHistoryRequest] = None, run_start: Optional[pb.RunStartRequest] = None, check_version: Optional[pb.CheckVersionRequest] = None, log_artifact: Optional[pb.LogArtifactRequest] = None, defer: Optional[pb.DeferRequest] = None, attach: Optional[pb.AttachRequest] = None, artifact_send: Optional[pb.ArtifactSendRequest] = None, artifact_poll: Optional[pb.ArtifactPollRequest] = None, artifact_done: Optional[pb.ArtifactDoneRequest] = None, server_info: Optional[pb.ServerInfoRequest] = None, keepalive: Optional[pb.KeepaliveRequest] = None, run_status: Optional[pb.RunStatusRequest] = None, sender_mark: Optional[pb.SenderMarkRequest] = None, sender_read: Optional[pb.SenderReadRequest] = None, status_report: Optional[pb.StatusReportRequest] = None, cancel: Optional[pb.CancelRequest] = None, summary_record: Optional[pb.SummaryRecordRequest] = None, telemetry_record: Optional[pb.TelemetryRecordRequest] = None, ) -> pb.Record: request = pb.Request() if login: request.login.CopyFrom(login) elif get_summary: request.get_summary.CopyFrom(get_summary) elif pause: request.pause.CopyFrom(pause) elif resume: request.resume.CopyFrom(resume) elif status: request.status.CopyFrom(status) elif stop_status: request.stop_status.CopyFrom(stop_status) elif network_status: request.network_status.CopyFrom(network_status) elif poll_exit: request.poll_exit.CopyFrom(poll_exit) elif partial_history: request.partial_history.CopyFrom(partial_history) elif sampled_history: request.sampled_history.CopyFrom(sampled_history) elif run_start: request.run_start.CopyFrom(run_start) elif check_version: request.check_version.CopyFrom(check_version) elif log_artifact: request.log_artifact.CopyFrom(log_artifact) elif defer: request.defer.CopyFrom(defer) elif attach: request.attach.CopyFrom(attach) elif artifact_send: request.artifact_send.CopyFrom(artifact_send) elif artifact_poll: request.artifact_poll.CopyFrom(artifact_poll) elif artifact_done: request.artifact_done.CopyFrom(artifact_done) elif server_info: request.server_info.CopyFrom(server_info) elif keepalive: request.keepalive.CopyFrom(keepalive) elif run_status: request.run_status.CopyFrom(run_status) elif sender_mark: request.sender_mark.CopyFrom(sender_mark) elif sender_read: request.sender_read.CopyFrom(sender_read) elif cancel: request.cancel.CopyFrom(cancel) elif status_report: request.status_report.CopyFrom(status_report) elif summary_record: request.summary_record.CopyFrom(summary_record) elif telemetry_record: request.telemetry_record.CopyFrom(telemetry_record) else: raise Exception("Invalid request") record = self._make_record(request=request) # All requests do not get persisted record.control.local = True if status_report: record.control.flow_control = True return record
python
wandb/sdk/interface/interface_shared.py
119
211
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,462
_make_record
def _make_record( # noqa: C901 self, run: Optional[pb.RunRecord] = None, config: Optional[pb.ConfigRecord] = None, files: Optional[pb.FilesRecord] = None, summary: Optional[pb.SummaryRecord] = None, history: Optional[pb.HistoryRecord] = None, stats: Optional[pb.StatsRecord] = None, exit: Optional[pb.RunExitRecord] = None, artifact: Optional[pb.ArtifactRecord] = None, tbrecord: Optional[pb.TBRecord] = None, alert: Optional[pb.AlertRecord] = None, final: Optional[pb.FinalRecord] = None, metric: Optional[pb.MetricRecord] = None, header: Optional[pb.HeaderRecord] = None, footer: Optional[pb.FooterRecord] = None, request: Optional[pb.Request] = None, telemetry: Optional[tpb.TelemetryRecord] = None, preempting: Optional[pb.RunPreemptingRecord] = None, link_artifact: Optional[pb.LinkArtifactRecord] = None, use_artifact: Optional[pb.UseArtifactRecord] = None, ) -> pb.Record: record = pb.Record() if run: record.run.CopyFrom(run) elif config: record.config.CopyFrom(config) elif summary: record.summary.CopyFrom(summary) elif history: record.history.CopyFrom(history) elif files: record.files.CopyFrom(files) elif stats: record.stats.CopyFrom(stats) elif exit: record.exit.CopyFrom(exit) elif artifact: record.artifact.CopyFrom(artifact) elif tbrecord: record.tbrecord.CopyFrom(tbrecord) elif alert: record.alert.CopyFrom(alert) elif final: record.final.CopyFrom(final) elif header: record.header.CopyFrom(header) elif footer: record.footer.CopyFrom(footer) elif request: record.request.CopyFrom(request) elif telemetry: record.telemetry.CopyFrom(telemetry) elif metric: record.metric.CopyFrom(metric) elif preempting: record.preempting.CopyFrom(preempting) elif link_artifact: record.link_artifact.CopyFrom(link_artifact) elif use_artifact: record.use_artifact.CopyFrom(use_artifact) else: raise Exception("Invalid record") return record
python
wandb/sdk/interface/interface_shared.py
213
276
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,463
_publish
def _publish(self, record: pb.Record, local: Optional[bool] = None) -> None: raise NotImplementedError
python
wandb/sdk/interface/interface_shared.py
279
280
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,464
_communicate
def _communicate( self, rec: pb.Record, timeout: Optional[int] = 5, local: Optional[bool] = None ) -> Optional[pb.Result]: return self._communicate_async(rec, local=local).get(timeout=timeout)
python
wandb/sdk/interface/interface_shared.py
282
285
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,465
_communicate_async
def _communicate_async( self, rec: pb.Record, local: Optional[bool] = None ) -> MessageFuture: assert self._router if self._process_check and self._process and not self._process.is_alive(): raise Exception("The wandb backend process has shutdown") future = self._router.send_and_receive(rec, local=local) return future
python
wandb/sdk/interface/interface_shared.py
287
294
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,466
communicate_login
def communicate_login( self, api_key: Optional[str] = None, timeout: Optional[int] = 15 ) -> pb.LoginResponse: login = self._make_login(api_key) rec = self._make_request(login=login) result = self._communicate(rec, timeout=timeout) if result is None: # TODO: friendlier error message here raise wandb.Error( "Couldn't communicate with backend after %s seconds" % timeout ) login_response = result.response.login_response assert login_response return login_response
python
wandb/sdk/interface/interface_shared.py
296
309
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,467
_publish_defer
def _publish_defer(self, state: "pb.DeferRequest.DeferState.V") -> None: defer = pb.DeferRequest(state=state) rec = self._make_request(defer=defer) self._publish(rec, local=True)
python
wandb/sdk/interface/interface_shared.py
311
314
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,468
publish_defer
def publish_defer(self, state: int = 0) -> None: self._publish_defer(cast("pb.DeferRequest.DeferState.V", state))
python
wandb/sdk/interface/interface_shared.py
316
317
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,469
_publish_header
def _publish_header(self, header: pb.HeaderRecord) -> None: rec = self._make_record(header=header) self._publish(rec)
python
wandb/sdk/interface/interface_shared.py
319
321
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,470
publish_footer
def publish_footer(self) -> None: footer = pb.FooterRecord() rec = self._make_record(footer=footer) self._publish(rec)
python
wandb/sdk/interface/interface_shared.py
323
326
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,471
publish_final
def publish_final(self) -> None: final = pb.FinalRecord() rec = self._make_record(final=final) self._publish(rec)
python
wandb/sdk/interface/interface_shared.py
328
331
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,472
publish_login
def publish_login(self, api_key: Optional[str] = None) -> None: login = self._make_login(api_key) rec = self._make_request(login=login) self._publish(rec)
python
wandb/sdk/interface/interface_shared.py
333
336
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,473
_publish_pause
def _publish_pause(self, pause: pb.PauseRequest) -> None: rec = self._make_request(pause=pause) self._publish(rec)
python
wandb/sdk/interface/interface_shared.py
338
340
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,474
_publish_resume
def _publish_resume(self, resume: pb.ResumeRequest) -> None: rec = self._make_request(resume=resume) self._publish(rec)
python
wandb/sdk/interface/interface_shared.py
342
344
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,475
_publish_run
def _publish_run(self, run: pb.RunRecord) -> None: rec = self._make_record(run=run) self._publish(rec)
python
wandb/sdk/interface/interface_shared.py
346
348
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,476
_publish_config
def _publish_config(self, cfg: pb.ConfigRecord) -> None: rec = self._make_record(config=cfg) self._publish(rec)
python
wandb/sdk/interface/interface_shared.py
350
352
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,477
_publish_summary
def _publish_summary(self, summary: pb.SummaryRecord) -> None: rec = self._make_record(summary=summary) self._publish(rec)
python
wandb/sdk/interface/interface_shared.py
354
356
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,478
_publish_metric
def _publish_metric(self, metric: pb.MetricRecord) -> None: rec = self._make_record(metric=metric) self._publish(rec)
python
wandb/sdk/interface/interface_shared.py
358
360
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,479
_communicate_attach
def _communicate_attach( self, attach: pb.AttachRequest ) -> Optional[pb.AttachResponse]: req = self._make_request(attach=attach) resp = self._communicate(req) if resp is None: return None return resp.response.attach_response
python
wandb/sdk/interface/interface_shared.py
362
369
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,480
_communicate_run
def _communicate_run( self, run: pb.RunRecord, timeout: Optional[int] = None ) -> Optional[pb.RunUpdateResult]: """Send synchronous run object waiting for a response. Arguments: run: RunRecord object timeout: number of seconds to wait Returns: RunRecord object """ req = self._make_record(run=run) resp = self._communicate(req, timeout=timeout) if resp is None: logger.info("couldn't get run from backend") # Note: timeouts handled by callers: wandb_init.py return None assert resp.HasField("run_result") return resp.run_result
python
wandb/sdk/interface/interface_shared.py
371
390
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,481
publish_stats
def publish_stats(self, stats_dict: dict) -> None: stats = self._make_stats(stats_dict) rec = self._make_record(stats=stats) self._publish(rec)
python
wandb/sdk/interface/interface_shared.py
392
395
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,482
_publish_files
def _publish_files(self, files: pb.FilesRecord) -> None: rec = self._make_record(files=files) self._publish(rec)
python
wandb/sdk/interface/interface_shared.py
397
399
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,483
_publish_link_artifact
def _publish_link_artifact(self, link_artifact: pb.LinkArtifactRecord) -> Any: rec = self._make_record(link_artifact=link_artifact) self._publish(rec)
python
wandb/sdk/interface/interface_shared.py
401
403
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,484
_publish_use_artifact
def _publish_use_artifact(self, use_artifact: pb.UseArtifactRecord) -> Any: rec = self._make_record(use_artifact=use_artifact) self._publish(rec)
python
wandb/sdk/interface/interface_shared.py
405
407
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,485
_communicate_artifact
def _communicate_artifact(self, log_artifact: pb.LogArtifactRequest) -> Any: rec = self._make_request(log_artifact=log_artifact) return self._communicate_async(rec)
python
wandb/sdk/interface/interface_shared.py
409
411
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,486
_communicate_artifact_send
def _communicate_artifact_send( self, artifact_send: pb.ArtifactSendRequest ) -> Optional[pb.ArtifactSendResponse]: rec = self._make_request(artifact_send=artifact_send) result = self._communicate(rec) if result is None: return None artifact_send_resp = result.response.artifact_send_response return artifact_send_resp
python
wandb/sdk/interface/interface_shared.py
413
421
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,487
_communicate_artifact_poll
def _communicate_artifact_poll( self, artifact_poll: pb.ArtifactPollRequest ) -> Optional[pb.ArtifactPollResponse]: rec = self._make_request(artifact_poll=artifact_poll) result = self._communicate(rec) if result is None: return None artifact_poll_resp = result.response.artifact_poll_response return artifact_poll_resp
python
wandb/sdk/interface/interface_shared.py
423
431
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,488
_publish_artifact_done
def _publish_artifact_done(self, artifact_done: pb.ArtifactDoneRequest) -> None: rec = self._make_request(artifact_done=artifact_done) self._publish(rec)
python
wandb/sdk/interface/interface_shared.py
433
435
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,489
_publish_artifact
def _publish_artifact(self, proto_artifact: pb.ArtifactRecord) -> None: rec = self._make_record(artifact=proto_artifact) self._publish(rec)
python
wandb/sdk/interface/interface_shared.py
437
439
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,490
_publish_alert
def _publish_alert(self, proto_alert: pb.AlertRecord) -> None: rec = self._make_record(alert=proto_alert) self._publish(rec)
python
wandb/sdk/interface/interface_shared.py
441
443
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,491
_communicate_status
def _communicate_status( self, status: pb.StatusRequest ) -> Optional[pb.StatusResponse]: req = self._make_request(status=status) resp = self._communicate(req, local=True) if resp is None: return None assert resp.response.status_response return resp.response.status_response
python
wandb/sdk/interface/interface_shared.py
445
453
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,492
_communicate_stop_status
def _communicate_stop_status( self, status: pb.StopStatusRequest ) -> Optional[pb.StopStatusResponse]: req = self._make_request(stop_status=status) resp = self._communicate(req, local=True) if resp is None: return None assert resp.response.stop_status_response return resp.response.stop_status_response
python
wandb/sdk/interface/interface_shared.py
455
463
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,493
_communicate_network_status
def _communicate_network_status( self, status: pb.NetworkStatusRequest ) -> Optional[pb.NetworkStatusResponse]: req = self._make_request(network_status=status) resp = self._communicate(req, local=True) if resp is None: return None assert resp.response.network_status_response return resp.response.network_status_response
python
wandb/sdk/interface/interface_shared.py
465
473
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,494
_publish_exit
def _publish_exit(self, exit_data: pb.RunExitRecord) -> None: rec = self._make_record(exit=exit_data) self._publish(rec)
python
wandb/sdk/interface/interface_shared.py
475
477
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,495
_communicate_poll_exit
def _communicate_poll_exit( self, poll_exit: pb.PollExitRequest ) -> Optional[pb.PollExitResponse]: rec = self._make_request(poll_exit=poll_exit) result = self._communicate(rec) if result is None: return None poll_exit_response = result.response.poll_exit_response assert poll_exit_response return poll_exit_response
python
wandb/sdk/interface/interface_shared.py
479
488
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,496
_publish_keepalive
def _publish_keepalive(self, keepalive: pb.KeepaliveRequest) -> None: record = self._make_request(keepalive=keepalive) self._publish(record)
python
wandb/sdk/interface/interface_shared.py
490
492
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,497
_communicate_server_info
def _communicate_server_info( self, server_info: pb.ServerInfoRequest ) -> Optional[pb.ServerInfoResponse]: rec = self._make_request(server_info=server_info) result = self._communicate(rec) if result is None: return None server_info_response = result.response.server_info_response assert server_info_response return server_info_response
python
wandb/sdk/interface/interface_shared.py
494
503
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,498
_communicate_check_version
def _communicate_check_version( self, check_version: pb.CheckVersionRequest ) -> Optional[pb.CheckVersionResponse]: rec = self._make_request(check_version=check_version) result = self._communicate(rec) if result is None: # Note: timeouts handled by callers: wandb_init.py return None return result.response.check_version_response
python
wandb/sdk/interface/interface_shared.py
505
513
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,499
_communicate_run_start
def _communicate_run_start( self, run_start: pb.RunStartRequest ) -> Optional[pb.RunStartResponse]: rec = self._make_request(run_start=run_start) result = self._communicate(rec) if result is None: return None run_start_response = result.response.run_start_response return run_start_response
python
wandb/sdk/interface/interface_shared.py
515
523
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }
3,500
_communicate_get_summary
def _communicate_get_summary( self, get_summary: pb.GetSummaryRequest ) -> Optional[pb.GetSummaryResponse]: record = self._make_request(get_summary=get_summary) result = self._communicate(record, timeout=10) if result is None: return None get_summary_response = result.response.get_summary_response assert get_summary_response return get_summary_response
python
wandb/sdk/interface/interface_shared.py
525
534
{ "name": "Git-abouvier/wandb", "url": "https://github.com/Git-abouvier/wandb.git", "license": "MIT", "stars": 0, "forks": 0 }