[#SUPPORTED_TENSOR_TYPES]
= SUPPORTED&lowbar;TENSOR&lowbar;TYPES
:mrdocs:

TensorSpec encapsulates the specification of a tensor&colon; its dimensions, or &quot;shape&quot; (row&hyphen;major), its type (see TensorSpec&colon;&colon;getDataType specializations for supported types), its name and port (see &quot;TensorFlow&colon; Large&hyphen;Scale Machine Learning on Heterogeneous Distributed Systems&quot;, section 4&period;2, para 2&colon; https&colon;&sol;&sol;static&period;googleusercontent&period;com&sol;media&sol;research&period;google&period;com&sol;en&sol;&sol;pubs&sol;archive&sol;45166&period;pdf)

== Synopsis

Declared in `&lt;llvm&sol;Analysis&sol;TensorSpec&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
#define SUPPORTED&lowbar;TENSOR&lowbar;TYPES(M)

----

== Description

Note that the design is motivated by Tensorflow, but it is not intended to be Tensorflow&hyphen;specific&period;

Known tensor types&period; The left part is the C type, the right is a name we can use to identify the type (to implement TensorSpec equality checks), and to use, if needed, when mapping to an underlying evaluator&apos;s type system&period; The main requirement is that the C type we use has the same size and encoding (e&period;g&period; endian&hyphen;ness) as the one used by the evaluator&period;


[.small]#Created with https://www.mrdocs.com[MrDocs]#
