wandb 0.19.2__py3-none-musllinux_1_2_aarch64.whl → 0.19.4rc1__py3-none-musllinux_1_2_aarch64.whl

Sign up to get free protection for your applications and to get access to all the features.
wandb/__init__.py CHANGED
@@ -10,7 +10,7 @@ For reference documentation, see https://docs.wandb.com/ref/python.
10
10
  """
11
11
  from __future__ import annotations
12
12
 
13
- __version__ = "0.19.2"
13
+ __version__ = "0.19.4rc1"
14
14
 
15
15
 
16
16
  from wandb.errors import Error
wandb/__init__.pyi CHANGED
@@ -103,7 +103,7 @@ if TYPE_CHECKING:
103
103
  import wandb
104
104
  from wandb.plot import CustomChart
105
105
 
106
- __version__: str = "0.19.2"
106
+ __version__: str = "0.19.4rc1"
107
107
 
108
108
  run: Run | None
109
109
  config: wandb_config.Config
@@ -651,7 +651,12 @@ def log(
651
651
  run = wandb.init()
652
652
  examples = []
653
653
  for i in range(3):
654
- pixels = np.random.randint(low=0, high=256, size=(100, 100, 3), dtype=np.uint8)
654
+ pixels = np.random.randint(
655
+ low=0,
656
+ high=256,
657
+ size=(100, 100, 3),
658
+ dtype=np.uint8,
659
+ )
655
660
  pil_image = PILImage.fromarray(pixels, mode="RGB")
656
661
  image = wandb.Image(pil_image, caption=f"random field {i}")
657
662
  examples.append(image)
@@ -666,7 +671,12 @@ def log(
666
671
 
667
672
  run = wandb.init()
668
673
  # axes are (time, channel, height, width)
669
- frames = np.random.randint(low=0, high=256, size=(10, 3, 100, 100), dtype=np.uint8)
674
+ frames = np.random.randint(
675
+ low=0,
676
+ high=256,
677
+ size=(10, 3, 100, 100),
678
+ dtype=np.uint8,
679
+ )
670
680
  run.log({"video": wandb.Video(frames, fps=4)})
671
681
  ```
672
682
 
wandb/bin/gpu_stats CHANGED
Binary file
wandb/bin/wandb-core CHANGED
Binary file
@@ -328,15 +328,13 @@ def wandb_log(
328
328
  if not isinstance(settings, wandb.sdk.wandb_settings.Settings):
329
329
  settings = wandb.Settings()
330
330
 
331
- settings.update(
332
- run_group=coalesce(
333
- settings.run_group, f"{current.flow_name}/{current.run_id}"
334
- ),
335
- source=wandb.sdk.wandb_settings.Source.INIT,
336
- )
337
- settings.update(
338
- run_job_type=coalesce(settings.run_job_type, current.step_name),
339
- source=wandb.sdk.wandb_settings.Source.INIT,
331
+ settings.update_from_dict(
332
+ {
333
+ "run_group": coalesce(
334
+ settings.run_group, f"{current.flow_name}/{current.run_id}"
335
+ ),
336
+ "run_job_type": coalesce(settings.run_job_type, current.step_name),
337
+ }
340
338
  )
341
339
 
342
340
  with wandb.init(settings=settings) as run:
@@ -10,7 +10,6 @@ InterfaceRelay: Responses are routed to a relay queue (not matching uuids)
10
10
 
11
11
  import gzip
12
12
  import logging
13
- import os
14
13
  import time
15
14
  from abc import abstractmethod
16
15
  from pathlib import Path
@@ -100,8 +99,6 @@ class InterfaceBase:
100
99
 
101
100
  def _hack_set_run(self, run: "Run") -> None:
102
101
  self._run = run
103
- current_pid = os.getpid()
104
- self._run._set_iface_pid(current_pid)
105
102
 
106
103
  def publish_header(self) -> None:
107
104
  header = pb.HeaderRecord()
@@ -653,15 +650,13 @@ class InterfaceBase:
653
650
 
654
651
  def publish_partial_history(
655
652
  self,
653
+ run: "Run",
656
654
  data: dict,
657
655
  user_step: int,
658
656
  step: Optional[int] = None,
659
657
  flush: Optional[bool] = None,
660
658
  publish_step: bool = True,
661
- run: Optional["Run"] = None,
662
659
  ) -> None:
663
- run = run or self._run
664
-
665
660
  data = history_dict_to_json(run, data, step=user_step, ignore_copy_err=True)
666
661
  data.pop("_step", None)
667
662
 
@@ -688,12 +683,11 @@ class InterfaceBase:
688
683
 
689
684
  def publish_history(
690
685
  self,
686
+ run: "Run",
691
687
  data: dict,
692
688
  step: Optional[int] = None,
693
- run: Optional["Run"] = None,
694
689
  publish_step: bool = True,
695
690
  ) -> None:
696
- run = run or self._run
697
691
  data = history_dict_to_json(run, data, step=step)
698
692
  history = pb.HistoryRecord()
699
693
  if publish_step:
@@ -454,7 +454,9 @@ class TBEventConsumer:
454
454
  row[chart.spec.table_key] = chart.table
455
455
 
456
456
  self._tbwatcher._interface.publish_history(
457
- row, run=self._internal_run, publish_step=False
457
+ self._internal_run,
458
+ row,
459
+ publish_step=False,
458
460
  )
459
461
 
460
462