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

Function relu

dlib/cuda/cpu_dlib.cpp:1906–1912  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1904 // ------------------------------------------------------------------------------------
1905
1906 void relu (
1907 tensor& dest,
1908 const tensor& src
1909 )
1910 {
1911 dest = lowerbound(mat(src), 0);
1912 }
1913
1914 void relu_gradient (
1915 tensor& grad,

Callers 2

operator()Method · 0.70
forward_inplaceMethod · 0.50

Calls 2

lowerboundFunction · 0.85
matFunction · 0.70

Tested by

no test coverage detected