DepthTensor 1.11.1__tar.gz → 1.12.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.
Files changed (28) hide show
  1. {depthtensor-1.11.1/src/DepthTensor.egg-info → depthtensor-1.12.0}/PKG-INFO +1 -1
  2. {depthtensor-1.11.1 → depthtensor-1.12.0}/pyproject.toml +1 -1
  3. {depthtensor-1.11.1 → depthtensor-1.12.0}/src/DepthTensor/__init__.py +1 -1
  4. {depthtensor-1.11.1 → depthtensor-1.12.0}/src/DepthTensor/_core/ops/elementwise.py +2 -2
  5. {depthtensor-1.11.1 → depthtensor-1.12.0}/src/DepthTensor/typing.py +3 -1
  6. {depthtensor-1.11.1 → depthtensor-1.12.0/src/DepthTensor.egg-info}/PKG-INFO +1 -1
  7. {depthtensor-1.11.1 → depthtensor-1.12.0}/LICENSE +0 -0
  8. {depthtensor-1.11.1 → depthtensor-1.12.0}/README.md +0 -0
  9. {depthtensor-1.11.1 → depthtensor-1.12.0}/setup.cfg +0 -0
  10. {depthtensor-1.11.1 → depthtensor-1.12.0}/src/DepthTensor/_core/__init__.py +0 -0
  11. {depthtensor-1.11.1 → depthtensor-1.12.0}/src/DepthTensor/_core/exceptions.py +0 -0
  12. {depthtensor-1.11.1 → depthtensor-1.12.0}/src/DepthTensor/_core/ops/__init__.py +0 -0
  13. {depthtensor-1.11.1 → depthtensor-1.12.0}/src/DepthTensor/_core/ops/comparison.py +0 -0
  14. {depthtensor-1.11.1 → depthtensor-1.12.0}/src/DepthTensor/_core/ops/creation.py +0 -0
  15. {depthtensor-1.11.1 → depthtensor-1.12.0}/src/DepthTensor/_core/ops/diff.py +0 -0
  16. {depthtensor-1.11.1 → depthtensor-1.12.0}/src/DepthTensor/_core/ops/reduction.py +0 -0
  17. {depthtensor-1.11.1 → depthtensor-1.12.0}/src/DepthTensor/_core/random/__init__.py +0 -0
  18. {depthtensor-1.11.1 → depthtensor-1.12.0}/src/DepthTensor/_core/random/generator.py +0 -0
  19. {depthtensor-1.11.1 → depthtensor-1.12.0}/src/DepthTensor/_core/utils.py +0 -0
  20. {depthtensor-1.11.1 → depthtensor-1.12.0}/src/DepthTensor/autodiff.py +0 -0
  21. {depthtensor-1.11.1 → depthtensor-1.12.0}/src/DepthTensor/tensor.py +0 -0
  22. {depthtensor-1.11.1 → depthtensor-1.12.0}/src/DepthTensor.egg-info/SOURCES.txt +0 -0
  23. {depthtensor-1.11.1 → depthtensor-1.12.0}/src/DepthTensor.egg-info/dependency_links.txt +0 -0
  24. {depthtensor-1.11.1 → depthtensor-1.12.0}/src/DepthTensor.egg-info/requires.txt +0 -0
  25. {depthtensor-1.11.1 → depthtensor-1.12.0}/src/DepthTensor.egg-info/top_level.txt +0 -0
  26. {depthtensor-1.11.1 → depthtensor-1.12.0}/src/example/example.py +0 -0
  27. {depthtensor-1.11.1 → depthtensor-1.12.0}/src/example/test.py +0 -0
  28. {depthtensor-1.11.1 → depthtensor-1.12.0}/tests/test_tensor.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: DepthTensor
3
- Version: 1.11.1
3
+ Version: 1.12.0
4
4
  Description-Content-Type: text/markdown
5
5
  License-File: LICENSE
6
6
  Requires-Dist: numpy
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "DepthTensor"
7
- version = "1.11.1"
7
+ version = "1.12.0"
8
8
  readme = "README.md"
9
9
  dependencies = [
10
10
  "numpy"
@@ -4,4 +4,4 @@ from ._core import random, create_2in_1out, create_1in_1out
4
4
  from ._core.exceptions import *
5
5
  from .autodiff import differentiate
6
6
 
7
- __version__ = "1.11.1"
7
+ __version__ = "1.12.0"
@@ -108,7 +108,7 @@ def create_2in_1out(
108
108
  return y
109
109
  else:
110
110
  if y.requires_grad:
111
- dx1, dx2 = diff(y, a1, a2)
111
+ dx1, dx2 = diff(y, a1, a2, **kwds)
112
112
  def backward() -> None:
113
113
  if isinstance(x1, Tensor) and x1.requires_grad:
114
114
  x1.grad += y.grad * dx1()
@@ -160,7 +160,7 @@ def create_1in_1out(
160
160
  return y
161
161
  else:
162
162
  if y.requires_grad:
163
- dx = diff(y, a)
163
+ dx = diff(y, a, **kwds)
164
164
  def backward() -> None:
165
165
  if isinstance(x, Tensor) and x.requires_grad:
166
166
  x.grad += y.grad * dx()
@@ -67,7 +67,8 @@ class Diff_2in_1out_Protocol(Protocol):
67
67
  self,
68
68
  result: TensorLike,
69
69
  x1: NDArrayLike,
70
- x2: NDArrayLike
70
+ x2: NDArrayLike,
71
+ **kwds: Any
71
72
  ) -> Tuple[Callable[[], NDArrayLike], Callable[[], NDArrayLike]]: ...
72
73
 
73
74
  class Func_1in_1out_Protocol(Protocol):
@@ -94,6 +95,7 @@ class Diff_1in_1out_Protocol(Protocol):
94
95
  self,
95
96
  result: TensorLike,
96
97
  x: NDArrayLike,
98
+ **kwds: Any
97
99
  ) -> Callable[[], NDArrayLike]: ...
98
100
 
99
101
  __all__ = [
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: DepthTensor
3
- Version: 1.11.1
3
+ Version: 1.12.0
4
4
  Description-Content-Type: text/markdown
5
5
  License-File: LICENSE
6
6
  Requires-Dist: numpy
File without changes
File without changes
File without changes