Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

[2.0] Tweak the argument order for softmax #20413

Merged
merged 1 commit into from
Jul 2, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion python/mxnet/numpy_extension/_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

# pylint: disable=too-many-arguments
@set_module('mxnet.numpy_extension')
def softmax(data, axis=-1, length=None, temperature=None, use_length=False, dtype=None):
def softmax(data, length=None, axis=-1, temperature=None, use_length=False, dtype=None):
r"""Applies the softmax function.

The resulting array contains elements in the range (0,1) and the elements along the given axis sum up to 1.
Expand Down