DepthTensor 2.4.1__tar.gz → 2.4.2__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.1 → depthtensor-2.4.2}/PKG-INFO +1 -1
- {depthtensor-2.4.1 → depthtensor-2.4.2}/pyproject.toml +3 -3
- {depthtensor-2.4.1 → depthtensor-2.4.2}/src/DepthTensor/__init__.py +1 -1
- {depthtensor-2.4.1 → depthtensor-2.4.2}/src/DepthTensor/_core/ops/elementwise.py +3 -3
- {depthtensor-2.4.1 → depthtensor-2.4.2}/src/depthtensor.egg-info/PKG-INFO +1 -1
- {depthtensor-2.4.1 → depthtensor-2.4.2}/LICENSE +0 -0
- {depthtensor-2.4.1 → depthtensor-2.4.2}/README.md +0 -0
- {depthtensor-2.4.1 → depthtensor-2.4.2}/setup.cfg +0 -0
- {depthtensor-2.4.1 → depthtensor-2.4.2}/src/DepthTensor/_core/__init__.py +0 -0
- {depthtensor-2.4.1 → depthtensor-2.4.2}/src/DepthTensor/_core/exceptions.py +0 -0
- {depthtensor-2.4.1 → depthtensor-2.4.2}/src/DepthTensor/_core/ops/__init__.py +0 -0
- {depthtensor-2.4.1 → depthtensor-2.4.2}/src/DepthTensor/_core/ops/comparison.py +0 -0
- {depthtensor-2.4.1 → depthtensor-2.4.2}/src/DepthTensor/_core/ops/creation.py +0 -0
- {depthtensor-2.4.1 → depthtensor-2.4.2}/src/DepthTensor/_core/ops/diff.py +0 -0
- {depthtensor-2.4.1 → depthtensor-2.4.2}/src/DepthTensor/_core/ops/reduction.py +0 -0
- {depthtensor-2.4.1 → depthtensor-2.4.2}/src/DepthTensor/_core/random/__init__.py +0 -0
- {depthtensor-2.4.1 → depthtensor-2.4.2}/src/DepthTensor/_core/random/generator.py +0 -0
- {depthtensor-2.4.1 → depthtensor-2.4.2}/src/DepthTensor/_core/utils.py +0 -0
- {depthtensor-2.4.1 → depthtensor-2.4.2}/src/DepthTensor/autodiff.py +0 -0
- {depthtensor-2.4.1 → depthtensor-2.4.2}/src/DepthTensor/tensor.py +0 -0
- {depthtensor-2.4.1 → depthtensor-2.4.2}/src/DepthTensor/typing.py +0 -0
- {depthtensor-2.4.1 → depthtensor-2.4.2}/src/depthtensor.egg-info/SOURCES.txt +0 -0
- {depthtensor-2.4.1 → depthtensor-2.4.2}/src/depthtensor.egg-info/dependency_links.txt +0 -0
- {depthtensor-2.4.1 → depthtensor-2.4.2}/src/depthtensor.egg-info/requires.txt +0 -0
- {depthtensor-2.4.1 → depthtensor-2.4.2}/src/depthtensor.egg-info/top_level.txt +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "depthtensor"
|
|
7
|
-
version = "2.4.
|
|
7
|
+
version = "2.4.2"
|
|
8
8
|
description = "A Hardware-Accelerated Tensor Computation and Autograd Engine"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
authors = [
|
|
@@ -13,8 +13,8 @@ authors = [
|
|
|
13
13
|
license = { file = "LICENSE" }
|
|
14
14
|
classifiers = [
|
|
15
15
|
"Programming Language :: Python :: 3",
|
|
16
|
-
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
|
17
|
-
"License :: OSI Approved :: MIT License",
|
|
16
|
+
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
|
17
|
+
"License :: OSI Approved :: MIT License",
|
|
18
18
|
"Operating System :: OS Independent"
|
|
19
19
|
]
|
|
20
20
|
requires-python = ">=3.8"
|
|
@@ -111,11 +111,11 @@ def create_2in_1out(op: BinaryOp, diff: BinaryDiff | None) -> BinaryFunc:
|
|
|
111
111
|
if isinstance(x1, Tensor) and x1.requires_grad:
|
|
112
112
|
if x1.grad is None:
|
|
113
113
|
x1.zeros_grad()
|
|
114
|
-
x1.grad +=
|
|
114
|
+
x1.grad += dx1() # type: ignore (y.grad cannot be None)
|
|
115
115
|
if isinstance(x2, Tensor) and x2.requires_grad:
|
|
116
116
|
if x2.grad is None:
|
|
117
117
|
x2.zeros_grad()
|
|
118
|
-
x2.grad +=
|
|
118
|
+
x2.grad += dx2() # type: ignore (y.grad cannot be None)
|
|
119
119
|
|
|
120
120
|
y.backward = backward
|
|
121
121
|
return y
|
|
@@ -177,7 +177,7 @@ def create_1in_1out(op: UnaryOp, diff: UnaryDiff | None) -> UnaryFunc:
|
|
|
177
177
|
if isinstance(x, Tensor) and x.requires_grad:
|
|
178
178
|
if x.grad is None:
|
|
179
179
|
x.zeros_grad()
|
|
180
|
-
x.grad +=
|
|
180
|
+
x.grad += dx() # type: ignore (y.grad cannot be None)
|
|
181
181
|
|
|
182
182
|
y.backward = backward
|
|
183
183
|
return y
|
|
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
|