pytensor 2.19.0__tar.gz → 2.21.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.
- {pytensor-2.19.0 → pytensor-2.21.0}/MANIFEST.in +0 -1
- {pytensor-2.19.0/pytensor.egg-info → pytensor-2.21.0}/PKG-INFO +4 -6
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/conf.py +34 -1
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/dev_start_guide.rst +6 -12
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/environment.yml +2 -2
- pytensor-2.21.0/doc/extending/creating_a_numba_jax_op.rst +285 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/extending/pipeline.rst +1 -1
- {pytensor-2.19.0 → pytensor-2.21.0}/pyproject.toml +6 -6
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/__init__.py +1 -2
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/_version.py +3 -3
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/bin/pytensor_cache.py +2 -2
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/breakpoint.py +1 -1
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/compile/builders.py +49 -38
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/compile/compiledir.py +2 -1
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/compile/compilelock.py +3 -3
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/compile/debugmode.py +6 -11
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/compile/function/__init__.py +2 -2
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/compile/function/pfunc.py +13 -17
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/compile/function/types.py +12 -12
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/compile/io.py +0 -1
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/compile/mode.py +5 -7
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/compile/monitormode.py +1 -1
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/compile/nanguardmode.py +3 -3
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/compile/ops.py +4 -4
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/compile/profiling.py +5 -5
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/compile/sharedvalue.py +6 -6
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/configdefaults.py +9 -5
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/configparser.py +5 -6
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/d3viz/d3viz.py +0 -1
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/d3viz/formatting.py +3 -2
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/gradient.py +39 -39
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/graph/basic.py +138 -65
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/graph/destroyhandler.py +2 -1
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/graph/fg.py +19 -18
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/graph/op.py +24 -18
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/graph/replace.py +23 -29
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/graph/rewriting/basic.py +38 -41
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/graph/rewriting/db.py +17 -22
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/graph/rewriting/kanren.py +4 -6
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/graph/rewriting/unify.py +3 -4
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/graph/rewriting/utils.py +5 -5
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/graph/type.py +11 -13
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/graph/utils.py +6 -6
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/ifelse.py +15 -15
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/link/basic.py +17 -17
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/link/c/basic.py +8 -7
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/link/c/cmodule.py +59 -47
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/link/c/interface.py +2 -1
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/link/c/lazylinker_c.py +1 -2
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/link/c/op.py +9 -11
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/link/c/params_type.py +21 -17
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/link/c/type.py +3 -3
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/link/jax/dispatch/random.py +35 -15
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/link/jax/dispatch/scalar.py +2 -2
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/link/jax/dispatch/shape.py +1 -1
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/link/jax/linker.py +1 -1
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/link/numba/dispatch/basic.py +19 -6
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/link/numba/dispatch/cython_support.py +4 -4
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/link/numba/dispatch/elemwise.py +15 -5
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/link/numba/dispatch/elemwise_codegen.py +2 -4
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/link/numba/dispatch/random.py +3 -2
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/link/numba/dispatch/scalar.py +0 -6
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/link/numba/dispatch/scan.py +4 -5
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/link/numba/dispatch/slinalg.py +1 -1
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/link/numba/linker.py +1 -1
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/link/utils.py +21 -24
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/link/vm.py +5 -4
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/misc/may_share_memory.py +0 -1
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/misc/ordered_set.py +1 -1
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/misc/safe_asarray.py +0 -1
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/printing.py +50 -55
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/raise_op.py +1 -1
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/scalar/basic.py +15 -17
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/scalar/loop.py +2 -3
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/scalar/sharedvar.py +1 -1
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/scan/__init__.py +0 -1
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/scan/basic.py +8 -8
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/scan/checkpoints.py +8 -6
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/scan/op.py +13 -26
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/scan/rewriting.py +7 -7
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/scan/scan_perform_ext.py +1 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/scan/utils.py +10 -10
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/scan/views.py +1 -1
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/sparse/__init__.py +1 -1
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/sparse/basic.py +4 -9
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/sparse/sharedvar.py +2 -2
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/sparse/type.py +7 -7
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/tensor/__init__.py +8 -8
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/tensor/basic.py +161 -62
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/tensor/blas.py +9 -11
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/tensor/blas_headers.py +1 -1
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/tensor/blockwise.py +8 -8
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/tensor/conv/abstract_conv.py +39 -44
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/tensor/elemwise.py +23 -14
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/tensor/extra_ops.py +27 -18
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/tensor/fft.py +5 -6
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/tensor/functional.py +3 -3
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/tensor/io.py +3 -5
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/tensor/math.py +11 -11
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/tensor/nlinalg.py +169 -5
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/tensor/random/basic.py +47 -10
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/tensor/random/op.py +30 -12
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/tensor/random/rewriting/basic.py +1 -1
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/tensor/random/utils.py +46 -9
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/tensor/rewriting/basic.py +40 -55
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/tensor/rewriting/blas.py +4 -6
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/tensor/rewriting/blockwise.py +5 -15
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/tensor/rewriting/elemwise.py +2 -2
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/tensor/rewriting/linalg.py +79 -12
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/tensor/rewriting/math.py +7 -11
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/tensor/rewriting/shape.py +8 -9
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/tensor/rewriting/subtensor.py +15 -18
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/tensor/shape.py +9 -10
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/tensor/sharedvar.py +2 -2
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/tensor/slinalg.py +6 -52
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/tensor/sort.py +2 -271
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/tensor/subtensor.py +85 -21
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/tensor/type.py +30 -30
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/tensor/type_other.py +1 -6
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/tensor/utils.py +2 -3
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/tensor/variable.py +31 -17
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/typed_list/basic.py +1 -1
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/typed_list/rewriting.py +1 -1
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/updates.py +1 -2
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/utils.py +2 -2
- {pytensor-2.19.0 → pytensor-2.21.0/pytensor.egg-info}/PKG-INFO +4 -6
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor.egg-info/SOURCES.txt +0 -4
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor.egg-info/requires.txt +2 -3
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor.egg-info/top_level.txt +0 -1
- {pytensor-2.19.0 → pytensor-2.21.0}/tests/test_config.py +1 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/tests/test_printing.py +2 -1
- {pytensor-2.19.0 → pytensor-2.21.0}/tests/test_rop.py +0 -1
- {pytensor-2.19.0 → pytensor-2.21.0}/versioneer.py +43 -47
- pytensor-2.19.0/bin/__init__.py +0 -9
- pytensor-2.19.0/bin/pytensor-cache +0 -12
- pytensor-2.19.0/bin/pytensor_cache.py +0 -14
- pytensor-2.19.0/doc/extending/creating_a_numba_jax_op.rst +0 -153
- pytensor-2.19.0/doc/scripts/docgen.py +0 -111
- {pytensor-2.19.0 → pytensor-2.21.0}/LICENSE.txt +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/README.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/.templates/PLACEHOLDER +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/.templates/layout.html +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/LICENSE.txt +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/README.md +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/acknowledgement.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/bcast.png +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/bcast.svg +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/core_development_guide.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/css.inc +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/extending/apply.png +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/extending/apply.svg +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/extending/apply2.svg +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/extending/creating_a_c_op.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/extending/creating_an_op.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/extending/ctype.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/extending/extending_faq.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/extending/extending_pytensor_solution_1.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/extending/graph_rewriting.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/extending/graphstructures.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/extending/index.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/extending/inplace.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/extending/op.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/extending/other_ops.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/extending/pics/symbolic_graph_opt.png +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/extending/pics/symbolic_graph_unopt.png +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/extending/scan.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/extending/tips.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/extending/type.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/extending/unittest.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/extending/using_params.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/faq.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/generate_dtype_tensor_table.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/glossary.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/images/Elman_srnn.png +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/images/PyTensor_RGB.svg +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/images/blocksparse.png +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/images/lstm.png +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/images/lstm_memorycell.png +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/images/talk2010.gif +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/images/talk2010.png +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/index.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/install.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/internal/how_to_release.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/internal/index.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/internal/metadocumentation.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/introduction.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/compile/debugmode.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/compile/function.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/compile/index.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/compile/io.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/compile/mode.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/compile/nanguardmode.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/compile/opfromgraph.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/compile/ops.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/compile/profilemode.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/compile/shared.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/config.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/d3viz/examples/d3viz/css/d3-context-menu.css +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/d3viz/examples/d3viz/css/d3viz.css +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/d3viz/examples/d3viz/js/d3-context-menu.js +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/d3viz/examples/d3viz/js/d3.v3.min.js +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/d3viz/examples/d3viz/js/d3viz.js +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/d3viz/examples/d3viz/js/dagre-d3.min.js +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/d3viz/examples/d3viz/js/graphlib-dot.min.js +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/d3viz/examples/mlp.html +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/d3viz/examples/mlp.png +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/d3viz/examples/mlp2.html +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/d3viz/examples/mlp2.pdf +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/d3viz/examples/mlp2.png +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/d3viz/examples/ofg.html +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/d3viz/examples/ofg2.html +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/d3viz/index.ipynb +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/d3viz/index.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/d3viz/index_files/index_10_0.png +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/d3viz/index_files/index_11_0.png +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/d3viz/index_files/index_24_0.png +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/d3viz/index_files/index_25_0.png +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/gradient.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/graph/features.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/graph/fgraph.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/graph/graph.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/graph/index.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/graph/op.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/graph/type.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/graph/utils.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/index.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/misc/pkl_utils.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/printing.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/sandbox/index.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/sandbox/linalg.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/scalar/index.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/scan.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/sparse/index.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/sparse/sandbox.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/tensor/basic.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/tensor/basic_opt.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/tensor/bcast.png +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/tensor/bcast.svg +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/tensor/conv.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/tensor/elemwise.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/tensor/extra_ops.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/tensor/fft.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/tensor/index.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/tensor/io.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/tensor/math_opt.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/tensor/nlinalg.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/tensor/plot_fft.png +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/tensor/random/basic.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/tensor/random/index.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/tensor/random/utils.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/tensor/slinalg.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/tensor/utils.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/library/typed_list.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/links.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/optimizations.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/pylintrc +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/sandbox/ccodegen.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/sandbox/compilation.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/sandbox/debugging_with_stepmode.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/sandbox/elemwise_compiler.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/sandbox/function.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/sandbox/functional.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/sandbox/how_to_make_ops.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/sandbox/index.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/sandbox/index2.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/sandbox/interactive_debugger.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/sandbox/logistic_regression_example.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/sandbox/performance.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/sandbox/randomnumbers.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/sandbox/rethinkccodegen.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/sandbox/sandbox.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/sandbox/software.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/sandbox/sparse.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/sandbox/tensoroptools.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/troubleshooting.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/tutorial/adding.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/tutorial/adding_solution_1.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/tutorial/aliasing.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/tutorial/apply.png +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/tutorial/apply.svg +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/tutorial/bcast.png +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/tutorial/broadcasting.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/tutorial/conditions.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/tutorial/debug_faq.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/tutorial/dlogistic.png +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/tutorial/examples.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/tutorial/faq_tutorial.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/tutorial/gradients.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/tutorial/index.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/tutorial/loading_and_saving.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/tutorial/logistic.gp +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/tutorial/logistic.png +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/tutorial/loop.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/tutorial/loop_solution_1.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/tutorial/modes.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/tutorial/modes_solution_1.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/tutorial/multi_cores.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/tutorial/nan_tutorial.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/tutorial/pics/d3viz.png +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/tutorial/pics/logreg_pydotprint_predict.png +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/tutorial/pics/logreg_pydotprint_prediction.png +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/tutorial/pics/logreg_pydotprint_train.png +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/tutorial/printing_drawing.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/tutorial/profiling.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/tutorial/profiling_example.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/tutorial/profiling_example_out.prof +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/tutorial/shape_info.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/tutorial/sparse.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/tutorial/symbolic_graphs.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/doc/user_guide.rst +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/bin/__init__.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/compile/__init__.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/d3viz/__init__.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/d3viz/css/d3-context-menu.css +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/d3viz/css/d3viz.css +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/d3viz/js/d3-context-menu.js +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/d3viz/js/d3.v3.min.js +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/d3viz/js/d3viz.js +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/d3viz/js/dagre-d3.min.js +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/d3viz/js/graphlib-dot.min.js +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/graph/__init__.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/graph/features.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/graph/null_type.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/graph/rewriting/__init__.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/link/__init__.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/link/c/__init__.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/link/c/c_code/lazylinker_c.c +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/link/c/c_code/pytensor_mod_helper.h +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/link/c/cutils.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/link/c/cvm.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/link/c/exceptions.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/link/jax/__init__.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/link/jax/dispatch/__init__.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/link/jax/dispatch/basic.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/link/jax/dispatch/blockwise.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/link/jax/dispatch/elemwise.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/link/jax/dispatch/extra_ops.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/link/jax/dispatch/nlinalg.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/link/jax/dispatch/scan.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/link/jax/dispatch/slinalg.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/link/jax/dispatch/sparse.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/link/jax/dispatch/subtensor.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/link/jax/dispatch/tensor_basic.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/link/numba/__init__.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/link/numba/dispatch/__init__.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/link/numba/dispatch/extra_ops.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/link/numba/dispatch/nlinalg.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/link/numba/dispatch/sparse.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/link/numba/dispatch/tensor_basic.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/misc/__init__.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/misc/check_blas.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/misc/check_blas_many.sh +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/misc/check_duplicate_key.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/misc/elemwise_openmp_speedup.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/misc/elemwise_time_test.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/misc/frozendict.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/misc/pkl_utils.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/py.typed +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/scalar/__init__.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/scalar/c_code/Faddeeva.cc +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/scalar/c_code/Faddeeva.hh +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/scalar/c_code/gamma.c +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/scalar/math.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/scan/scan_perform.pyx +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/sparse/rewriting.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/sparse/sandbox/__init__.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/sparse/sandbox/sp.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/sparse/sandbox/sp2.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/sparse/utils.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/tensor/blas_c.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/tensor/blas_scipy.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/tensor/c_code/alt_blas_common.h +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/tensor/c_code/alt_blas_template.c +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/tensor/c_code/dimshuffle.c +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/tensor/conv/__init__.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/tensor/elemwise_cgen.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/tensor/exceptions.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/tensor/fourier.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/tensor/inplace.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/tensor/linalg.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/tensor/random/__init__.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/tensor/random/rewriting/__init__.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/tensor/random/rewriting/jax.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/tensor/random/type.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/tensor/random/var.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/tensor/rewriting/__init__.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/tensor/rewriting/blas_c.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/tensor/rewriting/blas_scipy.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/tensor/rewriting/extra_ops.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/tensor/rewriting/jax.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/tensor/rewriting/special.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/tensor/rewriting/uncanonicalize.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/tensor/special.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/tensor/var.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/tensor/xlogx.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/typed_list/__init__.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/typed_list/type.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor/version.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor.egg-info/dependency_links.txt +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/pytensor.egg-info/entry_points.txt +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/scripts/mypy-failing.txt +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/setup.cfg +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/setup.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/tests/link/c/c_code/test_cenum.h +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/tests/link/c/c_code/test_quadratic_function.c +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/tests/tensor/conv/c_code/corr3d_gemm.c +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/tests/tensor/conv/c_code/corr_gemm.c +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/tests/test_breakpoint.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/tests/test_gradient.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/tests/test_ifelse.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/tests/test_raise_op.py +0 -0
- {pytensor-2.19.0 → pytensor-2.21.0}/tests/test_updates.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pytensor
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.21.0
|
|
4
4
|
Summary: Optimizing compiler for evaluating mathematical expressions on CPUs and GPUs.
|
|
5
5
|
Author-email: pymc-devs <pymc.devs@gmail.com>
|
|
6
6
|
License: .. _license:
|
|
@@ -66,16 +66,15 @@ Classifier: Operating System :: POSIX
|
|
|
66
66
|
Classifier: Operating System :: Unix
|
|
67
67
|
Classifier: Operating System :: MacOS
|
|
68
68
|
Classifier: Programming Language :: Python :: 3
|
|
69
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
70
69
|
Classifier: Programming Language :: Python :: 3.10
|
|
71
70
|
Classifier: Programming Language :: Python :: 3.11
|
|
72
71
|
Classifier: Programming Language :: Python :: 3.12
|
|
73
|
-
Requires-Python: <3.13,>=3.
|
|
72
|
+
Requires-Python: <3.13,>=3.10
|
|
74
73
|
Description-Content-Type: text/x-rst
|
|
75
74
|
License-File: LICENSE.txt
|
|
76
75
|
Requires-Dist: setuptools>=48.0.0
|
|
77
76
|
Requires-Dist: scipy>=0.14
|
|
78
|
-
Requires-Dist: numpy
|
|
77
|
+
Requires-Dist: numpy<2,>=1.17.0
|
|
79
78
|
Requires-Dist: filelock
|
|
80
79
|
Requires-Dist: etuples
|
|
81
80
|
Requires-Dist: logical-unification
|
|
@@ -106,8 +105,7 @@ Provides-Extra: jax
|
|
|
106
105
|
Requires-Dist: jax; extra == "jax"
|
|
107
106
|
Requires-Dist: jaxlib; extra == "jax"
|
|
108
107
|
Provides-Extra: numba
|
|
109
|
-
Requires-Dist: numba>=0.
|
|
110
|
-
Requires-Dist: numba-scipy>=0.3.0; extra == "numba"
|
|
108
|
+
Requires-Dist: numba>=0.57; extra == "numba"
|
|
111
109
|
|
|
112
110
|
.. image:: https://cdn.rawgit.com/pymc-devs/pytensor/main/doc/images/PyTensor_RGB.svg
|
|
113
111
|
:height: 100px
|
|
@@ -121,6 +121,32 @@ html_logo = "images/PyTensor_RGB.svg"
|
|
|
121
121
|
html_theme = "pymc_sphinx_theme"
|
|
122
122
|
html_theme_options = {
|
|
123
123
|
"use_search_override": False,
|
|
124
|
+
"icon_links": [
|
|
125
|
+
{
|
|
126
|
+
"url": "https://github.com/pymc-devs/pytensor/",
|
|
127
|
+
"icon": "fa-brands fa-github",
|
|
128
|
+
"name": "GitHub",
|
|
129
|
+
"type": "fontawesome",
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"url": "https://twitter.com/pymc_devs/",
|
|
133
|
+
"icon": "fa-brands fa-twitter",
|
|
134
|
+
"name": "Twitter",
|
|
135
|
+
"type": "fontawesome",
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"url": "https://www.youtube.com/c/PyMCDevelopers",
|
|
139
|
+
"icon": "fa-brands fa-youtube",
|
|
140
|
+
"name": "YouTube",
|
|
141
|
+
"type": "fontawesome",
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"url": "https://discourse.pymc.io",
|
|
145
|
+
"icon": "fa-brands fa-discourse",
|
|
146
|
+
"name": "Discourse",
|
|
147
|
+
"type": "fontawesome",
|
|
148
|
+
},
|
|
149
|
+
],
|
|
124
150
|
}
|
|
125
151
|
html_context = {
|
|
126
152
|
"github_user": "pymc-devs",
|
|
@@ -190,6 +216,7 @@ html_use_smartypants = True
|
|
|
190
216
|
# Output file base name for HTML help builder.
|
|
191
217
|
htmlhelp_basename = "pytensor_doc"
|
|
192
218
|
|
|
219
|
+
|
|
193
220
|
# Options for the linkcode extension
|
|
194
221
|
# ----------------------------------
|
|
195
222
|
# Resolve function
|
|
@@ -239,7 +266,13 @@ latex_elements = {
|
|
|
239
266
|
# (source start file, target name, title, author, document class
|
|
240
267
|
# [howto/manual]).
|
|
241
268
|
latex_documents = [
|
|
242
|
-
(
|
|
269
|
+
(
|
|
270
|
+
"index",
|
|
271
|
+
"pytensor.tex",
|
|
272
|
+
"PyTensor Documentation",
|
|
273
|
+
"PyTensor Developers",
|
|
274
|
+
"manual",
|
|
275
|
+
),
|
|
243
276
|
]
|
|
244
277
|
|
|
245
278
|
# The name of an image file (relative to this directory) to place at the top of
|
|
@@ -168,15 +168,9 @@ create a virtual environment in the project directory:
|
|
|
168
168
|
|
|
169
169
|
.. code-block:: bash
|
|
170
170
|
|
|
171
|
-
conda env create -
|
|
171
|
+
conda env create -f environment.yml
|
|
172
172
|
conda activate pytensor-dev
|
|
173
173
|
|
|
174
|
-
Afterward, you can install the development dependencies:
|
|
175
|
-
|
|
176
|
-
.. code-block:: bash
|
|
177
|
-
|
|
178
|
-
pip install -r requirements.txt
|
|
179
|
-
|
|
180
174
|
Next, ``pre-commit`` needs to be configured so that the linting and code quality
|
|
181
175
|
checks are performed before each commit:
|
|
182
176
|
|
|
@@ -202,12 +196,12 @@ see the `NumPy development guide <https://numpy.org/doc/stable/dev/>`_.
|
|
|
202
196
|
Contributing to the documentation
|
|
203
197
|
---------------------------------
|
|
204
198
|
|
|
205
|
-
|
|
206
|
-
|
|
199
|
+
The documentation build dependencies have also been included in the virtual environment you created. You can also create a separate virtual environment just for the documentation using the `environment.yml` file located inside the `doc` folder.
|
|
207
200
|
|
|
208
201
|
.. code-block:: bash
|
|
209
202
|
|
|
210
|
-
|
|
203
|
+
conda env create -f doc/environment.yml
|
|
204
|
+
conda activate pytensor-docs
|
|
211
205
|
|
|
212
206
|
|
|
213
207
|
You can now build the documentation from the root of the project with:
|
|
@@ -215,7 +209,7 @@ You can now build the documentation from the root of the project with:
|
|
|
215
209
|
|
|
216
210
|
.. code-block:: bash
|
|
217
211
|
|
|
218
|
-
python doc
|
|
212
|
+
python -m sphinx -b html ./doc ./html
|
|
219
213
|
|
|
220
214
|
|
|
221
215
|
Afterward, you can go to `html/index.html` and navigate the changes in a browser. One way to do this is to go to the `html` directory and run:
|
|
@@ -226,7 +220,7 @@ Afterward, you can go to `html/index.html` and navigate the changes in a browser
|
|
|
226
220
|
python -m http.server
|
|
227
221
|
|
|
228
222
|
**Do not commit the `html` directory. The documentation is built automatically.**
|
|
229
|
-
|
|
223
|
+
For more documentation customizations such as different formats e.g., PDF, refer to the `Sphinx documentation <https://www.sphinx-doc.org/en/master/usage/builders/index.html>`_.
|
|
230
224
|
|
|
231
225
|
Other tools that might help
|
|
232
226
|
===========================
|
|
@@ -3,7 +3,7 @@ channels:
|
|
|
3
3
|
- conda-forge
|
|
4
4
|
- nodefaults
|
|
5
5
|
dependencies:
|
|
6
|
-
- python=3.
|
|
6
|
+
- python=3.10
|
|
7
7
|
- gcc_linux-64
|
|
8
8
|
- gxx_linux-64
|
|
9
9
|
- numpy
|
|
@@ -12,7 +12,7 @@ dependencies:
|
|
|
12
12
|
- sphinx>=5.1.0,<6
|
|
13
13
|
- mock
|
|
14
14
|
- pillow
|
|
15
|
+
- pymc-sphinx-theme
|
|
15
16
|
- pip
|
|
16
17
|
- pip:
|
|
17
|
-
- git+https://github.com/pymc-devs/pymc-sphinx-theme
|
|
18
18
|
- -e ..
|
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
Adding JAX and Numba support for `Op`\s
|
|
2
|
+
=======================================
|
|
3
|
+
|
|
4
|
+
PyTensor is able to convert its graphs into JAX and Numba compiled functions. In order to do
|
|
5
|
+
this, each :class:`Op` in an PyTensor graph must have an equivalent JAX/Numba implementation function.
|
|
6
|
+
|
|
7
|
+
This tutorial will explain how JAX and Numba implementations are created for an :class:`Op`. It will
|
|
8
|
+
focus specifically on the JAX case, but the same mechanisms are used for Numba as well.
|
|
9
|
+
|
|
10
|
+
Step 1: Identify the PyTensor :class:`Op` you'd like to implement in JAX
|
|
11
|
+
------------------------------------------------------------------------
|
|
12
|
+
|
|
13
|
+
Find the source for the PyTensor :class:`Op` you'd like to be supported in JAX, and
|
|
14
|
+
identify the function signature and return values. These can be determined by
|
|
15
|
+
looking at the :meth:`Op.make_node` implementation. In general, one needs to be familiar
|
|
16
|
+
with PyTensor :class:`Op`\s in order to provide a conversion implementation, so first read
|
|
17
|
+
:ref:`creating_an_op` if you are not familiar.
|
|
18
|
+
|
|
19
|
+
For example, you want to extend support for :class:`CumsumOp`\:
|
|
20
|
+
|
|
21
|
+
.. code:: python
|
|
22
|
+
|
|
23
|
+
class CumsumOp(Op):
|
|
24
|
+
__props__ = ("axis",)
|
|
25
|
+
|
|
26
|
+
def __new__(typ, *args, **kwargs):
|
|
27
|
+
obj = object.__new__(CumOp, *args, **kwargs)
|
|
28
|
+
obj.mode = "add"
|
|
29
|
+
return obj
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
:class:`CumsumOp` turns out to be a variant of :class:`CumOp`\ :class:`Op`
|
|
33
|
+
which currently has an :meth:`Op.make_node` as follows:
|
|
34
|
+
|
|
35
|
+
.. code:: python
|
|
36
|
+
|
|
37
|
+
def make_node(self, x):
|
|
38
|
+
x = ptb.as_tensor_variable(x)
|
|
39
|
+
out_type = x.type()
|
|
40
|
+
|
|
41
|
+
if self.axis is None:
|
|
42
|
+
out_type = vector(dtype=x.dtype) # Flatten
|
|
43
|
+
elif self.axis >= x.ndim or self.axis < -x.ndim:
|
|
44
|
+
raise ValueError(f"axis(={self.axis}) out of bounds")
|
|
45
|
+
|
|
46
|
+
return Apply(self, [x], [out_type])
|
|
47
|
+
|
|
48
|
+
The :class:`Apply` instance that's returned specifies the exact types of inputs that
|
|
49
|
+
our JAX implementation will receive and the exact types of outputs it's expected to
|
|
50
|
+
return--both in terms of their data types and number of dimensions/shapes.
|
|
51
|
+
The actual inputs our implementation will receive are necessarily numeric values
|
|
52
|
+
or NumPy :class:`ndarray`\s; all that :meth:`Op.make_node` tells us is the
|
|
53
|
+
general signature of the underlying computation.
|
|
54
|
+
|
|
55
|
+
More specifically, the :class:`Apply` implies that there is one input that is
|
|
56
|
+
automatically converted to PyTensor variables via :func:`as_tensor_variable`.
|
|
57
|
+
There is another parameter, `axis`, that is used to determine the direction
|
|
58
|
+
of the operation, hence shape of the output. The check that follows imply that
|
|
59
|
+
`axis` must refer to a dimension in the input tensor. The input's elements
|
|
60
|
+
could also have any data type (e.g. floats, ints), so our JAX implementation
|
|
61
|
+
must be able to handle all the possible data types.
|
|
62
|
+
|
|
63
|
+
It also tells us that there's only one return value, that it has a data type
|
|
64
|
+
determined by :meth:`x.type()` i.e., the data type of the original tensor.
|
|
65
|
+
This implies that the result is necessarily a matrix.
|
|
66
|
+
|
|
67
|
+
Some class may have a more complex behavior. For example, the :class:`CumOp`\ :class:`Op`
|
|
68
|
+
also has another variant :class:`CumprodOp`\ :class:`Op` with the exact signature
|
|
69
|
+
as :class:`CumsumOp`\ :class:`Op`. The difference lies in that the `mode` attribute in
|
|
70
|
+
:class:`CumOp` definition:
|
|
71
|
+
|
|
72
|
+
.. code:: python
|
|
73
|
+
|
|
74
|
+
class CumOp(COp):
|
|
75
|
+
# See function cumsum/cumprod for docstring
|
|
76
|
+
|
|
77
|
+
__props__ = ("axis", "mode")
|
|
78
|
+
check_input = False
|
|
79
|
+
params_type = ParamsType(
|
|
80
|
+
c_axis=int_t, mode=EnumList(("MODE_ADD", "add"), ("MODE_MUL", "mul"))
|
|
81
|
+
)
|
|
82
|
+
|
|
83
|
+
def __init__(self, axis: int | None = None, mode="add"):
|
|
84
|
+
if mode not in ("add", "mul"):
|
|
85
|
+
raise ValueError(f'{type(self).__name__}: Unknown mode "{mode}"')
|
|
86
|
+
self.axis = axis
|
|
87
|
+
self.mode = mode
|
|
88
|
+
|
|
89
|
+
c_axis = property(lambda self: np.MAXDIMS if self.axis is None else self.axis)
|
|
90
|
+
|
|
91
|
+
`__props__` is used to parametrize the general behavior of the :class:`Op`. One need to
|
|
92
|
+
pay attention to this to decide whether the JAX implementation should support all variants
|
|
93
|
+
or raise an explicit NotImplementedError for cases that are not supported e.g., when
|
|
94
|
+
:class:`CumsumOp` of :class:`CumOp("add")` is supported but not :class:`CumprodOp` of
|
|
95
|
+
:class:`CumOp("mul")`.
|
|
96
|
+
|
|
97
|
+
Next, we look at the :meth:`Op.perform` implementation to see exactly
|
|
98
|
+
how the inputs and outputs are used to compute the outputs for an :class:`Op`
|
|
99
|
+
in Python. This method is effectively what needs to be implemented in JAX.
|
|
100
|
+
|
|
101
|
+
Step 2: Find the relevant JAX method (or something close)
|
|
102
|
+
---------------------------------------------------------
|
|
103
|
+
|
|
104
|
+
With a precise idea of what the PyTensor :class:`Op` does we need to figure out how
|
|
105
|
+
to implement it in JAX. In the best case scenario, JAX has a similarly named
|
|
106
|
+
function that performs exactly the same computations as the :class:`Op`. For
|
|
107
|
+
example, the :class:`Eye` operator has a JAX equivalent: :func:`jax.numpy.eye`
|
|
108
|
+
(see `the documentation <https://jax.readthedocs.io/en/latest/_autosummary/jax.numpy.eye.html?highlight=eye>`_).
|
|
109
|
+
|
|
110
|
+
If we wanted to implement an :class:`Op` like :class:`IfElse`, we might need to
|
|
111
|
+
recreate the functionality with some custom logic. In many cases, at least some
|
|
112
|
+
custom logic is needed to reformat the inputs and outputs so that they exactly
|
|
113
|
+
match the `Op`'s.
|
|
114
|
+
|
|
115
|
+
Here's an example for :class:`IfElse`:
|
|
116
|
+
|
|
117
|
+
.. code:: python
|
|
118
|
+
|
|
119
|
+
def ifelse(cond, *args, n_outs=n_outs):
|
|
120
|
+
res = jax.lax.cond(
|
|
121
|
+
cond, lambda _: args[:n_outs], lambda _: args[n_outs:], operand=None
|
|
122
|
+
)
|
|
123
|
+
return res if n_outs > 1 else res[0]
|
|
124
|
+
|
|
125
|
+
In this case, :class:`CumOp` is implemented with NumPy's :func:`numpy.cumsum`
|
|
126
|
+
and :func:`numpy.cumprod`, which have JAX equivalents: :func:`jax.numpy.cumsum`
|
|
127
|
+
and :func:`jax.numpy.cumprod`.
|
|
128
|
+
|
|
129
|
+
.. code:: python
|
|
130
|
+
|
|
131
|
+
def perform(self, node, inputs, output_storage):
|
|
132
|
+
x = inputs[0]
|
|
133
|
+
z = output_storage[0]
|
|
134
|
+
if self.mode == "add":
|
|
135
|
+
z[0] = np.cumsum(x, axis=self.axis)
|
|
136
|
+
else:
|
|
137
|
+
z[0] = np.cumprod(x, axis=self.axis)
|
|
138
|
+
|
|
139
|
+
Step 3: Register the function with the `jax_funcify` dispatcher
|
|
140
|
+
---------------------------------------------------------------
|
|
141
|
+
|
|
142
|
+
With the PyTensor `Op` replicated in JAX, we'll need to register the
|
|
143
|
+
function with the PyTensor JAX `Linker`. This is done through the use of
|
|
144
|
+
`singledispatch`. If you don't know how `singledispatch` works, see the
|
|
145
|
+
`Python documentation <https://docs.python.org/3/library/functools.html#functools.singledispatch>`_.
|
|
146
|
+
|
|
147
|
+
The relevant dispatch functions created by `singledispatch` are :func:`pytensor.link.numba.dispatch.numba_funcify` and
|
|
148
|
+
:func:`pytensor.link.jax.dispatch.jax_funcify`.
|
|
149
|
+
|
|
150
|
+
Here's an example for the `CumOp`\ `Op`:
|
|
151
|
+
|
|
152
|
+
.. code:: python
|
|
153
|
+
|
|
154
|
+
import jax.numpy as jnp
|
|
155
|
+
|
|
156
|
+
from pytensor.tensor.extra_ops import CumOp
|
|
157
|
+
from pytensor.link.jax.dispatch import jax_funcify
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
@jax_funcify.register(CumOp)
|
|
161
|
+
def jax_funcify_CumOp(op, **kwargs):
|
|
162
|
+
axis = op.axis
|
|
163
|
+
mode = op.mode
|
|
164
|
+
|
|
165
|
+
def cumop(x, axis=axis, mode=mode):
|
|
166
|
+
if mode == "add":
|
|
167
|
+
return jnp.cumsum(x, axis=axis)
|
|
168
|
+
else:
|
|
169
|
+
return jnp.cumprod(x, axis=axis)
|
|
170
|
+
|
|
171
|
+
return cumop
|
|
172
|
+
|
|
173
|
+
Suppose `jnp.cumprod` does not exist, we will need to register the function as follows:
|
|
174
|
+
|
|
175
|
+
.. code:: python
|
|
176
|
+
|
|
177
|
+
import jax.numpy as jnp
|
|
178
|
+
|
|
179
|
+
from pytensor.tensor.extra_ops import CumOp
|
|
180
|
+
from pytensor.link.jax.dispatch import jax_funcify
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
@jax_funcify.register(CumOp)
|
|
184
|
+
def jax_funcify_CumOp(op, **kwargs):
|
|
185
|
+
axis = op.axis
|
|
186
|
+
mode = op.mode
|
|
187
|
+
|
|
188
|
+
def cumop(x, axis=axis, mode=mode):
|
|
189
|
+
if mode == "add":
|
|
190
|
+
return jnp.cumsum(x, axis=axis)
|
|
191
|
+
else:
|
|
192
|
+
raise NotImplementedError("JAX does not support cumprod function at the moment.")
|
|
193
|
+
|
|
194
|
+
return cumop
|
|
195
|
+
|
|
196
|
+
Step 4: Write tests
|
|
197
|
+
-------------------
|
|
198
|
+
|
|
199
|
+
Test that your registered `Op` is working correctly by adding tests to the
|
|
200
|
+
appropriate test suites in PyTensor (e.g. in ``tests.link.jax`` and one of
|
|
201
|
+
the modules in ``tests.link.numba``). The tests should ensure that your implementation can
|
|
202
|
+
handle the appropriate types of inputs and produce outputs equivalent to `Op.perform`.
|
|
203
|
+
Check the existing tests for the general outline of these kinds of tests. In
|
|
204
|
+
most cases, a helper function can be used to easily verify the correspondence
|
|
205
|
+
between a JAX/Numba implementation and its `Op`.
|
|
206
|
+
|
|
207
|
+
For example, the :func:`compare_jax_and_py` function streamlines the steps
|
|
208
|
+
involved in making comparisons with `Op.perform`.
|
|
209
|
+
|
|
210
|
+
Here's a small example of a test for :class:`CumOp` above:
|
|
211
|
+
|
|
212
|
+
.. code:: python
|
|
213
|
+
|
|
214
|
+
import numpy as np
|
|
215
|
+
import pytensor.tensor as pt
|
|
216
|
+
from pytensor.configdefaults import config
|
|
217
|
+
from tests.link.jax.test_basic import compare_jax_and_py
|
|
218
|
+
from pytensor.graph import FunctionGraph
|
|
219
|
+
from pytensor.graph.op import get_test_value
|
|
220
|
+
|
|
221
|
+
def test_jax_CumOp():
|
|
222
|
+
"""Test JAX conversion of the `CumOp` `Op`."""
|
|
223
|
+
|
|
224
|
+
# Create a symbolic input for the first input of `CumOp`
|
|
225
|
+
a = pt.matrix("a")
|
|
226
|
+
|
|
227
|
+
# Create test value tag for a
|
|
228
|
+
a.tag.test_value = np.arange(9, dtype=config.floatX).reshape((3, 3))
|
|
229
|
+
|
|
230
|
+
# Create the output variable
|
|
231
|
+
out = pt.cumsum(a, axis=0)
|
|
232
|
+
|
|
233
|
+
# Create a PyTensor `FunctionGraph`
|
|
234
|
+
fgraph = FunctionGraph([a], [out])
|
|
235
|
+
|
|
236
|
+
# Pass the graph and inputs to the testing function
|
|
237
|
+
compare_jax_and_py(fgraph, [get_test_value(i) for i in fgraph.inputs])
|
|
238
|
+
|
|
239
|
+
# For the second mode of CumOp
|
|
240
|
+
out = pt.cumprod(a, axis=1)
|
|
241
|
+
fgraph = FunctionGraph([a], [out])
|
|
242
|
+
compare_jax_and_py(fgraph, [get_test_value(i) for i in fgraph.inputs])
|
|
243
|
+
|
|
244
|
+
If the variant :class:`CumprodOp` is not implemented, we can add a test for it as follows:
|
|
245
|
+
|
|
246
|
+
.. code:: python
|
|
247
|
+
|
|
248
|
+
import pytest
|
|
249
|
+
|
|
250
|
+
def test_jax_CumOp():
|
|
251
|
+
"""Test JAX conversion of the `CumOp` `Op`."""
|
|
252
|
+
a = pt.matrix("a")
|
|
253
|
+
a.tag.test_value = np.arange(9, dtype=config.floatX).reshape((3, 3))
|
|
254
|
+
|
|
255
|
+
with pytest.raises(NotImplementedError):
|
|
256
|
+
out = pt.cumprod(a, axis=1)
|
|
257
|
+
fgraph = FunctionGraph([a], [out])
|
|
258
|
+
compare_jax_and_py(fgraph, [get_test_value(i) for i in fgraph.inputs])
|
|
259
|
+
|
|
260
|
+
Note
|
|
261
|
+
----
|
|
262
|
+
In out previous example of extending JAX, :class:`Eye`\ :class:`Op` was used with the test function as follows:
|
|
263
|
+
|
|
264
|
+
.. code:: python
|
|
265
|
+
def test_jax_Eye():
|
|
266
|
+
"""Test JAX conversion of the `Eye` `Op`."""
|
|
267
|
+
|
|
268
|
+
# Create a symbolic input for `Eye`
|
|
269
|
+
x_at = pt.scalar()
|
|
270
|
+
|
|
271
|
+
# Create a variable that is the output of an `Eye` `Op`
|
|
272
|
+
eye_var = pt.eye(x_at)
|
|
273
|
+
|
|
274
|
+
# Create an PyTensor `FunctionGraph`
|
|
275
|
+
out_fg = FunctionGraph(outputs=[eye_var])
|
|
276
|
+
|
|
277
|
+
# Pass the graph and any inputs to the testing function
|
|
278
|
+
compare_jax_and_py(out_fg, [3])
|
|
279
|
+
|
|
280
|
+
This one nowadays leads to a test failure due to new restrictions in JAX + JIT,
|
|
281
|
+
as reported in issue `#654 <https://github.com/pymc-devs/pytensor/issues/654>`_.
|
|
282
|
+
All jitted functions now must have constant shape, which means a graph like the
|
|
283
|
+
one of :class:`Eye` can never be translated to JAX, since it's fundamentally a
|
|
284
|
+
function with dynamic shapes. In other words, only PyTensor graphs with static shapes
|
|
285
|
+
can be translated to JAX at the moment.
|
|
@@ -88,7 +88,7 @@ case if ``borrow`` was True, the thunk would be allowed to reuse--or
|
|
|
88
88
|
The compile cache is based upon the C++ code of the graph to be compiled.
|
|
89
89
|
So, if you change compilation configuration variables, such as
|
|
90
90
|
:attr:`config.blas__ldflags`, you will need to manually remove your compile cache,
|
|
91
|
-
using ``
|
|
91
|
+
using ``pytensor-cache clear``
|
|
92
92
|
|
|
93
93
|
PyTensor also implements a lock mechanism that prevents multiple compilations
|
|
94
94
|
within the same compilation directory (to avoid crashes with parallel
|
|
@@ -10,7 +10,7 @@ build-backend = "setuptools.build_meta"
|
|
|
10
10
|
[project]
|
|
11
11
|
name = "pytensor"
|
|
12
12
|
dynamic = ['version']
|
|
13
|
-
requires-python = ">=3.
|
|
13
|
+
requires-python = ">=3.10,<3.13"
|
|
14
14
|
authors = [{ name = "pymc-devs", email = "pymc.devs@gmail.com" }]
|
|
15
15
|
description = "Optimizing compiler for evaluating mathematical expressions on CPUs and GPUs."
|
|
16
16
|
readme = "README.rst"
|
|
@@ -30,7 +30,6 @@ classifiers = [
|
|
|
30
30
|
"Operating System :: Unix",
|
|
31
31
|
"Operating System :: MacOS",
|
|
32
32
|
"Programming Language :: Python :: 3",
|
|
33
|
-
"Programming Language :: Python :: 3.9",
|
|
34
33
|
"Programming Language :: Python :: 3.10",
|
|
35
34
|
"Programming Language :: Python :: 3.11",
|
|
36
35
|
"Programming Language :: Python :: 3.12",
|
|
@@ -49,7 +48,7 @@ keywords = [
|
|
|
49
48
|
dependencies = [
|
|
50
49
|
"setuptools>=48.0.0",
|
|
51
50
|
"scipy>=0.14",
|
|
52
|
-
"numpy>=1.17.0",
|
|
51
|
+
"numpy>=1.17.0,<2",
|
|
53
52
|
"filelock",
|
|
54
53
|
"etuples",
|
|
55
54
|
"logical-unification",
|
|
@@ -80,10 +79,10 @@ tests = [
|
|
|
80
79
|
]
|
|
81
80
|
rtd = ["sphinx>=5.1.0,<6", "pygments", "pydot", "pydot2", "pydot-ng"]
|
|
82
81
|
jax = ["jax", "jaxlib"]
|
|
83
|
-
numba = ["numba>=0.
|
|
82
|
+
numba = ["numba>=0.57"]
|
|
84
83
|
|
|
85
84
|
[tool.setuptools.packages.find]
|
|
86
|
-
include = ["pytensor*"
|
|
85
|
+
include = ["pytensor*"]
|
|
87
86
|
|
|
88
87
|
[tool.setuptools.package-data]
|
|
89
88
|
pytensor = ["py.typed"]
|
|
@@ -123,7 +122,7 @@ testpaths = "tests/"
|
|
|
123
122
|
|
|
124
123
|
[tool.ruff]
|
|
125
124
|
line-length = 88
|
|
126
|
-
exclude = ["doc/", "pytensor/_version.py"
|
|
125
|
+
exclude = ["doc/", "pytensor/_version.py"]
|
|
127
126
|
|
|
128
127
|
[tool.ruff.lint]
|
|
129
128
|
select = ["C", "E", "F", "I", "UP", "W", "RUF"]
|
|
@@ -154,6 +153,7 @@ lines-after-imports = 2
|
|
|
154
153
|
|
|
155
154
|
|
|
156
155
|
[tool.mypy]
|
|
156
|
+
python_version = "3.10"
|
|
157
157
|
ignore_missing_imports = true
|
|
158
158
|
no_implicit_optional = true
|
|
159
159
|
check_untyped_defs = false
|
|
@@ -18,7 +18,6 @@ To learn more, check out:
|
|
|
18
18
|
|
|
19
19
|
"""
|
|
20
20
|
|
|
21
|
-
|
|
22
21
|
__docformat__ = "restructuredtext en"
|
|
23
22
|
|
|
24
23
|
# Set a default logger. It is important to do this before importing some other
|
|
@@ -77,7 +76,7 @@ from pytensor.graph.replace import clone_replace, graph_replace
|
|
|
77
76
|
# isort: on
|
|
78
77
|
|
|
79
78
|
|
|
80
|
-
def as_symbolic(x: Any, name:
|
|
79
|
+
def as_symbolic(x: Any, name: str | None = None, **kwargs) -> Variable:
|
|
81
80
|
"""Convert `x` into an equivalent PyTensor `Variable`.
|
|
82
81
|
|
|
83
82
|
Parameters
|
|
@@ -8,11 +8,11 @@ import json
|
|
|
8
8
|
|
|
9
9
|
version_json = '''
|
|
10
10
|
{
|
|
11
|
-
"date": "2024-
|
|
11
|
+
"date": "2024-05-13T21:55:31+0200",
|
|
12
12
|
"dirty": false,
|
|
13
13
|
"error": null,
|
|
14
|
-
"full-revisionid": "
|
|
15
|
-
"version": "2.
|
|
14
|
+
"full-revisionid": "90da9e61688b0fef8b91106f0e2ae08ee67be1be",
|
|
15
|
+
"version": "2.21.0"
|
|
16
16
|
}
|
|
17
17
|
''' # END VERSION_JSON
|
|
18
18
|
|
|
@@ -75,9 +75,9 @@ def main():
|
|
|
75
75
|
if items:
|
|
76
76
|
_logger.warning(
|
|
77
77
|
"There remain elements in the cache dir that you may "
|
|
78
|
-
"need to erase manually. The cache dir is:\n
|
|
78
|
+
f"need to erase manually. The cache dir is:\n {config.compiledir}\n"
|
|
79
79
|
'You can also call "pytensor-cache purge" to '
|
|
80
|
-
"remove everything from that directory."
|
|
80
|
+
"remove everything from that directory."
|
|
81
81
|
)
|
|
82
82
|
_logger.debug(f"Remaining elements ({len(items)}): {', '.join(items)}")
|
|
83
83
|
elif sys.argv[1] == "list":
|
|
@@ -105,7 +105,7 @@ class PdbBreakpoint(Op):
|
|
|
105
105
|
except Exception:
|
|
106
106
|
raise ValueError(
|
|
107
107
|
"Some of the inputs to the PdbBreakpoint op "
|
|
108
|
-
"'
|
|
108
|
+
f"'{self.name}' could not be casted to NumPy arrays"
|
|
109
109
|
)
|
|
110
110
|
|
|
111
111
|
print("\n")
|