3#include "../core/common.hpp"
6#include <cuda_runtime.h>
24#define ACTIVATION(name, body) \
25 template <typename T> \
29 cudaFn T operator()(const T x) const body \
162#include "activations.inl"
Periodic clamp between [-1, 1].
Definition activations.hpp:133
T operator()(const T x) const
Functor call.
Definition activations.inl:62
Rules for Conway's Game of Life.
Definition activations.hpp:65
T operator()(const T x) const
Functor call.
Definition activations.inl:22
Hard clamp between [0,1].
Definition activations.hpp:48
T operator()(const T x) const
Functor call.
Definition activations.inl:16
Smooth clamp between [0, 1].
Definition activations.hpp:82
T operator()(const T x) const
Functor call.
Definition activations.inl:44
Periodic clamp between [-1, 1].
Definition activations.hpp:116
T operator()(const T x) const
Functor call.
Definition activations.inl:56
Periodic clamp between (-inf, inf)
Definition activations.hpp:150
T operator()(const T x) const
Functor call.
Definition activations.inl:68
Smooth clamp between [-1, 1].
Definition activations.hpp:99
T operator()(const T x) const
Functor call.
Definition activations.inl:50
Main namespace.
Definition common.hpp:33