\hypertarget{positional__encoding__layer_8cpp}{}\doxysection{layers/positional\+\_\+encoding\+\_\+layer.cpp File Reference}
\label{positional__encoding__layer_8cpp}\index{layers/positional\_encoding\_layer.cpp@{layers/positional\_encoding\_layer.cpp}}


This file contains the positional encoding layer in transformer.  


{\ttfamily \#include $<$math.\+h$>$}\newline
{\ttfamily \#include $<$regex$>$}\newline
{\ttfamily \#include $<$positional\+\_\+encoding\+\_\+layer.\+h$>$}\newline
{\ttfamily \#include $<$tensor\+\_\+dim.\+h$>$}\newline
Include dependency graph for positional\+\_\+encoding\+\_\+layer.\+cpp\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{positional__encoding__layer_8cpp__incl}
\end{center}
\end{figure}
\doxysubsection*{Namespaces}
\begin{DoxyCompactItemize}
\item 
 \mbox{\hyperlink{namespacenntrainer}{nntrainer}}
\end{DoxyCompactItemize}
\doxysubsection*{Enumerations}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{namespacenntrainer_ac08d2e63d27a2fb082d7478f69b2fce3}\label{namespacenntrainer_ac08d2e63d27a2fb082d7478f69b2fce3}} 
enum {\bfseries Positional\+Encoding\+Params} \{ {\bfseries positional\+\_\+encoding}
 \}
\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{namespacenntrainer_ae465178065a4c1f1dfb69da091bf466e}\label{namespacenntrainer_ae465178065a4c1f1dfb69da091bf466e}} 
static constexpr size\+\_\+t {\bfseries nntrainer\+::\+S\+I\+N\+G\+L\+E\+\_\+\+I\+N\+O\+U\+T\+\_\+\+I\+DX} = 0
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
This file contains the positional encoding layer in transformer. 

Copyright (C) 2022 Hyeonseok Lee \href{mailto:hs89.lee@samsung.com}{\texttt{ hs89.\+lee@samsung.\+com}}

\begin{DoxyDate}{Date}
16 August 2022 
\end{DoxyDate}
\begin{DoxySeeAlso}{See also}
\href{https://github.com/nnstreamer/nntrainer}{\texttt{ https\+://github.\+com/nnstreamer/nntrainer}} \href{https://arxiv.org/abs/1607.06450}{\texttt{ https\+://arxiv.\+org/abs/1607.\+06450}} 
\end{DoxySeeAlso}
\begin{DoxyAuthor}{Author}
Hyeonseok Lee \href{mailto:hs89.lee@samsung.com}{\texttt{ hs89.\+lee@samsung.\+com}} 
\end{DoxyAuthor}
\begin{DoxyRefDesc}{Bug}
\item[\mbox{\hyperlink{bug__bug000140}{Bug}}]No known bugs except for N\+YI items\end{DoxyRefDesc}
