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

Function relu

dlib/cuda/tensor_tools.cpp:1121–1133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1119// ----------------------------------------------------------------------------------------
1120
1121 void relu (
1122 tensor& dest,
1123 const tensor& src
1124 )
1125 {
1126 IF_DLIB_USE_CUDA(
1127 cuda::relu(dest,src);
1128 )
1129
1130 IF_DLIB_NOT_USE_CUDA(
1131 cpu::relu(dest,src);
1132 )
1133 }
1134
1135 void relu_gradient (
1136 tensor& grad,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected