diff options
| author | Yuri Victorovich <yuri@FreeBSD.org> | 2026-03-18 02:18:24 +0000 |
|---|---|---|
| committer | Yuri Victorovich <yuri@FreeBSD.org> | 2026-03-18 03:00:37 +0000 |
| commit | e6238161de0499df239b921a2c35e7b8793ed46b (patch) | |
| tree | 0c446f98396d5aff992b857d9457abd27e4869c8 | |
| parent | 42181e5a0d0e6fe540f17c1d2e537328eb4278a6 (diff) | |
math/py-torchsde: New port: SDE solvers and stochastic adjoint sensitivity analysis in PyTorch
| -rw-r--r-- | math/Makefile | 1 | ||||
| -rw-r--r-- | math/py-torchsde/Makefile | 26 | ||||
| -rw-r--r-- | math/py-torchsde/distinfo | 3 | ||||
| -rw-r--r-- | math/py-torchsde/pkg-descr | 9 |
4 files changed, 39 insertions, 0 deletions
diff --git a/math/Makefile b/math/Makefile index 2d46f59b1b68..6f3b04131e5f 100644 --- a/math/Makefile +++ b/math/Makefile @@ -1146,6 +1146,7 @@ SUBDIR += py-theano SUBDIR += py-timple SUBDIR += py-topologic + SUBDIR += py-torchsde SUBDIR += py-triangle SUBDIR += py-umap-learn SUBDIR += py-uncertainties diff --git a/math/py-torchsde/Makefile b/math/py-torchsde/Makefile new file mode 100644 index 000000000000..19f8b360ee9d --- /dev/null +++ b/math/py-torchsde/Makefile @@ -0,0 +1,26 @@ +PORTNAME= torchsde +DISTVERSION= 0.2.6 +CATEGORIES= math python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= SDE solvers and stochastic adjoint sensitivity analysis in PyTorch +WWW= https://github.com/google-research/torchsde + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} +RUN_DEPENDS= ${PYNUMPY} \ + ${PYTHON_PKGNAMEPREFIX}pytorch>=1.6.0:misc/py-pytorch@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}scipy>=1.5:science/py-scipy@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}trampoline>=0.1.2:devel/py-trampoline@${PY_FLAVOR} + +USES= python +USE_PYTHON= pep517 autoplist + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/math/py-torchsde/distinfo b/math/py-torchsde/distinfo new file mode 100644 index 000000000000..03fee0501e79 --- /dev/null +++ b/math/py-torchsde/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1773765834 +SHA256 (torchsde-0.2.6.tar.gz) = 81d074d3504f9d190f1694fb526395afbe4608ee43a88adb1262a639e5b4778b +SIZE (torchsde-0.2.6.tar.gz) = 48840 diff --git a/math/py-torchsde/pkg-descr b/math/py-torchsde/pkg-descr new file mode 100644 index 000000000000..641f5c9b267a --- /dev/null +++ b/math/py-torchsde/pkg-descr @@ -0,0 +1,9 @@ +TorchSDE provides stochastic differential equation (SDE) solvers with GPU +support and efficient backpropagation in PyTorch. + +Features: +- Multiple SDE solvers (Euler-Maruyama, Milstein, etc.) +- Efficient backpropagation through SDE solvers +- GPU acceleration +- Support for various noise types +- Latent SDE models for variational inference |
