-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
functions/SoftMax: Restore correct computation of derivation
Commit cae1465 ("llvm, functions/SoftMax: Implement compiled 'derivative' variant") incorrectly assumed that the use of 'output' was an oversight. It wasn't SoftMax derivative can take advantage of results if available. This change restores the original functionality and adds a path to compute the results if output is None. This is used for testing where the results would need to be calculated anyway. The compiled variant is adapted in the same way, and the test are updated to reflect the new results. Signed-off-by: Jan Vesely <[email protected]>
- Loading branch information
Showing
2 changed files
with
21 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters