Muyi 0.0.0__tar.gz → 0.0.1__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: Muyi
3
- Version: 0.0.0
3
+ Version: 0.0.1
4
4
  Summary: Some useful utils.
5
5
  Author: muyiiiii
6
6
  Author-email:
@@ -11,6 +11,6 @@ Requires-Python: >=3
11
11
  Description-Content-Type: text/markdown
12
12
  License-File: LICENSE
13
13
 
14
- # muyiiiii_graph
14
+ # muyi_utils
15
15
 
16
- Some useful utils for GNNs.
16
+ Some useful utils for GNNs and Deep Learning.
@@ -7,5 +7,6 @@ Muyi.egg-info/SOURCES.txt
7
7
  Muyi.egg-info/dependency_links.txt
8
8
  Muyi.egg-info/top_level.txt
9
9
  muyi/__init__.py
10
+ muyi/gpu.py
10
11
  muyi/graph.py
11
12
  muyi/utils.py
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: Muyi
3
- Version: 0.0.0
3
+ Version: 0.0.1
4
4
  Summary: Some useful utils.
5
5
  Author: muyiiiii
6
6
  Author-email:
@@ -11,6 +11,6 @@ Requires-Python: >=3
11
11
  Description-Content-Type: text/markdown
12
12
  License-File: LICENSE
13
13
 
14
- # muyiiiii_graph
14
+ # muyi_utils
15
15
 
16
- Some useful utils for GNNs.
16
+ Some useful utils for GNNs and Deep Learning.
muyi-0.0.1/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # muyi_utils
2
+
3
+ Some useful utils for GNNs and Deep Learning.
@@ -1,6 +1,3 @@
1
- import os
2
- import matplotlib.pyplot as plt
3
-
4
1
  import GPUtil
5
2
 
6
3
  def get_gpu_memory_usage():
@@ -20,20 +17,4 @@ def display_gpu_memory_usage():
20
17
  for info in gpu_memory_info:
21
18
  print(f"GPU ID: {info[0]}, Name: {info[1]}, Memory Used: {info[2]}, Total Memory: {info[3]}, Memory Utilization: {info[4]}")
22
19
  else:
23
- print("No GPU found.")
24
-
25
- def color_print(content):
26
- print(f'\033[1;46m{content}\033[0m\n')
27
-
28
- def save_pic_iterly(pic_name, postfix, info):
29
- pic_idx=1
30
- pic_name_full=f'{pic_name}_{pic_idx}.{postfix}'
31
-
32
- while os.path.exists(pic_name_full):
33
- print(f'File {pic_name_full} already exists.')
34
- pic_idx += 1
35
- pic_name_full=f'{pic_name}_{pic_idx}.png'
36
-
37
- plt.savefig(pic_name_full, dpi=300, bbox_inches='tight')
38
-
39
- color_print(f'!!!!! {info} is saved in file {pic_name_full}')
20
+ print("No GPU found.")
@@ -0,0 +1,18 @@
1
+ import os
2
+ import matplotlib.pyplot as plt
3
+
4
+ def color_print(content):
5
+ print(f'\033[1;46m{content}\033[0m\n')
6
+
7
+ def save_pic_iterly(pic_name, postfix, info):
8
+ pic_idx=1
9
+ pic_name_full=f'{pic_name}_{pic_idx}.{postfix}'
10
+
11
+ while os.path.exists(pic_name_full):
12
+ print(f'File {pic_name_full} already exists.')
13
+ pic_idx += 1
14
+ pic_name_full=f'{pic_name}_{pic_idx}.png'
15
+
16
+ plt.savefig(pic_name_full, dpi=300, bbox_inches='tight')
17
+
18
+ color_print(f'!!!!! {info} is saved in file {pic_name_full}')
@@ -3,7 +3,7 @@ with open("README.md", "r") as fh:
3
3
  long_description = fh.read()
4
4
  setuptools.setup(
5
5
  name="Muyi", # 模块名称
6
- version="0.0.0", # 当前版本
6
+ version="0.0.1", # 当前版本
7
7
  author="muyiiiii", # 作者
8
8
  author_email="", # 作者邮箱
9
9
  description="Some useful utils.", # 模块简介
muyi-0.0.0/README.md DELETED
@@ -1,3 +0,0 @@
1
- # muyiiiii_graph
2
-
3
- Some useful utils for GNNs.
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes