\hypertarget{classnntrainer_1_1PreprocessL2NormLayer}{}\doxysection{nntrainer\+::Preprocess\+L2\+Norm\+Layer Class Reference}
\label{classnntrainer_1_1PreprocessL2NormLayer}\index{nntrainer::PreprocessL2NormLayer@{nntrainer::PreprocessL2NormLayer}}


\mbox{\hyperlink{classLayer}{Layer}} class that l2normalizes a feature vector.  




{\ttfamily \#include $<$preprocess\+\_\+l2norm\+\_\+layer.\+h$>$}



Inheritance diagram for nntrainer\+::Preprocess\+L2\+Norm\+Layer\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=238pt]{classnntrainer_1_1PreprocessL2NormLayer__inherit__graph}
\end{center}
\end{figure}


Collaboration diagram for nntrainer\+::Preprocess\+L2\+Norm\+Layer\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=238pt]{classnntrainer_1_1PreprocessL2NormLayer__coll__graph}
\end{center}
\end{figure}
\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classnntrainer_1_1PreprocessL2NormLayer_a0cfe4fd347ee7eaec23cc48d547c6f6d}\label{classnntrainer_1_1PreprocessL2NormLayer_a0cfe4fd347ee7eaec23cc48d547c6f6d}} 
\mbox{\hyperlink{classnntrainer_1_1PreprocessL2NormLayer_a0cfe4fd347ee7eaec23cc48d547c6f6d}{Preprocess\+L2\+Norm\+Layer}} ()
\begin{DoxyCompactList}\small\item\em Construct a new L2norm \mbox{\hyperlink{classLayer}{Layer}} object that normlizes given feature with l2norm. \end{DoxyCompactList}\item 
\mbox{\hyperlink{classnntrainer_1_1PreprocessL2NormLayer_a8a6060eeb50604a02a78bd197b116b2d}{Preprocess\+L2\+Norm\+Layer}} (\mbox{\hyperlink{classnntrainer_1_1PreprocessL2NormLayer}{Preprocess\+L2\+Norm\+Layer}} \&\&rhs) noexcept=default
\begin{DoxyCompactList}\small\item\em Move constructor. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classnntrainer_1_1PreprocessL2NormLayer_aa90390f1ccb21fc8867d459deb15dddd}\label{classnntrainer_1_1PreprocessL2NormLayer_aa90390f1ccb21fc8867d459deb15dddd}} 
\mbox{\hyperlink{classnntrainer_1_1PreprocessL2NormLayer}{Preprocess\+L2\+Norm\+Layer}} \& \mbox{\hyperlink{classnntrainer_1_1PreprocessL2NormLayer_aa90390f1ccb21fc8867d459deb15dddd}{operator=}} (\mbox{\hyperlink{classnntrainer_1_1PreprocessL2NormLayer}{Preprocess\+L2\+Norm\+Layer}} \&\&rhs)=default
\begin{DoxyCompactList}\small\item\em Move assignment operator. @parma\mbox{[}in\mbox{]} rhs \mbox{\hyperlink{classnntrainer_1_1PreprocessL2NormLayer}{Preprocess\+L2\+Norm\+Layer}} to be moved. \end{DoxyCompactList}\item 
\mbox{\hyperlink{classnntrainer_1_1PreprocessL2NormLayer_afeb191928e29339fb9c7cb10f927540a}{$\sim$\+Preprocess\+L2\+Norm\+Layer}} ()
\begin{DoxyCompactList}\small\item\em Destroy the Centering \mbox{\hyperlink{classLayer}{Layer}} object. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{classnntrainer_1_1PreprocessL2NormLayer_aefaa6924599d97456e369ceb67477aad}{finalize}} (\mbox{\hyperlink{classnntrainer_1_1InitLayerContext}{Init\+Layer\+Context}} \&context) override
\item 
void \mbox{\hyperlink{classnntrainer_1_1PreprocessL2NormLayer_a0c3c8fdd9705a0f4173d9cf405aee01c}{forwarding}} (\mbox{\hyperlink{classnntrainer_1_1RunLayerContext}{Run\+Layer\+Context}} \&context, bool training) override
\item 
void \mbox{\hyperlink{classnntrainer_1_1PreprocessL2NormLayer_aa68b1565251c92e88f48675f605173ce}{calc\+Derivative}} (\mbox{\hyperlink{classnntrainer_1_1RunLayerContext}{Run\+Layer\+Context}} \&context) override
\item 
bool \mbox{\hyperlink{classnntrainer_1_1PreprocessL2NormLayer_a8699adc36141148b274b631cf84fa3d1}{support\+Backwarding}} () const override
\begin{DoxyCompactList}\small\item\em \mbox{\hyperlink{classnntrainer_1_1PreprocessL2NormLayer_a8699adc36141148b274b631cf84fa3d1}{support\+Backwarding() const}} \end{DoxyCompactList}\item 
void \mbox{\hyperlink{classnntrainer_1_1PreprocessL2NormLayer_a1dc0adda710a73145f60f8e5419aab02}{export\+To}} (\mbox{\hyperlink{classnntrainer_1_1Exporter}{Exporter}} \&exporter, const ml\+::train\+::\+Export\+Methods \&method) const override
\item 
const std\+::string \mbox{\hyperlink{classnntrainer_1_1PreprocessL2NormLayer_acddd6f624c21d962f66ee590a2bb7d6c}{get\+Type}} () const override
\item 
void \mbox{\hyperlink{classnntrainer_1_1PreprocessL2NormLayer_ae14bec22e1aa5ea402212282646aa333}{set\+Property}} (const std\+::vector$<$ std\+::string $>$ \&values) override
\end{DoxyCompactItemize}
\doxysubsection*{Static Public Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classnntrainer_1_1PreprocessL2NormLayer_a8ebf8dee22ce629a39fc63d4e456401c}\label{classnntrainer_1_1PreprocessL2NormLayer_a8ebf8dee22ce629a39fc63d4e456401c}} 
static const std\+::string {\bfseries type} = \char`\"{}preprocess\+\_\+l2norm\char`\"{}
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
\mbox{\hyperlink{classLayer}{Layer}} class that l2normalizes a feature vector. 



Definition at line 28 of file preprocess\+\_\+l2norm\+\_\+layer.\+h.



\doxysubsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{classnntrainer_1_1PreprocessL2NormLayer_a8a6060eeb50604a02a78bd197b116b2d}\label{classnntrainer_1_1PreprocessL2NormLayer_a8a6060eeb50604a02a78bd197b116b2d}} 
\index{nntrainer::PreprocessL2NormLayer@{nntrainer::PreprocessL2NormLayer}!PreprocessL2NormLayer@{PreprocessL2NormLayer}}
\index{PreprocessL2NormLayer@{PreprocessL2NormLayer}!nntrainer::PreprocessL2NormLayer@{nntrainer::PreprocessL2NormLayer}}
\doxysubsubsection{\texorpdfstring{PreprocessL2NormLayer()}{PreprocessL2NormLayer()}}
{\footnotesize\ttfamily nntrainer\+::\+Preprocess\+L2\+Norm\+Layer\+::\+Preprocess\+L2\+Norm\+Layer (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classnntrainer_1_1PreprocessL2NormLayer}{Preprocess\+L2\+Norm\+Layer}} \&\&}]{rhs }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [default]}, {\ttfamily [noexcept]}}



Move constructor. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em \mbox{\hyperlink{classnntrainer_1_1PreprocessL2NormLayer}{Preprocess\+L2\+Norm\+Layer}}} & \&\& \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classnntrainer_1_1PreprocessL2NormLayer_afeb191928e29339fb9c7cb10f927540a}\label{classnntrainer_1_1PreprocessL2NormLayer_afeb191928e29339fb9c7cb10f927540a}} 
\index{nntrainer::PreprocessL2NormLayer@{nntrainer::PreprocessL2NormLayer}!````~PreprocessL2NormLayer@{$\sim$PreprocessL2NormLayer}}
\index{````~PreprocessL2NormLayer@{$\sim$PreprocessL2NormLayer}!nntrainer::PreprocessL2NormLayer@{nntrainer::PreprocessL2NormLayer}}
\doxysubsubsection{\texorpdfstring{$\sim$PreprocessL2NormLayer()}{~PreprocessL2NormLayer()}}
{\footnotesize\ttfamily nntrainer\+::\+Preprocess\+L2\+Norm\+Layer\+::$\sim$\+Preprocess\+L2\+Norm\+Layer (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Destroy the Centering \mbox{\hyperlink{classLayer}{Layer}} object. 



Definition at line 52 of file preprocess\+\_\+l2norm\+\_\+layer.\+h.



\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{classnntrainer_1_1PreprocessL2NormLayer_aa68b1565251c92e88f48675f605173ce}\label{classnntrainer_1_1PreprocessL2NormLayer_aa68b1565251c92e88f48675f605173ce}} 
\index{nntrainer::PreprocessL2NormLayer@{nntrainer::PreprocessL2NormLayer}!calcDerivative@{calcDerivative}}
\index{calcDerivative@{calcDerivative}!nntrainer::PreprocessL2NormLayer@{nntrainer::PreprocessL2NormLayer}}
\doxysubsubsection{\texorpdfstring{calcDerivative()}{calcDerivative()}}
{\footnotesize\ttfamily void nntrainer\+::\+Preprocess\+L2\+Norm\+Layer\+::calc\+Derivative (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classnntrainer_1_1RunLayerContext}{Run\+Layer\+Context}} \&}]{context }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [override]}}







Definition at line 53 of file preprocess\+\_\+l2norm\+\_\+layer.\+cpp.

\mbox{\Hypertarget{classnntrainer_1_1PreprocessL2NormLayer_a1dc0adda710a73145f60f8e5419aab02}\label{classnntrainer_1_1PreprocessL2NormLayer_a1dc0adda710a73145f60f8e5419aab02}} 
\index{nntrainer::PreprocessL2NormLayer@{nntrainer::PreprocessL2NormLayer}!exportTo@{exportTo}}
\index{exportTo@{exportTo}!nntrainer::PreprocessL2NormLayer@{nntrainer::PreprocessL2NormLayer}}
\doxysubsubsection{\texorpdfstring{exportTo()}{exportTo()}}
{\footnotesize\ttfamily void nntrainer\+::\+Preprocess\+L2\+Norm\+Layer\+::export\+To (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classnntrainer_1_1Exporter}{Exporter}} \&}]{exporter,  }\item[{const ml\+::train\+::\+Export\+Methods \&}]{method }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [override]}}







Definition at line 78 of file preprocess\+\_\+l2norm\+\_\+layer.\+h.

\mbox{\Hypertarget{classnntrainer_1_1PreprocessL2NormLayer_aefaa6924599d97456e369ceb67477aad}\label{classnntrainer_1_1PreprocessL2NormLayer_aefaa6924599d97456e369ceb67477aad}} 
\index{nntrainer::PreprocessL2NormLayer@{nntrainer::PreprocessL2NormLayer}!finalize@{finalize}}
\index{finalize@{finalize}!nntrainer::PreprocessL2NormLayer@{nntrainer::PreprocessL2NormLayer}}
\doxysubsubsection{\texorpdfstring{finalize()}{finalize()}}
{\footnotesize\ttfamily void nntrainer\+::\+Preprocess\+L2\+Norm\+Layer\+::finalize (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classnntrainer_1_1InitLayerContext}{Init\+Layer\+Context}} \&}]{context }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [override]}}







Definition at line 28 of file preprocess\+\_\+l2norm\+\_\+layer.\+cpp.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{classnntrainer_1_1PreprocessL2NormLayer_aefaa6924599d97456e369ceb67477aad_cgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{classnntrainer_1_1PreprocessL2NormLayer_a0c3c8fdd9705a0f4173d9cf405aee01c}\label{classnntrainer_1_1PreprocessL2NormLayer_a0c3c8fdd9705a0f4173d9cf405aee01c}} 
\index{nntrainer::PreprocessL2NormLayer@{nntrainer::PreprocessL2NormLayer}!forwarding@{forwarding}}
\index{forwarding@{forwarding}!nntrainer::PreprocessL2NormLayer@{nntrainer::PreprocessL2NormLayer}}
\doxysubsubsection{\texorpdfstring{forwarding()}{forwarding()}}
{\footnotesize\ttfamily void nntrainer\+::\+Preprocess\+L2\+Norm\+Layer\+::forwarding (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classnntrainer_1_1RunLayerContext}{Run\+Layer\+Context}} \&}]{context,  }\item[{bool}]{training }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [override]}}







Definition at line 40 of file preprocess\+\_\+l2norm\+\_\+layer.\+cpp.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{classnntrainer_1_1PreprocessL2NormLayer_a0c3c8fdd9705a0f4173d9cf405aee01c_cgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{classnntrainer_1_1PreprocessL2NormLayer_acddd6f624c21d962f66ee590a2bb7d6c}\label{classnntrainer_1_1PreprocessL2NormLayer_acddd6f624c21d962f66ee590a2bb7d6c}} 
\index{nntrainer::PreprocessL2NormLayer@{nntrainer::PreprocessL2NormLayer}!getType@{getType}}
\index{getType@{getType}!nntrainer::PreprocessL2NormLayer@{nntrainer::PreprocessL2NormLayer}}
\doxysubsubsection{\texorpdfstring{getType()}{getType()}}
{\footnotesize\ttfamily const std\+::string nntrainer\+::\+Preprocess\+L2\+Norm\+Layer\+::get\+Type (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [override]}}







Definition at line 84 of file preprocess\+\_\+l2norm\+\_\+layer.\+h.

\mbox{\Hypertarget{classnntrainer_1_1PreprocessL2NormLayer_ae14bec22e1aa5ea402212282646aa333}\label{classnntrainer_1_1PreprocessL2NormLayer_ae14bec22e1aa5ea402212282646aa333}} 
\index{nntrainer::PreprocessL2NormLayer@{nntrainer::PreprocessL2NormLayer}!setProperty@{setProperty}}
\index{setProperty@{setProperty}!nntrainer::PreprocessL2NormLayer@{nntrainer::PreprocessL2NormLayer}}
\doxysubsubsection{\texorpdfstring{setProperty()}{setProperty()}}
{\footnotesize\ttfamily void nntrainer\+::\+Preprocess\+L2\+Norm\+Layer\+::set\+Property (\begin{DoxyParamCaption}\item[{const std\+::vector$<$ std\+::string $>$ \&}]{values }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [override]}}







Definition at line 58 of file preprocess\+\_\+l2norm\+\_\+layer.\+cpp.

\mbox{\Hypertarget{classnntrainer_1_1PreprocessL2NormLayer_a8699adc36141148b274b631cf84fa3d1}\label{classnntrainer_1_1PreprocessL2NormLayer_a8699adc36141148b274b631cf84fa3d1}} 
\index{nntrainer::PreprocessL2NormLayer@{nntrainer::PreprocessL2NormLayer}!supportBackwarding@{supportBackwarding}}
\index{supportBackwarding@{supportBackwarding}!nntrainer::PreprocessL2NormLayer@{nntrainer::PreprocessL2NormLayer}}
\doxysubsubsection{\texorpdfstring{supportBackwarding()}{supportBackwarding()}}
{\footnotesize\ttfamily bool nntrainer\+::\+Preprocess\+L2\+Norm\+Layer\+::support\+Backwarding (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [override]}}



\mbox{\hyperlink{classnntrainer_1_1PreprocessL2NormLayer_a8699adc36141148b274b631cf84fa3d1}{support\+Backwarding() const}} 

\mbox{\hyperlink{classnntrainer_1_1PreprocessL2NormLayer_a8699adc36141148b274b631cf84fa3d1}{support\+Backwarding() const}} 

Definition at line 72 of file preprocess\+\_\+l2norm\+\_\+layer.\+h.



The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
layers/\mbox{\hyperlink{preprocess__l2norm__layer_8h}{preprocess\+\_\+l2norm\+\_\+layer.\+h}}\item 
layers/\mbox{\hyperlink{preprocess__l2norm__layer_8cpp}{preprocess\+\_\+l2norm\+\_\+layer.\+cpp}}\end{DoxyCompactItemize}
