MCPcopy Create free account
hub / github.com/davisking/dlib / clipped_relu

Function clipped_relu

dlib/cuda/cpu_dlib.cpp:2079–2086  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2077 // ----------------------------------------------------------------------------------------
2078
2079 void clipped_relu (
2080 tensor& dest,
2081 const tensor& src,
2082 const float ceiling
2083 )
2084 {
2085 dest = upperbound(lowerbound(mat(src), 0), ceiling);
2086 }
2087
2088 void clipped_relu_gradient (
2089 tensor& grad,

Callers 2

test_clipped_reluFunction · 0.50
forward_inplaceMethod · 0.50

Calls 3

upperboundFunction · 0.85
lowerboundFunction · 0.85
matFunction · 0.70

Tested by 1

test_clipped_reluFunction · 0.40