Skip to content

Commit 0be8267

Browse files
Cookiee235ShiboXing
authored andcommitted
Fix incorrect docstring in topi softmax (apache#17844)
Update softmax.py Fix the inconsistent docstring with parameter
1 parent 3b5492b commit 0be8267

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

python/tvm/topi/nn/softmax.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def softmax(x, axis=-1):
2727
2828
Parameters
2929
----------
30-
data : tvm.te.Tensor
30+
x : tvm.te.Tensor
3131
can be any dimension
3232
3333
axis : int
@@ -48,7 +48,7 @@ def fast_softmax(x, axis=-1):
4848
4949
Parameters
5050
----------
51-
data : tvm.te.Tensor
51+
x : tvm.te.Tensor
5252
can be any dimension
5353
5454
axis : int
@@ -128,9 +128,12 @@ def log_softmax(x, axis=-1):
128128
129129
Parameters
130130
----------
131-
data : tvm.te.Tensor
131+
x : tvm.te.Tensor
132132
N-D input data
133133
134+
axis : int
135+
channel axis
136+
134137
Returns
135138
-------
136139
output : tvm.te.Tensor

0 commit comments

Comments
 (0)