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

Function prelu

dlib/cuda/tensor_tools.cpp:1152–1165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1150// ----------------------------------------------------------------------------------------
1151
1152 void prelu (
1153 tensor& dest,
1154 const tensor& src,
1155 const tensor& param
1156 )
1157 {
1158 IF_DLIB_USE_CUDA(
1159 cuda::prelu(dest, src, param);
1160 )
1161
1162 IF_DLIB_NOT_USE_CUDA(
1163 cpu::prelu(dest, src, param);
1164 )
1165 }
1166
1167 void prelu_gradient (
1168 tensor& grad,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected