Skip to content

Commit 36a357d

Browse files
committed
Merge branch 'main' into test-gh-pages
2 parents 8e0de08 + b7fd5d0 commit 36a357d

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎docs/source/conf.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
author = 'Reuben Feinman'
2525

2626
# The full version, including alpha/beta/rc tags
27-
release = '0.1.0-beta'
27+
release = torchmin.__version__
2828

2929

3030
# -- General configuration ---------------------------------------------------

‎docs/source/index.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Pytorch-minimize
44
Pytorch-minimize is a library for numerical optimization with automatic differentiation and GPU acceleration. It implements a number of canonical techniques for deterministic (or "full-batch") optimization not offered in the :mod:`torch.optim` module. The library is inspired heavily by SciPy's :mod:`optimize` module and MATLAB's `Optimization Toolbox <https://www.mathworks.com/products/optimization.html>`_. Unlike SciPy and MATLAB, which use numerical approximations of derivatives that are slow and often inaccurate, pytorch-minimize uses *real* first- and second-order derivatives, computed seamlessly behind the scenes with autograd. Both CPU and CUDA are supported.
55

66
:Author: Reuben Feinman
7-
:Version: 0.0.1
7+
:Version: |release|
88

99
Pytorch-minimize is currently in Beta; expect the API to change before a first official release. Some of the source code was taken directly from SciPy and ported to PyTorch. As such, here is their copyright notice:
1010

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Homepage = "https://github.com/rfeinman/pytorch-minimize"
4242
include-package-data = false # Only include .py files
4343

4444
[tool.setuptools.dynamic]
45-
version = {attr = "torchmin.__version__"}
45+
version = {attr = "torchmin._version.__version__"}
4646

4747
[tool.setuptools.packages.find]
4848
exclude = ["tests*", "docs*", "examples*", "tmp*"]

‎torchmin/__init__.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1+
from ._version import __version__
12
from .minimize import minimize
23
from .minimize_constr import minimize_constr
34
from .lstsq import least_squares
45
from .optim import Minimizer, ScipyMinimizer
56

67
__all__ = ['minimize', 'minimize_constr', 'least_squares',
78
'Minimizer', 'ScipyMinimizer']
8-
9-
__version__ = "0.0.2"

‎torchmin/_version.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = "0.0.2"

0 commit comments

Comments
 (0)