\hypertarget{gsttensor__sparseenc_8h}{}\doxysection{nnstreamer/elements/gsttensor\+\_\+sparseenc.h File Reference}
\label{gsttensor__sparseenc_8h}\index{nnstreamer/elements/gsttensor\_sparseenc.h@{nnstreamer/elements/gsttensor\_sparseenc.h}}


G\+Streamer element to encode sparse tensors into dense tensors.  


{\ttfamily \#include $<$gst/gst.\+h$>$}\newline
{\ttfamily \#include $<$tensor\+\_\+common.\+h$>$}\newline
{\ttfamily \#include \char`\"{}gsttensor\+\_\+sparseutil.\+h\char`\"{}}\newline
Include dependency graph for gsttensor\+\_\+sparseenc.\+h\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{gsttensor__sparseenc_8h__incl}
\end{center}
\end{figure}
This graph shows which files directly or indirectly include this file\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{gsttensor__sparseenc_8h__dep__incl}
\end{center}
\end{figure}
\doxysubsection*{Classes}
\begin{DoxyCompactItemize}
\item 
struct \mbox{\hyperlink{struct__GstTensorSparseEnc}{\+\_\+\+Gst\+Tensor\+Sparse\+Enc}}
\begin{DoxyCompactList}\small\item\em Gst\+Tensor\+Sparse\+Enc data structure. \end{DoxyCompactList}\item 
struct \mbox{\hyperlink{struct__GstTensorSparseEncClass}{\+\_\+\+Gst\+Tensor\+Sparse\+Enc\+Class}}
\begin{DoxyCompactList}\small\item\em Gst\+Tensor\+Sparse\+Class data structure. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define \mbox{\hyperlink{gsttensor__sparseenc_8h_aad0cc1a7cca2411489f90b777fb0d7cb}{G\+S\+T\+\_\+\+T\+Y\+P\+E\+\_\+\+T\+E\+N\+S\+O\+R\+\_\+\+S\+P\+A\+R\+S\+E\+\_\+\+E\+NC}}~(\mbox{\hyperlink{gsttensor__sparseenc_8h_aac1ac4db1a92dcb2f7ddd7f380ec97b9}{gst\+\_\+tensor\+\_\+sparse\+\_\+enc\+\_\+get\+\_\+type}}())
\item 
\#define \mbox{\hyperlink{gsttensor__sparseenc_8h_a946a74fd7422c7dddd79a35a5164db9e}{G\+S\+T\+\_\+\+T\+E\+N\+S\+O\+R\+\_\+\+S\+P\+A\+R\+S\+E\+\_\+\+E\+NC}}(obj)~(G\+\_\+\+T\+Y\+P\+E\+\_\+\+C\+H\+E\+C\+K\+\_\+\+I\+N\+S\+T\+A\+N\+C\+E\+\_\+\+C\+A\+ST((obj),\mbox{\hyperlink{gsttensor__sparseenc_8h_aad0cc1a7cca2411489f90b777fb0d7cb}{G\+S\+T\+\_\+\+T\+Y\+P\+E\+\_\+\+T\+E\+N\+S\+O\+R\+\_\+\+S\+P\+A\+R\+S\+E\+\_\+\+E\+NC}},\mbox{\hyperlink{gsttensor__sparseenc_8h_a2ac72bdec42786527950b6f4a9fac306}{Gst\+Tensor\+Sparse\+Enc}}))
\item 
\#define \mbox{\hyperlink{gsttensor__sparseenc_8h_a7eb5ba93dec5e31ffee4e67b58f0d6bb}{G\+S\+T\+\_\+\+T\+E\+N\+S\+O\+R\+\_\+\+S\+P\+A\+R\+S\+E\+\_\+\+E\+N\+C\+\_\+\+C\+L\+A\+SS}}(klass)~(G\+\_\+\+T\+Y\+P\+E\+\_\+\+C\+H\+E\+C\+K\+\_\+\+C\+L\+A\+S\+S\+\_\+\+C\+A\+ST((klass),\mbox{\hyperlink{gsttensor__sparseenc_8h_aad0cc1a7cca2411489f90b777fb0d7cb}{G\+S\+T\+\_\+\+T\+Y\+P\+E\+\_\+\+T\+E\+N\+S\+O\+R\+\_\+\+S\+P\+A\+R\+S\+E\+\_\+\+E\+NC}},\mbox{\hyperlink{gsttensor__sparseenc_8h_ad1afe493ee441fc540cccdb34eef3525}{Gst\+Tensor\+Sparse\+Enc\+Class}}))
\item 
\#define \mbox{\hyperlink{gsttensor__sparseenc_8h_a2acf734911baaa1e51bca0ea4d4bd278}{G\+S\+T\+\_\+\+I\+S\+\_\+\+T\+E\+N\+S\+O\+R\+\_\+\+S\+P\+A\+R\+S\+E\+\_\+\+E\+NC}}(obj)~(G\+\_\+\+T\+Y\+P\+E\+\_\+\+C\+H\+E\+C\+K\+\_\+\+I\+N\+S\+T\+A\+N\+C\+E\+\_\+\+T\+Y\+PE((obj),\mbox{\hyperlink{gsttensor__sparseenc_8h_aad0cc1a7cca2411489f90b777fb0d7cb}{G\+S\+T\+\_\+\+T\+Y\+P\+E\+\_\+\+T\+E\+N\+S\+O\+R\+\_\+\+S\+P\+A\+R\+S\+E\+\_\+\+E\+NC}}))
\item 
\#define \mbox{\hyperlink{gsttensor__sparseenc_8h_abaeebe4e67c71333bd22708232aa33b2}{G\+S\+T\+\_\+\+I\+S\+\_\+\+T\+E\+N\+S\+O\+R\+\_\+\+S\+P\+A\+R\+S\+E\+\_\+\+E\+N\+C\+\_\+\+C\+L\+A\+SS}}(klass)~(G\+\_\+\+T\+Y\+P\+E\+\_\+\+C\+H\+E\+C\+K\+\_\+\+C\+L\+A\+S\+S\+\_\+\+T\+Y\+PE((klass),\mbox{\hyperlink{gsttensor__sparseenc_8h_aad0cc1a7cca2411489f90b777fb0d7cb}{G\+S\+T\+\_\+\+T\+Y\+P\+E\+\_\+\+T\+E\+N\+S\+O\+R\+\_\+\+S\+P\+A\+R\+S\+E\+\_\+\+E\+NC}}))
\end{DoxyCompactItemize}
\doxysubsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
typedef struct \mbox{\hyperlink{struct__GstTensorSparseEnc}{\+\_\+\+Gst\+Tensor\+Sparse\+Enc}} \mbox{\hyperlink{gsttensor__sparseenc_8h_a2ac72bdec42786527950b6f4a9fac306}{Gst\+Tensor\+Sparse\+Enc}}
\item 
typedef struct \mbox{\hyperlink{struct__GstTensorSparseEncClass}{\+\_\+\+Gst\+Tensor\+Sparse\+Enc\+Class}} \mbox{\hyperlink{gsttensor__sparseenc_8h_ad1afe493ee441fc540cccdb34eef3525}{Gst\+Tensor\+Sparse\+Enc\+Class}}
\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
G\+Type \mbox{\hyperlink{gsttensor__sparseenc_8h_aac1ac4db1a92dcb2f7ddd7f380ec97b9}{gst\+\_\+tensor\+\_\+sparse\+\_\+enc\+\_\+get\+\_\+type}} (void)
\begin{DoxyCompactList}\small\item\em Function to get type of tensor\+\_\+sparse. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
G\+Streamer element to encode sparse tensors into dense tensors. 

Copyright (C) 2021 Samsung Electronics Co., Ltd.

\begin{DoxyDate}{Date}
27 Jul 2021 
\end{DoxyDate}
\begin{DoxySeeAlso}{See also}
\href{https://github.com/nnstreamer/nnstreamer}{\texttt{ https\+://github.\+com/nnstreamer/nnstreamer}} 
\end{DoxySeeAlso}
\begin{DoxyAuthor}{Author}
Yongjoo Ahn \href{mailto:yongjoo1.ahn@samsung.com}{\texttt{ yongjoo1.\+ahn@samsung.\+com}} 
\end{DoxyAuthor}
\begin{DoxyRefDesc}{Bug}
\item[\mbox{\hyperlink{bug__bug000059}{Bug}}]No known bugs except for N\+YI items \end{DoxyRefDesc}


\doxysubsection{Macro Definition Documentation}
\mbox{\Hypertarget{gsttensor__sparseenc_8h_a2acf734911baaa1e51bca0ea4d4bd278}\label{gsttensor__sparseenc_8h_a2acf734911baaa1e51bca0ea4d4bd278}} 
\index{gsttensor\_sparseenc.h@{gsttensor\_sparseenc.h}!GST\_IS\_TENSOR\_SPARSE\_ENC@{GST\_IS\_TENSOR\_SPARSE\_ENC}}
\index{GST\_IS\_TENSOR\_SPARSE\_ENC@{GST\_IS\_TENSOR\_SPARSE\_ENC}!gsttensor\_sparseenc.h@{gsttensor\_sparseenc.h}}
\doxysubsubsection{\texorpdfstring{GST\_IS\_TENSOR\_SPARSE\_ENC}{GST\_IS\_TENSOR\_SPARSE\_ENC}}
{\footnotesize\ttfamily \#define G\+S\+T\+\_\+\+I\+S\+\_\+\+T\+E\+N\+S\+O\+R\+\_\+\+S\+P\+A\+R\+S\+E\+\_\+\+E\+NC(\begin{DoxyParamCaption}\item[{}]{obj }\end{DoxyParamCaption})~(G\+\_\+\+T\+Y\+P\+E\+\_\+\+C\+H\+E\+C\+K\+\_\+\+I\+N\+S\+T\+A\+N\+C\+E\+\_\+\+T\+Y\+PE((obj),\mbox{\hyperlink{gsttensor__sparseenc_8h_aad0cc1a7cca2411489f90b777fb0d7cb}{G\+S\+T\+\_\+\+T\+Y\+P\+E\+\_\+\+T\+E\+N\+S\+O\+R\+\_\+\+S\+P\+A\+R\+S\+E\+\_\+\+E\+NC}}))}



Definition at line 28 of file gsttensor\+\_\+sparseenc.\+h.

\mbox{\Hypertarget{gsttensor__sparseenc_8h_abaeebe4e67c71333bd22708232aa33b2}\label{gsttensor__sparseenc_8h_abaeebe4e67c71333bd22708232aa33b2}} 
\index{gsttensor\_sparseenc.h@{gsttensor\_sparseenc.h}!GST\_IS\_TENSOR\_SPARSE\_ENC\_CLASS@{GST\_IS\_TENSOR\_SPARSE\_ENC\_CLASS}}
\index{GST\_IS\_TENSOR\_SPARSE\_ENC\_CLASS@{GST\_IS\_TENSOR\_SPARSE\_ENC\_CLASS}!gsttensor\_sparseenc.h@{gsttensor\_sparseenc.h}}
\doxysubsubsection{\texorpdfstring{GST\_IS\_TENSOR\_SPARSE\_ENC\_CLASS}{GST\_IS\_TENSOR\_SPARSE\_ENC\_CLASS}}
{\footnotesize\ttfamily \#define G\+S\+T\+\_\+\+I\+S\+\_\+\+T\+E\+N\+S\+O\+R\+\_\+\+S\+P\+A\+R\+S\+E\+\_\+\+E\+N\+C\+\_\+\+C\+L\+A\+SS(\begin{DoxyParamCaption}\item[{}]{klass }\end{DoxyParamCaption})~(G\+\_\+\+T\+Y\+P\+E\+\_\+\+C\+H\+E\+C\+K\+\_\+\+C\+L\+A\+S\+S\+\_\+\+T\+Y\+PE((klass),\mbox{\hyperlink{gsttensor__sparseenc_8h_aad0cc1a7cca2411489f90b777fb0d7cb}{G\+S\+T\+\_\+\+T\+Y\+P\+E\+\_\+\+T\+E\+N\+S\+O\+R\+\_\+\+S\+P\+A\+R\+S\+E\+\_\+\+E\+NC}}))}



Definition at line 30 of file gsttensor\+\_\+sparseenc.\+h.

\mbox{\Hypertarget{gsttensor__sparseenc_8h_a946a74fd7422c7dddd79a35a5164db9e}\label{gsttensor__sparseenc_8h_a946a74fd7422c7dddd79a35a5164db9e}} 
\index{gsttensor\_sparseenc.h@{gsttensor\_sparseenc.h}!GST\_TENSOR\_SPARSE\_ENC@{GST\_TENSOR\_SPARSE\_ENC}}
\index{GST\_TENSOR\_SPARSE\_ENC@{GST\_TENSOR\_SPARSE\_ENC}!gsttensor\_sparseenc.h@{gsttensor\_sparseenc.h}}
\doxysubsubsection{\texorpdfstring{GST\_TENSOR\_SPARSE\_ENC}{GST\_TENSOR\_SPARSE\_ENC}}
{\footnotesize\ttfamily \#define G\+S\+T\+\_\+\+T\+E\+N\+S\+O\+R\+\_\+\+S\+P\+A\+R\+S\+E\+\_\+\+E\+NC(\begin{DoxyParamCaption}\item[{}]{obj }\end{DoxyParamCaption})~(G\+\_\+\+T\+Y\+P\+E\+\_\+\+C\+H\+E\+C\+K\+\_\+\+I\+N\+S\+T\+A\+N\+C\+E\+\_\+\+C\+A\+ST((obj),\mbox{\hyperlink{gsttensor__sparseenc_8h_aad0cc1a7cca2411489f90b777fb0d7cb}{G\+S\+T\+\_\+\+T\+Y\+P\+E\+\_\+\+T\+E\+N\+S\+O\+R\+\_\+\+S\+P\+A\+R\+S\+E\+\_\+\+E\+NC}},\mbox{\hyperlink{gsttensor__sparseenc_8h_a2ac72bdec42786527950b6f4a9fac306}{Gst\+Tensor\+Sparse\+Enc}}))}



Definition at line 24 of file gsttensor\+\_\+sparseenc.\+h.

\mbox{\Hypertarget{gsttensor__sparseenc_8h_a7eb5ba93dec5e31ffee4e67b58f0d6bb}\label{gsttensor__sparseenc_8h_a7eb5ba93dec5e31ffee4e67b58f0d6bb}} 
\index{gsttensor\_sparseenc.h@{gsttensor\_sparseenc.h}!GST\_TENSOR\_SPARSE\_ENC\_CLASS@{GST\_TENSOR\_SPARSE\_ENC\_CLASS}}
\index{GST\_TENSOR\_SPARSE\_ENC\_CLASS@{GST\_TENSOR\_SPARSE\_ENC\_CLASS}!gsttensor\_sparseenc.h@{gsttensor\_sparseenc.h}}
\doxysubsubsection{\texorpdfstring{GST\_TENSOR\_SPARSE\_ENC\_CLASS}{GST\_TENSOR\_SPARSE\_ENC\_CLASS}}
{\footnotesize\ttfamily \#define G\+S\+T\+\_\+\+T\+E\+N\+S\+O\+R\+\_\+\+S\+P\+A\+R\+S\+E\+\_\+\+E\+N\+C\+\_\+\+C\+L\+A\+SS(\begin{DoxyParamCaption}\item[{}]{klass }\end{DoxyParamCaption})~(G\+\_\+\+T\+Y\+P\+E\+\_\+\+C\+H\+E\+C\+K\+\_\+\+C\+L\+A\+S\+S\+\_\+\+C\+A\+ST((klass),\mbox{\hyperlink{gsttensor__sparseenc_8h_aad0cc1a7cca2411489f90b777fb0d7cb}{G\+S\+T\+\_\+\+T\+Y\+P\+E\+\_\+\+T\+E\+N\+S\+O\+R\+\_\+\+S\+P\+A\+R\+S\+E\+\_\+\+E\+NC}},\mbox{\hyperlink{gsttensor__sparseenc_8h_ad1afe493ee441fc540cccdb34eef3525}{Gst\+Tensor\+Sparse\+Enc\+Class}}))}



Definition at line 26 of file gsttensor\+\_\+sparseenc.\+h.

\mbox{\Hypertarget{gsttensor__sparseenc_8h_aad0cc1a7cca2411489f90b777fb0d7cb}\label{gsttensor__sparseenc_8h_aad0cc1a7cca2411489f90b777fb0d7cb}} 
\index{gsttensor\_sparseenc.h@{gsttensor\_sparseenc.h}!GST\_TYPE\_TENSOR\_SPARSE\_ENC@{GST\_TYPE\_TENSOR\_SPARSE\_ENC}}
\index{GST\_TYPE\_TENSOR\_SPARSE\_ENC@{GST\_TYPE\_TENSOR\_SPARSE\_ENC}!gsttensor\_sparseenc.h@{gsttensor\_sparseenc.h}}
\doxysubsubsection{\texorpdfstring{GST\_TYPE\_TENSOR\_SPARSE\_ENC}{GST\_TYPE\_TENSOR\_SPARSE\_ENC}}
{\footnotesize\ttfamily \#define G\+S\+T\+\_\+\+T\+Y\+P\+E\+\_\+\+T\+E\+N\+S\+O\+R\+\_\+\+S\+P\+A\+R\+S\+E\+\_\+\+E\+NC~(\mbox{\hyperlink{gsttensor__sparseenc_8h_aac1ac4db1a92dcb2f7ddd7f380ec97b9}{gst\+\_\+tensor\+\_\+sparse\+\_\+enc\+\_\+get\+\_\+type}}())}



Definition at line 22 of file gsttensor\+\_\+sparseenc.\+h.



\doxysubsection{Typedef Documentation}
\mbox{\Hypertarget{gsttensor__sparseenc_8h_a2ac72bdec42786527950b6f4a9fac306}\label{gsttensor__sparseenc_8h_a2ac72bdec42786527950b6f4a9fac306}} 
\index{gsttensor\_sparseenc.h@{gsttensor\_sparseenc.h}!GstTensorSparseEnc@{GstTensorSparseEnc}}
\index{GstTensorSparseEnc@{GstTensorSparseEnc}!gsttensor\_sparseenc.h@{gsttensor\_sparseenc.h}}
\doxysubsubsection{\texorpdfstring{GstTensorSparseEnc}{GstTensorSparseEnc}}
{\footnotesize\ttfamily typedef struct \mbox{\hyperlink{struct__GstTensorSparseEnc}{\+\_\+\+Gst\+Tensor\+Sparse\+Enc}} \mbox{\hyperlink{gsttensor__sparseenc_8h_a2ac72bdec42786527950b6f4a9fac306}{Gst\+Tensor\+Sparse\+Enc}}}



Definition at line 33 of file gsttensor\+\_\+sparseenc.\+h.

\mbox{\Hypertarget{gsttensor__sparseenc_8h_ad1afe493ee441fc540cccdb34eef3525}\label{gsttensor__sparseenc_8h_ad1afe493ee441fc540cccdb34eef3525}} 
\index{gsttensor\_sparseenc.h@{gsttensor\_sparseenc.h}!GstTensorSparseEncClass@{GstTensorSparseEncClass}}
\index{GstTensorSparseEncClass@{GstTensorSparseEncClass}!gsttensor\_sparseenc.h@{gsttensor\_sparseenc.h}}
\doxysubsubsection{\texorpdfstring{GstTensorSparseEncClass}{GstTensorSparseEncClass}}
{\footnotesize\ttfamily typedef struct \mbox{\hyperlink{struct__GstTensorSparseEncClass}{\+\_\+\+Gst\+Tensor\+Sparse\+Enc\+Class}} \mbox{\hyperlink{gsttensor__sparseenc_8h_ad1afe493ee441fc540cccdb34eef3525}{Gst\+Tensor\+Sparse\+Enc\+Class}}}



Definition at line 34 of file gsttensor\+\_\+sparseenc.\+h.



\doxysubsection{Function Documentation}
\mbox{\Hypertarget{gsttensor__sparseenc_8h_aac1ac4db1a92dcb2f7ddd7f380ec97b9}\label{gsttensor__sparseenc_8h_aac1ac4db1a92dcb2f7ddd7f380ec97b9}} 
\index{gsttensor\_sparseenc.h@{gsttensor\_sparseenc.h}!gst\_tensor\_sparse\_enc\_get\_type@{gst\_tensor\_sparse\_enc\_get\_type}}
\index{gst\_tensor\_sparse\_enc\_get\_type@{gst\_tensor\_sparse\_enc\_get\_type}!gsttensor\_sparseenc.h@{gsttensor\_sparseenc.h}}
\doxysubsubsection{\texorpdfstring{gst\_tensor\_sparse\_enc\_get\_type()}{gst\_tensor\_sparse\_enc\_get\_type()}}
{\footnotesize\ttfamily G\+Type gst\+\_\+tensor\+\_\+sparse\+\_\+enc\+\_\+get\+\_\+type (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



Function to get type of tensor\+\_\+sparse. 

