29 output = 1.f / (1.f + expf(-in));
34 output = std::max(0.f, in);
39 output = std::min(a, std::max(b, in));
44 output = logf(1.0f + expf(in));
49 output = in > 0.0f ? in : (in * a);
54 output = in < 0 ? -in : in;
69 output = a * tanhf(b * in);
91 for (
unsigned int i = 0; i < numElements; i++)
unsigned int GetNumElements() const
virtual IType Get() const =0
float Activation(float in, ActivationFunction function, float a, float b)
virtual void Set(IType right)=0