File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -330,7 +330,7 @@ def check_and_normalize_axes(x, axis):
330
330
331
331
Parameters
332
332
----------
333
- x: TensorVariable
333
+ x: TensorLike
334
334
axis: int, tuple or list of integers
335
335
336
336
Returns
@@ -720,13 +720,9 @@ def isnan(a):
720
720
721
721
Elementwise test for NaN (not a number).
722
722
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
-
727
723
Parameters
728
724
----------
729
- a : TensorVariable
725
+ a : TensorLike
730
726
Input tensor.
731
727
732
728
Returns
@@ -751,7 +747,7 @@ def isinf(a):
751
747
752
748
Parameters
753
749
----------
754
- a : TensorVariable
750
+ a : TensorLike
755
751
Input tensor.
756
752
757
753
Returns
@@ -774,7 +770,7 @@ def isinf(a):
774
770
775
771
Parameters
776
772
----------
777
- a : TensorVariable
773
+ a : TensorLike
778
774
Input tensor.
779
775
780
776
Returns
@@ -3155,7 +3151,7 @@ def tensordot(
3155
3151
3156
3152
Returns
3157
3153
-------
3158
- output : TensorVariable
3154
+ output : TensorLike
3159
3155
The tensor dot product of the input.
3160
3156
Its shape will be equal to the concatenation of `a` and `b` shapes
3161
3157
(ignoring the dimensions that were summed over given in ``a_axes``
Original file line number Diff line number Diff line change @@ -492,7 +492,7 @@ def softmax(c, axis=None):
492
492
----------
493
493
c : TensorVariable
494
494
The input tensor.
495
- axis : int
495
+ axis : int or None
496
496
The axis along which to compute the softmax.
497
497
498
498
Returns
You can’t perform that action at this time.
0 commit comments