halib 0.1.88__tar.gz → 0.1.90__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. {halib-0.1.88 → halib-0.1.90}/PKG-INFO +2 -2
  2. {halib-0.1.88 → halib-0.1.90}/README.md +1 -1
  3. {halib-0.1.88 → halib-0.1.90}/halib/research/metrics.py +1 -2
  4. {halib-0.1.88 → halib-0.1.90}/halib/research/profiler.py +3 -4
  5. {halib-0.1.88 → halib-0.1.90}/halib.egg-info/PKG-INFO +2 -2
  6. {halib-0.1.88 → halib-0.1.90}/setup.py +1 -1
  7. {halib-0.1.88 → halib-0.1.90}/.gitignore +0 -0
  8. {halib-0.1.88 → halib-0.1.90}/GDriveFolder.txt +0 -0
  9. {halib-0.1.88 → halib-0.1.90}/LICENSE.txt +0 -0
  10. {halib-0.1.88 → halib-0.1.90}/MANIFEST.in +0 -0
  11. {halib-0.1.88 → halib-0.1.90}/guide_publish_pip.pdf +0 -0
  12. {halib-0.1.88 → halib-0.1.90}/halib/__init__.py +0 -0
  13. {halib-0.1.88 → halib-0.1.90}/halib/common.py +0 -0
  14. {halib-0.1.88 → halib-0.1.90}/halib/cuda.py +0 -0
  15. {halib-0.1.88 → halib-0.1.90}/halib/filetype/__init__.py +0 -0
  16. {halib-0.1.88 → halib-0.1.90}/halib/filetype/csvfile.py +0 -0
  17. {halib-0.1.88 → halib-0.1.90}/halib/filetype/jsonfile.py +0 -0
  18. {halib-0.1.88 → halib-0.1.90}/halib/filetype/textfile.py +0 -0
  19. {halib-0.1.88 → halib-0.1.90}/halib/filetype/videofile.py +0 -0
  20. {halib-0.1.88 → halib-0.1.90}/halib/filetype/yamlfile.py +0 -0
  21. {halib-0.1.88 → halib-0.1.90}/halib/online/__init__.py +0 -0
  22. {halib-0.1.88 → halib-0.1.90}/halib/online/gdrive.py +0 -0
  23. {halib-0.1.88 → halib-0.1.90}/halib/online/gdrive_mkdir.py +0 -0
  24. {halib-0.1.88 → halib-0.1.90}/halib/online/gdrive_test.py +0 -0
  25. {halib-0.1.88 → halib-0.1.90}/halib/online/projectmake.py +0 -0
  26. {halib-0.1.88 → halib-0.1.90}/halib/research/__init__.py +0 -0
  27. {halib-0.1.88 → halib-0.1.90}/halib/research/base_config.py +0 -0
  28. {halib-0.1.88 → halib-0.1.90}/halib/research/base_exp.py +0 -0
  29. {halib-0.1.88 → halib-0.1.90}/halib/research/dataset.py +0 -0
  30. {halib-0.1.88 → halib-0.1.90}/halib/research/mics.py +0 -0
  31. {halib-0.1.88 → halib-0.1.90}/halib/research/perfcalc.py +0 -0
  32. {halib-0.1.88 → halib-0.1.90}/halib/research/perftb.py +0 -0
  33. {halib-0.1.88 → halib-0.1.90}/halib/research/plot.py +0 -0
  34. {halib-0.1.88 → halib-0.1.90}/halib/research/torchloader.py +0 -0
  35. {halib-0.1.88 → halib-0.1.90}/halib/research/wandb_op.py +0 -0
  36. {halib-0.1.88 → halib-0.1.90}/halib/rich_color.py +0 -0
  37. {halib-0.1.88 → halib-0.1.90}/halib/system/__init__.py +0 -0
  38. {halib-0.1.88 → halib-0.1.90}/halib/system/cmd.py +0 -0
  39. {halib-0.1.88 → halib-0.1.90}/halib/system/filesys.py +0 -0
  40. {halib-0.1.88 → halib-0.1.90}/halib/utils/__init__.py +0 -0
  41. {halib-0.1.88 → halib-0.1.90}/halib/utils/dataclass_util.py +0 -0
  42. {halib-0.1.88 → halib-0.1.90}/halib/utils/dict_op.py +0 -0
  43. {halib-0.1.88 → halib-0.1.90}/halib/utils/gpu_mon.py +0 -0
  44. {halib-0.1.88 → halib-0.1.90}/halib/utils/listop.py +0 -0
  45. {halib-0.1.88 → halib-0.1.90}/halib/utils/tele_noti.py +0 -0
  46. {halib-0.1.88 → halib-0.1.90}/halib/utils/video.py +0 -0
  47. {halib-0.1.88 → halib-0.1.90}/halib.egg-info/SOURCES.txt +0 -0
  48. {halib-0.1.88 → halib-0.1.90}/halib.egg-info/dependency_links.txt +0 -0
  49. {halib-0.1.88 → halib-0.1.90}/halib.egg-info/requires.txt +0 -0
  50. {halib-0.1.88 → halib-0.1.90}/halib.egg-info/top_level.txt +0 -0
  51. {halib-0.1.88 → halib-0.1.90}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: halib
