\hypertarget{tensor__data_8h}{}\doxysection{nnstreamer/tensor\+\_\+data.h File Reference}
\label{tensor__data_8h}\index{nnstreamer/tensor\_data.h@{nnstreamer/tensor\_data.h}}


Internal functions to handle various tensor type and value.  


{\ttfamily \#include $<$glib.\+h$>$}\newline
{\ttfamily \#include $<$tensor\+\_\+typedef.\+h$>$}\newline
Include dependency graph for tensor\+\_\+data.\+h\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=259pt]{tensor__data_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]{tensor__data_8h__dep__incl}
\end{center}
\end{figure}
\doxysubsection*{Classes}
\begin{DoxyCompactItemize}
\item 
struct \mbox{\hyperlink{structtensor__data__s}{tensor\+\_\+data\+\_\+s}}
\begin{DoxyCompactList}\small\item\em Structure for tensor data. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
gboolean \mbox{\hyperlink{tensor__data_8h_ab7f9c87657a5d6b4d45a5324df5f10b5}{gst\+\_\+tensor\+\_\+data\+\_\+set}} (\mbox{\hyperlink{structtensor__data__s}{tensor\+\_\+data\+\_\+s}} $\ast$td, \mbox{\hyperlink{tensor__typedef_8h_ab5f7feb87196d0b9ae37b11fd819f23e}{tensor\+\_\+type}} \mbox{\hyperlink{gsttensor__if_8c_ae3c4ba0b643db0fa0b5b96496abd1803}{type}}, gpointer value)
\begin{DoxyCompactList}\small\item\em Set tensor element data with given type. \end{DoxyCompactList}\item 
gboolean \mbox{\hyperlink{tensor__data_8h_a4de1a130d54d3afe078e655d58ba1e20}{gst\+\_\+tensor\+\_\+data\+\_\+get}} (\mbox{\hyperlink{structtensor__data__s}{tensor\+\_\+data\+\_\+s}} $\ast$td, gpointer value)
\begin{DoxyCompactList}\small\item\em Get tensor element value. \end{DoxyCompactList}\item 
gboolean \mbox{\hyperlink{tensor__data_8h_a46a370094cb45ebbbf8b591e908abf7d}{gst\+\_\+tensor\+\_\+data\+\_\+typecast}} (\mbox{\hyperlink{structtensor__data__s}{tensor\+\_\+data\+\_\+s}} $\ast$td, \mbox{\hyperlink{tensor__typedef_8h_ab5f7feb87196d0b9ae37b11fd819f23e}{tensor\+\_\+type}} \mbox{\hyperlink{gsttensor__if_8c_ae3c4ba0b643db0fa0b5b96496abd1803}{type}})
\begin{DoxyCompactList}\small\item\em Typecast tensor element data. \end{DoxyCompactList}\item 
gboolean \mbox{\hyperlink{tensor__data_8h_a19e19448fcbdd10d056c03d29a14dd38}{gst\+\_\+tensor\+\_\+data\+\_\+raw\+\_\+typecast}} (gpointer input, \mbox{\hyperlink{tensor__typedef_8h_ab5f7feb87196d0b9ae37b11fd819f23e}{tensor\+\_\+type}} in\+\_\+type, gpointer output, \mbox{\hyperlink{tensor__typedef_8h_ab5f7feb87196d0b9ae37b11fd819f23e}{tensor\+\_\+type}} out\+\_\+type)
\begin{DoxyCompactList}\small\item\em Typecast tensor element value. \end{DoxyCompactList}\item 
gboolean \mbox{\hyperlink{tensor__data_8h_a55e1dc3156e118d586f262e90dfa4483}{gst\+\_\+tensor\+\_\+data\+\_\+raw\+\_\+average}} (gpointer raw, gsize length, \mbox{\hyperlink{tensor__typedef_8h_ab5f7feb87196d0b9ae37b11fd819f23e}{tensor\+\_\+type}} \mbox{\hyperlink{gsttensor__if_8c_ae3c4ba0b643db0fa0b5b96496abd1803}{type}}, gdouble $\ast$$\ast$\mbox{\hyperlink{gsttensor__if_8c_a13a9f04759a6e91867ba9c6301c61326}{result}})
\begin{DoxyCompactList}\small\item\em Calculate average value of the tensor. \end{DoxyCompactList}\item 
gboolean \mbox{\hyperlink{tensor__data_8h_aae7c3dbd38e2214bb52d4f48c334c992}{gst\+\_\+tensor\+\_\+data\+\_\+raw\+\_\+average\+\_\+per\+\_\+channel}} (gpointer raw, gsize length, \mbox{\hyperlink{tensor__typedef_8h_ab5f7feb87196d0b9ae37b11fd819f23e}{tensor\+\_\+type}} \mbox{\hyperlink{gsttensor__if_8c_ae3c4ba0b643db0fa0b5b96496abd1803}{type}}, \mbox{\hyperlink{tensor__typedef_8h_ae58ce2b6d47c4a2e9c5f3f621c6a5b9a}{tensor\+\_\+dim}} dim, gdouble $\ast$$\ast$results)
\begin{DoxyCompactList}\small\item\em Calculate average value of the tensor per channel (the first dim). \end{DoxyCompactList}\item 
gboolean \mbox{\hyperlink{tensor__data_8h_a95a28ea109ce9757a7a9b69196a820f7}{gst\+\_\+tensor\+\_\+data\+\_\+raw\+\_\+std}} (gpointer raw, gsize length, \mbox{\hyperlink{tensor__typedef_8h_ab5f7feb87196d0b9ae37b11fd819f23e}{tensor\+\_\+type}} \mbox{\hyperlink{gsttensor__if_8c_ae3c4ba0b643db0fa0b5b96496abd1803}{type}}, gdouble $\ast$average, gdouble $\ast$$\ast$\mbox{\hyperlink{gsttensor__if_8c_a13a9f04759a6e91867ba9c6301c61326}{result}})
\begin{DoxyCompactList}\small\item\em Calculate standard deviation of the tensor. \end{DoxyCompactList}\item 
gboolean \mbox{\hyperlink{tensor__data_8h_ae5da97dddbdf99c3056086431f486710}{gst\+\_\+tensor\+\_\+data\+\_\+raw\+\_\+std\+\_\+per\+\_\+channel}} (gpointer raw, gsize length, \mbox{\hyperlink{tensor__typedef_8h_ab5f7feb87196d0b9ae37b11fd819f23e}{tensor\+\_\+type}} \mbox{\hyperlink{gsttensor__if_8c_ae3c4ba0b643db0fa0b5b96496abd1803}{type}}, \mbox{\hyperlink{tensor__typedef_8h_ae58ce2b6d47c4a2e9c5f3f621c6a5b9a}{tensor\+\_\+dim}} dim, gdouble $\ast$averages, gdouble $\ast$$\ast$results)
\begin{DoxyCompactList}\small\item\em Calculate standard deviation of the tensor per channel (the first dim). \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Internal functions to handle various tensor type and value. 

Copyright (c) 2021 Samsung Electronics Co., Ltd. All Rights Reserved.

\begin{DoxyDate}{Date}
10 Mar 2021 
\end{DoxyDate}
\begin{DoxySeeAlso}{See also}
\href{http://github.com/nnstreamer/nnstreamer}{\texttt{ http\+://github.\+com/nnstreamer/nnstreamer}} 
\end{DoxySeeAlso}
\begin{DoxyAuthor}{Author}
Jaeyun Jung \href{mailto:jy1210.jung@samsung.com}{\texttt{ jy1210.\+jung@samsung.\+com}} 
\end{DoxyAuthor}
\begin{DoxyRefDesc}{Bug}
\item[\mbox{\hyperlink{bug__bug000102}{Bug}}]No known bugs except for N\+YI items \end{DoxyRefDesc}


\doxysubsection{Function Documentation}
\mbox{\Hypertarget{tensor__data_8h_a4de1a130d54d3afe078e655d58ba1e20}\label{tensor__data_8h_a4de1a130d54d3afe078e655d58ba1e20}} 
\index{tensor\_data.h@{tensor\_data.h}!gst\_tensor\_data\_get@{gst\_tensor\_data\_get}}
\index{gst\_tensor\_data\_get@{gst\_tensor\_data\_get}!tensor\_data.h@{tensor\_data.h}}
\doxysubsubsection{\texorpdfstring{gst\_tensor\_data\_get()}{gst\_tensor\_data\_get()}}
{\footnotesize\ttfamily gboolean gst\+\_\+tensor\+\_\+data\+\_\+get (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{structtensor__data__s}{tensor\+\_\+data\+\_\+s}} $\ast$}]{td,  }\item[{gpointer}]{value }\end{DoxyParamCaption})}



Get tensor element value. 


\begin{DoxyParams}{Parameters}
{\em td} & struct for tensor data \\
\hline
{\em value} & pointer of tensor element value \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
T\+R\+UE if no error 
\end{DoxyReturn}


Definition at line 143 of file tensor\+\_\+data.\+c.

Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{tensor__data_8h_a4de1a130d54d3afe078e655d58ba1e20_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{tensor__data_8h_a55e1dc3156e118d586f262e90dfa4483}\label{tensor__data_8h_a55e1dc3156e118d586f262e90dfa4483}} 
\index{tensor\_data.h@{tensor\_data.h}!gst\_tensor\_data\_raw\_average@{gst\_tensor\_data\_raw\_average}}
\index{gst\_tensor\_data\_raw\_average@{gst\_tensor\_data\_raw\_average}!tensor\_data.h@{tensor\_data.h}}
\doxysubsubsection{\texorpdfstring{gst\_tensor\_data\_raw\_average()}{gst\_tensor\_data\_raw\_average()}}
{\footnotesize\ttfamily gboolean gst\+\_\+tensor\+\_\+data\+\_\+raw\+\_\+average (\begin{DoxyParamCaption}\item[{gpointer}]{raw,  }\item[{gsize}]{length,  }\item[{\mbox{\hyperlink{tensor__typedef_8h_ab5f7feb87196d0b9ae37b11fd819f23e}{tensor\+\_\+type}}}]{type,  }\item[{gdouble $\ast$$\ast$}]{result }\end{DoxyParamCaption})}



