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 TIM... | 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)
... | 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_art... | 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=res... | 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)
han... | 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}")
... | 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
... | 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)
... | 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(re... | 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}")
... | 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)
... | 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... | 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=samp... | 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.Res... | 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_... | 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 = proc... | 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... | 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_... | 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.S... | 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.se... | 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: frien... | 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:
Ru... | 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.res... | 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.res... | 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.respon... | 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
... | 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_stat... | 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... | 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.serv... | 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
... | 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... | 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 = re... | 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
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.