-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7280917
commit 7f55843
Showing
7 changed files
with
27 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,17 @@ | ||
"""Graph objects and manipulation functions.""" | ||
|
||
# isort: off | ||
from pytensor.graph.basic import ( | ||
Apply, | ||
Variable, | ||
Constant, | ||
graph_inputs, | ||
clone, | ||
Variable, | ||
ancestors, | ||
clone, | ||
graph_inputs, | ||
) | ||
from pytensor.graph.replace import clone_replace, graph_replace, vectorize_graph | ||
from pytensor.graph.op import Op | ||
from pytensor.graph.type import Type | ||
from pytensor.graph.fg import FunctionGraph | ||
from pytensor.graph.rewriting.basic import node_rewriter, graph_rewriter | ||
from pytensor.graph.rewriting.utils import rewrite_graph | ||
from pytensor.graph.op import Op | ||
from pytensor.graph.replace import clone_replace, graph_replace, vectorize_graph | ||
from pytensor.graph.rewriting.basic import graph_rewriter, node_rewriter | ||
from pytensor.graph.rewriting.db import RewriteDatabaseQuery | ||
|
||
# isort: on | ||
from pytensor.graph.rewriting.utils import rewrite_graph | ||
from pytensor.graph.type import Type |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,15 @@ | ||
# isort: off | ||
from pytensor.link.jax.dispatch.basic import jax_funcify, jax_typify | ||
import pytensor.link.jax.dispatch.blockwise | ||
import pytensor.link.jax.dispatch.elemwise | ||
import pytensor.link.jax.dispatch.extra_ops | ||
import pytensor.link.jax.dispatch.nlinalg | ||
import pytensor.link.jax.dispatch.random | ||
|
||
# Load dispatch specializations | ||
import pytensor.link.jax.dispatch.scalar | ||
import pytensor.link.jax.dispatch.tensor_basic | ||
import pytensor.link.jax.dispatch.subtensor | ||
import pytensor.link.jax.dispatch.scan | ||
import pytensor.link.jax.dispatch.shape | ||
import pytensor.link.jax.dispatch.extra_ops | ||
import pytensor.link.jax.dispatch.nlinalg | ||
import pytensor.link.jax.dispatch.slinalg | ||
import pytensor.link.jax.dispatch.random | ||
import pytensor.link.jax.dispatch.elemwise | ||
import pytensor.link.jax.dispatch.scan | ||
import pytensor.link.jax.dispatch.sparse | ||
import pytensor.link.jax.dispatch.blockwise | ||
|
||
# isort: on | ||
import pytensor.link.jax.dispatch.subtensor | ||
import pytensor.link.jax.dispatch.tensor_basic | ||
from pytensor.link.jax.dispatch.basic import jax_funcify, jax_typify |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,12 @@ | ||
# isort: off | ||
from pytensor.link.numba.dispatch.basic import numba_funcify, numba_typify | ||
|
||
# Load dispatch specializations | ||
import pytensor.link.numba.dispatch.scalar | ||
import pytensor.link.numba.dispatch.tensor_basic | ||
import pytensor.link.numba.dispatch.elemwise | ||
import pytensor.link.numba.dispatch.extra_ops | ||
import pytensor.link.numba.dispatch.nlinalg | ||
import pytensor.link.numba.dispatch.random | ||
import pytensor.link.numba.dispatch.elemwise | ||
|
||
# Load dispatch specializations | ||
import pytensor.link.numba.dispatch.scalar | ||
import pytensor.link.numba.dispatch.scan | ||
import pytensor.link.numba.dispatch.sparse | ||
import pytensor.link.numba.dispatch.slinalg | ||
|
||
# isort: on | ||
import pytensor.link.numba.dispatch.sparse | ||
import pytensor.link.numba.dispatch.tensor_basic | ||
from pytensor.link.numba.dispatch.basic import numba_funcify, numba_typify |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,4 @@ | ||
# TODO: This is for backward-compatibility; remove when reasonable. | ||
from pytensor.tensor.random.rewriting.basic import * | ||
|
||
|
||
# isort: off | ||
|
||
# Register JAX specializations | ||
import pytensor.tensor.random.rewriting.jax | ||
|
||
# isort: on | ||
from pytensor.tensor.random.rewriting.basic import * |