Skip to content

Commit

Permalink
Added List in Tensor.py
Browse files Browse the repository at this point in the history
  • Loading branch information
AryanNanda17 committed Jan 30, 2024
1 parent 2e3bc25 commit fd3ced5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pymc/logprob/tensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

from typing import Optional, Union
from typing import List, Optional, Union

import pytensor

Expand Down Expand Up @@ -272,7 +272,7 @@ def logprob_dimshuffle(op, values, base_var, **kwargs):


@node_rewriter([DimShuffle])
def find_measurable_dimshuffles(fgraph, node) -> Optional[List[MeasurableDimShuffle]]:
def find_measurable_dimshuffles(fgraph, node) -> Optional[list[TensorVariable]]:
r"""Finds `Dimshuffle`\s for which a `logprob` can be computed."""

rv_map_feature: Optional[PreserveRVMappings] = getattr(fgraph, "preserve_rv_mappings", None)
Expand Down

0 comments on commit fd3ced5

Please sign in to comment.