Fast, optimisable, symbolic expressions in PyTorch.
>>> from symtorch import symtorchify
>>> f = symtorchify("x**2 + 2.5*x + 1.7")
>>> f
x²+2.5x+1.7
>>> f({"x": torch.tensor(2.0)})
tensor([10.7000], grad_fn=<AddBackward0>)
Installation
pip install symtorch
Features
- Symbolic expressions with PyTorch integration
- Automatic differentiation and optimization
- Compatible with TorchScript
- Easy saving and loading via PyTorch's native mechanisms
- Seamless integration with existing PyTorch models
For detailed documentation and examples, visit our Documentation.
Metadata
Release files for symtorch 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| symtorch-0.2.0.tar.gz | 10.4 kB | Without provenance | Details for symtorch-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| symtorch-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for symtorch-0.2.0-py3-none-any.whl |
Total release size: 18.5 kB
Release files / symtorch-0.2.0.tar.gz
| Download URL | symtorch-0.2.0.tar.gz |
|---|---|
| Size | 10.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8dfa1336e633b9d61633718b526678285d085b6a4ba09f6efd850db3c019f541
|
|
BLAKE2b-256 checksum How to use checksums |
eb22de73c68ff512106bb47028d75305ca9ed6f623601a612066bef77f454a60
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.8.18
|
Release files / symtorch-0.2.0-py3-none-any.whl
| Download URL | symtorch-0.2.0-py3-none-any.whl |
|---|---|
| Size | 8.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
487b2f6f281509a32dc5f5734d2a74844c61705330db55c3aeb1567d620684d5
|
|
BLAKE2b-256 checksum How to use checksums |
21cf8ee7e0aeca1ede77176eb59cbf09ba87b8787f10455ed2bebcae59e67024
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.8.18
|
Security for symtorch 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.