aesara-theano-fallback
Striving towards backwards compatibility as
Theano is replaced by
Aesara by the PyMC3
project. The idea is to provide a nearly drop in
replacement for importing aesara that will fall back onto theano when
aesara is not installed. This was specifically designed to support the
exoplanet and
starry projects so it might not support
all of the features that you need. If you find something that isn't supported,
please submit a pull request!
Installaion
This library can be installed using pip:
python -m pip install aesara-theano-fallback
Usage
The syntax is designed to mostly follow aesara, so things like the following will often work:
import aesara_theano_fallback.tensor as aet
For top-level access, use
from aesara_theano_fallback import aesara
One place where the syntax has changed significantly between Theano and Aesara
is the theano.gof module was re-named to aesara.graph and the contents were
moved around a little bit. For exoplanet and starry, we define a few custom Ops
and you can use this library to do that as follows:
from aesara_theano_fallback.graph import basic, op
class MyPythonOp(op.Op):
def make_node(self, *args):
# ...
return basic.Apply(self, in_args, out_args)
class MyCOp(op.ExternalCOp):
func_file = "./cpp_impl.cc"
func_name = "APPLY_SPECIFIC(my_op_name)"
# ...
Metadata
Release files for aesara-theano-fallback 0.1.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 |
|---|---|---|---|---|
| aesara_theano_fallback-0.1.0.tar.gz | 6.5 kB | Without provenance | Details for aesara_theano_fallback-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aesara_theano_fallback-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for aesara_theano_fallback-0.1.0-py3-none-any.whl |
Total release size: 12.0 kB
Release files / aesara_theano_fallback-0.1.0.tar.gz
| Download URL | aesara_theano_fallback-0.1.0.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f76208ce55de7ca8c069896bd4755096c48c9eaeef6785621f9f20aec9c3b2eb
|
|
BLAKE2b-256 checksum How to use checksums |
3c1349533a51effa0a234ca1950b984945990c3fe94a2365725af39359ddd33e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|
Release files / aesara_theano_fallback-0.1.0-py3-none-any.whl
| Download URL | aesara_theano_fallback-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
66f5e5a0a3c98cd59ad33981758f0fe3c738dfdc121782b19bb03166f7c256ec
|
|
BLAKE2b-256 checksum How to use checksums |
963dd409f466fb73d777a3954e659066e170d833e2ee4eb854e433f7116d91da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|
Security for aesara-theano-fallback 0.1.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.