Skip to content

Commit 374ccac

Browse files
committed
Fixes in response to feedback
1 parent 10ded7f commit 374ccac

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

pytensor/tensor/math.py

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ def check_and_normalize_axes(x, axis):
330330
331331
Parameters
332332
----------
333-
x: TensorVariable
333+
x: TensorLike
334334
axis: int, tuple or list of integers
335335
336336
Returns
@@ -720,13 +720,9 @@ def isnan(a):
720720
721721
Elementwise test for NaN (not a number).
722722
723-
This function is a copy of the `isnan` function defined in the
724-
`pytensor/tensor/math.py` file. The only difference is that it includes
725-
comments and docstrings.
726-
727723
Parameters
728724
----------
729-
a : TensorVariable
725+
a : TensorLike
730726
Input tensor.
731727
732728
Returns
@@ -751,7 +747,7 @@ def isinf(a):
751747
752748
Parameters
753749
----------
754-
a : TensorVariable
750+
a : TensorLike
755751
Input tensor.
756752
757753
Returns
@@ -774,7 +770,7 @@ def isinf(a):
774770
775771
Parameters
776772
----------
777-
a : TensorVariable
773+
a : TensorLike
778774
Input tensor.
779775
780776
Returns
@@ -3155,7 +3151,7 @@ def tensordot(
31553151
31563152
Returns
31573153
-------
3158-
output : TensorVariable
3154+
output : TensorLike
31593155
The tensor dot product of the input.
31603156
Its shape will be equal to the concatenation of `a` and `b` shapes
31613157
(ignoring the dimensions that were summed over given in ``a_axes``

pytensor/tensor/special.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ def softmax(c, axis=None):
492492
----------
493493
c : TensorVariable
494494
The input tensor.
495-
axis : int
495+
axis : int or None
496496
The axis along which to compute the softmax.
497497
498498
Returns

0 commit comments

Comments
 (0)