MCPcopy 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])
255template <typename DType, typename Lang>
256void ReLU(const Tensor &in, Tensor *out, Context *ctx) {
257 LOG_FATAL("ReLU", DType, Lang);
258}
259
260/// out[i] = x
261template <typename DType, typename Lang>

Callers 1

ForwardMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected