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,301 | _communicate_attach | def _communicate_attach(
self, attach: pb.AttachRequest
) -> Optional[pb.AttachResponse]:
raise NotImplementedError | python | wandb/sdk/interface/interface.py | 222 | 225 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,302 | communicate_run | def communicate_run(
self, run_obj: "Run", timeout: Optional[int] = None
) -> Optional[pb.RunUpdateResult]:
run = self._make_run(run_obj)
return self._communicate_run(run, timeout=timeout) | python | wandb/sdk/interface/interface.py | 227 | 231 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,303 | _communicate_run | def _communicate_run(
self, run: pb.RunRecord, timeout: Optional[int] = None
) -> Optional[pb.RunUpdateResult]:
raise NotImplementedError | python | wandb/sdk/interface/interface.py | 234 | 237 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,304 | communicate_run_start | def communicate_run_start(self, run_pb: pb.RunRecord) -> bool:
run_start = pb.RunStartRequest()
run_start.run.CopyFrom(run_pb)
result = self._communicate_run_start(run_start)
return result is not None | python | wandb/sdk/interface/interface.py | 239 | 243 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,305 | _communicate_run_start | def _communicate_run_start(
self, run_start: pb.RunStartRequest
) -> Optional[pb.RunStartResponse]:
raise NotImplementedError | python | wandb/sdk/interface/interface.py | 246 | 249 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,306 | _make_summary_from_dict | def _make_summary_from_dict(self, summary_dict: dict) -> pb.SummaryRecord:
summary = pb.SummaryRecord()
for k, v in summary_dict.items():
update = summary.update.add()
update.key = k
update.value_json = json.dumps(v)
return summary | python | wandb/sdk/interface/interface.py | 251 | 257 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,307 | _summary_encode | def _summary_encode(self, value: Any, path_from_root: str) -> dict:
"""Normalize, compress, and encode sub-objects for backend storage.
value: Object to encode.
path_from_root: `str` dot separated string from the top-level summary to the
current `value`.
Returns:
A new tree of dict's with large objects replaced with dictionaries
with "_type" entries that say which type the original data was.
"""
# Constructs a new `dict` tree in `json_value` that discards and/or
# encodes objects that aren't JSON serializable.
if isinstance(value, dict):
json_value = {}
for key, value in value.items(): # noqa: B020
json_value[key] = self._summary_encode(
value, path_from_root + "." + key
)
return json_value
else:
friendly_value, converted = json_friendly(
val_to_json(self._run, path_from_root, value, namespace="summary")
)
json_value, compressed = maybe_compress_summary(
friendly_value, get_h5_typename(value)
)
if compressed:
# TODO(jhr): impleement me
pass
# self.write_h5(path_from_root, friendly_value)
return json_value | python | wandb/sdk/interface/interface.py | 259 | 292 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,308 | _make_summary | def _make_summary(self, summary_record: sr.SummaryRecord) -> pb.SummaryRecord:
pb_summary_record = pb.SummaryRecord()
for item in summary_record.update:
pb_summary_item = pb_summary_record.update.add()
key_length = len(item.key)
assert key_length > 0
if key_length > 1:
pb_summary_item.nested_key.extend(item.key)
else:
pb_summary_item.key = item.key[0]
path_from_root = ".".join(item.key)
json_value = self._summary_encode(item.value, path_from_root)
json_value, _ = json_friendly(json_value) # type: ignore
pb_summary_item.value_json = json.dumps(
json_value,
cls=WandBJSONEncoderOld,
)
for item in summary_record.remove:
pb_summary_item = pb_summary_record.remove.add()
key_length = len(item.key)
assert key_length > 0
if key_length > 1:
pb_summary_item.nested_key.extend(item.key)
else:
pb_summary_item.key = item.key[0]
return pb_summary_record | python | wandb/sdk/interface/interface.py | 294 | 328 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,309 | publish_summary | def publish_summary(self, summary_record: sr.SummaryRecord) -> None:
pb_summary_record = self._make_summary(summary_record)
self._publish_summary(pb_summary_record) | python | wandb/sdk/interface/interface.py | 330 | 332 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,310 | _publish_summary | def _publish_summary(self, summary: pb.SummaryRecord) -> None:
raise NotImplementedError | python | wandb/sdk/interface/interface.py | 335 | 336 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,311 | communicate_get_summary | def communicate_get_summary(self) -> Optional[pb.GetSummaryResponse]:
get_summary = pb.GetSummaryRequest()
return self._communicate_get_summary(get_summary) | python | wandb/sdk/interface/interface.py | 338 | 340 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,312 | _communicate_get_summary | def _communicate_get_summary(
self, get_summary: pb.GetSummaryRequest
) -> Optional[pb.GetSummaryResponse]:
raise NotImplementedError | python | wandb/sdk/interface/interface.py | 343 | 346 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,313 | communicate_sampled_history | def communicate_sampled_history(self) -> Optional[pb.SampledHistoryResponse]:
sampled_history = pb.SampledHistoryRequest()
resp = self._communicate_sampled_history(sampled_history)
return resp | python | wandb/sdk/interface/interface.py | 348 | 351 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,314 | _communicate_sampled_history | def _communicate_sampled_history(
self, sampled_history: pb.SampledHistoryRequest
) -> Optional[pb.SampledHistoryResponse]:
raise NotImplementedError | python | wandb/sdk/interface/interface.py | 354 | 357 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,315 | _make_files | def _make_files(self, files_dict: "FilesDict") -> pb.FilesRecord:
files = pb.FilesRecord()
for path, policy in files_dict["files"]:
f = files.files.add()
f.path = path
f.policy = file_policy_to_enum(policy)
return files | python | wandb/sdk/interface/interface.py | 359 | 365 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,316 | publish_files | def publish_files(self, files_dict: "FilesDict") -> None:
files = self._make_files(files_dict)
self._publish_files(files) | python | wandb/sdk/interface/interface.py | 367 | 369 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,317 | _publish_files | def _publish_files(self, files: pb.FilesRecord) -> None:
raise NotImplementedError | python | wandb/sdk/interface/interface.py | 372 | 373 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,318 | _make_artifact | def _make_artifact(self, artifact: Artifact) -> pb.ArtifactRecord:
proto_artifact = pb.ArtifactRecord()
proto_artifact.type = artifact.type
proto_artifact.name = artifact.name
proto_artifact.client_id = artifact._client_id
proto_artifact.sequence_client_id = artifact._sequence_client_id
proto_artifact.digest = artifact.digest
if artifact.distributed_id:
proto_artifact.distributed_id = artifact.distributed_id
if artifact.description:
proto_artifact.description = artifact.description
if artifact.metadata:
proto_artifact.metadata = json.dumps(json_friendly_val(artifact.metadata))
proto_artifact.incremental_beta1 = artifact.incremental
self._make_artifact_manifest(artifact.manifest, obj=proto_artifact.manifest)
return proto_artifact | python | wandb/sdk/interface/interface.py | 375 | 390 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,319 | _make_artifact_manifest | def _make_artifact_manifest(
self,
artifact_manifest: ArtifactManifest,
obj: Optional[pb.ArtifactManifest] = None,
) -> pb.ArtifactManifest:
proto_manifest = obj or pb.ArtifactManifest()
proto_manifest.version = artifact_manifest.version()
proto_manifest.storage_policy = artifact_manifest.storage_policy.name()
for k, v in artifact_manifest.storage_policy.config().items() or {}.items():
cfg = proto_manifest.storage_policy_config.add()
cfg.key = k
cfg.value_json = json.dumps(v)
for entry in sorted(artifact_manifest.entries.values(), key=lambda k: k.path):
proto_entry = proto_manifest.contents.add()
proto_entry.path = entry.path
proto_entry.digest = entry.digest
if entry.size:
proto_entry.size = entry.size
if entry.birth_artifact_id:
proto_entry.birth_artifact_id = entry.birth_artifact_id
if entry.ref:
proto_entry.ref = entry.ref
if entry.local_path:
proto_entry.local_path = entry.local_path
for k, v in entry.extra.items():
proto_extra = proto_entry.extra.add()
proto_extra.key = k
proto_extra.value_json = json.dumps(v)
return proto_manifest | python | wandb/sdk/interface/interface.py | 392 | 422 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,320 | publish_link_artifact | def publish_link_artifact(
self,
run: "Run",
artifact: Union[Artifact, PublicArtifact],
portfolio_name: str,
aliases: Iterable[str],
entity: Optional[str] = None,
project: Optional[str] = None,
) -> None:
link_artifact = pb.LinkArtifactRecord()
if isinstance(artifact, Artifact):
link_artifact.client_id = artifact._client_id
else:
link_artifact.server_id = artifact.id if artifact.id else ""
link_artifact.portfolio_name = portfolio_name
link_artifact.portfolio_entity = entity or run.entity
link_artifact.portfolio_project = project or run.project
link_artifact.portfolio_aliases.extend(aliases)
self._publish_link_artifact(link_artifact) | python | wandb/sdk/interface/interface.py | 424 | 443 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,321 | _publish_link_artifact | def _publish_link_artifact(self, link_artifact: pb.LinkArtifactRecord) -> None:
raise NotImplementedError | python | wandb/sdk/interface/interface.py | 446 | 447 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,322 | publish_use_artifact | def publish_use_artifact(
self,
artifact: Artifact,
) -> None:
# use_artifact is either a public.Artifact or a wandb.Artifact that has been
# waited on and has an id
assert artifact.id is not None, "Artifact must have an id"
use_artifact = pb.UseArtifactRecord(
id=artifact.id, type=artifact.type, name=artifact.name
)
self._publish_use_artifact(use_artifact) | python | wandb/sdk/interface/interface.py | 449 | 460 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,323 | _publish_use_artifact | def _publish_use_artifact(self, proto_artifact: pb.UseArtifactRecord) -> None:
raise NotImplementedError | python | wandb/sdk/interface/interface.py | 463 | 464 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,324 | communicate_artifact | def communicate_artifact(
self,
run: "Run",
artifact: Artifact,
aliases: Iterable[str],
history_step: Optional[int] = None,
is_user_created: bool = False,
use_after_commit: bool = False,
finalize: bool = True,
) -> MessageFuture:
proto_run = self._make_run(run)
proto_artifact = self._make_artifact(artifact)
proto_artifact.run_id = proto_run.run_id
proto_artifact.project = proto_run.project
proto_artifact.entity = proto_run.entity
proto_artifact.user_created = is_user_created
proto_artifact.use_after_commit = use_after_commit
proto_artifact.finalize = finalize
for alias in aliases:
proto_artifact.aliases.append(alias)
log_artifact = pb.LogArtifactRequest()
log_artifact.artifact.CopyFrom(proto_artifact)
if history_step is not None:
log_artifact.history_step = history_step
resp = self._communicate_artifact(log_artifact)
return resp | python | wandb/sdk/interface/interface.py | 466 | 492 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,325 | _communicate_artifact | def _communicate_artifact(
self, log_artifact: pb.LogArtifactRequest
) -> MessageFuture:
raise NotImplementedError | python | wandb/sdk/interface/interface.py | 495 | 498 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,326 | _communicate_artifact_send | def _communicate_artifact_send(
self, artifact_send: pb.ArtifactSendRequest
) -> Optional[pb.ArtifactSendResponse]:
raise NotImplementedError | python | wandb/sdk/interface/interface.py | 501 | 504 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,327 | _communicate_artifact_poll | def _communicate_artifact_poll(
self, art_poll: pb.ArtifactPollRequest
) -> Optional[pb.ArtifactPollResponse]:
raise NotImplementedError | python | wandb/sdk/interface/interface.py | 507 | 510 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,328 | _publish_artifact_done | def _publish_artifact_done(self, artifact_done: pb.ArtifactDoneRequest) -> None:
raise NotImplementedError | python | wandb/sdk/interface/interface.py | 513 | 514 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,329 | publish_artifact | def publish_artifact(
self,
run: "Run",
artifact: Artifact,
aliases: Iterable[str],
is_user_created: bool = False,
use_after_commit: bool = False,
finalize: bool = True,
) -> None:
proto_run = self._make_run(run)
proto_artifact = self._make_artifact(artifact)
proto_artifact.run_id = proto_run.run_id
proto_artifact.project = proto_run.project
proto_artifact.entity = proto_run.entity
proto_artifact.user_created = is_user_created
proto_artifact.use_after_commit = use_after_commit
proto_artifact.finalize = finalize
for alias in aliases:
proto_artifact.aliases.append(alias)
self._publish_artifact(proto_artifact) | python | wandb/sdk/interface/interface.py | 516 | 535 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,330 | _publish_artifact | def _publish_artifact(self, proto_artifact: pb.ArtifactRecord) -> None:
raise NotImplementedError | python | wandb/sdk/interface/interface.py | 538 | 539 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,331 | publish_tbdata | def publish_tbdata(self, log_dir: str, save: bool, root_logdir: str = "") -> None:
tbrecord = pb.TBRecord()
tbrecord.log_dir = log_dir
tbrecord.save = save
tbrecord.root_dir = root_logdir
self._publish_tbdata(tbrecord) | python | wandb/sdk/interface/interface.py | 541 | 546 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,332 | _publish_tbdata | def _publish_tbdata(self, tbrecord: pb.TBRecord) -> None:
raise NotImplementedError | python | wandb/sdk/interface/interface.py | 549 | 550 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,333 | _publish_telemetry | def _publish_telemetry(self, telem: tpb.TelemetryRecord) -> None:
raise NotImplementedError | python | wandb/sdk/interface/interface.py | 553 | 554 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,334 | publish_partial_history | def publish_partial_history(
self,
data: dict,
user_step: int,
step: Optional[int] = None,
flush: Optional[bool] = None,
publish_step: bool = True,
run: Optional["Run"] = None,
) -> None:
run = run or self._run
data = history_dict_to_json(run, data, step=user_step, ignore_copy_err=True)
data.pop("_step", None)
# add timestamp to the history request, if not already present
# the timestamp might come from the tensorboard log logic
if "_timestamp" not in data:
data["_timestamp"] = time.time()
partial_history = pb.PartialHistoryRequest()
for k, v in data.items():
item = partial_history.item.add()
item.key = k
item.value_json = json_dumps_safer_history(v)
if publish_step and step is not None:
partial_history.step.num = step
if flush is not None:
partial_history.action.flush = flush
self._publish_partial_history(partial_history) | python | wandb/sdk/interface/interface.py | 556 | 585 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,335 | _publish_partial_history | def _publish_partial_history(self, history: pb.PartialHistoryRequest) -> None:
raise NotImplementedError | python | wandb/sdk/interface/interface.py | 588 | 589 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,336 | publish_history | def publish_history(
self,
data: dict,
step: Optional[int] = None,
run: Optional["Run"] = None,
publish_step: bool = True,
) -> None:
run = run or self._run
data = history_dict_to_json(run, data, step=step)
history = pb.HistoryRecord()
if publish_step:
assert step is not None
history.step.num = step
data.pop("_step", None)
for k, v in data.items():
item = history.item.add()
item.key = k
item.value_json = json_dumps_safer_history(v)
self._publish_history(history) | python | wandb/sdk/interface/interface.py | 591 | 609 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,337 | _publish_history | def _publish_history(self, history: pb.HistoryRecord) -> None:
raise NotImplementedError | python | wandb/sdk/interface/interface.py | 612 | 613 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,338 | publish_preempting | def publish_preempting(self) -> None:
preempt_rec = pb.RunPreemptingRecord()
self._publish_preempting(preempt_rec) | python | wandb/sdk/interface/interface.py | 615 | 617 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,339 | _publish_preempting | def _publish_preempting(self, preempt_rec: pb.RunPreemptingRecord) -> None:
raise NotImplementedError | python | wandb/sdk/interface/interface.py | 620 | 621 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,340 | publish_output | def publish_output(self, name: str, data: str) -> None:
# from vendor.protobuf import google3.protobuf.timestamp
# ts = timestamp.Timestamp()
# ts.GetCurrentTime()
# now = datetime.now()
if name == "stdout":
otype = pb.OutputRecord.OutputType.STDOUT
elif name == "stderr":
otype = pb.OutputRecord.OutputType.STDERR
else:
# TODO(jhr): throw error?
print("unknown type")
o = pb.OutputRecord(output_type=otype, line=data)
o.timestamp.GetCurrentTime()
self._publish_output(o) | python | wandb/sdk/interface/interface.py | 623 | 637 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,341 | _publish_output | def _publish_output(self, outdata: pb.OutputRecord) -> None:
raise NotImplementedError | python | wandb/sdk/interface/interface.py | 640 | 641 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,342 | publish_output_raw | def publish_output_raw(self, name: str, data: str) -> None:
# from vendor.protobuf import google3.protobuf.timestamp
# ts = timestamp.Timestamp()
# ts.GetCurrentTime()
# now = datetime.now()
if name == "stdout":
otype = pb.OutputRawRecord.OutputType.STDOUT
elif name == "stderr":
otype = pb.OutputRawRecord.OutputType.STDERR
else:
# TODO(jhr): throw error?
print("unknown type")
o = pb.OutputRawRecord(output_type=otype, line=data)
o.timestamp.GetCurrentTime()
self._publish_output_raw(o) | python | wandb/sdk/interface/interface.py | 643 | 657 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,343 | _publish_output_raw | def _publish_output_raw(self, outdata: pb.OutputRawRecord) -> None:
raise NotImplementedError | python | wandb/sdk/interface/interface.py | 660 | 661 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,344 | publish_pause | def publish_pause(self) -> None:
pause = pb.PauseRequest()
self._publish_pause(pause) | python | wandb/sdk/interface/interface.py | 663 | 665 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,345 | _publish_pause | def _publish_pause(self, pause: pb.PauseRequest) -> None:
raise NotImplementedError | python | wandb/sdk/interface/interface.py | 668 | 669 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,346 | publish_resume | def publish_resume(self) -> None:
resume = pb.ResumeRequest()
self._publish_resume(resume) | python | wandb/sdk/interface/interface.py | 671 | 673 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,347 | _publish_resume | def _publish_resume(self, resume: pb.ResumeRequest) -> None:
raise NotImplementedError | python | wandb/sdk/interface/interface.py | 676 | 677 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,348 | publish_alert | def publish_alert(
self, title: str, text: str, level: str, wait_duration: int
) -> None:
proto_alert = pb.AlertRecord()
proto_alert.title = title
proto_alert.text = text
proto_alert.level = level
proto_alert.wait_duration = wait_duration
self._publish_alert(proto_alert) | python | wandb/sdk/interface/interface.py | 679 | 687 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,349 | _publish_alert | def _publish_alert(self, alert: pb.AlertRecord) -> None:
raise NotImplementedError | python | wandb/sdk/interface/interface.py | 690 | 691 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,350 | _make_exit | def _make_exit(self, exit_code: Optional[int]) -> pb.RunExitRecord:
exit = pb.RunExitRecord()
if exit_code is not None:
exit.exit_code = exit_code
return exit | python | wandb/sdk/interface/interface.py | 693 | 697 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,351 | publish_exit | def publish_exit(self, exit_code: Optional[int]) -> None:
exit_data = self._make_exit(exit_code)
self._publish_exit(exit_data) | python | wandb/sdk/interface/interface.py | 699 | 701 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,352 | _publish_exit | def _publish_exit(self, exit_data: pb.RunExitRecord) -> None:
raise NotImplementedError | python | wandb/sdk/interface/interface.py | 704 | 705 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,353 | communicate_poll_exit | def communicate_poll_exit(self) -> Optional[pb.PollExitResponse]:
poll_exit = pb.PollExitRequest()
resp = self._communicate_poll_exit(poll_exit)
return resp | python | wandb/sdk/interface/interface.py | 707 | 710 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,354 | _communicate_poll_exit | def _communicate_poll_exit(
self, poll_exit: pb.PollExitRequest
) -> Optional[pb.PollExitResponse]:
raise NotImplementedError | python | wandb/sdk/interface/interface.py | 713 | 716 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,355 | publish_keepalive | def publish_keepalive(self) -> None:
keepalive = pb.KeepaliveRequest()
self._publish_keepalive(keepalive) | python | wandb/sdk/interface/interface.py | 718 | 720 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,356 | _publish_keepalive | def _publish_keepalive(self, keepalive: pb.KeepaliveRequest) -> None:
raise NotImplementedError | python | wandb/sdk/interface/interface.py | 723 | 724 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,357 | communicate_server_info | def communicate_server_info(self) -> Optional[pb.ServerInfoResponse]:
server_info = pb.ServerInfoRequest()
resp = self._communicate_server_info(server_info)
return resp | python | wandb/sdk/interface/interface.py | 726 | 729 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,358 | _communicate_server_info | def _communicate_server_info(
self, server_info: pb.ServerInfoRequest
) -> Optional[pb.ServerInfoResponse]:
raise NotImplementedError | python | wandb/sdk/interface/interface.py | 732 | 735 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,359 | join | def join(self) -> None:
# Drop indicates that the internal process has already been shutdown
if self._drop:
return
_ = self._communicate_shutdown() | python | wandb/sdk/interface/interface.py | 737 | 741 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,360 | _communicate_shutdown | def _communicate_shutdown(self) -> None:
raise NotImplementedError | python | wandb/sdk/interface/interface.py | 744 | 745 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,361 | deliver_run | def deliver_run(self, run: "pb.RunRecord") -> MailboxHandle:
return self._deliver_run(run) | python | wandb/sdk/interface/interface.py | 747 | 748 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,362 | _deliver_run | def _deliver_run(self, run: pb.RunRecord) -> MailboxHandle:
raise NotImplementedError | python | wandb/sdk/interface/interface.py | 751 | 752 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,363 | deliver_run_start | def deliver_run_start(self, run_pb: pb.RunRecord) -> MailboxHandle:
run_start = pb.RunStartRequest()
run_start.run.CopyFrom(run_pb)
return self._deliver_run_start(run_start) | python | wandb/sdk/interface/interface.py | 754 | 757 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,364 | _deliver_run_start | def _deliver_run_start(self, run_start: pb.RunStartRequest) -> MailboxHandle:
raise NotImplementedError | python | wandb/sdk/interface/interface.py | 760 | 761 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,365 | deliver_attach | def deliver_attach(self, attach_id: str) -> MailboxHandle:
attach = pb.AttachRequest(attach_id=attach_id)
return self._deliver_attach(attach) | python | wandb/sdk/interface/interface.py | 763 | 765 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,366 | _deliver_attach | def _deliver_attach(self, status: pb.AttachRequest) -> MailboxHandle:
raise NotImplementedError | python | wandb/sdk/interface/interface.py | 768 | 769 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,367 | deliver_check_version | def deliver_check_version(
self, current_version: Optional[str] = None
) -> MailboxHandle:
check_version = pb.CheckVersionRequest()
if current_version:
check_version.current_version = current_version
return self._deliver_check_version(check_version) | python | wandb/sdk/interface/interface.py | 771 | 777 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,368 | _deliver_check_version | def _deliver_check_version(
self, check_version: pb.CheckVersionRequest
) -> MailboxHandle:
raise NotImplementedError | python | wandb/sdk/interface/interface.py | 780 | 783 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,369 | deliver_stop_status | def deliver_stop_status(self) -> MailboxHandle:
status = pb.StopStatusRequest()
return self._deliver_stop_status(status) | python | wandb/sdk/interface/interface.py | 785 | 787 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,370 | _deliver_stop_status | def _deliver_stop_status(self, status: pb.StopStatusRequest) -> MailboxHandle:
raise NotImplementedError | python | wandb/sdk/interface/interface.py | 790 | 791 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,371 | deliver_network_status | def deliver_network_status(self) -> MailboxHandle:
status = pb.NetworkStatusRequest()
return self._deliver_network_status(status) | python | wandb/sdk/interface/interface.py | 793 | 795 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,372 | _deliver_network_status | def _deliver_network_status(self, status: pb.NetworkStatusRequest) -> MailboxHandle:
raise NotImplementedError | python | wandb/sdk/interface/interface.py | 798 | 799 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,373 | deliver_get_summary | def deliver_get_summary(self) -> MailboxHandle:
get_summary = pb.GetSummaryRequest()
return self._deliver_get_summary(get_summary) | python | wandb/sdk/interface/interface.py | 801 | 803 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,374 | _deliver_get_summary | def _deliver_get_summary(self, get_summary: pb.GetSummaryRequest) -> MailboxHandle:
raise NotImplementedError | python | wandb/sdk/interface/interface.py | 806 | 807 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,375 | deliver_exit | def deliver_exit(self, exit_code: Optional[int]) -> MailboxHandle:
exit_data = self._make_exit(exit_code)
return self._deliver_exit(exit_data) | python | wandb/sdk/interface/interface.py | 809 | 811 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,376 | _deliver_exit | def _deliver_exit(self, exit_data: pb.RunExitRecord) -> MailboxHandle:
raise NotImplementedError | python | wandb/sdk/interface/interface.py | 814 | 815 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,377 | deliver_poll_exit | def deliver_poll_exit(self) -> MailboxHandle:
poll_exit = pb.PollExitRequest()
return self._deliver_poll_exit(poll_exit) | python | wandb/sdk/interface/interface.py | 817 | 819 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,378 | _deliver_poll_exit | def _deliver_poll_exit(self, poll_exit: pb.PollExitRequest) -> MailboxHandle:
raise NotImplementedError | python | wandb/sdk/interface/interface.py | 822 | 823 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,379 | deliver_request_server_info | def deliver_request_server_info(self) -> MailboxHandle:
server_info = pb.ServerInfoRequest()
return self._deliver_request_server_info(server_info) | python | wandb/sdk/interface/interface.py | 825 | 827 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,380 | _deliver_request_server_info | def _deliver_request_server_info(
self, server_info: pb.ServerInfoRequest
) -> MailboxHandle:
raise NotImplementedError | python | wandb/sdk/interface/interface.py | 830 | 833 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,381 | deliver_request_sampled_history | def deliver_request_sampled_history(self) -> MailboxHandle:
sampled_history = pb.SampledHistoryRequest()
return self._deliver_request_sampled_history(sampled_history) | python | wandb/sdk/interface/interface.py | 835 | 837 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,382 | _deliver_request_sampled_history | def _deliver_request_sampled_history(
self, sampled_history: pb.SampledHistoryRequest
) -> MailboxHandle:
raise NotImplementedError | python | wandb/sdk/interface/interface.py | 840 | 843 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,383 | deliver_request_run_status | def deliver_request_run_status(self) -> MailboxHandle:
run_status = pb.RunStatusRequest()
return self._deliver_request_run_status(run_status) | python | wandb/sdk/interface/interface.py | 845 | 847 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,384 | _deliver_request_run_status | def _deliver_request_run_status(
self, run_status: pb.RunStatusRequest
) -> MailboxHandle:
raise NotImplementedError | python | wandb/sdk/interface/interface.py | 850 | 853 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,385 | __init__ | def __init__(self, mailbox: Mailbox) -> None:
super().__init__()
self._stub = None
self._process_check = None
self._stream_id = None
self._mailbox = mailbox | python | wandb/sdk/interface/interface_grpc.py | 33 | 38 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,386 | _hack_set_run | def _hack_set_run(self, run: "Run") -> None:
super()._hack_set_run(run)
assert run._run_id
self._stream_id = run._run_id | python | wandb/sdk/interface/interface_grpc.py | 40 | 43 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,387 | _connect | def _connect(self, stub: pbgrpc.InternalServiceStub) -> None:
self._stub = stub | python | wandb/sdk/interface/interface_grpc.py | 45 | 46 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,388 | _assign | def _assign(self, record: Any) -> None:
assert self._stream_id
record._info.stream_id = self._stream_id | python | wandb/sdk/interface/interface_grpc.py | 48 | 50 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,389 | _communicate_check_version | def _communicate_check_version(
self, check_version: pb.CheckVersionRequest
) -> Optional[pb.CheckVersionResponse]:
assert self._stub
self._assign(check_version)
run_result = self._stub.CheckVersion(check_version)
return run_result # type: ignore | python | wandb/sdk/interface/interface_grpc.py | 52 | 58 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,390 | _communicate_attach | def _communicate_attach(
self, attach: pb.AttachRequest
) -> Optional[pb.AttachResponse]:
assert self._stub
self._assign(attach)
resp = self._stub.Attach(attach)
return resp # type: ignore | python | wandb/sdk/interface/interface_grpc.py | 60 | 66 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,391 | _communicate_run | def _communicate_run(
self, run: pb.RunRecord, timeout: Optional[int] = None
) -> Optional[pb.RunUpdateResult]:
assert self._stub
self._assign(run)
run_result = self._stub.RunUpdate(run)
return run_result # type: ignore | python | wandb/sdk/interface/interface_grpc.py | 68 | 74 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,392 | _publish_run | def _publish_run(self, run: pb.RunRecord) -> None:
assert self._stub
self._assign(run)
_ = self._stub.RunUpdate(run) | python | wandb/sdk/interface/interface_grpc.py | 76 | 79 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,393 | _publish_cancel | def _publish_cancel(self, cancel: pb.CancelRequest) -> None:
assert self._stub
self._assign(cancel)
_ = self._stub.Cancel(cancel) | python | wandb/sdk/interface/interface_grpc.py | 81 | 84 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,394 | _publish_config | def _publish_config(self, cfg: pb.ConfigRecord) -> None:
assert self._stub
self._assign(cfg)
_ = self._stub.Config(cfg) | python | wandb/sdk/interface/interface_grpc.py | 86 | 89 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,395 | _publish_metric | def _publish_metric(self, metric: pb.MetricRecord) -> None:
assert self._stub
self._assign(metric)
_ = self._stub.Metric(metric) | python | wandb/sdk/interface/interface_grpc.py | 91 | 94 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,396 | _publish_summary | def _publish_summary(self, summary: pb.SummaryRecord) -> None:
assert self._stub
self._assign(summary)
_ = self._stub.Summary(summary) | python | wandb/sdk/interface/interface_grpc.py | 96 | 99 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,397 | _communicate_get_summary | def _communicate_get_summary(
self, get_summary: pb.GetSummaryRequest
) -> Optional[pb.GetSummaryResponse]:
assert self._stub
self._assign(get_summary)
try:
resp = self._stub.GetSummary(get_summary)
except grpc.RpcError as e:
logger.info(f"GET SUMMARY TIMEOUT: {e}")
resp = pb.GetSummaryResponse()
return resp # type: ignore | python | wandb/sdk/interface/interface_grpc.py | 101 | 111 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,398 | _publish_telemetry | def _publish_telemetry(self, telem: tpb.TelemetryRecord) -> None:
assert self._stub
self._assign(telem)
_ = self._stub.Telemetry(telem) | python | wandb/sdk/interface/interface_grpc.py | 113 | 116 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,399 | _publish_partial_history | def _publish_partial_history(
self, partial_history: pb.PartialHistoryRequest
) -> None:
assert self._stub
self._assign(partial_history)
_ = self._stub.PartialLog(partial_history) | python | wandb/sdk/interface/interface_grpc.py | 118 | 123 | {
"name": "Git-abouvier/wandb",
"url": "https://github.com/Git-abouvier/wandb.git",
"license": "MIT",
"stars": 0,
"forks": 0
} |
3,400 | _publish_history | def _publish_history(self, history: pb.HistoryRecord) -> None:
assert self._stub
self._assign(history)
_ = self._stub.Log(history) | python | wandb/sdk/interface/interface_grpc.py | 125 | 128 | {
"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.