DepthTensor 2.4.2__tar.gz → 2.5.0__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.
- {depthtensor-2.4.2 → depthtensor-2.5.0}/LICENSE +2 -2
- {depthtensor-2.4.2 → depthtensor-2.5.0}/PKG-INFO +6 -12
- {depthtensor-2.4.2 → depthtensor-2.5.0}/README.md +4 -11
- {depthtensor-2.4.2 → depthtensor-2.5.0}/pyproject.toml +1 -1
- {depthtensor-2.4.2 → depthtensor-2.5.0}/src/DepthTensor/__init__.py +1 -1
- {depthtensor-2.4.2 → depthtensor-2.5.0}/src/DepthTensor/_core/ops/__init__.py +1 -2
- depthtensor-2.5.0/src/DepthTensor/_core/ops/elementwise.py +976 -0
- depthtensor-2.5.0/src/DepthTensor/_core/ops/function.py +15 -0
- {depthtensor-2.4.2 → depthtensor-2.5.0}/src/DepthTensor/_core/ops/reduction.py +6 -3
- {depthtensor-2.4.2 → depthtensor-2.5.0}/src/DepthTensor/autodiff.py +7 -0
- {depthtensor-2.4.2 → depthtensor-2.5.0}/src/DepthTensor/tensor.py +82 -89
- {depthtensor-2.4.2 → depthtensor-2.5.0}/src/DepthTensor/typing.py +0 -54
- {depthtensor-2.4.2 → depthtensor-2.5.0}/src/depthtensor.egg-info/PKG-INFO +6 -12
- {depthtensor-2.4.2 → depthtensor-2.5.0}/src/depthtensor.egg-info/SOURCES.txt +1 -1
- depthtensor-2.4.2/src/DepthTensor/_core/ops/diff.py +0 -287
- depthtensor-2.4.2/src/DepthTensor/_core/ops/elementwise.py +0 -793
- {depthtensor-2.4.2 → depthtensor-2.5.0}/setup.cfg +0 -0
- {depthtensor-2.4.2 → depthtensor-2.5.0}/src/DepthTensor/_core/__init__.py +0 -0
- {depthtensor-2.4.2 → depthtensor-2.5.0}/src/DepthTensor/_core/exceptions.py +0 -0
- {depthtensor-2.4.2 → depthtensor-2.5.0}/src/DepthTensor/_core/ops/comparison.py +0 -0
- {depthtensor-2.4.2 → depthtensor-2.5.0}/src/DepthTensor/_core/ops/creation.py +0 -0
- {depthtensor-2.4.2 → depthtensor-2.5.0}/src/DepthTensor/_core/random/__init__.py +0 -0
- {depthtensor-2.4.2 → depthtensor-2.5.0}/src/DepthTensor/_core/random/generator.py +0 -0
- {depthtensor-2.4.2 → depthtensor-2.5.0}/src/DepthTensor/_core/utils.py +0 -0
- {depthtensor-2.4.2 → depthtensor-2.5.0}/src/depthtensor.egg-info/dependency_links.txt +0 -0
- {depthtensor-2.4.2 → depthtensor-2.5.0}/src/depthtensor.egg-info/requires.txt +0 -0
- {depthtensor-2.4.2 → depthtensor-2.5.0}/src/depthtensor.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2025
|
|
3
|
+
Copyright (c) 2025 Ha Hong Le
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
18
18
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
21
|
+
SOFTWARE.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: depthtensor
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.5.0
|
|
4
4
|
Summary: A Hardware-Accelerated Tensor Computation and Autograd Engine
|
|
5
5
|
Author-email: Le Hong Ha <lehahong1310@gmail.com>
|
|
6
6
|
License: MIT License
|
|
7
7
|
|
|
8
|
-
Copyright (c) 2025
|
|
8
|
+
Copyright (c) 2025 Ha Hong Le
|
|
9
9
|
|
|
10
10
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
11
11
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -24,6 +24,7 @@ License: MIT License
|
|
|
24
24
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
25
25
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
26
26
|
SOFTWARE.
|
|
27
|
+
|
|
27
28
|
Project-URL: Homepage, https://github.com/l-h-ha/DepthTensor
|
|
28
29
|
Project-URL: Bug Tracker, https://github.com/l-h-ha/DepthTensor/issues
|
|
29
30
|
Classifier: Programming Language :: Python :: 3
|
|
@@ -123,8 +124,8 @@ for i in range(500):
|
|
|
123
124
|
y.data -= lr * y.grad # type: ignore
|
|
124
125
|
|
|
125
126
|
# Zero grads
|
|
126
|
-
x.
|
|
127
|
-
y.
|
|
127
|
+
x.zero_grad()
|
|
128
|
+
y.zero_grad()
|
|
128
129
|
|
|
129
130
|
if i % 10 == 0:
|
|
130
131
|
print(loss.item())
|
|
@@ -139,14 +140,7 @@ Requirements:
|
|
|
139
140
|
- `numpy`
|
|
140
141
|
- `cupy` (optional: for NVIDIA GPU acceleration)
|
|
141
142
|
|
|
142
|
-
###
|
|
143
|
-
|
|
144
|
-
```bash
|
|
145
|
-
git clone https://github.com/YourUsername/DepthTensor.git
|
|
146
|
-
pip install -e .
|
|
147
|
-
```
|
|
148
|
-
|
|
149
|
-
### 4.2. Pip
|
|
143
|
+
### Pip
|
|
150
144
|
|
|
151
145
|
```bash
|
|
152
146
|
pip install depthtensor
|
|
@@ -83,8 +83,8 @@ for i in range(500):
|
|
|
83
83
|
y.data -= lr * y.grad # type: ignore
|
|
84
84
|
|
|
85
85
|
# Zero grads
|
|
86
|
-
x.
|
|
87
|
-
y.
|
|
86
|
+
x.zero_grad()
|
|
87
|
+
y.zero_grad()
|
|
88
88
|
|
|
89
89
|
if i % 10 == 0:
|
|
90
90
|
print(loss.item())
|
|
@@ -99,17 +99,10 @@ Requirements:
|
|
|
99
99
|
- `numpy`
|
|
100
100
|
- `cupy` (optional: for NVIDIA GPU acceleration)
|
|
101
101
|
|
|
102
|
-
###
|
|
103
|
-
|
|
104
|
-
```bash
|
|
105
|
-
git clone https://github.com/YourUsername/DepthTensor.git
|
|
106
|
-
pip install -e .
|
|
107
|
-
```
|
|
108
|
-
|
|
109
|
-
### 4.2. Pip
|
|
102
|
+
### Pip
|
|
110
103
|
|
|
111
104
|
```bash
|
|
112
105
|
pip install depthtensor
|
|
113
106
|
```
|
|
114
107
|
|
|
115
|
-
## Author: Le Hong Ha
|
|
108
|
+
## Author: Le Hong Ha
|