diff options
author | soumith <soumith@fb.com> | 2016-03-01 00:17:10 +0300 |
---|---|---|
committer | soumith <soumith@fb.com> | 2016-03-01 00:17:10 +0300 |
commit | 9de8f9060c119df804013e53a7bce5543a027e4c (patch) | |
tree | 4617f6d0ce8225dcaff88ed17066b48c4de3731d /THNN.lua | |
parent | 296c6aa199c7299125a8412897c051a6efb73b76 (diff) |
SoftMarginCriterion
Diffstat (limited to 'THNN.lua')
-rw-r--r-- | THNN.lua | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -169,6 +169,20 @@ TH_API void THNN_(MarginCriterion_updateGradInput)( bool sizeAverage, real margin); +TH_API void THNN_(SoftMarginCriterion_updateOutput)( + THNNState *state, + THTensor *input, + THTensor *target, + THTensor *output, + bool sizeAverage); + +TH_API void THNN_(SoftMarginCriterion_updateGradInput)( + THNNState *state, + THTensor *input, + THTensor *target, + THTensor *gradInput, + bool sizeAverage); + TH_API void THNN_(MSECriterion_updateOutput)( THNNState *state, THTensor *input, |