3
- Version: 0.1.88
3
+ Version: 0.1.90
4
4
  Summary: Small library for common tasks
5
5
  Author: Hoang Van Ha
6
6
  Author-email: hoangvanhauit@gmail.com
@@ -52,7 +52,7 @@ Dynamic: summary
52
52
 
53
53
  Helper package for coding and automation
54
54
 
55
- **Version 0.1.88**
55
+ **Version 0.1.90**
56
56
 
57
57
  + `research/profiler`: add `zProfiler` class to measure execution time of contexts and steps, with support for dynamic color scales in plots.
58
58
 
@@ -1,6 +1,6 @@
1
1
  Helper package for coding and automation
2
2
 
3
- **Version 0.1.88**
3
+ **Version 0.1.90**
4
4
 
5
5
  + `research/profiler`: add `zProfiler` class to measure execution time of contexts and steps, with support for dynamic color scales in plots.
6
6
 
@@ -114,8 +114,7 @@ class TorchMetricsBackend(MetricsBackend):
114
114
  elif isinstance(metric_data, (list, tuple)):
115
115
  args = metric_data
116
116
  else:
117
- raise TypeError(f"Unsupported data format for metric '{metric}'")
118
-
117
+ args = metric_data
119
118
  if len(expected_args) == 1:
120
119
  metric_instance.update(args)
121
120
  else:
@@ -97,12 +97,11 @@ class zProfiler:
97
97
  assert (
98
98
  len(ctx_step_dict.keys()) > 0
99
99
  ), "step_dict must have only one key (step_name) for detail."
100
-
100
+ normed_ctx_step_dict = {}
101
101
  for step_name, time_list in ctx_step_dict.items():
102
- normed_ctx_step_dict = {}
103
102
  if not isinstance(ctx_step_dict[step_name], list):
104
103
  raise ValueError(f"Step data for {step_name} must be a list")
105
- step_name = list(ctx_step_dict.keys())[0]
104
+ # step_name = list(ctx_step_dict.keys())[0] # ! debug
106
105
  normed_time_ls = []
107
106
  for idx, time_data in enumerate(time_list):
108
107
  elapsed_time = -1
@@ -111,7 +110,7 @@ class zProfiler:
111
110
  elapsed_time = end - start
112
111
  normed_time_ls.append((idx, elapsed_time)) # including step
113
112
  normed_ctx_step_dict[step_name] = normed_time_ls
114
- return normed_ctx_step_dict
113
+ return normed_ctx_step_dict
115
114
 
116
115
  def get_report_dict(self, with_detail=False):
117
116
  report_dict = {}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: halib
3
- Version: 0.1.88
3
+ Version: 0.1.90
4
4
  Summary: Small library for common tasks
5
5
  Author: Hoang Van Ha
6
6
  Author-email: hoangvanhauit@gmail.com
@@ -52,7 +52,7 @@ Dynamic: summary
52
52
 
53
53
  Helper package for coding and automation
54
54
 
55
- **Version 0.1.88**
55
+ **Version 0.1.90**
56
56
 
57
57
  + `research/profiler`: add `zProfiler` class to measure execution time of contexts and steps, with support for dynamic color scales in plots.
58
58
 
@@ -8,7 +8,7 @@ with open("requirements.txt") as f:
8
8
 
9
9
  setuptools.setup(
10
10
  name="halib",
11
- version="0.1.88",
11
+ version="0.1.90",
12
12
  author="Hoang Van Ha",
13
13
  author_email="hoangvanhauit@gmail.com",
14
14
  description="Small library for common tasks",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes