homa 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.

Potentially problematic release.


This version of homa might be problematic. Click here for more details.

homa-0.0.1/PKG-INFO ADDED
@@ -0,0 +1,12 @@
1
+ Metadata-Version: 2.4
2
+ Name: homa
3
+ Version: 0.0.1
4
+ Summary: A curated list of machine learning and deep learning helpers.
5
+ Author-email: Taha Shieenavaz <tahashieenavaz@gmail.com>
6
+ Requires-Python: >=3.7
7
+ Description-Content-Type: text/markdown
8
+ Requires-Dist: numpy
9
+ Requires-Dist: torch
10
+
11
+ # homa
12
+ A curated collection of machine learning and deep learning helper functions.
homa-0.0.1/README.md ADDED
@@ -0,0 +1,2 @@
1
+ # homa
2
+ A curated collection of machine learning and deep learning helper functions.
@@ -0,0 +1,21 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "homa"
7
+ version = "0.0.1"
8
+ authors = [
9
+ { name="Taha Shieenavaz", email="tahashieenavaz@gmail.com" },
10
+ ]
11
+ description = "A curated list of machine learning and deep learning helpers."
12
+ readme = "README.md"
13
+ requires-python = ">=3.7"
14
+
15
+ dependencies = [
16
+ "numpy",
17
+ "torch",
18
+ ]
19
+
20
+ [tool.setuptools.packages.find]
21
+ where = ["src"]
homa-0.0.1/setup.cfg ADDED
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,2 @@
1
+ from .device import *
2
+ from .settings import *
@@ -0,0 +1,25 @@
1
+ import torch
2
+
3
+
4
+ def get_device():
5
+ if torch.backends.mps.is_available():
6
+ return mps()
7
+ if torch.cuda.is_available():
8
+ return cuda()
9
+ return cpu()
10
+
11
+
12
+ def cpu():
13
+ return torch.device("cpu")
14
+
15
+
16
+ def cuda():
17
+ return torch.device("cuda")
18
+
19
+
20
+ def mps():
21
+ return torch.device("mps")
22
+
23
+
24
+ def device():
25
+ return get_device()
@@ -0,0 +1,12 @@
1
+ import json
2
+
3
+
4
+ def settings(key: str, _cache: dict = {}):
5
+ if not _cache:
6
+ with open("settings.json", "r") as f:
7
+ _cache.update(json.load(f))
8
+ return _cache.get(key)
9
+
10
+
11
+ def get_settings(*args, **kwargs):
12
+ return settings(*args, **kwargs)
@@ -0,0 +1,12 @@
1
+ Metadata-Version: 2.4
2
+ Name: homa
3
+ Version: 0.0.1
4
+ Summary: A curated list of machine learning and deep learning helpers.
5
+ Author-email: Taha Shieenavaz <tahashieenavaz@gmail.com>
6
+ Requires-Python: >=3.7
7
+ Description-Content-Type: text/markdown
8
+ Requires-Dist: numpy
9
+ Requires-Dist: torch
10
+
11
+ # homa
12
+ A curated collection of machine learning and deep learning helper functions.
@@ -0,0 +1,10 @@
1
+ README.md
2
+ pyproject.toml
3
+ src/homa/__init__.py
4
+ src/homa/device.py
5
+ src/homa/settings.py
6
+ src/homa.egg-info/PKG-INFO
7
+ src/homa.egg-info/SOURCES.txt
8
+ src/homa.egg-info/dependency_links.txt
9
+ src/homa.egg-info/requires.txt
10
+ src/homa.egg-info/top_level.txt
@@ -0,0 +1,2 @@
1
+ numpy
2
+ torch
@@ -0,0 +1 @@
1
+ homa