Calculate average value of the tensor. 


\begin{DoxyParams}{Parameters}
{\em raw} & pointer of raw tensor data \\
\hline
{\em length} & byte size of raw tensor data \\
\hline
{\em type} & tensor type \\
\hline
{\em result} & double pointer for average value of given tensor. Caller should release allocated memory. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
T\+R\+UE if no error 
\end{DoxyReturn}


Definition at line 315 of file tensor\+\_\+data.\+c.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{tensor__data_8h_a55e1dc3156e118d586f262e90dfa4483_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{tensor__data_8h_a55e1dc3156e118d586f262e90dfa4483_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{tensor__data_8h_aae7c3dbd38e2214bb52d4f48c334c992}\label{tensor__data_8h_aae7c3dbd38e2214bb52d4f48c334c992}} 
\index{tensor\_data.h@{tensor\_data.h}!gst\_tensor\_data\_raw\_average\_per\_channel@{gst\_tensor\_data\_raw\_average\_per\_channel}}
\index{gst\_tensor\_data\_raw\_average\_per\_channel@{gst\_tensor\_data\_raw\_average\_per\_channel}!tensor\_data.h@{tensor\_data.h}}
\doxysubsubsection{\texorpdfstring{gst\_tensor\_data\_raw\_average\_per\_channel()}{gst\_tensor\_data\_raw\_average\_per\_channel()}}
{\footnotesize\ttfamily gboolean gst\+\_\+tensor\+\_\+data\+\_\+raw\+\_\+average\+\_\+per\+\_\+channel (\begin{DoxyParamCaption}\item[{gpointer}]{raw,  }\item[{gsize}]{length,  }\item[{\mbox{\hyperlink{tensor__typedef_8h_ab5f7feb87196d0b9ae37b11fd819f23e}{tensor\+\_\+type}}}]{type,  }\item[{\mbox{\hyperlink{tensor__typedef_8h_ae58ce2b6d47c4a2e9c5f3f621c6a5b9a}{tensor\+\_\+dim}}}]{dim,  }\item[{gdouble $\ast$$\ast$}]{results }\end{DoxyParamCaption})}



Calculate average value of the tensor per channel (the first dim). 


\begin{DoxyParams}{Parameters}
{\em raw} & pointer of raw tensor data \\
\hline
{\em length} & byte size of raw tensor data \\
\hline
{\em type} & tensor type \\
\hline
{\em tensor\+\_\+dim} & tensor dimension \\
\hline
{\em results} & double array contains average values of each channel. Caller should release allocated array. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
T\+R\+UE if no error 
\end{DoxyReturn}


Definition at line 360 of file tensor\+\_\+data.\+c.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{tensor__data_8h_aae7c3dbd38e2214bb52d4f48c334c992_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{tensor__data_8h_aae7c3dbd38e2214bb52d4f48c334c992_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{tensor__data_8h_a95a28ea109ce9757a7a9b69196a820f7}\label{tensor__data_8h_a95a28ea109ce9757a7a9b69196a820f7}} 
\index{tensor\_data.h@{tensor\_data.h}!gst\_tensor\_data\_raw\_std@{gst\_tensor\_data\_raw\_std}}
\index{gst\_tensor\_data\_raw\_std@{gst\_tensor\_data\_raw\_std}!tensor\_data.h@{tensor\_data.h}}
\doxysubsubsection{\texorpdfstring{gst\_tensor\_data\_raw\_std()}{gst\_tensor\_data\_raw\_std()}}
{\footnotesize\ttfamily gboolean gst\+\_\+tensor\+\_\+data\+\_\+raw\+\_\+std (\begin{DoxyParamCaption}\item[{gpointer}]{raw,  }\item[{gsize}]{length,  }\item[{\mbox{\hyperlink{tensor__typedef_8h_ab5f7feb87196d0b9ae37b11fd819f23e}{tensor\+\_\+type}}}]{type,  }\item[{gdouble $\ast$}]{average,  }\item[{gdouble $\ast$$\ast$}]{result }\end{DoxyParamCaption})}



Calculate standard deviation of the tensor. 


\begin{DoxyParams}{Parameters}
{\em raw} & pointer of raw tensor data \\
\hline
{\em length} & byte size of raw tensor data \\
\hline
{\em type} & tensor type \\
\hline
{\em average} & average value of given tensor \\
\hline
{\em result} & double pointer for standard deviation of given tensor. Caller should release allocated memory. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
T\+R\+UE if no error 
\end{DoxyReturn}


Definition at line 409 of file tensor\+\_\+data.\+c.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{tensor__data_8h_a95a28ea109ce9757a7a9b69196a820f7_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{tensor__data_8h_a95a28ea109ce9757a7a9b69196a820f7_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{tensor__data_8h_ae5da97dddbdf99c3056086431f486710}\label{tensor__data_8h_ae5da97dddbdf99c3056086431f486710}} 
\index{tensor\_data.h@{tensor\_data.h}!gst\_tensor\_data\_raw\_std\_per\_channel@{gst\_tensor\_data\_raw\_std\_per\_channel}}
\index{gst\_tensor\_data\_raw\_std\_per\_channel@{gst\_tensor\_data\_raw\_std\_per\_channel}!tensor\_data.h@{tensor\_data.h}}
\doxysubsubsection{\texorpdfstring{gst\_tensor\_data\_raw\_std\_per\_channel()}{gst\_tensor\_data\_raw\_std\_per\_channel()}}
{\footnotesize\ttfamily gboolean gst\+\_\+tensor\+\_\+data\+\_\+raw\+\_\+std\+\_\+per\+\_\+channel (\begin{DoxyParamCaption}\item[{gpointer}]{raw,  }\item[{gsize}]{length,  }\item[{\mbox{\hyperlink{tensor__typedef_8h_ab5f7feb87196d0b9ae37b11fd819f23e}{tensor\+\_\+type}}}]{type,  }\item[{\mbox{\hyperlink{tensor__typedef_8h_ae58ce2b6d47c4a2e9c5f3f621c6a5b9a}{tensor\+\_\+dim}}}]{dim,  }\item[{gdouble $\ast$}]{averages,  }\item[{gdouble $\ast$$\ast$}]{results }\end{DoxyParamCaption})}



Calculate standard deviation of the tensor per channel (the first dim). 


\begin{DoxyParams}{Parameters}
{\em raw} & pointer of raw tensor data \\
\hline
{\em length} & byte size of raw tensor data \\
\hline
{\em type} & tensor type \\
\hline
{\em tensor\+\_\+dim} & tensor dimension \\
\hline
{\em averages} & average values of given tensor per-\/channel \\
\hline
{\em results} & double array contains standard deviation of each channel. Caller should release allocated array. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
T\+R\+UE if no error 
\end{DoxyReturn}


Definition at line 455 of file tensor\+\_\+data.\+c.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{tensor__data_8h_ae5da97dddbdf99c3056086431f486710_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{tensor__data_8h_ae5da97dddbdf99c3056086431f486710_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{tensor__data_8h_a19e19448fcbdd10d056c03d29a14dd38}\label{tensor__data_8h_a19e19448fcbdd10d056c03d29a14dd38}} 
\index{tensor\_data.h@{tensor\_data.h}!gst\_tensor\_data\_raw\_typecast@{gst\_tensor\_data\_raw\_typecast}}
\index{gst\_tensor\_data\_raw\_typecast@{gst\_tensor\_data\_raw\_typecast}!tensor\_data.h@{tensor\_data.h}}
\doxysubsubsection{\texorpdfstring{gst\_tensor\_data\_raw\_typecast()}{gst\_tensor\_data\_raw\_typecast()}}
{\footnotesize\ttfamily gboolean gst\+\_\+tensor\+\_\+data\+\_\+raw\+\_\+typecast (\begin{DoxyParamCaption}\item[{gpointer}]{input,  }\item[{\mbox{\hyperlink{tensor__typedef_8h_ab5f7feb87196d0b9ae37b11fd819f23e}{tensor\+\_\+type}}}]{in\+\_\+type,  }\item[{gpointer}]{output,  }\item[{\mbox{\hyperlink{tensor__typedef_8h_ab5f7feb87196d0b9ae37b11fd819f23e}{tensor\+\_\+type}}}]{out\+\_\+type }\end{DoxyParamCaption})}



Typecast tensor element value. 


\begin{DoxyParams}{Parameters}
{\em input} & pointer of input tensor data \\
\hline
{\em in\+\_\+type} & input tensor type \\
\hline
{\em output} & pointer of output tensor data \\
\hline
{\em out\+\_\+type} & output tensor type \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
T\+R\+UE if no error 
\end{DoxyReturn}


Definition at line 290 of file tensor\+\_\+data.\+c.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{tensor__data_8h_a19e19448fcbdd10d056c03d29a14dd38_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{tensor__data_8h_a19e19448fcbdd10d056c03d29a14dd38_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{tensor__data_8h_ab7f9c87657a5d6b4d45a5324df5f10b5}\label{tensor__data_8h_ab7f9c87657a5d6b4d45a5324df5f10b5}} 
\index{tensor\_data.h@{tensor\_data.h}!gst\_tensor\_data\_set@{gst\_tensor\_data\_set}}
\index{gst\_tensor\_data\_set@{gst\_tensor\_data\_set}!tensor\_data.h@{tensor\_data.h}}
\doxysubsubsection{\texorpdfstring{gst\_tensor\_data\_set()}{gst\_tensor\_data\_set()}}
{\footnotesize\ttfamily gboolean gst\+\_\+tensor\+\_\+data\+\_\+set (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{structtensor__data__s}{tensor\+\_\+data\+\_\+s}} $\ast$}]{td,  }\item[{\mbox{\hyperlink{tensor__typedef_8h_ab5f7feb87196d0b9ae37b11fd819f23e}{tensor\+\_\+type}}}]{type,  }\item[{gpointer}]{value }\end{DoxyParamCaption})}



Set tensor element data with given type. 


\begin{DoxyParams}{Parameters}
{\em td} & struct for tensor data \\
\hline
{\em type} & tensor type \\
\hline
{\em value} & pointer of tensor element value \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
T\+R\+UE if no error 
\end{DoxyReturn}
Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{tensor__data_8h_ab7f9c87657a5d6b4d45a5324df5f10b5_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{tensor__data_8h_a46a370094cb45ebbbf8b591e908abf7d}\label{tensor__data_8h_a46a370094cb45ebbbf8b591e908abf7d}} 
\index{tensor\_data.h@{tensor\_data.h}!gst\_tensor\_data\_typecast@{gst\_tensor\_data\_typecast}}
\index{gst\_tensor\_data\_typecast@{gst\_tensor\_data\_typecast}!tensor\_data.h@{tensor\_data.h}}
\doxysubsubsection{\texorpdfstring{gst\_tensor\_data\_typecast()}{gst\_tensor\_data\_typecast()}}
{\footnotesize\ttfamily gboolean gst\+\_\+tensor\+\_\+data\+\_\+typecast (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{structtensor__data__s}{tensor\+\_\+data\+\_\+s}} $\ast$}]{td,  }\item[{\mbox{\hyperlink{tensor__typedef_8h_ab5f7feb87196d0b9ae37b11fd819f23e}{tensor\+\_\+type}}}]{type }\end{DoxyParamCaption})}



Typecast tensor element data. 


\begin{DoxyParams}{Parameters}
{\em td} & struct for tensor data \\
\hline
{\em type} & tensor type to be transformed \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
T\+R\+UE if no error 
\end{DoxyReturn}


Definition at line 203 of file tensor\+\_\+data.\+c.

Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{tensor__data_8h_a46a370094cb45ebbbf8b591e908abf7d_icgraph}
\end{center}
\end{figure}
