Skip to content

Commit b3313f2

Browse files
authored
Update CostLayer.h
1 parent 1ec66a3 commit b3313f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

paddle/gserver/layers/CostLayer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@ class SumOfSquaresCostLayer : public CostLayer {
164164
* tasks.
165165
* \f[
166166
* L =
167-
* output - label / -1 < (output - label) < 1 /
168-
* sign(output - label) / otherwise /
167+
* (output - label)^2 * 0.5 / -1 < (output - label) < 1 /
168+
* (output - label) - 0.5 / otherwise /
169169
* \f]
170170
*/
171171
class SmoothL1CostLayer : public CostLayer {

0 commit comments

Comments
 (0)