DepthTensor 2.4.1__py3-none-any.whl → 2.4.2__py3-none-any.whl

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/__init__.py CHANGED
@@ -6,4 +6,4 @@ from ._core.ops import *
6
6
  from ._core.exceptions import *
7
7
  from ._core import random
8
8
 
9
- __version__ = "2.4.1"
9
+ __version__ = "2.4.2"
@@ -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 += y.grad * dx1() # type: ignore (y.grad cannot be None)
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 += y.grad * dx2() # type: ignore (y.grad cannot be None)
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 += y.grad * dx() # type: ignore (y.grad cannot be None)
180
+ x.grad += dx() # type: ignore (y.grad cannot be None)
181
181
 
182
182
  y.backward = backward
183
183
  return y
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: depthtensor
3
- Version: 2.4.1
3
+ Version: 2.4.2
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
@@ -1,4 +1,4 @@
1
- DepthTensor/__init__.py,sha256=JHnXYqSAzKLsF-P9tFnaTo7uHnnkrEGp2XwmTjL1E5s,192
1
+ DepthTensor/__init__.py,sha256=opZ94pVpz8eRUiuEKlAalZRqQLdLZk4-MbaaLMwumrc,192
2
2
  DepthTensor/autodiff.py,sha256=zjGXcXtkxZbFvIHx1s01tmvgXXzfjp9MeqL1xWDV2dc,2167
3
3
  DepthTensor/tensor.py,sha256=TIwHl9oDt3Cs7lf84sl6AQy975JStJBftzjtmjdzkAc,15101
4
4
  DepthTensor/typing.py,sha256=uDwMAVuHcGZJGedwPF3tZowMNIy3e6dQEN1Hp86nfjw,2222
@@ -9,12 +9,12 @@ DepthTensor/_core/ops/__init__.py,sha256=P6jswf0ZMt3AvFxTCBSyNJ1POeizsE0_ubST8e5
9
9
  DepthTensor/_core/ops/comparison.py,sha256=2S0vf7YDKGi6iEhJgDkxN0znjnR_pjN23EbpsWduTRs,6818
10
10
  DepthTensor/_core/ops/creation.py,sha256=kq-67ImzFJpN3XSH09Gu9uD5sF_EOB8cBdYahTr7SKg,2871
11
11
  DepthTensor/_core/ops/diff.py,sha256=izI2pz-6KPrIB3Onysp_2AcvPPl5WafwLB-ZAyfrmko,8489
12
- DepthTensor/_core/ops/elementwise.py,sha256=zVERmjH3MK3Gbafg_sjMmqFK78djh-0mnkDMhKZMyPM,18610
12
+ DepthTensor/_core/ops/elementwise.py,sha256=g7uLyy8ndqwKiDsuI6SW6huOyuBjW67YIKiVbbp3a8Y,18583
13
13
  DepthTensor/_core/ops/reduction.py,sha256=yYR44QM3igLSnIt6CXa7222xxJZiNsfBElUhLb6--4g,3381
14
14
  DepthTensor/_core/random/__init__.py,sha256=CohG4TxjSQdyNXNehttlpi26wOaho5G-nAsQ_rxOfPU,24
15
15
  DepthTensor/_core/random/generator.py,sha256=TdiEWGqsQ6W4_W3TX-EjS65aVWjq1U6Nz4FhCt3mXz4,3288
16
- depthtensor-2.4.1.dist-info/licenses/LICENSE,sha256=-TjdN-FHRsU66EU9Fb20UftF7ys8j1dEXHwVhqtvTRM,1066
17
- depthtensor-2.4.1.dist-info/METADATA,sha256=JV7yR68IpHvRqThpcG3Zc28HiXCaw5uKkrlHR1xy8qE,5427
18
- depthtensor-2.4.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
19
- depthtensor-2.4.1.dist-info/top_level.txt,sha256=pQe07zPOHL8D1xVDLRgAOpcoiwHxc2UvgwyyMS2SrM4,12
20
- depthtensor-2.4.1.dist-info/RECORD,,
16
+ depthtensor-2.4.2.dist-info/licenses/LICENSE,sha256=-TjdN-FHRsU66EU9Fb20UftF7ys8j1dEXHwVhqtvTRM,1066
17
+ depthtensor-2.4.2.dist-info/METADATA,sha256=jomyHlLgv8mitpVpjnA7UXUN26qo9DHAOhKtvB6t2TE,5427
18
+ depthtensor-2.4.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
19
+ depthtensor-2.4.2.dist-info/top_level.txt,sha256=pQe07zPOHL8D1xVDLRgAOpcoiwHxc2UvgwyyMS2SrM4,12
20
+ depthtensor-2.4.2.dist-info/RECORD,,