54 fout <<
"double " <<
fncName <<
"(double x) const {" << std::endl;
55 fout <<
" // rectified linear unit" << std::endl;
56 fout <<
" return x>0 ? x : 0; " << std::endl;
57 fout <<
"}" << std::endl;
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Rectified Linear Unit activation function for TNeuron.
void MakeFunction(std::ostream &fout, const TString &fncName) override
writes the Rectified Linear Unit activation function source code
TString GetExpression() override
get expressions for the tanh and its derivative