Mila
Deep Neural Network Library
Loading...
Searching...
No Matches
Mila::Dnn::functor_of< TFn > Struct Template Referenceexport

Compile-time map from an elementwise ActivationType to its functor. More...

Detailed Description

template<ActivationType TFn>
struct Mila::Dnn::functor_of< TFn >

Compile-time map from an elementwise ActivationType to its functor.

The primary template is intentionally undefined: instantiating it for a non-elementwise value (e.g. ActivationType::Swiglu) is a hard compile error, matching the "missing specialization = hard compile error" dispatch contract.


The documentation for this struct was generated from the following file: