Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/singa
/ ReLU
Function
ReLU
src/core/tensor/tensor_math.h:256–258 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
254
/// out[i]=max(0, in[i])
255
template <typename DType, typename Lang>
256
void ReLU(const Tensor &in, Tensor *out, Context *ctx) {
257
LOG_FATAL(
"ReLU"
, DType, Lang);
258
}
259
260
/// out[i] = x
261
template <typename DType, typename Lang>
Callers
1
Forward
Method · 0.50
Calls
no outgoing calls
Tested by
no test coverage detected