Skip to content
Closed
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
8 changes: 0 additions & 8 deletions aten/src/TH/THMath.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,8 @@ static inline double TH_sigmoid(double value) {
return 1.0 / (1.0 + exp(-value));
}

static inline double TH_rsqrt(double x) {
return 1.0 / sqrt(x);
}

static inline float TH_sigmoidf(float value) {
return 1.0f / (1.0f + expf(-value));
}

static inline float TH_rsqrtf(float x) {
return 1.0f / sqrtf(x);
}

#endif // _THMATH_H