Skip to content

Commit

Permalink
adding unary op Reciprocal in TensorOps.h
Browse files Browse the repository at this point in the history
  • Loading branch information
William Darling committed Mar 21, 2016
1 parent f6dbffe commit 34371e1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Source/Math/TensorOps.h
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ DefUnaryOp(Exp, exp_(a));
DefUnaryOp(Log, ClippedLog(a));
DefUnaryOp(LinearRectifier, a > 0 ? a : 0);
DefUnaryOp(Cosine, cos_(a));
DefUnaryOp(Reciprocal, a == 0 ? 0 : 1 / a);
#pragma pop_macro("DefUnaryOp")

#pragma push_macro("DefBinaryOp")
Expand Down

0 comments on commit 34371e1

Please sign in to comment.