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 +12 -0
- homa-0.0.1/README.md +2 -0
- homa-0.0.1/pyproject.toml +21 -0
- homa-0.0.1/setup.cfg +4 -0
- homa-0.0.1/src/homa/__init__.py +2 -0
- homa-0.0.1/src/homa/device.py +25 -0
- homa-0.0.1/src/homa/settings.py +12 -0
- homa-0.0.1/src/homa.egg-info/PKG-INFO +12 -0
- homa-0.0.1/src/homa.egg-info/SOURCES.txt +10 -0
- homa-0.0.1/src/homa.egg-info/dependency_links.txt +1 -0
- homa-0.0.1/src/homa.egg-info/requires.txt +2 -0
- homa-0.0.1/src/homa.egg-info/top_level.txt +1 -0
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,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,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
|
+
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 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
homa
|