1
0
mirror of https://github.com/tensorflow/haskell.git synced 2024-06-01 18:43:36 +02:00
tensorflow-haskell/docs/haddock/tensorflow-0.1.0.2/TensorFlow-Types.html
2017-10-19 20:56:38 -07:00

12 lines
143 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>TensorFlow.Types</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_TensorFlow-Types.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/TensorFlow.Types.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">tensorflow-0.1.0.2: TensorFlow bindings.</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell2010</td></tr></table><p class="caption">TensorFlow.Types</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Lists</a></li><li><a href="#g:2">Type constraints</a><ul><li><a href="#g:3">Implementation of constraints</a></li></ul></li></ul></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><span class="keyword">class</span> <a href="#t:TensorType">TensorType</a> a <span class="keyword">where</span><ul class="subs"></ul></li><li class="src short"><span class="keyword">newtype</span> <a href="#t:TensorData">TensorData</a> a = <a href="#v:TensorData">TensorData</a> {<ul class="subs"><li><a href="#v:unTensorData">unTensorData</a> :: <a href="TensorFlow-Internal-FFI.html#t:TensorData">TensorData</a></li></ul>}</li><li class="src short"><span class="keyword">class</span> <a href="TensorFlow-Types.html#t:TensorType">TensorType</a> a =&gt; <a href="#t:TensorDataType">TensorDataType</a> s a <span class="keyword">where</span><ul class="subs"></ul></li><li class="src short"><span class="keyword">newtype</span> <a href="#t:Scalar">Scalar</a> a = <a href="#v:Scalar">Scalar</a> {<ul class="subs"><li><a href="#v:unScalar">unScalar</a> :: a</li></ul>}</li><li class="src short"><span class="keyword">newtype</span> <a href="#t:Shape">Shape</a> = <a href="#v:Shape">Shape</a> [<a href="../base-4.9.1.0/Data-Int.html#t:Int64">Int64</a>]</li><li class="src short"><a href="#v:protoShape">protoShape</a> :: Lens' <a href="../tensorflow-proto-0.1.0.0/Proto-Tensorflow-Core-Framework-TensorShape.html#t:TensorShapeProto">TensorShapeProto</a> <a href="TensorFlow-Types.html#t:Shape">Shape</a></li><li class="src short"><span class="keyword">class</span> <a href="#t:Attribute">Attribute</a> a <span class="keyword">where</span><ul class="subs"></ul></li><li class="src short"><span class="keyword">data</span> <a href="#t:DataType">DataType</a> :: <a href="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ul class="subs"><li>= <a href="#v:DT_INVALID">DT_INVALID</a></li><li>| <a href="#v:DT_FLOAT">DT_FLOAT</a></li><li>| <a href="#v:DT_DOUBLE">DT_DOUBLE</a></li><li>| <a href="#v:DT_INT32">DT_INT32</a></li><li>| <a href="#v:DT_UINT8">DT_UINT8</a></li><li>| <a href="#v:DT_INT16">DT_INT16</a></li><li>| <a href="#v:DT_INT8">DT_INT8</a></li><li>| <a href="#v:DT_STRING">DT_STRING</a></li><li>| <a href="#v:DT_COMPLEX64">DT_COMPLEX64</a></li><li>| <a href="#v:DT_INT64">DT_INT64</a></li><li>| <a href="#v:DT_BOOL">DT_BOOL</a></li><li>| <a href="#v:DT_QINT8">DT_QINT8</a></li><li>| <a href="#v:DT_QUINT8">DT_QUINT8</a></li><li>| <a href="#v:DT_QINT32">DT_QINT32</a></li><li>| <a href="#v:DT_BFLOAT16">DT_BFLOAT16</a></li><li>| <a href="#v:DT_QINT16">DT_QINT16</a></li><li>| <a href="#v:DT_QUINT16">DT_QUINT16</a></li><li>| <a href="#v:DT_UINT16">DT_UINT16</a></li><li>| <a href="#v:DT_COMPLEX128">DT_COMPLEX128</a></li><li>| <a href="#v:DT_HALF">DT_HALF</a></li><li>| <a href="#v:DT_RESOURCE">DT_RESOURCE</a></li><li>| <a href="#v:DT_FLOAT_REF">DT_FLOAT_REF</a></li><li>| <a href="#v:DT_DOUBLE_REF">DT_DOUBLE_REF</a></li><li>| <a href="#v:DT_INT32_REF">DT_INT32_REF</a></li><li>| <a href="#v:DT_UINT8_REF">DT_UINT8_REF</a></li><li>| <a href="#v:DT_INT16_REF">DT_INT16_REF</a></li><li>| <a href="#v:DT_INT8_REF">DT_INT8_REF</a></li><li>| <a href="#v:DT_STRING_REF">DT_STRING_REF</a></li><li>| <a href="#v:DT_COMPLEX64_REF">DT_COMPLEX64_REF</a></li><li>| <a href="#v:DT_INT64_REF">DT_INT64_REF</a></li><li>| <a href="#v:DT_BOOL_REF">DT_BOOL_REF</a></li><li>| <a href="#v:DT_QINT8_REF">DT_QINT8_REF</a></li><li>| <a href="#v:DT_QUINT8_REF">DT_QUINT8_REF</a></li><li>| <a href="#v:DT_QINT32_REF">DT_QINT32_REF</a></li><li>| <a href="#v:DT_BFLOAT16_REF">DT_BFLOAT16_REF</a></li><li>| <a href="#v:DT_QINT16_REF">DT_QINT16_REF</a></li><li>| <a href="#v:DT_QUINT16_REF">DT_QUINT16_REF</a></li><li>| <a href="#v:DT_UINT16_REF">DT_UINT16_REF</a></li><li>| <a href="#v:DT_COMPLEX128_REF">DT_COMPLEX128_REF</a></li><li>| <a href="#v:DT_HALF_REF">DT_HALF_REF</a></li><li>| <a href="#v:DT_RESOURCE_REF">DT_RESOURCE_REF</a></li></ul></li><li class="src short"><span class="keyword">type</span> <a href="#t:ResourceHandle">ResourceHandle</a> = <a href="../tensorflow-proto-0.1.0.0/Proto-Tensorflow-Core-Framework-ResourceHandle.html#t:ResourceHandleProto">ResourceHandleProto</a></li><li class="src short"><span class="keyword">data</span> <a href="#t:ListOf">ListOf</a> f as <span class="keyword">where</span><ul class="subs"><li><a href="#v:Nil">Nil</a> :: <a href="TensorFlow-Types.html#t:ListOf">ListOf</a> f '[]</li><li><a href="#v::-47-">(:/)</a> :: f a -&gt; <a href="TensorFlow-Types.html#t:ListOf">ListOf</a> f as -&gt; <a href="TensorFlow-Types.html#t:ListOf">ListOf</a> f (a ': as)</li></ul></li><li class="src short"><span class="keyword">type</span> <a href="#t:List">List</a> = <a href="TensorFlow-Types.html#t:ListOf">ListOf</a> <a href="../base-4.9.1.0/Data-Functor-Identity.html#t:Identity">Identity</a></li><li class="src short"><a href="#v:-47-:-47-">(/:/)</a> :: a -&gt; <a href="TensorFlow-Types.html#t:List">List</a> as -&gt; <a href="TensorFlow-Types.html#t:List">List</a> (a ': as)</li><li class="src short"><span class="keyword">data</span> <a href="#t:TensorTypeProxy">TensorTypeProxy</a> a <span class="keyword">where</span><ul class="subs"><li><a href="#v:TensorTypeProxy">TensorTypeProxy</a> :: <a href="TensorFlow-Types.html#t:TensorType">TensorType</a> a =&gt; <a href="TensorFlow-Types.html#t:TensorTypeProxy">TensorTypeProxy</a> a</li></ul></li><li class="src short"><span class="keyword">class</span> <a href="#t:TensorTypes">TensorTypes</a> ts <span class="keyword">where</span><ul class="subs"></ul></li><li class="src short"><span class="keyword">type</span> <a href="#t:TensorTypeList">TensorTypeList</a> = <a href="TensorFlow-Types.html#t:ListOf">ListOf</a> <a href="TensorFlow-Types.html#t:TensorTypeProxy">TensorTypeProxy</a></li><li class="src short"><a href="#v:fromTensorTypeList">fromTensorTypeList</a> :: <a href="TensorFlow-Types.html#t:TensorTypeList">TensorTypeList</a> ts -&gt; [<a href="TensorFlow-Types.html#t:DataType">DataType</a>]</li><li class="src short"><a href="#v:fromTensorTypes">fromTensorTypes</a> :: <span class="keyword">forall</span> as. <a href="TensorFlow-Types.html#t:TensorTypes">TensorTypes</a> as =&gt; <a href="../base-4.9.1.0/Data-Proxy.html#t:Proxy">Proxy</a> as -&gt; [<a href="TensorFlow-Types.html#t:DataType">DataType</a>]</li><li class="src short"><span class="keyword">type</span> <a href="#t:OneOf">OneOf</a> ts a = (<a href="TensorFlow-Types.html#t:TensorType">TensorType</a> a, TensorTypes' ts, <a href="TensorFlow-Types.html#t:NoneOf">NoneOf</a> (<a href="TensorFlow-Types.html#t:AllTensorTypes">AllTensorTypes</a> <a href="TensorFlow-Types.html#t:-92--92-">\\</a> ts) a)</li><li class="src short"><span class="keyword">type family</span> a <a href="#t:-47--61-">/=</a> b :: <a href="../base-4.9.1.0/Data-Kind.html#t:Constraint">Constraint</a> <span class="keyword">where ...</span></li><li class="src short"><span class="keyword">type</span> <a href="#t:OneOfs">OneOfs</a> ts as = (<a href="TensorFlow-Types.html#t:TensorTypes">TensorTypes</a> as, TensorTypes' ts, NoneOfs (<a href="TensorFlow-Types.html#t:AllTensorTypes">AllTensorTypes</a> <a href="TensorFlow-Types.html#t:-92--92-">\\</a> ts) as)</li><li class="src short"><span class="keyword">data</span> <a href="#t:TypeError">TypeError</a> a</li><li class="src short"><span class="keyword">data</span> <a href="#t:ExcludedCase">ExcludedCase</a></li><li class="src short"><span class="keyword">type family</span> <a href="#t:NoneOf">NoneOf</a> ts a :: <a href="../base-4.9.1.0/Data-Kind.html#t:Constraint">Constraint</a> <span class="keyword">where ...</span></li><li class="src short"><span class="keyword">type family</span> as <a href="#t:-92--92-">\\</a> bs <span class="keyword">where ...</span></li><li class="src short"><span class="keyword">type family</span> <a href="#t:Delete">Delete</a> a as <span class="keyword">where ...</span></li><li class="src short"><span class="keyword">type</span> <a href="#t:AllTensorTypes">AllTensorTypes</a> = '[<a href="../base-4.9.1.0/Prelude.html#t:Float">Float</a>, <a href="../base-4.9.1.0/Prelude.html#t:Double">Double</a>, <a href="../base-4.9.1.0/Data-Int.html#t:Int8">Int8</a>, <a href="../base-4.9.1.0/Data-Int.html#t:Int16">Int16</a>, <a href="../base-4.9.1.0/Data-Int.html#t:Int32">Int32</a>, <a href="../base-4.9.1.0/Data-Int.html#t:Int64">Int64</a>, <a href="../base-4.9.1.0/Data-Word.html#t:Word8">Word8</a>, <a href="../base-4.9.1.0/Data-Word.html#t:Word16">Word16</a>, <a href="../bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a>, <a href="../base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a>]</li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">class</span> <a id="t:TensorType" class="def">TensorType</a> a <span class="keyword">where</span> <a href="src/TensorFlow.Types.html#TensorType" class="link">Source</a> <a href="#t:TensorType" class="selflink">#</a></p><div class="doc"><p>The class of scalar types supported by tensorflow.</p></div><div class="subs minimal"><p class="caption">Minimal complete definition</p><p class="src"><a href="TensorFlow-Types.html#v:tensorType">tensorType</a>, <a href="TensorFlow-Types.html#v:tensorRefType">tensorRefType</a>, <a href="TensorFlow-Types.html#v:tensorVal">tensorVal</a></p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a id="v:tensorType" class="def">tensorType</a> :: a -&gt; <a href="TensorFlow-Types.html#t:DataType">DataType</a> <a href="src/TensorFlow.Types.html#tensorType" class="link">Source</a> <a href="#v:tensorType" class="selflink">#</a></p><p class="src"><a id="v:tensorRefType" class="def">tensorRefType</a> :: a -&gt; <a href="TensorFlow-Types.html#t:DataType">DataType</a> <a href="src/TensorFlow.Types.html#tensorRefType" class="link">Source</a> <a href="#v:tensorRefType" class="selflink">#</a></p><p class="src"><a id="v:tensorVal" class="def">tensorVal</a> :: Lens' <a href="../tensorflow-proto-0.1.0.0/Proto-Tensorflow-Core-Framework-Tensor.html#t:TensorProto">TensorProto</a> [a] <a href="src/TensorFlow.Types.html#tensorVal" class="link">Source</a> <a href="#v:tensorVal" class="selflink">#</a></p></div><div class="subs instances"><p id="control.i:TensorType" class="caption collapser" onclick="toggleSection('i:TensorType')">Instances</p><div id="section.i:TensorType" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:TensorType:TensorType:1" class="instance expander" onclick="toggleSection('i:ic:TensorType:TensorType:1')"></span> <a href="TensorFlow-Types.html#t:TensorType">TensorType</a> <a href="../base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a></span> <a href="src/TensorFlow.Types.html#line-178" class="link">Source</a> <a href="#t:TensorType" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:TensorType:TensorType:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:tensorType">tensorType</a> :: <a href="../base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> -&gt; <a href="TensorFlow-Types.html#t:DataType">DataType</a> <a href="src/TensorFlow.Types.html#tensorType" class="link">Source</a> <a href="#v:tensorType" class="selflink">#</a></p><p class="src"><a href="#v:tensorRefType">tensorRefType</a> :: <a href="../base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> -&gt; <a href="TensorFlow-Types.html#t:DataType">DataType</a> <a href="src/TensorFlow.Types.html#tensorRefType" class="link">Source</a> <a href="#v:tensorRefType" class="selflink">#</a></p><p class="src"><a href="#v:tensorVal">tensorVal</a> :: Lens' <a href="../tensorflow-proto-0.1.0.0/Proto-Tensorflow-Core-Framework-Tensor.html#t:TensorProto">TensorProto</a> [<a href="../base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a>] <a href="src/TensorFlow.Types.html#tensorVal" class="link">Source</a> <a href="#v:tensorVal" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:TensorType:TensorType:2" class="instance expander" onclick="toggleSection('i:ic:TensorType:TensorType:2')"></span> <a href="TensorFlow-Types.html#t:TensorType">TensorType</a> <a href="../base-4.9.1.0/Prelude.html#t:Double">Double</a></span> <a href="src/TensorFlow.Types.html#line-135" class="link">Source</a> <a href="#t:TensorType" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:TensorType:TensorType:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:tensorType">tensorType</a> :: <a href="../base-4.9.1.0/Prelude.html#t:Double">Double</a> -&gt; <a href="TensorFlow-Types.html#t:DataType">DataType</a> <a href="src/TensorFlow.Types.html#tensorType" class="link">Source</a> <a href="#v:tensorType" class="selflink">#</a></p><p class="src"><a href="#v:tensorRefType">tensorRefType</a> :: <a href="../base-4.9.1.0/Prelude.html#t:Double">Double</a> -&gt; <a href="TensorFlow-Types.html#t:DataType">DataType</a> <a href="src/TensorFlow.Types.html#tensorRefType" class="link">Source</a> <a href="#v:tensorRefType" class="selflink">#</a></p><p class="src"><a href="#v:tensorVal">tensorVal</a> :: Lens' <a href="../tensorflow-proto-0.1.0.0/Proto-Tensorflow-Core-Framework-Tensor.html#t:TensorProto">TensorProto</a> [<a href="../base-4.9.1.0/Prelude.html#t:Double">Double</a>] <a href="src/TensorFlow.Types.html#tensorVal" class="link">Source</a> <a href="#v:tensorVal" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:TensorType:TensorType:3" class="instance expander" onclick="toggleSection('i:ic:TensorType:TensorType:3')"></span> <a href="TensorFlow-Types.html#t:TensorType">TensorType</a> <a href="../base-4.9.1.0/Prelude.html#t:Float">Float</a></span> <a href="src/TensorFlow.Types.html#line-130" class="link">Source</a> <a href="#t:TensorType" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:TensorType:TensorType:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:tensorType">tensorType</a> :: <a href="../base-4.9.1.0/Prelude.html#t:Float">Float</a> -&gt; <a href="TensorFlow-Types.html#t:DataType">DataType</a> <a href="src/TensorFlow.Types.html#tensorType" class="link">Source</a> <a href="#v:tensorType" class="selflink">#</a></p><p class="src"><a href="#v:tensorRefType">tensorRefType</a> :: <a href="../base-4.9.1.0/Prelude.html#t:Float">Float</a> -&gt; <a href="TensorFlow-Types.html#t:DataType">DataType</a> <a href="src/TensorFlow.Types.html#tensorRefType" class="link">Source</a> <a href="#v:tensorRefType" class="selflink">#</a></p><p class="src"><a href="#v:tensorVal">tensorVal</a> :: Lens' <a href="../tensorflow-proto-0.1.0.0/Proto-Tensorflow-Core-Framework-Tensor.html#t:TensorProto">TensorProto</a> [<a href="../base-4.9.1.0/Prelude.html#t:Float">Float</a>] <a href="src/TensorFlow.Types.html#tensorVal" class="link">Source</a> <a href="#v:tensorVal" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:TensorType:TensorType:4" class="instance expander" onclick="toggleSection('i:ic:TensorType:TensorType:4')"></span> <a href="TensorFlow-Types.html#t:TensorType">TensorType</a> <a href="../base-4.9.1.0/Data-Int.html#t:Int8">Int8</a></span> <a href="src/TensorFlow.Types.html#line-168" class="link">Source</a> <a href="#t:TensorType" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:TensorType:TensorType:4" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:tensorType">tensorType</a> :: <a href="../base-4.9.1.0/Data-Int.html#t:Int8">Int8</a> -&gt; <a href="TensorFlow-Types.html#t:DataType">DataType</a> <a href="src/TensorFlow.Types.html#tensorType" class="link">Source</a> <a href="#v:tensorType" class="selflink">#</a></p><p class="src"><a href="#v:tensorRefType">tensorRefType</a> :: <a href="../base-4.9.1.0/Data-Int.html#t:Int8">Int8</a> -&gt; <a href="TensorFlow-Types.html#t:DataType">DataType</a> <a href="src/TensorFlow.Types.html#tensorRefType" class="link">Source</a> <a href="#v:tensorRefType" class="selflink">#</a></p><p class="src"><a href="#v:tensorVal">tensorVal</a> :: Lens' <a href="../tensorflow-proto-0.1.0.0/Proto-Tensorflow-Core-Framework-Tensor.html#t:TensorProto">TensorProto</a> [<a href="../base-4.9.1.0/Data-Int.html#t:Int8">Int8</a>] <a href="src/TensorFlow.Types.html#tensorVal" class="link">Source</a> <a href="#v:tensorVal" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:TensorType:TensorType:5" class="instance expander" onclick="toggleSection('i:ic:TensorType:TensorType:5')"></span> <a href="TensorFlow-Types.html#t:TensorType">TensorType</a> <a href="../base-4.9.1.0/Data-Int.html#t:Int16">Int16</a></span> <a href="src/TensorFlow.Types.html#line-163" class="link">Source</a> <a href="#t:TensorType" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:TensorType:TensorType:5" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:tensorType">tensorType</a> :: <a href="../base-4.9.1.0/Data-Int.html#t:Int16">Int16</a> -&gt; <a href="TensorFlow-Types.html#t:DataType">DataType</a> <a href="src/TensorFlow.Types.html#tensorType" class="link">Source</a> <a href="#v:tensorType" class="selflink">#</a></p><p class="src"><a href="#v:tensorRefType">tensorRefType</a> :: <a href="../base-4.9.1.0/Data-Int.html#t:Int16">Int16</a> -&gt; <a href="TensorFlow-Types.html#t:DataType">DataType</a> <a href="src/TensorFlow.Types.html#tensorRefType" class="link">Source</a> <a href="#v:tensorRefType" class="selflink">#</a></p><p class="src"><a href="#v:tensorVal">tensorVal</a> :: Lens' <a href="../tensorflow-proto-0.1.0.0/Proto-Tensorflow-Core-Framework-Tensor.html#t:TensorProto">TensorProto</a> [<a href="../base-4.9.1.0/Data-Int.html#t:Int16">Int16</a>] <a href="src/TensorFlow.Types.html#tensorVal" class="link">Source</a> <a href="#v:tensorVal" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:TensorType:TensorType:6" class="instance expander" onclick="toggleSection('i:ic:TensorType:TensorType:6')"></span> <a href="TensorFlow-Types.html#t:TensorType">TensorType</a> <a href="../base-4.9.1.0/Data-Int.html#t:Int32">Int32</a></span> <a href="src/TensorFlow.Types.html#line-140" class="link">Source</a> <a href="#t:TensorType" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:TensorType:TensorType:6" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:tensorType">tensorType</a> :: <a href="../base-4.9.1.0/Data-Int.html#t:Int32">Int32</a> -&gt; <a href="TensorFlow-Types.html#t:DataType">DataType</a> <a href="src/TensorFlow.Types.html#tensorType" class="link">Source</a> <a href="#v:tensorType" class="selflink">#</a></p><p class="src"><a href="#v:tensorRefType">tensorRefType</a> :: <a href="../base-4.9.1.0/Data-Int.html#t:Int32">Int32</a> -&gt; <a href="TensorFlow-Types.html#t:DataType">DataType</a> <a href="src/TensorFlow.Types.html#tensorRefType" class="link">Source</a> <a href="#v:tensorRefType" class="selflink">#</a></p><p class="src"><a href="#v:tensorVal">tensorVal</a> :: Lens' <a href="../tensorflow-proto-0.1.0.0/Proto-Tensorflow-Core-Framework-Tensor.html#t:TensorProto">TensorProto</a> [<a href="../base-4.9.1.0/Data-Int.html#t:Int32">Int32</a>] <a href="src/TensorFlow.Types.html#tensorVal" class="link">Source</a> <a href="#v:tensorVal" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:TensorType:TensorType:7" class="instance expander" onclick="toggleSection('i:ic:TensorType:TensorType:7')"></span> <a href="TensorFlow-Types.html#t:TensorType">TensorType</a> <a href="../base-4.9.1.0/Data-Int.html#t:Int64">Int64</a></span> <a href="src/TensorFlow.Types.html#line-145" class="link">Source</a> <a href="#t:TensorType" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:TensorType:TensorType:7" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:tensorType">tensorType</a> :: <a href="../base-4.9.1.0/Data-Int.html#t:Int64">Int64</a> -&gt; <a href="TensorFlow-Types.html#t:DataType">DataType</a> <a href="src/TensorFlow.Types.html#tensorType" class="link">Source</a> <a href="#v:tensorType" class="selflink">#</a></p><p class="src"><a href="#v:tensorRefType">tensorRefType</a> :: <a href="../base-4.9.1.0/Data-Int.html#t:Int64">Int64</a> -&gt; <a href="TensorFlow-Types.html#t:DataType">DataType</a> <a href="src/TensorFlow.Types.html#tensorRefType" class="link">Source</a> <a href="#v:tensorRefType" class="selflink">#</a></p><p class="src"><a href="#v:tensorVal">tensorVal</a> :: Lens' <a href="../tensorflow-proto-0.1.0.0/Proto-Tensorflow-Core-Framework-Tensor.html#t:TensorProto">TensorProto</a> [<a href="../base-4.9.1.0/Data-Int.html#t:Int64">Int64</a>] <a href="src/TensorFlow.Types.html#tensorVal" class="link">Source</a> <a href="#v:tensorVal" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:TensorType:TensorType:8" class="instance expander" onclick="toggleSection('i:ic:TensorType:TensorType:8')"></span> <a href="TensorFlow-Types.html#t:TensorType">TensorType</a> <a href="../base-4.9.1.0/Data-Word.html#t:Word8">Word8</a></span> <a href="src/TensorFlow.Types.html#line-153" class="link">Source</a> <a href="#t:TensorType" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:TensorType:TensorType:8" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:tensorType">tensorType</a> :: <a href="../base-4.9.1.0/Data-Word.html#t:Word8">Word8</a> -&gt; <a href="TensorFlow-Types.html#t:DataType">DataType</a> <a href="src/TensorFlow.Types.html#tensorType" class="link">Source</a> <a href="#v:tensorType" class="selflink">#</a></p><p class="src"><a href="#v:tensorRefType">tensorRefType</a> :: <a href="../base-4.9.1.0/Data-Word.html#t:Word8">Word8</a> -&gt; <a href="TensorFlow-Types.html#t:DataType">DataType</a> <a href="src/TensorFlow.Types.html#tensorRefType" class="link">Source</a> <a href="#v:tensorRefType" class="selflink">#</a></p><p class="src"><a href="#v:tensorVal">tensorVal</a> :: Lens' <a href="../tensorflow-proto-0.1.0.0/Proto-Tensorflow-Core-Framework-Tensor.html#t:TensorProto">TensorProto</a> [<a href="../base-4.9.1.0/Data-Word.html#t:Word8">Word8</a>] <a href="src/TensorFlow.Types.html#tensorVal" class="link">Source</a> <a href="#v:tensorVal" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:TensorType:TensorType:9" class="instance expander" onclick="toggleSection('i:ic:TensorType:TensorType:9')"></span> <a href="TensorFlow-Types.html#t:TensorType">TensorType</a> <a href="../base-4.9.1.0/Data-Word.html#t:Word16">Word16</a></span> <a href="src/TensorFlow.Types.html#line-158" class="link">Source</a> <a href="#t:TensorType" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:TensorType:TensorType:9" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:tensorType">tensorType</a> :: <a href="../base-4.9.1.0/Data-Word.html#t:Word16">Word16</a> -&gt; <a href="TensorFlow-Types.html#t:DataType">DataType</a> <a href="src/TensorFlow.Types.html#tensorType" class="link">Source</a> <a href="#v:tensorType" class="selflink">#</a></p><p class="src"><a href="#v:tensorRefType">tensorRefType</a> :: <a href="../base-4.9.1.0/Data-Word.html#t:Word16">Word16</a> -&gt; <a href="TensorFlow-Types.html#t:DataType">DataType</a> <a href="src/TensorFlow.Types.html#tensorRefType" class="link">Source</a> <a href="#v:tensorRefType" class="selflink">#</a></p><p class="src"><a href="#v:tensorVal">tensorVal</a> :: Lens' <a href="../tensorflow-proto-0.1.0.0/Proto-Tensorflow-Core-Framework-Tensor.html#t:TensorProto">TensorProto</a> [<a href="../base-4.9.1.0/Data-Word.html#t:Word16">Word16</a>] <a href="src/TensorFlow.Types.html#tensorVal" class="link">Source</a> <a href="#v:tensorVal" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:TensorType:TensorType:10" class="instance expander" onclick="toggleSection('i:ic:TensorType:TensorType:10')"></span> <a href="TensorFlow-Types.html#t:TensorType">TensorType</a> <a href="../bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a></span> <a href="src/TensorFlow.Types.html#line-173" class="link">Source</a> <a href="#t:TensorType" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:TensorType:TensorType:10" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:tensorType">tensorType</a> :: <a href="../bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a> -&gt; <a href="TensorFlow-Types.html#t:DataType">DataType</a> <a href="src/TensorFlow.Types.html#tensorType" class="link">Source</a> <a href="#v:tensorType" class="selflink">#</a></p><p class="src"><a href="#v:tensorRefType">tensorRefType</a> :: <a href="../bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a> -&gt; <a href="TensorFlow-Types.html#t:DataType">DataType</a> <a href="src/TensorFlow.Types.html#tensorRefType" class="link">Source</a> <a href="#v:tensorRefType" class="selflink">#</a></p><p class="src"><a href="#v:tensorVal">tensorVal</a> :: Lens' <a href="../tensorflow-proto-0.1.0.0/Proto-Tensorflow-Core-Framework-Tensor.html#t:TensorProto">TensorProto</a> [<a href="../bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a>] <a href="src/TensorFlow.Types.html#tensorVal" class="link">Source</a> <a href="#v:tensorVal" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:TensorType:TensorType:11" class="instance expander" onclick="toggleSection('i:ic:TensorType:TensorType:11')"></span> <a href="TensorFlow-Types.html#t:TensorType">TensorType</a> <a href="TensorFlow-Types.html#t:ResourceHandle">ResourceHandle</a></span> <a href="src/TensorFlow.Types.html#line-193" class="link">Source</a> <a href="#t:TensorType" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:TensorType:TensorType:11" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:tensorType">tensorType</a> :: <a href="TensorFlow-Types.html#t:ResourceHandle">ResourceHandle</a> -&gt; <a href="TensorFlow-Types.html#t:DataType">DataType</a> <a href="src/TensorFlow.Types.html#tensorType" class="link">Source</a> <a href="#v:tensorType" class="selflink">#</a></p><p class="src"><a href="#v:tensorRefType">tensorRefType</a> :: <a href="TensorFlow-Types.html#t:ResourceHandle">ResourceHandle</a> -&gt; <a href="TensorFlow-Types.html#t:DataType">DataType</a> <a href="src/TensorFlow.Types.html#tensorRefType" class="link">Source</a> <a href="#v:tensorRefType" class="selflink">#</a></p><p class="src"><a href="#v:tensorVal">tensorVal</a> :: Lens' <a href="../tensorflow-proto-0.1.0.0/Proto-Tensorflow-Core-Framework-Tensor.html#t:TensorProto">TensorProto</a> [<a href="TensorFlow-Types.html#t:ResourceHandle">ResourceHandle</a>] <a href="src/TensorFlow.Types.html#tensorVal" class="link">Source</a> <a href="#v:tensorVal" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:TensorType:TensorType:12" class="instance expander" onclick="toggleSection('i:ic:TensorType:TensorType:12')"></span> <a href="TensorFlow-Types.html#t:TensorType">TensorType</a> (<a href="../base-4.9.1.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.9.1.0/Prelude.html#t:Double">Double</a>)</span> <a href="src/TensorFlow.Types.html#line-188" class="link">Source</a> <a href="#t:TensorType" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:TensorType:TensorType:12" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:tensorType">tensorType</a> :: <a href="../base-4.9.1.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.9.1.0/Prelude.html#t:Double">Double</a> -&gt; <a href="TensorFlow-Types.html#t:DataType">DataType</a> <a href="src/TensorFlow.Types.html#tensorType" class="link">Source</a> <a href="#v:tensorType" class="selflink">#</a></p><p class="src"><a href="#v:tensorRefType">tensorRefType</a> :: <a href="../base-4.9.1.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.9.1.0/Prelude.html#t:Double">Double</a> -&gt; <a href="TensorFlow-Types.html#t:DataType">DataType</a> <a href="src/TensorFlow.Types.html#tensorRefType" class="link">Source</a> <a href="#v:tensorRefType" class="selflink">#</a></p><p class="src"><a href="#v:tensorVal">tensorVal</a> :: Lens' <a href="../tensorflow-proto-0.1.0.0/Proto-Tensorflow-Core-Framework-Tensor.html#t:TensorProto">TensorProto</a> [<a href="../base-4.9.1.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.9.1.0/Prelude.html#t:Double">Double</a>] <a href="src/TensorFlow.Types.html#tensorVal" class="link">Source</a> <a href="#v:tensorVal" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:TensorType:TensorType:13" class="instance expander" onclick="toggleSection('i:ic:TensorType:TensorType:13')"></span> <a href="TensorFlow-Types.html#t:TensorType">TensorType</a> (<a href="../base-4.9.1.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.9.1.0/Prelude.html#t:Float">Float</a>)</span> <a href="src/TensorFlow.Types.html#line-183" class="link">Source</a> <a href="#t:TensorType" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:TensorType:TensorType:13" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:tensorType">tensorType</a> :: <a href="../base-4.9.1.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.9.1.0/Prelude.html#t:Float">Float</a> -&gt; <a href="TensorFlow-Types.html#t:DataType">DataType</a> <a href="src/TensorFlow.Types.html#tensorType" class="link">Source</a> <a href="#v:tensorType" class="selflink">#</a></p><p class="src"><a href="#v:tensorRefType">tensorRefType</a> :: <a href="../base-4.9.1.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.9.1.0/Prelude.html#t:Float">Float</a> -&gt; <a href="TensorFlow-Types.html#t:DataType">DataType</a> <a href="src/TensorFlow.Types.html#tensorRefType" class="link">Source</a> <a href="#v:tensorRefType" class="selflink">#</a></p><p class="src"><a href="#v:tensorVal">tensorVal</a> :: Lens' <a href="../tensorflow-proto-0.1.0.0/Proto-Tensorflow-Core-Framework-Tensor.html#t:TensorProto">TensorProto</a> [<a href="../base-4.9.1.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.9.1.0/Prelude.html#t:Float">Float</a>] <a href="src/TensorFlow.Types.html#tensorVal" class="link">Source</a> <a href="#v:tensorVal" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">newtype</span> <a id="t:TensorData" class="def">TensorData</a> a <a href="src/TensorFlow.Types.html#TensorData" class="link">Source</a> <a href="#t:TensorData" class="selflink">#</a></p><div class="doc"><p>Tensor data with the correct memory layout for tensorflow.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:TensorData" class="def">TensorData</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><ul><li><dfn class="src"><a id="v:unTensorData" class="def">unTensorData</a> :: <a href="TensorFlow-Internal-FFI.html#t:TensorData">TensorData</a></dfn><div class="doc empty">&nbsp;</div></li></ul></div></td></tr></table></div><div class="subs instances"><p id="control.i:TensorData" class="caption collapser" onclick="toggleSection('i:TensorData')">Instances</p><div id="section.i:TensorData" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:TensorData:Fetchable:1" class="instance expander" onclick="toggleSection('i:id:TensorData:Fetchable:1')"></span> (<a href="TensorFlow-Types.html#t:TensorType">TensorType</a> a, (~) <a href="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a> a a') =&gt; <a href="TensorFlow-Nodes.html#t:Fetchable">Fetchable</a> (<a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a) (<a href="TensorFlow-Types.html#t:TensorData">TensorData</a> a')</span> <a href="src/TensorFlow.Nodes.html#line-142" class="link">Source</a> <a href="#t:Fetchable" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:TensorData:Fetchable:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:getFetch">getFetch</a> :: <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -&gt; <a href="TensorFlow-Build.html#t:Build">Build</a> (<a href="TensorFlow-Nodes.html#t:Fetch">Fetch</a> (<a href="TensorFlow-Types.html#t:TensorData">TensorData</a> a')) <a href="src/TensorFlow.Nodes.html#getFetch" class="link">Source</a> <a href="#v:getFetch" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">class</span> <a href="TensorFlow-Types.html#t:TensorType">TensorType</a> a =&gt; <a id="t:TensorDataType" class="def">TensorDataType</a> s a <span class="keyword">where</span> <a href="src/TensorFlow.Types.html#TensorDataType" class="link">Source</a> <a href="#t:TensorDataType" class="selflink">#</a></p><div class="doc"><p>Types that can be converted to and from <code><a href="TensorFlow-Types.html#t:TensorData">TensorData</a></code>.</p><p><code>Vector</code> is the most efficient to encode/decode for most element types.</p></div><div class="subs minimal"><p class="caption">Minimal complete definition</p><p class="src"><a href="TensorFlow-Types.html#v:decodeTensorData">decodeTensorData</a>, <a href="TensorFlow-Types.html#v:encodeTensorData">encodeTensorData</a></p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a id="v:decodeTensorData" class="def">decodeTensorData</a> :: <a href="TensorFlow-Types.html#t:TensorData">TensorData</a> a -&gt; s a <a href="src/TensorFlow.Types.html#decodeTensorData" class="link">Source</a> <a href="#v:decodeTensorData" class="selflink">#</a></p><div class="doc"><p>Decode the bytes of a <code><a href="TensorFlow-Types.html#t:TensorData">TensorData</a></code> into an <code><a href="../tensorflow-proto-0.1.0.0/Proto-Tensorflow-Core-Framework-AttrValue.html#v:s">s</a></code>.</p></div><p class="src"><a id="v:encodeTensorData" class="def">encodeTensorData</a> :: <a href="TensorFlow-Types.html#t:Shape">Shape</a> -&gt; s a -&gt; <a href="TensorFlow-Types.html#t:TensorData">TensorData</a> a <a href="src/TensorFlow.Types.html#encodeTensorData" class="link">Source</a> <a href="#v:encodeTensorData" class="selflink">#</a></p><div class="doc"><p>Encode an <code><a href="../tensorflow-proto-0.1.0.0/Proto-Tensorflow-Core-Framework-AttrValue.html#v:s">s</a></code> into a <code><a href="TensorFlow-Types.html#t:TensorData">TensorData</a></code>.</p><p>The values should be in row major order, e.g.,</p><p>element 0: index (0, ..., 0)
element 1: index (0, ..., 1)
...</p></div></div><div class="subs instances"><p id="control.i:TensorDataType" class="caption collapser" onclick="toggleSection('i:TensorDataType')">Instances</p><div id="section.i:TensorDataType" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:TensorDataType:TensorDataType:1" class="instance expander" onclick="toggleSection('i:ic:TensorDataType:TensorDataType:1')"></span> <a href="TensorFlow-Types.html#t:TensorDataType">TensorDataType</a> Vector <a href="../base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a></span> <a href="src/TensorFlow.Types.html#line-268" class="link">Source</a> <a href="#t:TensorDataType" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:TensorDataType:TensorDataType:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:decodeTensorData">decodeTensorData</a> :: <a href="TensorFlow-Types.html#t:TensorData">TensorData</a> <a href="../base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> -&gt; Vector <a href="../base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="src/TensorFlow.Types.html#decodeTensorData" class="link">Source</a> <a href="#v:decodeTensorData" class="selflink">#</a></p><p class="src"><a href="#v:encodeTensorData">encodeTensorData</a> :: <a href="TensorFlow-Types.html#t:Shape">Shape</a> -&gt; Vector <a href="../base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> -&gt; <a href="TensorFlow-Types.html#t:TensorData">TensorData</a> <a href="../base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="src/TensorFlow.Types.html#encodeTensorData" class="link">Source</a> <a href="#v:encodeTensorData" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:TensorDataType:TensorDataType:2" class="instance expander" onclick="toggleSection('i:ic:TensorDataType:TensorDataType:2')"></span> <a href="TensorFlow-Types.html#t:TensorDataType">TensorDataType</a> Vector <a href="../base-4.9.1.0/Prelude.html#t:Double">Double</a></span> <a href="src/TensorFlow.Types.html#line-238" class="link">Source</a> <a href="#t:TensorDataType" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:TensorDataType:TensorDataType:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:decodeTensorData">decodeTensorData</a> :: <a href="TensorFlow-Types.html#t:TensorData">TensorData</a> <a href="../base-4.9.1.0/Prelude.html#t:Double">Double</a> -&gt; Vector <a href="../base-4.9.1.0/Prelude.html#t:Double">Double</a> <a href="src/TensorFlow.Types.html#decodeTensorData" class="link">Source</a> <a href="#v:decodeTensorData" class="selflink">#</a></p><p class="src"><a href="#v:encodeTensorData">encodeTensorData</a> :: <a href="TensorFlow-Types.html#t:Shape">Shape</a> -&gt; Vector <a href="../base-4.9.1.0/Prelude.html#t:Double">Double</a> -&gt; <a href="TensorFlow-Types.html#t:TensorData">TensorData</a> <a href="../base-4.9.1.0/Prelude.html#t:Double">Double</a> <a href="src/TensorFlow.Types.html#encodeTensorData" class="link">Source</a> <a href="#v:encodeTensorData" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:TensorDataType:TensorDataType:3" class="instance expander" onclick="toggleSection('i:ic:TensorDataType:TensorDataType:3')"></span> <a href="TensorFlow-Types.html#t:TensorDataType">TensorDataType</a> Vector <a href="../base-4.9.1.0/Prelude.html#t:Float">Float</a></span> <a href="src/TensorFlow.Types.html#line-234" class="link">Source</a> <a href="#t:TensorDataType" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:TensorDataType:TensorDataType:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:decodeTensorData">decodeTensorData</a> :: <a href="TensorFlow-Types.html#t:TensorData">TensorData</a> <a href="../base-4.9.1.0/Prelude.html#t:Float">Float</a> -&gt; Vector <a href="../base-4.9.1.0/Prelude.html#t:Float">Float</a> <a href="src/TensorFlow.Types.html#decodeTensorData" class="link">Source</a> <a href="#v:decodeTensorData" class="selflink">#</a></p><p class="src"><a href="#v:encodeTensorData">encodeTensorData</a> :: <a href="TensorFlow-Types.html#t:Shape">Shape</a> -&gt; Vector <a href="../base-4.9.1.0/Prelude.html#t:Float">Float</a> -&gt; <a href="TensorFlow-Types.html#t:TensorData">TensorData</a> <a href="../base-4.9.1.0/Prelude.html#t:Float">Float</a> <a href="src/TensorFlow.Types.html#encodeTensorData" class="link">Source</a> <a href="#v:encodeTensorData" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:TensorDataType:TensorDataType:4" class="instance expander" onclick="toggleSection('i:ic:TensorDataType:TensorDataType:4')"></span> <a href="TensorFlow-Types.html#t:TensorDataType">TensorDataType</a> Vector <a href="../base-4.9.1.0/Data-Int.html#t:Int8">Int8</a></span> <a href="src/TensorFlow.Types.html#line-242" class="link">Source</a> <a href="#t:TensorDataType" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:TensorDataType:TensorDataType:4" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:decodeTensorData">decodeTensorData</a> :: <a href="TensorFlow-Types.html#t:TensorData">TensorData</a> <a href="../base-4.9.1.0/Data-Int.html#t:Int8">Int8</a> -&gt; Vector <a href="../base-4.9.1.0/Data-Int.html#t:Int8">Int8</a> <a href="src/TensorFlow.Types.html#decodeTensorData" class="link">Source</a> <a href="#v:decodeTensorData" class="selflink">#</a></p><p class="src"><a href="#v:encodeTensorData">encodeTensorData</a> :: <a href="TensorFlow-Types.html#t:Shape">Shape</a> -&gt; Vector <a href="../base-4.9.1.0/Data-Int.html#t:Int8">Int8</a> -&gt; <a href="TensorFlow-Types.html#t:TensorData">TensorData</a> <a href="../base-4.9.1.0/Data-Int.html#t:Int8">Int8</a> <a href="src/TensorFlow.Types.html#encodeTensorData" class="link">Source</a> <a href="#v:encodeTensorData" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:TensorDataType:TensorDataType:5" class="instance expander" onclick="toggleSection('i:ic:TensorDataType:TensorDataType:5')"></span> <a href="TensorFlow-Types.html#t:TensorDataType">TensorDataType</a> Vector <a href="../base-4.9.1.0/Data-Int.html#t:Int16">Int16</a></span> <a href="src/TensorFlow.Types.html#line-246" class="link">Source</a> <a href="#t:TensorDataType" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:TensorDataType:TensorDataType:5" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:decodeTensorData">decodeTensorData</a> :: <a href="TensorFlow-Types.html#t:TensorData">TensorData</a> <a href="../base-4.9.1.0/Data-Int.html#t:Int16">Int16</a> -&gt; Vector <a href="../base-4.9.1.0/Data-Int.html#t:Int16">Int16</a> <a href="src/TensorFlow.Types.html#decodeTensorData" class="link">Source</a> <a href="#v:decodeTensorData" class="selflink">#</a></p><p class="src"><a href="#v:encodeTensorData">encodeTensorData</a> :: <a href="TensorFlow-Types.html#t:Shape">Shape</a> -&gt; Vector <a href="../base-4.9.1.0/Data-Int.html#t:Int16">Int16</a> -&gt; <a href="TensorFlow-Types.html#t:TensorData">TensorData</a> <a href="../base-4.9.1.0/Data-Int.html#t:Int16">Int16</a> <a href="src/TensorFlow.Types.html#encodeTensorData" class="link">Source</a> <a href="#v:encodeTensorData" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:TensorDataType:TensorDataType:6" class="instance expander" onclick="toggleSection('i:ic:TensorDataType:TensorDataType:6')"></span> <a href="TensorFlow-Types.html#t:TensorDataType">TensorDataType</a> Vector <a href="../base-4.9.1.0/Data-Int.html#t:Int32">Int32</a></span> <a href="src/TensorFlow.Types.html#line-250" class="link">Source</a> <a href="#t:TensorDataType" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:TensorDataType:TensorDataType:6" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:decodeTensorData">decodeTensorData</a> :: <a href="TensorFlow-Types.html#t:TensorData">TensorData</a> <a href="../base-4.9.1.0/Data-Int.html#t:Int32">Int32</a> -&gt; Vector <a href="../base-4.9.1.0/Data-Int.html#t:Int32">Int32</a> <a href="src/TensorFlow.Types.html#decodeTensorData" class="link">Source</a> <a href="#v:decodeTensorData" class="selflink">#</a></p><p class="src"><a href="#v:encodeTensorData">encodeTensorData</a> :: <a href="TensorFlow-Types.html#t:Shape">Shape</a> -&gt; Vector <a href="../base-4.9.1.0/Data-Int.html#t:Int32">Int32</a> -&gt; <a href="TensorFlow-Types.html#t:TensorData">TensorData</a> <a href="../base-4.9.1.0/Data-Int.html#t:Int32">Int32</a> <a href="src/TensorFlow.Types.html#encodeTensorData" class="link">Source</a> <a href="#v:encodeTensorData" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:TensorDataType:TensorDataType:7" class="instance expander" onclick="toggleSection('i:ic:TensorDataType:TensorDataType:7')"></span> <a href="TensorFlow-Types.html#t:TensorDataType">TensorDataType</a> Vector <a href="../base-4.9.1.0/Data-Int.html#t:Int64">Int64</a></span> <a href="src/TensorFlow.Types.html#line-254" class="link">Source</a> <a href="#t:TensorDataType" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:TensorDataType:TensorDataType:7" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:decodeTensorData">decodeTensorData</a> :: <a href="TensorFlow-Types.html#t:TensorData">TensorData</a> <a href="../base-4.9.1.0/Data-Int.html#t:Int64">Int64</a> -&gt; Vector <a href="../base-4.9.1.0/Data-Int.html#t:Int64">Int64</a> <a href="src/TensorFlow.Types.html#decodeTensorData" class="link">Source</a> <a href="#v:decodeTensorData" class="selflink">#</a></p><p class="src"><a href="#v:encodeTensorData">encodeTensorData</a> :: <a href="TensorFlow-Types.html#t:Shape">Shape</a> -&gt; Vector <a href="../base-4.9.1.0/Data-Int.html#t:Int64">Int64</a> -&gt; <a href="TensorFlow-Types.html#t:TensorData">TensorData</a> <a href="../base-4.9.1.0/Data-Int.html#t:Int64">Int64</a> <a href="src/TensorFlow.Types.html#encodeTensorData" class="link">Source</a> <a href="#v:encodeTensorData" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:TensorDataType:TensorDataType:8" class="instance expander" onclick="toggleSection('i:ic:TensorDataType:TensorDataType:8')"></span> <a href="TensorFlow-Types.html#t:TensorDataType">TensorDataType</a> Vector <a href="../base-4.9.1.0/Data-Word.html#t:Word8">Word8</a></span> <a href="src/TensorFlow.Types.html#line-258" class="link">Source</a> <a href="#t:TensorDataType" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:TensorDataType:TensorDataType:8" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:decodeTensorData">decodeTensorData</a> :: <a href="TensorFlow-Types.html#t:TensorData">TensorData</a> <a href="../base-4.9.1.0/Data-Word.html#t:Word8">Word8</a> -&gt; Vector <a href="../base-4.9.1.0/Data-Word.html#t:Word8">Word8</a> <a href="src/TensorFlow.Types.html#decodeTensorData" class="link">Source</a> <a href="#v:decodeTensorData" class="selflink">#</a></p><p class="src"><a href="#v:encodeTensorData">encodeTensorData</a> :: <a href="TensorFlow-Types.html#t:Shape">Shape</a> -&gt; Vector <a href="../base-4.9.1.0/Data-Word.html#t:Word8">Word8</a> -&gt; <a href="TensorFlow-Types.html#t:TensorData">TensorData</a> <a href="../base-4.9.1.0/Data-Word.html#t:Word8">Word8</a> <a href="src/TensorFlow.Types.html#encodeTensorData" class="link">Source</a> <a href="#v:encodeTensorData" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:TensorDataType:TensorDataType:9" class="instance expander" onclick="toggleSection('i:ic:TensorDataType:TensorDataType:9')"></span> <a href="TensorFlow-Types.html#t:TensorDataType">TensorDataType</a> Vector <a href="../base-4.9.1.0/Data-Word.html#t:Word16">Word16</a></span> <a href="src/TensorFlow.Types.html#line-262" class="link">Source</a> <a href="#t:TensorDataType" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:TensorDataType:TensorDataType:9" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:decodeTensorData">decodeTensorData</a> :: <a href="TensorFlow-Types.html#t:TensorData">TensorData</a> <a href="../base-4.9.1.0/Data-Word.html#t:Word16">Word16</a> -&gt; Vector <a href="../base-4.9.1.0/Data-Word.html#t:Word16">Word16</a> <a href="src/TensorFlow.Types.html#decodeTensorData" class="link">Source</a> <a href="#v:decodeTensorData" class="selflink">#</a></p><p class="src"><a href="#v:encodeTensorData">encodeTensorData</a> :: <a href="TensorFlow-Types.html#t:Shape">Shape</a> -&gt; Vector <a href="../base-4.9.1.0/Data-Word.html#t:Word16">Word16</a> -&gt; <a href="TensorFlow-Types.html#t:TensorData">TensorData</a> <a href="../base-4.9.1.0/Data-Word.html#t:Word16">Word16</a> <a href="src/TensorFlow.Types.html#encodeTensorData" class="link">Source</a> <a href="#v:encodeTensorData" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:TensorDataType:TensorDataType:10" class="instance expander" onclick="toggleSection('i:ic:TensorDataType:TensorDataType:10')"></span> (<a href="../base-4.9.1.0/Foreign-Storable.html#t:Storable">Storable</a> a, <a href="TensorFlow-Types.html#t:TensorDataType">TensorDataType</a> Vector a, <a href="TensorFlow-Types.html#t:TensorType">TensorType</a> a) =&gt; <a href="TensorFlow-Types.html#t:TensorDataType">TensorDataType</a> Vector a</span> <a href="src/TensorFlow.Types.html#line-276" class="link">Source</a> <a href="#t:TensorDataType" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:TensorDataType:TensorDataType:10" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:decodeTensorData">decodeTensorData</a> :: <a href="TensorFlow-Types.html#t:TensorData">TensorData</a> a -&gt; Vector a <a href="src/TensorFlow.Types.html#decodeTensorData" class="link">Source</a> <a href="#v:decodeTensorData" class="selflink">#</a></p><p class="src"><a href="#v:encodeTensorData">encodeTensorData</a> :: <a href="TensorFlow-Types.html#t:Shape">Shape</a> -&gt; Vector a -&gt; <a href="TensorFlow-Types.html#t:TensorData">TensorData</a> a <a href="src/TensorFlow.Types.html#encodeTensorData" class="link">Source</a> <a href="#v:encodeTensorData" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:TensorDataType:TensorDataType:11" class="instance expander" onclick="toggleSection('i:ic:TensorDataType:TensorDataType:11')"></span> <a href="TensorFlow-Types.html#t:TensorDataType">TensorDataType</a> Vector <a href="../bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a></span> <a href="src/TensorFlow.Types.html#line-289" class="link">Source</a> <a href="#t:TensorDataType" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:TensorDataType:TensorDataType:11" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:decodeTensorData">decodeTensorData</a> :: <a href="TensorFlow-Types.html#t:TensorData">TensorData</a> <a href="../bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a> -&gt; Vector <a href="../bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a> <a href="src/TensorFlow.Types.html#decodeTensorData" class="link">Source</a> <a href="#v:decodeTensorData" class="selflink">#</a></p><p class="src"><a href="#v:encodeTensorData">encodeTensorData</a> :: <a href="TensorFlow-Types.html#t:Shape">Shape</a> -&gt; Vector <a href="../bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a> -&gt; <a href="TensorFlow-Types.html#t:TensorData">TensorData</a> <a href="../bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a> <a href="src/TensorFlow.Types.html#encodeTensorData" class="link">Source</a> <a href="#v:encodeTensorData" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:TensorDataType:TensorDataType:12" class="instance expander" onclick="toggleSection('i:ic:TensorDataType:TensorDataType:12')"></span> (<a href="TensorFlow-Types.html#t:TensorDataType">TensorDataType</a> Vector a, <a href="TensorFlow-Types.html#t:TensorType">TensorType</a> a) =&gt; <a href="TensorFlow-Types.html#t:TensorDataType">TensorDataType</a> <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a</span> <a href="src/TensorFlow.Types.html#line-343" class="link">Source</a> <a href="#t:TensorDataType" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:TensorDataType:TensorDataType:12" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:decodeTensorData">decodeTensorData</a> :: <a href="TensorFlow-Types.html#t:TensorData">TensorData</a> a -&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a <a href="src/TensorFlow.Types.html#decodeTensorData" class="link">Source</a> <a href="#v:decodeTensorData" class="selflink">#</a></p><p class="src"><a href="#v:encodeTensorData">encodeTensorData</a> :: <a href="TensorFlow-Types.html#t:Shape">Shape</a> -&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="TensorFlow-Types.html#t:TensorData">TensorData</a> a <a href="src/TensorFlow.Types.html#encodeTensorData" class="link">Source</a> <a href="#v:encodeTensorData" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:TensorDataType:TensorDataType:13" class="instance expander" onclick="toggleSection('i:ic:TensorDataType:TensorDataType:13')"></span> <a href="TensorFlow-Types.html#t:TensorDataType">TensorDataType</a> Vector (<a href="../base-4.9.1.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.9.1.0/Prelude.html#t:Double">Double</a>)</span> <a href="src/TensorFlow.Types.html#line-285" class="link">Source</a> <a href="#t:TensorDataType" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:TensorDataType:TensorDataType:13" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:decodeTensorData">decodeTensorData</a> :: <a href="TensorFlow-Types.html#t:TensorData">TensorData</a> (<a href="../base-4.9.1.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.9.1.0/Prelude.html#t:Double">Double</a>) -&gt; Vector (<a href="../base-4.9.1.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.9.1.0/Prelude.html#t:Double">Double</a>) <a href="src/TensorFlow.Types.html#decodeTensorData" class="link">Source</a> <a href="#v:decodeTensorData" class="selflink">#</a></p><p class="src"><a href="#v:encodeTensorData">encodeTensorData</a> :: <a href="TensorFlow-Types.html#t:Shape">Shape</a> -&gt; Vector (<a href="../base-4.9.1.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.9.1.0/Prelude.html#t:Double">Double</a>) -&gt; <a href="TensorFlow-Types.html#t:TensorData">TensorData</a> (<a href="../base-4.9.1.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.9.1.0/Prelude.html#t:Double">Double</a>) <a href="src/TensorFlow.Types.html#encodeTensorData" class="link">Source</a> <a href="#v:encodeTensorData" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:TensorDataType:TensorDataType:14" class="instance expander" onclick="toggleSection('i:ic:TensorDataType:TensorDataType:14')"></span> <a href="TensorFlow-Types.html#t:TensorDataType">TensorDataType</a> Vector (<a href="../base-4.9.1.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.9.1.0/Prelude.html#t:Float">Float</a>)</span> <a href="src/TensorFlow.Types.html#line-281" class="link">Source</a> <a href="#t:TensorDataType" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:TensorDataType:TensorDataType:14" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:decodeTensorData">decodeTensorData</a> :: <a href="TensorFlow-Types.html#t:TensorData">TensorData</a> (<a href="../base-4.9.1.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.9.1.0/Prelude.html#t:Float">Float</a>) -&gt; Vector (<a href="../base-4.9.1.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.9.1.0/Prelude.html#t:Float">Float</a>) <a href="src/TensorFlow.Types.html#decodeTensorData" class="link">Source</a> <a href="#v:decodeTensorData" class="selflink">#</a></p><p class="src"><a href="#v:encodeTensorData">encodeTensorData</a> :: <a href="TensorFlow-Types.html#t:Shape">Shape</a> -&gt; Vector (<a href="../base-4.9.1.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.9.1.0/Prelude.html#t:Float">Float</a>) -&gt; <a href="TensorFlow-Types.html#t:TensorData">TensorData</a> (<a href="../base-4.9.1.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.9.1.0/Prelude.html#t:Float">Float</a>) <a href="src/TensorFlow.Types.html#encodeTensorData" class="link">Source</a> <a href="#v:encodeTensorData" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">newtype</span> <a id="t:Scalar" class="def">Scalar</a> a <a href="src/TensorFlow.Types.html#Scalar" class="link">Source</a> <a href="#t:Scalar" class="selflink">#</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:Scalar" class="def">Scalar</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><ul><li><dfn class="src"><a id="v:unScalar" class="def">unScalar</a> :: a</dfn><div class="doc empty">&nbsp;</div></li></ul></div></td></tr></table></div><div class="subs instances"><p id="control.i:Scalar" class="caption collapser" onclick="toggleSection('i:Scalar')">Instances</p><div id="section.i:Scalar" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Scalar:TensorDataType:1" class="instance expander" onclick="toggleSection('i:id:Scalar:TensorDataType:1')"></span> (<a href="TensorFlow-Types.html#t:TensorDataType">TensorDataType</a> Vector a, <a href="TensorFlow-Types.html#t:TensorType">TensorType</a> a) =&gt; <a href="TensorFlow-Types.html#t:TensorDataType">TensorDataType</a> <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a</span> <a href="src/TensorFlow.Types.html#line-343" class="link">Source</a> <a href="#t:Scalar" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:Scalar:TensorDataType:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:decodeTensorData">decodeTensorData</a> :: <a href="TensorFlow-Types.html#t:TensorData">TensorData</a> a -&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a <a href="src/TensorFlow.Types.html#decodeTensorData" class="link">Source</a> <a href="#v:decodeTensorData" class="selflink">#</a></p><p class="src"><a href="#v:encodeTensorData">encodeTensorData</a> :: <a href="TensorFlow-Types.html#t:Shape">Shape</a> -&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="TensorFlow-Types.html#t:TensorData">TensorData</a> a <a href="src/TensorFlow.Types.html#encodeTensorData" class="link">Source</a> <a href="#v:encodeTensorData" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Scalar:Eq:2" class="instance expander" onclick="toggleSection('i:id:Scalar:Eq:2')"></span> <a href="../base-4.9.1.0/Data-Eq.html#t:Eq">Eq</a> a =&gt; <a href="../base-4.9.1.0/Data-Eq.html#t:Eq">Eq</a> (<a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a)</span> <a href="src/TensorFlow.Types.html#line-340" class="link">Source</a> <a href="#t:Scalar" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:Scalar:Eq:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-61--61-">(==)</a> :: <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="../base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-61--61-" class="selflink">#</a></p><p class="src"><a href="#v:-47--61-">(/=)</a> :: <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="../base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-47--61-" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Scalar:Floating:3" class="instance expander" onclick="toggleSection('i:id:Scalar:Floating:3')"></span> <a href="../base-4.9.1.0/Numeric.html#t:Floating">Floating</a> a =&gt; <a href="../base-4.9.1.0/Numeric.html#t:Floating">Floating</a> (<a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a)</span> <a href="src/TensorFlow.Types.html#line-340" class="link">Source</a> <a href="#t:Scalar" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:Scalar:Floating:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:pi">pi</a> :: <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a <a href="#v:pi" class="selflink">#</a></p><p class="src"><a href="#v:exp">exp</a> :: <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a <a href="#v:exp" class="selflink">#</a></p><p class="src"><a href="#v:log">log</a> :: <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a <a href="#v:log" class="selflink">#</a></p><p class="src"><a href="#v:sqrt">sqrt</a> :: <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a <a href="#v:sqrt" class="selflink">#</a></p><p class="src"><a href="#v:-42--42-">(**)</a> :: <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a <a href="#v:-42--42-" class="selflink">#</a></p><p class="src"><a href="#v:logBase">logBase</a> :: <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a <a href="#v:logBase" class="selflink">#</a></p><p class="src"><a href="#v:sin">sin</a> :: <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a <a href="#v:sin" class="selflink">#</a></p><p class="src"><a href="#v:cos">cos</a> :: <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a <a href="#v:cos" class="selflink">#</a></p><p class="src"><a href="#v:tan">tan</a> :: <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a <a href="#v:tan" class="selflink">#</a></p><p class="src"><a href="#v:asin">asin</a> :: <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a <a href="#v:asin" class="selflink">#</a></p><p class="src"><a href="#v:acos">acos</a> :: <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a <a href="#v:acos" class="selflink">#</a></p><p class="src"><a href="#v:atan">atan</a> :: <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a <a href="#v:atan" class="selflink">#</a></p><p class="src"><a href="#v:sinh">sinh</a> :: <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a <a href="#v:sinh" class="selflink">#</a></p><p class="src"><a href="#v:cosh">cosh</a> :: <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a <a href="#v:cosh" class="selflink">#</a></p><p class="src"><a href="#v:tanh">tanh</a> :: <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a <a href="#v:tanh" class="selflink">#</a></p><p class="src"><a href="#v:asinh">asinh</a> :: <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a <a href="#v:asinh" class="selflink">#</a></p><p class="src"><a href="#v:acosh">acosh</a> :: <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a <a href="#v:acosh" class="selflink">#</a></p><p class="src"><a href="#v:atanh">atanh</a> :: <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a <a href="#v:atanh" class="selflink">#</a></p><p class="src"><a href="#v:log1p">log1p</a> :: <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a <a href="#v:log1p" class="selflink">#</a></p><p class="src"><a href="#v:expm1">expm1</a> :: <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a <a href="#v:expm1" class="selflink">#</a></p><p class="src"><a href="#v:log1pexp">log1pexp</a> :: <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a <a href="#v:log1pexp" class="selflink">#</a></p><p class="src"><a href="#v:log1mexp">log1mexp</a> :: <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a <a href="#v:log1mexp" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Scalar:Fractional:4" class="instance expander" onclick="toggleSection('i:id:Scalar:Fractional:4')"></span> <a href="../base-4.9.1.0/Prelude.html#t:Fractional">Fractional</a> a =&gt; <a href="../base-4.9.1.0/Prelude.html#t:Fractional">Fractional</a> (<a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a)</span> <a href="src/TensorFlow.Types.html#line-340" class="link">Source</a> <a href="#t:Scalar" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:Scalar:Fractional:4" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-47-">(/)</a> :: <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a <a href="#v:-47-" class="selflink">#</a></p><p class="src"><a href="#v:recip">recip</a> :: <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a <a href="#v:recip" class="selflink">#</a></p><p class="src"><a href="#v:fromRational">fromRational</a> :: <a href="../base-4.9.1.0/Prelude.html#t:Rational">Rational</a> -&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a <a href="#v:fromRational" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Scalar:Num:5" class="instance expander" onclick="toggleSection('i:id:Scalar:Num:5')"></span> <a href="../base-4.9.1.0/Prelude.html#t:Num">Num</a> a =&gt; <a href="../base-4.9.1.0/Prelude.html#t:Num">Num</a> (<a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a)</span> <a href="src/TensorFlow.Types.html#line-340" class="link">Source</a> <a href="#t:Scalar" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:Scalar:Num:5" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-43-">(+)</a> :: <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a <a href="#v:-43-" class="selflink">#</a></p><p class="src"><a href="#v:-45-">(-)</a> :: <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a <a href="#v:-45-" class="selflink">#</a></p><p class="src"><a href="#v:-42-">(*)</a> :: <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a <a href="#v:-42-" class="selflink">#</a></p><p class="src"><a href="#v:negate">negate</a> :: <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a <a href="#v:negate" class="selflink">#</a></p><p class="src"><a href="#v:abs">abs</a> :: <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a <a href="#v:abs" class="selflink">#</a></p><p class="src"><a href="#v:signum">signum</a> :: <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a <a href="#v:signum" class="selflink">#</a></p><p class="src"><a href="#v:fromInteger">fromInteger</a> :: <a href="../base-4.9.1.0/Prelude.html#t:Integer">Integer</a> -&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a <a href="#v:fromInteger" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Scalar:Ord:6" class="instance expander" onclick="toggleSection('i:id:Scalar:Ord:6')"></span> <a href="../base-4.9.1.0/Data-Ord.html#t:Ord">Ord</a> a =&gt; <a href="../base-4.9.1.0/Data-Ord.html#t:Ord">Ord</a> (<a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a)</span> <a href="src/TensorFlow.Types.html#line-340" class="link">Source</a> <a href="#t:Scalar" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:Scalar:Ord:6" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:compare">compare</a> :: <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="../base-4.9.1.0/Data-Ord.html#t:Ordering">Ordering</a> <a href="#v:compare" class="selflink">#</a></p><p class="src"><a href="#v:-60-">(&lt;)</a> :: <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="../base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-60-" class="selflink">#</a></p><p class="src"><a href="#v:-60--61-">(&lt;=)</a> :: <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="../base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-60--61-" class="selflink">#</a></p><p class="src"><a href="#v:-62-">(&gt;)</a> :: <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="../base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-62-" class="selflink">#</a></p><p class="src"><a href="#v:-62--61-">(&gt;=)</a> :: <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="../base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-62--61-" class="selflink">#</a></p><p class="src"><a href="#v:max">max</a> :: <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a <a href="#v:max" class="selflink">#</a></p><p class="src"><a href="#v:min">min</a> :: <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a <a href="#v:min" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Scalar:Real:7" class="instance expander" onclick="toggleSection('i:id:Scalar:Real:7')"></span> <a href="../base-4.9.1.0/Prelude.html#t:Real">Real</a> a =&gt; <a href="../base-4.9.1.0/Prelude.html#t:Real">Real</a> (<a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a)</span> <a href="src/TensorFlow.Types.html#line-340" class="link">Source</a> <a href="#t:Scalar" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:Scalar:Real:7" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toRational">toRational</a> :: <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="../base-4.9.1.0/Prelude.html#t:Rational">Rational</a> <a href="#v:toRational" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Scalar:RealFloat:8" class="instance expander" onclick="toggleSection('i:id:Scalar:RealFloat:8')"></span> <a href="../base-4.9.1.0/Prelude.html#t:RealFloat">RealFloat</a> a =&gt; <a href="../base-4.9.1.0/Prelude.html#t:RealFloat">RealFloat</a> (<a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a)</span> <a href="src/TensorFlow.Types.html#line-340" class="link">Source</a> <a href="#t:Scalar" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:Scalar:RealFloat:8" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:floatRadix">floatRadix</a> :: <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="../base-4.9.1.0/Prelude.html#t:Integer">Integer</a> <a href="#v:floatRadix" class="selflink">#</a></p><p class="src"><a href="#v:floatDigits">floatDigits</a> :: <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="../base-4.9.1.0/Data-Int.html#t:Int">Int</a> <a href="#v:floatDigits" class="selflink">#</a></p><p class="src"><a href="#v:floatRange">floatRange</a> :: <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; (<a href="../base-4.9.1.0/Data-Int.html#t:Int">Int</a>, <a href="../base-4.9.1.0/Data-Int.html#t:Int">Int</a>) <a href="#v:floatRange" class="selflink">#</a></p><p class="src"><a href="#v:decodeFloat">decodeFloat</a> :: <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; (<a href="../base-4.9.1.0/Prelude.html#t:Integer">Integer</a>, <a href="../base-4.9.1.0/Data-Int.html#t:Int">Int</a>) <a href="#v:decodeFloat" class="selflink">#</a></p><p class="src"><a href="#v:encodeFloat">encodeFloat</a> :: <a href="../base-4.9.1.0/Prelude.html#t:Integer">Integer</a> -&gt; <a href="../base-4.9.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a <a href="#v:encodeFloat" class="selflink">#</a></p><p class="src"><a href="#v:exponent">exponent</a> :: <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="../base-4.9.1.0/Data-Int.html#t:Int">Int</a> <a href="#v:exponent" class="selflink">#</a></p><p class="src"><a href="#v:significand">significand</a> :: <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a <a href="#v:significand" class="selflink">#</a></p><p class="src"><a href="#v:scaleFloat">scaleFloat</a> :: <a href="../base-4.9.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a <a href="#v:scaleFloat" class="selflink">#</a></p><p class="src"><a href="#v:isNaN">isNaN</a> :: <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="../base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:isNaN" class="selflink">#</a></p><p class="src"><a href="#v:isInfinite">isInfinite</a> :: <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="../base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:isInfinite" class="selflink">#</a></p><p class="src"><a href="#v:isDenormalized">isDenormalized</a> :: <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="../base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:isDenormalized" class="selflink">#</a></p><p class="src"><a href="#v:isNegativeZero">isNegativeZero</a> :: <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="../base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:isNegativeZero" class="selflink">#</a></p><p class="src"><a href="#v:isIEEE">isIEEE</a> :: <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="../base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:isIEEE" class="selflink">#</a></p><p class="src"><a href="#v:atan2">atan2</a> :: <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a <a href="#v:atan2" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Scalar:RealFrac:9" class="instance expander" onclick="toggleSection('i:id:Scalar:RealFrac:9')"></span> <a href="../base-4.9.1.0/Prelude.html#t:RealFrac">RealFrac</a> a =&gt; <a href="../base-4.9.1.0/Prelude.html#t:RealFrac">RealFrac</a> (<a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a)</span> <a href="src/TensorFlow.Types.html#line-341" class="link">Source</a> <a href="#t:Scalar" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:Scalar:RealFrac:9" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:properFraction">properFraction</a> :: <a href="../base-4.9.1.0/Prelude.html#t:Integral">Integral</a> b =&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; (b, <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a) <a href="#v:properFraction" class="selflink">#</a></p><p class="src"><a href="#v:truncate">truncate</a> :: <a href="../base-4.9.1.0/Prelude.html#t:Integral">Integral</a> b =&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; b <a href="#v:truncate" class="selflink">#</a></p><p class="src"><a href="#v:round">round</a> :: <a href="../base-4.9.1.0/Prelude.html#t:Integral">Integral</a> b =&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; b <a href="#v:round" class="selflink">#</a></p><p class="src"><a href="#v:ceiling">ceiling</a> :: <a href="../base-4.9.1.0/Prelude.html#t:Integral">Integral</a> b =&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; b <a href="#v:ceiling" class="selflink">#</a></p><p class="src"><a href="#v:floor">floor</a> :: <a href="../base-4.9.1.0/Prelude.html#t:Integral">Integral</a> b =&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; b <a href="#v:floor" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Scalar:Show:10" class="instance expander" onclick="toggleSection('i:id:Scalar:Show:10')"></span> <a href="../base-4.9.1.0/Text-Show.html#t:Show">Show</a> a =&gt; <a href="../base-4.9.1.0/Text-Show.html#t:Show">Show</a> (<a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a)</span> <a href="src/TensorFlow.Types.html#line-340" class="link">Source</a> <a href="#t:Scalar" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:Scalar:Show:10" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="../base-4.9.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="../base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showsPrec" class="selflink">#</a></p><p class="src"><a href="#v:show">show</a> :: <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a -&gt; <a href="../base-4.9.1.0/Data-String.html#t:String">String</a> <a href="#v:show" class="selflink">#</a></p><p class="src"><a href="#v:showList">showList</a> :: [<a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a] -&gt; <a href="../base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showList" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Scalar:IsString:11" class="instance expander" onclick="toggleSection('i:id:Scalar:IsString:11')"></span> <a href="../base-4.9.1.0/Data-String.html#t:IsString">IsString</a> a =&gt; <a href="../base-4.9.1.0/Data-String.html#t:IsString">IsString</a> (<a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a)</span> <a href="src/TensorFlow.Types.html#line-341" class="link">Source</a> <a href="#t:Scalar" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:Scalar:IsString:11" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fromString">fromString</a> :: <a href="../base-4.9.1.0/Data-String.html#t:String">String</a> -&gt; <a href="TensorFlow-Types.html#t:Scalar">Scalar</a> a <a href="#v:fromString" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">newtype</span> <a id="t:Shape" class="def">Shape</a> <a href="src/TensorFlow.Types.html#Shape" class="link">Source</a> <a href="#t:Shape" class="selflink">#</a></p><div class="doc"><p>Shape (dimensions) of a tensor.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:Shape" class="def">Shape</a> [<a href="../base-4.9.1.0/Data-Int.html#t:Int64">Int64</a>]</td><td class="doc empty">&nbsp;</td></tr></table></div><div class="subs instances"><p id="control.i:Shape" class="caption collapser" onclick="toggleSection('i:Shape')">Instances</p><div id="section.i:Shape" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Shape:IsList:1" class="instance expander" onclick="toggleSection('i:id:Shape:IsList:1')"></span> <a href="../base-4.9.1.0/GHC-Exts.html#t:IsList">IsList</a> <a href="TensorFlow-Types.html#t:Shape">Shape</a></span> <a href="src/TensorFlow.Types.html#line-358" class="link">Source</a> <a href="#t:Shape" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:Shape:IsList:1" class="inst-details hide"><div class="subs associated-types"><p class="caption">Associated Types</p><p class="src"><span class="keyword">type</span> <a href="../base-4.9.1.0/GHC-Exts.html#t:Item">Item</a> <a href="TensorFlow-Types.html#t:Shape">Shape</a> :: <a href="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a> <a href="#t:Item" class="selflink">#</a></p></div> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fromList">fromList</a> :: [<a href="../base-4.9.1.0/GHC-Exts.html#t:Item">Item</a> <a href="TensorFlow-Types.html#t:Shape">Shape</a>] -&gt; <a href="TensorFlow-Types.html#t:Shape">Shape</a> <a href="#v:fromList" class="selflink">#</a></p><p class="src"><a href="#v:fromListN">fromListN</a> :: <a href="../base-4.9.1.0/Data-Int.html#t:Int">Int</a> -&gt; [<a href="../base-4.9.1.0/GHC-Exts.html#t:Item">Item</a> <a href="TensorFlow-Types.html#t:Shape">Shape</a>] -&gt; <a href="TensorFlow-Types.html#t:Shape">Shape</a> <a href="#v:fromListN" class="selflink">#</a></p><p class="src"><a href="#v:toList">toList</a> :: <a href="TensorFlow-Types.html#t:Shape">Shape</a> -&gt; [<a href="../base-4.9.1.0/GHC-Exts.html#t:Item">Item</a> <a href="TensorFlow-Types.html#t:Shape">Shape</a>] <a href="#v:toList" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Shape:Show:2" class="instance expander" onclick="toggleSection('i:id:Shape:Show:2')"></span> <a href="../base-4.9.1.0/Text-Show.html#t:Show">Show</a> <a href="TensorFlow-Types.html#t:Shape">Shape</a></span> <a href="src/TensorFlow.Types.html#line-356" class="link">Source</a> <a href="#t:Shape" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:Shape:Show:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="../base-4.9.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="TensorFlow-Types.html#t:Shape">Shape</a> -&gt; <a href="../base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showsPrec" class="selflink">#</a></p><p class="src"><a href="#v:show">show</a> :: <a href="TensorFlow-Types.html#t:Shape">Shape</a> -&gt; <a href="../base-4.9.1.0/Data-String.html#t:String">String</a> <a href="#v:show" class="selflink">#</a></p><p class="src"><a href="#v:showList">showList</a> :: [<a href="TensorFlow-Types.html#t:Shape">Shape</a>] -&gt; <a href="../base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showList" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Shape:Attribute:3" class="instance expander" onclick="toggleSection('i:id:Shape:Attribute:3')"></span> <a href="TensorFlow-Types.html#t:Attribute">Attribute</a> <a href="TensorFlow-Types.html#t:Shape">Shape</a></span> <a href="src/TensorFlow.Types.html#line-391" class="link">Source</a> <a href="#t:Shape" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:Shape:Attribute:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:attrLens">attrLens</a> :: Lens' <a href="../tensorflow-proto-0.1.0.0/Proto-Tensorflow-Core-Framework-AttrValue.html#t:AttrValue">AttrValue</a> <a href="TensorFlow-Types.html#t:Shape">Shape</a> <a href="src/TensorFlow.Types.html#attrLens" class="link">Source</a> <a href="#v:attrLens" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Shape:Item:4" class="instance expander" onclick="toggleSection('i:id:Shape:Item:4')"></span> <span class="keyword">type</span> <a href="../base-4.9.1.0/GHC-Exts.html#t:Item">Item</a> <a href="TensorFlow-Types.html#t:Shape">Shape</a></span> <a href="src/TensorFlow.Types.html#line-359" class="link">Source</a> <a href="#t:Shape" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:Shape:Item:4" class="inst-details hide"><div class="src"><span class="keyword">type</span> <a href="../base-4.9.1.0/GHC-Exts.html#t:Item">Item</a> <a href="TensorFlow-Types.html#t:Shape">Shape</a> = <a href="../base-4.9.1.0/Data-Int.html#t:Int64">Int64</a></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><a id="v:protoShape" class="def">protoShape</a> :: Lens' <a href="../tensorflow-proto-0.1.0.0/Proto-Tensorflow-Core-Framework-TensorShape.html#t:TensorShapeProto">TensorShapeProto</a> <a href="TensorFlow-Types.html#t:Shape">Shape</a> <a href="src/TensorFlow.Types.html#protoShape" class="link">Source</a> <a href="#v:protoShape" class="selflink">#</a></p></div><div class="top"><p class="src"><span class="keyword">class</span> <a id="t:Attribute" class="def">Attribute</a> a <span class="keyword">where</span> <a href="src/TensorFlow.Types.html#Attribute" class="link">Source</a> <a href="#t:Attribute" class="selflink">#</a></p><div class="subs minimal"><p class="caption">Minimal complete definition</p><p class="src"><a href="TensorFlow-Types.html#v:attrLens">attrLens</a></p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a id="v:attrLens" class="def">attrLens</a> :: Lens' <a href="../tensorflow-proto-0.1.0.0/Proto-Tensorflow-Core-Framework-AttrValue.html#t:AttrValue">AttrValue</a> a <a href="src/TensorFlow.Types.html#attrLens" class="link">Source</a> <a href="#v:attrLens" class="selflink">#</a></p></div><div class="subs instances"><p id="control.i:Attribute" class="caption collapser" onclick="toggleSection('i:Attribute')">Instances</p><div id="section.i:Attribute" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Attribute:Attribute:1" class="instance expander" onclick="toggleSection('i:ic:Attribute:Attribute:1')"></span> <a href="TensorFlow-Types.html#t:Attribute">Attribute</a> <a href="../base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a></span> <a href="src/TensorFlow.Types.html#line-388" class="link">Source</a> <a href="#t:Attribute" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Attribute:Attribute:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:attrLens">attrLens</a> :: Lens' <a href="../tensorflow-proto-0.1.0.0/Proto-Tensorflow-Core-Framework-AttrValue.html#t:AttrValue">AttrValue</a> <a href="../base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="src/TensorFlow.Types.html#attrLens" class="link">Source</a> <a href="#v:attrLens" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Attribute:Attribute:2" class="instance expander" onclick="toggleSection('i:ic:Attribute:Attribute:2')"></span> <a href="TensorFlow-Types.html#t:Attribute">Attribute</a> <a href="../base-4.9.1.0/Prelude.html#t:Float">Float</a></span> <a href="src/TensorFlow.Types.html#line-373" class="link">Source</a> <a href="#t:Attribute" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Attribute:Attribute:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:attrLens">attrLens</a> :: Lens' <a href="../tensorflow-proto-0.1.0.0/Proto-Tensorflow-Core-Framework-AttrValue.html#t:AttrValue">AttrValue</a> <a href="../base-4.9.1.0/Prelude.html#t:Float">Float</a> <a href="src/TensorFlow.Types.html#attrLens" class="link">Source</a> <a href="#v:attrLens" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Attribute:Attribute:3" class="instance expander" onclick="toggleSection('i:ic:Attribute:Attribute:3')"></span> <a href="TensorFlow-Types.html#t:Attribute">Attribute</a> <a href="../base-4.9.1.0/Data-Int.html#t:Int64">Int64</a></span> <a href="src/TensorFlow.Types.html#line-379" class="link">Source</a> <a href="#t:Attribute" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Attribute:Attribute:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:attrLens">attrLens</a> :: Lens' <a href="../tensorflow-proto-0.1.0.0/Proto-Tensorflow-Core-Framework-AttrValue.html#t:AttrValue">AttrValue</a> <a href="../base-4.9.1.0/Data-Int.html#t:Int64">Int64</a> <a href="src/TensorFlow.Types.html#attrLens" class="link">Source</a> <a href="#v:attrLens" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Attribute:Attribute:4" class="instance expander" onclick="toggleSection('i:ic:Attribute:Attribute:4')"></span> <a href="TensorFlow-Types.html#t:Attribute">Attribute</a> <a href="../bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a></span> <a href="src/TensorFlow.Types.html#line-376" class="link">Source</a> <a href="#t:Attribute" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Attribute:Attribute:4" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:attrLens">attrLens</a> :: Lens' <a href="../tensorflow-proto-0.1.0.0/Proto-Tensorflow-Core-Framework-AttrValue.html#t:AttrValue">AttrValue</a> <a href="../bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a> <a href="src/TensorFlow.Types.html#attrLens" class="link">Source</a> <a href="#v:attrLens" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Attribute:Attribute:5" class="instance expander" onclick="toggleSection('i:ic:Attribute:Attribute:5')"></span> <a href="TensorFlow-Types.html#t:Attribute">Attribute</a> <a href="../tensorflow-proto-0.1.0.0/Proto-Tensorflow-Core-Framework-AttrValue.html#t:AttrValue-39-ListValue">AttrValue'ListValue</a></span> <a href="src/TensorFlow.Types.html#line-395" class="link">Source</a> <a href="#t:Attribute" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Attribute:Attribute:5" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:attrLens">attrLens</a> :: Lens' <a href="../tensorflow-proto-0.1.0.0/Proto-Tensorflow-Core-Framework-AttrValue.html#t:AttrValue">AttrValue</a> <a href="../tensorflow-proto-0.1.0.0/Proto-Tensorflow-Core-Framework-AttrValue.html#t:AttrValue-39-ListValue">AttrValue'ListValue</a> <a href="src/TensorFlow.Types.html#attrLens" class="link">Source</a> <a href="#v:attrLens" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Attribute:Attribute:6" class="instance expander" onclick="toggleSection('i:ic:Attribute:Attribute:6')"></span> <a href="TensorFlow-Types.html#t:Attribute">Attribute</a> <a href="../tensorflow-proto-0.1.0.0/Proto-Tensorflow-Core-Framework-Tensor.html#t:TensorProto">TensorProto</a></span> <a href="src/TensorFlow.Types.html#line-385" class="link">Source</a> <a href="#t:Attribute" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Attribute:Attribute:6" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:attrLens">attrLens</a> :: Lens' <a href="../tensorflow-proto-0.1.0.0/Proto-Tensorflow-Core-Framework-AttrValue.html#t:AttrValue">AttrValue</a> <a href="../tensorflow-proto-0.1.0.0/Proto-Tensorflow-Core-Framework-Tensor.html#t:TensorProto">TensorProto</a> <a href="src/TensorFlow.Types.html#attrLens" class="link">Source</a> <a href="#v:attrLens" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Attribute:Attribute:7" class="instance expander" onclick="toggleSection('i:ic:Attribute:Attribute:7')"></span> <a href="TensorFlow-Types.html#t:Attribute">Attribute</a> <a href="TensorFlow-Types.html#t:DataType">DataType</a></span> <a href="src/TensorFlow.Types.html#line-382" class="link">Source</a> <a href="#t:Attribute" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Attribute:Attribute:7" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:attrLens">attrLens</a> :: Lens' <a href="../tensorflow-proto-0.1.0.0/Proto-Tensorflow-Core-Framework-AttrValue.html#t:AttrValue">AttrValue</a> <a href="TensorFlow-Types.html#t:DataType">DataType</a> <a href="src/TensorFlow.Types.html#attrLens" class="link">Source</a> <a href="#v:attrLens" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Attribute:Attribute:8" class="instance expander" onclick="toggleSection('i:ic:Attribute:Attribute:8')"></span> <a href="TensorFlow-Types.html#t:Attribute">Attribute</a> <a href="TensorFlow-Types.html#t:Shape">Shape</a></span> <a href="src/TensorFlow.Types.html#line-391" class="link">Source</a> <a href="#t:Attribute" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Attribute:Attribute:8" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:attrLens">attrLens</a> :: Lens' <a href="../tensorflow-proto-0.1.0.0/Proto-Tensorflow-Core-Framework-AttrValue.html#t:AttrValue">AttrValue</a> <a href="TensorFlow-Types.html#t:Shape">Shape</a> <a href="src/TensorFlow.Types.html#attrLens" class="link">Source</a> <a href="#v:attrLens" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Attribute:Attribute:9" class="instance expander" onclick="toggleSection('i:ic:Attribute:Attribute:9')"></span> <a href="TensorFlow-Types.html#t:Attribute">Attribute</a> [<a href="../base-4.9.1.0/Data-Int.html#t:Int64">Int64</a>]</span> <a href="src/TensorFlow.Types.html#line-401" class="link">Source</a> <a href="#t:Attribute" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Attribute:Attribute:9" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:attrLens">attrLens</a> :: Lens' <a href="../tensorflow-proto-0.1.0.0/Proto-Tensorflow-Core-Framework-AttrValue.html#t:AttrValue">AttrValue</a> [<a href="../base-4.9.1.0/Data-Int.html#t:Int64">Int64</a>] <a href="src/TensorFlow.Types.html#attrLens" class="link">Source</a> <a href="#v:attrLens" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Attribute:Attribute:10" class="instance expander" onclick="toggleSection('i:ic:Attribute:Attribute:10')"></span> <a href="TensorFlow-Types.html#t:Attribute">Attribute</a> [<a href="TensorFlow-Types.html#t:DataType">DataType</a>]</span> <a href="src/TensorFlow.Types.html#line-398" class="link">Source</a> <a href="#t:Attribute" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Attribute:Attribute:10" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:attrLens">attrLens</a> :: Lens' <a href="../tensorflow-proto-0.1.0.0/Proto-Tensorflow-Core-Framework-AttrValue.html#t:AttrValue">AttrValue</a> [<a href="TensorFlow-Types.html#t:DataType">DataType</a>] <a href="src/TensorFlow.Types.html#attrLens" class="link">Source</a> <a href="#v:attrLens" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:DataType" class="def">DataType</a> :: <a href="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a> <a href="#t:DataType" class="selflink">#</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:DT_INVALID" class="def">DT_INVALID</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:DT_FLOAT" class="def">DT_FLOAT</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:DT_DOUBLE" class="def">DT_DOUBLE</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:DT_INT32" class="def">DT_INT32</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:DT_UINT8" class="def">DT_UINT8</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:DT_INT16" class="def">DT_INT16</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:DT_INT8" class="def">DT_INT8</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:DT_STRING" class="def">DT_STRING</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:DT_COMPLEX64" class="def">DT_COMPLEX64</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:DT_INT64" class="def">DT_INT64</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:DT_BOOL" class="def">DT_BOOL</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:DT_QINT8" class="def">DT_QINT8</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:DT_QUINT8" class="def">DT_QUINT8</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:DT_QINT32" class="def">DT_QINT32</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:DT_BFLOAT16" class="def">DT_BFLOAT16</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:DT_QINT16" class="def">DT_QINT16</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:DT_QUINT16" class="def">DT_QUINT16</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:DT_UINT16" class="def">DT_UINT16</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:DT_COMPLEX128" class="def">DT_COMPLEX128</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:DT_HALF" class="def">DT_HALF</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:DT_RESOURCE" class="def">DT_RESOURCE</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:DT_FLOAT_REF" class="def">DT_FLOAT_REF</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:DT_DOUBLE_REF" class="def">DT_DOUBLE_REF</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:DT_INT32_REF" class="def">DT_INT32_REF</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:DT_UINT8_REF" class="def">DT_UINT8_REF</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:DT_INT16_REF" class="def">DT_INT16_REF</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:DT_INT8_REF" class="def">DT_INT8_REF</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:DT_STRING_REF" class="def">DT_STRING_REF</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:DT_COMPLEX64_REF" class="def">DT_COMPLEX64_REF</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:DT_INT64_REF" class="def">DT_INT64_REF</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:DT_BOOL_REF" class="def">DT_BOOL_REF</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:DT_QINT8_REF" class="def">DT_QINT8_REF</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:DT_QUINT8_REF" class="def">DT_QUINT8_REF</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:DT_QINT32_REF" class="def">DT_QINT32_REF</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:DT_BFLOAT16_REF" class="def">DT_BFLOAT16_REF</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:DT_QINT16_REF" class="def">DT_QINT16_REF</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:DT_QUINT16_REF" class="def">DT_QUINT16_REF</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:DT_UINT16_REF" class="def">DT_UINT16_REF</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:DT_COMPLEX128_REF" class="def">DT_COMPLEX128_REF</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:DT_HALF_REF" class="def">DT_HALF_REF</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:DT_RESOURCE_REF" class="def">DT_RESOURCE_REF</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="subs instances"><p id="control.i:DataType" class="caption collapser" onclick="toggleSection('i:DataType')">Instances</p><div id="section.i:DataType" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:DataType:Bounded:1" class="instance expander" onclick="toggleSection('i:id:DataType:Bounded:1')"></span> <a href="../base-4.9.1.0/Prelude.html#t:Bounded">Bounded</a> <a href="TensorFlow-Types.html#t:DataType">DataType</a></span></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:DataType:Bounded:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:minBound">minBound</a> :: <a href="TensorFlow-Types.html#t:DataType">DataType</a> <a href="#v:minBound" class="selflink">#</a></p><p class="src"><a href="#v:maxBound">maxBound</a> :: <a href="TensorFlow-Types.html#t:DataType">DataType</a> <a href="#v:maxBound" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:DataType:Enum:2" class="instance expander" onclick="toggleSection('i:id:DataType:Enum:2')"></span> <a href="../base-4.9.1.0/Prelude.html#t:Enum">Enum</a> <a href="TensorFlow-Types.html#t:DataType">DataType</a></span></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:DataType:Enum:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:succ">succ</a> :: <a href="TensorFlow-Types.html#t:DataType">DataType</a> -&gt; <a href="TensorFlow-Types.html#t:DataType">DataType</a> <a href="#v:succ" class="selflink">#</a></p><p class="src"><a href="#v:pred">pred</a> :: <a href="TensorFlow-Types.html#t:DataType">DataType</a> -&gt; <a href="TensorFlow-Types.html#t:DataType">DataType</a> <a href="#v:pred" class="selflink">#</a></p><p class="src"><a href="#v:toEnum">toEnum</a> :: <a href="../base-4.9.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="TensorFlow-Types.html#t:DataType">DataType</a> <a href="#v:toEnum" class="selflink">#</a></p><p class="src"><a href="#v:fromEnum">fromEnum</a> :: <a href="TensorFlow-Types.html#t:DataType">DataType</a> -&gt; <a href="../base-4.9.1.0/Data-Int.html#t:Int">Int</a> <a href="#v:fromEnum" class="selflink">#</a></p><p class="src"><a href="#v:enumFrom">enumFrom</a> :: <a href="TensorFlow-Types.html#t:DataType">DataType</a> -&gt; [<a href="TensorFlow-Types.html#t:DataType">DataType</a>] <a href="#v:enumFrom" class="selflink">#</a></p><p class="src"><a href="#v:enumFromThen">enumFromThen</a> :: <a href="TensorFlow-Types.html#t:DataType">DataType</a> -&gt; <a href="TensorFlow-Types.html#t:DataType">DataType</a> -&gt; [<a href="TensorFlow-Types.html#t:DataType">DataType</a>] <a href="#v:enumFromThen" class="selflink">#</a></p><p class="src"><a href="#v:enumFromTo">enumFromTo</a> :: <a href="TensorFlow-Types.html#t:DataType">DataType</a> -&gt; <a href="TensorFlow-Types.html#t:DataType">DataType</a> -&gt; [<a href="TensorFlow-Types.html#t:DataType">DataType</a>] <a href="#v:enumFromTo" class="selflink">#</a></p><p class="src"><a href="#v:enumFromThenTo">enumFromThenTo</a> :: <a href="TensorFlow-Types.html#t:DataType">DataType</a> -&gt; <a href="TensorFlow-Types.html#t:DataType">DataType</a> -&gt; <a href="TensorFlow-Types.html#t:DataType">DataType</a> -&gt; [<a href="TensorFlow-Types.html#t:DataType">DataType</a>] <a href="#v:enumFromThenTo" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:DataType:Eq:3" class="instance expander" onclick="toggleSection('i:id:DataType:Eq:3')"></span> <a href="../base-4.9.1.0/Data-Eq.html#t:Eq">Eq</a> <a href="TensorFlow-Types.html#t:DataType">DataType</a></span></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:DataType:Eq:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-61--61-">(==)</a> :: <a href="TensorFlow-Types.html#t:DataType">DataType</a> -&gt; <a href="TensorFlow-Types.html#t:DataType">DataType</a> -&gt; <a href="../base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-61--61-" class="selflink">#</a></p><p class="src"><a href="#v:-47--61-">(/=)</a> :: <a href="TensorFlow-Types.html#t:DataType">DataType</a> -&gt; <a href="TensorFlow-Types.html#t:DataType">DataType</a> -&gt; <a href="../base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-47--61-" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:DataType:Ord:4" class="instance expander" onclick="toggleSection('i:id:DataType:Ord:4')"></span> <a href="../base-4.9.1.0/Data-Ord.html#t:Ord">Ord</a> <a href="TensorFlow-Types.html#t:DataType">DataType</a></span></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:DataType:Ord:4" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:compare">compare</a> :: <a href="TensorFlow-Types.html#t:DataType">DataType</a> -&gt; <a href="TensorFlow-Types.html#t:DataType">DataType</a> -&gt; <a href="../base-4.9.1.0/Data-Ord.html#t:Ordering">Ordering</a> <a href="#v:compare" class="selflink">#</a></p><p class="src"><a href="#v:-60-">(&lt;)</a> :: <a href="TensorFlow-Types.html#t:DataType">DataType</a> -&gt; <a href="TensorFlow-Types.html#t:DataType">DataType</a> -&gt; <a href="../base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-60-" class="selflink">#</a></p><p class="src"><a href="#v:-60--61-">(&lt;=)</a> :: <a href="TensorFlow-Types.html#t:DataType">DataType</a> -&gt; <a href="TensorFlow-Types.html#t:DataType">DataType</a> -&gt; <a href="../base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-60--61-" class="selflink">#</a></p><p class="src"><a href="#v:-62-">(&gt;)</a> :: <a href="TensorFlow-Types.html#t:DataType">DataType</a> -&gt; <a href="TensorFlow-Types.html#t:DataType">DataType</a> -&gt; <a href="../base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-62-" class="selflink">#</a></p><p class="src"><a href="#v:-62--61-">(&gt;=)</a> :: <a href="TensorFlow-Types.html#t:DataType">DataType</a> -&gt; <a href="TensorFlow-Types.html#t:DataType">DataType</a> -&gt; <a href="../base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-62--61-" class="selflink">#</a></p><p class="src"><a href="#v:max">max</a> :: <a href="TensorFlow-Types.html#t:DataType">DataType</a> -&gt; <a href="TensorFlow-Types.html#t:DataType">DataType</a> -&gt; <a href="TensorFlow-Types.html#t:DataType">DataType</a> <a href="#v:max" class="selflink">#</a></p><p class="src"><a href="#v:min">min</a> :: <a href="TensorFlow-Types.html#t:DataType">DataType</a> -&gt; <a href="TensorFlow-Types.html#t:DataType">DataType</a> -&gt; <a href="TensorFlow-Types.html#t:DataType">DataType</a> <a href="#v:min" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:DataType:Show:5" class="instance expander" onclick="toggleSection('i:id:DataType:Show:5')"></span> <a href="../base-4.9.1.0/Text-Show.html#t:Show">Show</a> <a href="TensorFlow-Types.html#t:DataType">DataType</a></span></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:DataType:Show:5" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="../base-4.9.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="TensorFlow-Types.html#t:DataType">DataType</a> -&gt; <a href="../base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showsPrec" class="selflink">#</a></p><p class="src"><a href="#v:show">show</a> :: <a href="TensorFlow-Types.html#t:DataType">DataType</a> -&gt; <a href="../base-4.9.1.0/Data-String.html#t:String">String</a> <a href="#v:show" class="selflink">#</a></p><p class="src"><a href="#v:showList">showList</a> :: [<a href="TensorFlow-Types.html#t:DataType">DataType</a>] -&gt; <a href="../base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showList" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:DataType:MessageEnum:6" class="instance expander" onclick="toggleSection('i:id:DataType:MessageEnum:6')"></span> MessageEnum <a href="TensorFlow-Types.html#t:DataType">DataType</a></span></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:DataType:MessageEnum:6" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:maybeToEnum">maybeToEnum</a> :: <a href="../base-4.9.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="../base-4.9.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="TensorFlow-Types.html#t:DataType">DataType</a></p><p class="src"><a href="#v:showEnum">showEnum</a> :: <a href="TensorFlow-Types.html#t:DataType">DataType</a> -&gt; <a href="../base-4.9.1.0/Data-String.html#t:String">String</a></p><p class="src"><a href="#v:readEnum">readEnum</a> :: <a href="../base-4.9.1.0/Data-String.html#t:String">String</a> -&gt; <a href="../base-4.9.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="TensorFlow-Types.html#t:DataType">DataType</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:DataType:FieldDefault:7" class="instance expander" onclick="toggleSection('i:id:DataType:FieldDefault:7')"></span> FieldDefault <a href="TensorFlow-Types.html#t:DataType">DataType</a></span></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:DataType:FieldDefault:7" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fieldDefault">fieldDefault</a> :: <a href="TensorFlow-Types.html#t:DataType">DataType</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:DataType:Default:8" class="instance expander" onclick="toggleSection('i:id:DataType:Default:8')"></span> Default <a href="TensorFlow-Types.html#t:DataType">DataType</a></span></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:DataType:Default:8" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:def">def</a> :: <a href="TensorFlow-Types.html#t:DataType">DataType</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:DataType:Attribute:9" class="instance expander" onclick="toggleSection('i:id:DataType:Attribute:9')"></span> <a href="TensorFlow-Types.html#t:Attribute">Attribute</a> <a href="TensorFlow-Types.html#t:DataType">DataType</a></span> <a href="src/TensorFlow.Types.html#line-382" class="link">Source</a> <a href="#t:Attribute" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:DataType:Attribute:9" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:attrLens">attrLens</a> :: Lens' <a href="../tensorflow-proto-0.1.0.0/Proto-Tensorflow-Core-Framework-AttrValue.html#t:AttrValue">AttrValue</a> <a href="TensorFlow-Types.html#t:DataType">DataType</a> <a href="src/TensorFlow.Types.html#attrLens" class="link">Source</a> <a href="#v:attrLens" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:DataType:Attribute:10" class="instance expander" onclick="toggleSection('i:id:DataType:Attribute:10')"></span> <a href="TensorFlow-Types.html#t:Attribute">Attribute</a> [<a href="TensorFlow-Types.html#t:DataType">DataType</a>]</span> <a href="src/TensorFlow.Types.html#line-398" class="link">Source</a> <a href="#t:Attribute" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:DataType:Attribute:10" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:attrLens">attrLens</a> :: Lens' <a href="../tensorflow-proto-0.1.0.0/Proto-Tensorflow-Core-Framework-AttrValue.html#t:AttrValue">AttrValue</a> [<a href="TensorFlow-Types.html#t:DataType">DataType</a>] <a href="src/TensorFlow.Types.html#attrLens" class="link">Source</a> <a href="#v:attrLens" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">type</span> <a id="t:ResourceHandle" class="def">ResourceHandle</a> = <a href="../tensorflow-proto-0.1.0.0/Proto-Tensorflow-Core-Framework-ResourceHandle.html#t:ResourceHandleProto">ResourceHandleProto</a> <a href="src/TensorFlow.Types.html#ResourceHandle" class="link">Source</a> <a href="#t:ResourceHandle" class="selflink">#</a></p></div><h1 id="g:1">Lists</h1><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:ListOf" class="def">ListOf</a> f as <span class="keyword">where</span> <a href="src/TensorFlow.Types.html#ListOf" class="link">Source</a> <a href="#t:ListOf" class="selflink">#</a></p><div class="doc"><p>A heterogeneous list type.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:Nil" class="def">Nil</a> :: <a href="TensorFlow-Types.html#t:ListOf">ListOf</a> f '[]</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v::-47-" class="def">(:/)</a> :: f a -&gt; <a href="TensorFlow-Types.html#t:ListOf">ListOf</a> f as -&gt; <a href="TensorFlow-Types.html#t:ListOf">ListOf</a> f (a ': as) <span class="fixity">infixr 5</span><span class="rightedge"></span></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="subs instances"><p id="control.i:ListOf" class="caption collapser" onclick="toggleSection('i:ListOf')">Instances</p><div id="section.i:ListOf" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ListOf:Eq:1" class="instance expander" onclick="toggleSection('i:id:ListOf:Eq:1')"></span> All <a href="../base-4.9.1.0/Data-Eq.html#t:Eq">Eq</a> (Map f as) =&gt; <a href="../base-4.9.1.0/Data-Eq.html#t:Eq">Eq</a> (<a href="TensorFlow-Types.html#t:ListOf">ListOf</a> f as)</span> <a href="src/TensorFlow.Types.html#line-419" class="link">Source</a> <a href="#t:ListOf" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ListOf:Eq:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-61--61-">(==)</a> :: <a href="TensorFlow-Types.html#t:ListOf">ListOf</a> f as -&gt; <a href="TensorFlow-Types.html#t:ListOf">ListOf</a> f as -&gt; <a href="../base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-61--61-" class="selflink">#</a></p><p class="src"><a href="#v:-47--61-">(/=)</a> :: <a href="TensorFlow-Types.html#t:ListOf">ListOf</a> f as -&gt; <a href="TensorFlow-Types.html#t:ListOf">ListOf</a> f as -&gt; <a href="../base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-47--61-" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ListOf:Show:2" class="instance expander" onclick="toggleSection('i:id:ListOf:Show:2')"></span> All <a href="../base-4.9.1.0/Text-Show.html#t:Show">Show</a> (Map f as) =&gt; <a href="../base-4.9.1.0/Text-Show.html#t:Show">Show</a> (<a href="TensorFlow-Types.html#t:ListOf">ListOf</a> f as)</span> <a href="src/TensorFlow.Types.html#line-428" class="link">Source</a> <a href="#t:ListOf" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ListOf:Show:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="../base-4.9.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="TensorFlow-Types.html#t:ListOf">ListOf</a> f as -&gt; <a href="../base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showsPrec" class="selflink">#</a></p><p class="src"><a href="#v:show">show</a> :: <a href="TensorFlow-Types.html#t:ListOf">ListOf</a> f as -&gt; <a href="../base-4.9.1.0/Data-String.html#t:String">String</a> <a href="#v:show" class="selflink">#</a></p><p class="src"><a href="#v:showList">showList</a> :: [<a href="TensorFlow-Types.html#t:ListOf">ListOf</a> f as] -&gt; <a href="../base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showList" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ListOf:BuildInputs:3" class="instance expander" onclick="toggleSection('i:id:ListOf:BuildInputs:3')"></span> <a href="TensorFlow-BuildOp.html#t:BuildInputs">BuildInputs</a> (<a href="TensorFlow-Types.html#t:ListOf">ListOf</a> (<a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v) as)</span> <a href="src/TensorFlow.BuildOp.html#line-298" class="link">Source</a> <a href="#t:BuildInputs" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ListOf:BuildInputs:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:buildInputs">buildInputs</a> :: <a href="TensorFlow-Types.html#t:ListOf">ListOf</a> (<a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v) as -&gt; <a href="TensorFlow-Build.html#t:Build">Build</a> [<a href="TensorFlow-Output.html#t:Output">Output</a>] <a href="src/TensorFlow.BuildOp.html#buildInputs" class="link">Source</a> <a href="#v:buildInputs" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ListOf:PureResult:4" class="instance expander" onclick="toggleSection('i:id:ListOf:PureResult:4')"></span> <a href="TensorFlow-Types.html#t:TensorTypes">TensorTypes</a> as =&gt; <a href="TensorFlow-BuildOp.html#t:PureResult">PureResult</a> (<a href="TensorFlow-Tensor.html#t:TensorList">TensorList</a> <a href="TensorFlow-Build.html#t:Build">Build</a> as)</span> <a href="src/TensorFlow.BuildOp.html#line-270" class="link">Source</a> <a href="#t:PureResult" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ListOf:PureResult:4" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:pureResult">pureResult</a> :: <a href="../transformers-0.5.2.0/Control-Monad-Trans-Reader.html#t:ReaderT">ReaderT</a> <a href="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a> (<a href="TensorFlow-Build.html#t:Build">Build</a> <a href="TensorFlow-Output.html#t:OpDef">OpDef</a>) (<a href="../transformers-0.5.2.0/Control-Monad-Trans-State-Strict.html#t:State">State</a> ResultState) (<a href="TensorFlow-Tensor.html#t:TensorList">TensorList</a> <a href="TensorFlow-Build.html#t:Build">Build</a> as) <a href="src/TensorFlow.BuildOp.html#pureResult" class="link">Source</a> <a href="#v:pureResult" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ListOf:BuildResult:5" class="instance expander" onclick="toggleSection('i:id:ListOf:BuildResult:5')"></span> (<a href="TensorFlow-Tensor.html#t:TensorKind">TensorKind</a> v, <a href="TensorFlow-Tensor.html#t:Rendered">Rendered</a> (<a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v), <a href="TensorFlow-Types.html#t:TensorTypes">TensorTypes</a> as) =&gt; <a href="TensorFlow-BuildOp.html#t:BuildResult">BuildResult</a> (<a href="TensorFlow-Tensor.html#t:TensorList">TensorList</a> v as)</span> <a href="src/TensorFlow.BuildOp.html#line-135" class="link">Source</a> <a href="#t:BuildResult" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ListOf:BuildResult:5" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:buildResult">buildResult</a> :: Result (<a href="TensorFlow-Tensor.html#t:TensorList">TensorList</a> v as) <a href="src/TensorFlow.BuildOp.html#buildResult" class="link">Source</a> <a href="#v:buildResult" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ListOf:Nodes:6" class="instance expander" onclick="toggleSection('i:id:ListOf:Nodes:6')"></span> (<a href="TensorFlow-Nodes.html#t:Nodes">Nodes</a> (f a), <a href="TensorFlow-Nodes.html#t:Nodes">Nodes</a> (<a href="TensorFlow-Types.html#t:ListOf">ListOf</a> f as)) =&gt; <a href="TensorFlow-Nodes.html#t:Nodes">Nodes</a> (<a href="TensorFlow-Types.html#t:ListOf">ListOf</a> f ((:) <a href="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a> a as))</span> <a href="src/TensorFlow.Nodes.html#line-111" class="link">Source</a> <a href="#t:Nodes" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ListOf:Nodes:6" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:getNodes">getNodes</a> :: <a href="TensorFlow-Types.html#t:ListOf">ListOf</a> f ((<a href="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a> ': a) as) -&gt; <a href="TensorFlow-Build.html#t:Build">Build</a> (<a href="../containers-0.5.7.1/Data-Set.html#t:Set">Set</a> <a href="TensorFlow-Output.html#t:NodeName">NodeName</a>) <a href="src/TensorFlow.Nodes.html#getNodes" class="link">Source</a> <a href="#v:getNodes" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ListOf:Nodes:7" class="instance expander" onclick="toggleSection('i:id:ListOf:Nodes:7')"></span> <a href="TensorFlow-Nodes.html#t:Nodes">Nodes</a> (<a href="TensorFlow-Types.html#t:ListOf">ListOf</a> f ([] <a href="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a>))</span> <a href="src/TensorFlow.Nodes.html#line-108" class="link">Source</a> <a href="#t:Nodes" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ListOf:Nodes:7" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:getNodes">getNodes</a> :: <a href="TensorFlow-Types.html#t:ListOf">ListOf</a> f [<a href="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a>] -&gt; <a href="TensorFlow-Build.html#t:Build">Build</a> (<a href="../containers-0.5.7.1/Data-Set.html#t:Set">Set</a> <a href="TensorFlow-Output.html#t:NodeName">NodeName</a>) <a href="src/TensorFlow.Nodes.html#getNodes" class="link">Source</a> <a href="#v:getNodes" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ListOf:Fetchable:8" class="instance expander" onclick="toggleSection('i:id:ListOf:Fetchable:8')"></span> (~) <a href="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a> l (<a href="TensorFlow-Types.html#t:List">List</a> ([] <a href="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a>)) =&gt; <a href="TensorFlow-Nodes.html#t:Fetchable">Fetchable</a> (<a href="TensorFlow-Types.html#t:ListOf">ListOf</a> f ([] <a href="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a>)) l</span> <a href="src/TensorFlow.Nodes.html#line-114" class="link">Source</a> <a href="#t:Fetchable" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ListOf:Fetchable:8" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:getFetch">getFetch</a> :: <a href="TensorFlow-Types.html#t:ListOf">ListOf</a> f [<a href="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a>] -&gt; <a href="TensorFlow-Build.html#t:Build">Build</a> (<a href="TensorFlow-Nodes.html#t:Fetch">Fetch</a> l) <a href="src/TensorFlow.Nodes.html#getFetch" class="link">Source</a> <a href="#v:getFetch" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ListOf:Fetchable:9" class="instance expander" onclick="toggleSection('i:id:ListOf:Fetchable:9')"></span> (<a href="TensorFlow-Nodes.html#t:Fetchable">Fetchable</a> (f t) a, <a href="TensorFlow-Nodes.html#t:Fetchable">Fetchable</a> (<a href="TensorFlow-Types.html#t:ListOf">ListOf</a> f ts) (<a href="TensorFlow-Types.html#t:List">List</a> as), (~) (<a href="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a> -&gt; <a href="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a>) i <a href="../base-4.9.1.0/Data-Functor-Identity.html#t:Identity">Identity</a>) =&gt; <a href="TensorFlow-Nodes.html#t:Fetchable">Fetchable</a> (<a href="TensorFlow-Types.html#t:ListOf">ListOf</a> f ((:) <a href="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a> t ts)) (<a href="TensorFlow-Types.html#t:ListOf">ListOf</a> i ((:) <a href="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a> a as))</span> <a href="src/TensorFlow.Nodes.html#line-117" class="link">Source</a> <a href="#t:Fetchable" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ListOf:Fetchable:9" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:getFetch">getFetch</a> :: <a href="TensorFlow-Types.html#t:ListOf">ListOf</a> f ((<a href="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a> ': t) ts) -&gt; <a href="TensorFlow-Build.html#t:Build">Build</a> (<a href="TensorFlow-Nodes.html#t:Fetch">Fetch</a> (<a href="TensorFlow-Types.html#t:ListOf">ListOf</a> i ((<a href="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a> ': a) as))) <a href="src/TensorFlow.Nodes.html#getFetch" class="link">Source</a> <a href="#v:getFetch" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">type</span> <a id="t:List" class="def">List</a> = <a href="TensorFlow-Types.html#t:ListOf">ListOf</a> <a href="../base-4.9.1.0/Data-Functor-Identity.html#t:Identity">Identity</a> <a href="src/TensorFlow.Types.html#List" class="link">Source</a> <a href="#t:List" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:-47-:-47-" class="def">(/:/)</a> :: a -&gt; <a href="TensorFlow-Types.html#t:List">List</a> as -&gt; <a href="TensorFlow-Types.html#t:List">List</a> (a ': as) <span class="fixity">infixr 5</span><span class="rightedge"></span> <a href="src/TensorFlow.Types.html#%2F%3A%2F" class="link">Source</a> <a href="#v:-47-:-47-" class="selflink">#</a></p><div class="doc"><p>Equivalent of <code><a href="TensorFlow-Types.html#v::-47-">:/</a></code> for lists.</p></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:TensorTypeProxy" class="def">TensorTypeProxy</a> a <span class="keyword">where</span> <a href="src/TensorFlow.Types.html#TensorTypeProxy" class="link">Source</a> <a href="#t:TensorTypeProxy" class="selflink">#</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:TensorTypeProxy" class="def">TensorTypeProxy</a> :: <a href="TensorFlow-Types.html#t:TensorType">TensorType</a> a =&gt; <a href="TensorFlow-Types.html#t:TensorTypeProxy">TensorTypeProxy</a> a</td><td class="doc empty">&nbsp;</td></tr></table></div></div><div class="top"><p class="src"><span class="keyword">class</span> <a id="t:TensorTypes" class="def">TensorTypes</a> ts <span class="keyword">where</span> <a href="src/TensorFlow.Types.html#TensorTypes" class="link">Source</a> <a href="#t:TensorTypes" class="selflink">#</a></p><div class="subs minimal"><p class="caption">Minimal complete definition</p><p class="src"><a href="TensorFlow-Types.html#v:tensorTypes">tensorTypes</a></p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a id="v:tensorTypes" class="def">tensorTypes</a> :: <a href="TensorFlow-Types.html#t:TensorTypeList">TensorTypeList</a> ts <a href="src/TensorFlow.Types.html#tensorTypes" class="link">Source</a> <a href="#v:tensorTypes" class="selflink">#</a></p></div><div class="subs instances"><p id="control.i:TensorTypes" class="caption collapser" onclick="toggleSection('i:TensorTypes')">Instances</p><div id="section.i:TensorTypes" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:TensorTypes:TensorTypes:1" class="instance expander" onclick="toggleSection('i:ic:TensorTypes:TensorTypes:1')"></span> <a href="TensorFlow-Types.html#t:TensorTypes">TensorTypes</a> ([] <a href="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a>)</span> <a href="src/TensorFlow.Types.html#line-485" class="link">Source</a> <a href="#t:TensorTypes" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:TensorTypes:TensorTypes:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:tensorTypes">tensorTypes</a> :: <a href="TensorFlow-Types.html#t:TensorTypeList">TensorTypeList</a> [<a href="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a>] <a href="src/TensorFlow.Types.html#tensorTypes" class="link">Source</a> <a href="#v:tensorTypes" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:TensorTypes:TensorTypes:2" class="instance expander" onclick="toggleSection('i:ic:TensorTypes:TensorTypes:2')"></span> (<a href="TensorFlow-Types.html#t:TensorType">TensorType</a> t, <a href="TensorFlow-Types.html#t:TensorTypes">TensorTypes</a> ts) =&gt; <a href="TensorFlow-Types.html#t:TensorTypes">TensorTypes</a> ((:) <a href="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a> t ts)</span> <a href="src/TensorFlow.Types.html#line-489" class="link">Source</a> <a href="#t:TensorTypes" class="selflink">#</a></td><td class="doc"><p>A constraint that the input is a list of <code><a href="TensorFlow-Types.html#t:TensorTypes">TensorTypes</a></code>.</p></td></tr><tr><td colspan="2"><div id="section.i:ic:TensorTypes:TensorTypes:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:tensorTypes">tensorTypes</a> :: <a href="TensorFlow-Types.html#t:TensorTypeList">TensorTypeList</a> ((<a href="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a> ': t) ts) <a href="src/TensorFlow.Types.html#tensorTypes" class="link">Source</a> <a href="#v:tensorTypes" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">type</span> <a id="t:TensorTypeList" class="def">TensorTypeList</a> = <a href="TensorFlow-Types.html#t:ListOf">ListOf</a> <a href="TensorFlow-Types.html#t:TensorTypeProxy">TensorTypeProxy</a> <a href="src/TensorFlow.Types.html#TensorTypeList" class="link">Source</a> <a href="#t:TensorTypeList" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:fromTensorTypeList" class="def">fromTensorTypeList</a> :: <a href="TensorFlow-Types.html#t:TensorTypeList">TensorTypeList</a> ts -&gt; [<a href="TensorFlow-Types.html#t:DataType">DataType</a>] <a href="src/TensorFlow.Types.html#fromTensorTypeList" class="link">Source</a> <a href="#v:fromTensorTypeList" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:fromTensorTypes" class="def">fromTensorTypes</a> :: <span class="keyword">forall</span> as. <a href="TensorFlow-Types.html#t:TensorTypes">TensorTypes</a> as =&gt; <a href="../base-4.9.1.0/Data-Proxy.html#t:Proxy">Proxy</a> as -&gt; [<a href="TensorFlow-Types.html#t:DataType">DataType</a>] <a href="src/TensorFlow.Types.html#fromTensorTypes" class="link">Source</a> <a href="#v:fromTensorTypes" class="selflink">#</a></p></div><h1 id="g:2">Type constraints</h1><div class="top"><p class="src"><span class="keyword">type</span> <a id="t:OneOf" class="def">OneOf</a> ts a = (<a href="TensorFlow-Types.html#t:TensorType">TensorType</a> a, TensorTypes' ts, <a href="TensorFlow-Types.html#t:NoneOf">NoneOf</a> (<a href="TensorFlow-Types.html#t:AllTensorTypes">AllTensorTypes</a> <a href="TensorFlow-Types.html#t:-92--92-">\\</a> ts) a) <a href="src/TensorFlow.Types.html#OneOf" class="link">Source</a> <a href="#t:OneOf" class="selflink">#</a></p><div class="doc"><p>A <code><a href="../base-4.9.1.0/Data-Kind.html#t:Constraint">Constraint</a></code> specifying the possible choices of a <code><a href="TensorFlow-Types.html#t:TensorType">TensorType</a></code>.</p><p>We implement a <code><a href="../base-4.9.1.0/Data-Kind.html#t:Constraint">Constraint</a></code> like <code>OneOf '[Double, Float] a</code> by turning the
natural representation as a conjunction, i.e.,</p><pre> a == Double || a == Float
</pre><p>into a disjunction like</p><pre> a /= Int32 &amp;&amp; a /= Int64 &amp;&amp; a /= ByteString &amp;&amp; ...
</pre><p>using an enumeration of all the possible <code><a href="TensorFlow-Types.html#t:TensorType">TensorType</a></code>s.</p></div></div><div class="top"><p class="src"><span class="keyword">type family</span> a <a id="t:-47--61-" class="def">/=</a> b :: <a href="../base-4.9.1.0/Data-Kind.html#t:Constraint">Constraint</a> <span class="keyword">where ...</span> <a href="src/TensorFlow.Types.html#%2F%3D" class="link">Source</a> <a href="#t:-47--61-" class="selflink">#</a></p><div class="doc"><p>A constraint checking that two types are different.</p></div><div class="subs equations"><p class="caption">Equations</p><table><tr><td class="src">a <a href="TensorFlow-Types.html#t:-47--61-">/=</a> a = <a href="TensorFlow-Types.html#t:TypeError">TypeError</a> a ~ <a href="TensorFlow-Types.html#t:ExcludedCase">ExcludedCase</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">a <a href="TensorFlow-Types.html#t:-47--61-">/=</a> b = ()</td><td class="doc empty">&nbsp;</td></tr></table></div></div><div class="top"><p class="src"><span class="keyword">type</span> <a id="t:OneOfs" class="def">OneOfs</a> ts as = (<a href="TensorFlow-Types.html#t:TensorTypes">TensorTypes</a> as, TensorTypes' ts, NoneOfs (<a href="TensorFlow-Types.html#t:AllTensorTypes">AllTensorTypes</a> <a href="TensorFlow-Types.html#t:-92--92-">\\</a> ts) as) <a href="src/TensorFlow.Types.html#OneOfs" class="link">Source</a> <a href="#t:OneOfs" class="selflink">#</a></p></div><h2 id="g:3">Implementation of constraints</h2><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:TypeError" class="def">TypeError</a> a <a href="src/TensorFlow.Types.html#TypeError" class="link">Source</a> <a href="#t:TypeError" class="selflink">#</a></p><div class="doc"><p>Helper types to produce a reasonable type error message when the Constraint
&quot;a /= a&quot; fails.
TODO(judahjacobson): Use ghc-8's CustomTypeErrors for this.</p></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:ExcludedCase" class="def">ExcludedCase</a> <a href="src/TensorFlow.Types.html#ExcludedCase" class="link">Source</a> <a href="#t:ExcludedCase" class="selflink">#</a></p></div><div class="top"><p class="src"><span class="keyword">type family</span> <a id="t:NoneOf" class="def">NoneOf</a> ts a :: <a href="../base-4.9.1.0/Data-Kind.html#t:Constraint">Constraint</a> <span class="keyword">where ...</span> <a href="src/TensorFlow.Types.html#NoneOf" class="link">Source</a> <a href="#t:NoneOf" class="selflink">#</a></p><div class="doc"><p>A constraint that the type <code>a</code> doesn't appear in the type list <code>ts</code>.
Assumes that <code>a</code> and each of the elements of <code>ts</code> are <code><a href="TensorFlow-Types.html#t:TensorType">TensorType</a></code>s.</p></div><div class="subs equations"><p class="caption">Equations</p><table><tr><td class="src"><a href="TensorFlow-Types.html#t:NoneOf">NoneOf</a> (t1 ': (t2 ': (t3 ': (t4 ': ts)))) a = (a <a href="TensorFlow-Types.html#t:-47--61-">/=</a> t1, a <a href="TensorFlow-Types.html#t:-47--61-">/=</a> t2, a <a href="TensorFlow-Types.html#t:-47--61-">/=</a> t3, a <a href="TensorFlow-Types.html#t:-47--61-">/=</a> t4, <a href="TensorFlow-Types.html#t:NoneOf">NoneOf</a> ts a)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="TensorFlow-Types.html#t:NoneOf">NoneOf</a> (t1 ': (t2 ': (t3 ': ts))) a = (a <a href="TensorFlow-Types.html#t:-47--61-">/=</a> t1, a <a href="TensorFlow-Types.html#t:-47--61-">/=</a> t2, a <a href="TensorFlow-Types.html#t:-47--61-">/=</a> t3, <a href="TensorFlow-Types.html#t:NoneOf">NoneOf</a> ts a)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="TensorFlow-Types.html#t:NoneOf">NoneOf</a> (t1 ': (t2 ': ts)) a = (a <a href="TensorFlow-Types.html#t:-47--61-">/=</a> t1, a <a href="TensorFlow-Types.html#t:-47--61-">/=</a> t2, <a href="TensorFlow-Types.html#t:NoneOf">NoneOf</a> ts a)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="TensorFlow-Types.html#t:NoneOf">NoneOf</a> (t1 ': ts) a = (a <a href="TensorFlow-Types.html#t:-47--61-">/=</a> t1, <a href="TensorFlow-Types.html#t:NoneOf">NoneOf</a> ts a)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="TensorFlow-Types.html#t:NoneOf">NoneOf</a> '[] a = ()</td><td class="doc empty">&nbsp;</td></tr></table></div></div><div class="top"><p class="src"><span class="keyword">type family</span> as <a id="t:-92--92-" class="def">\\</a> bs <span class="keyword">where ...</span> <a href="src/TensorFlow.Types.html#%5C%5C" class="link">Source</a> <a href="#t:-92--92-" class="selflink">#</a></p><div class="doc"><p>Takes the difference of two lists of types.</p></div><div class="subs equations"><p class="caption">Equations</p><table><tr><td class="src">as <a href="TensorFlow-Types.html#t:-92--92-">\\</a> '[] = as</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">as <a href="TensorFlow-Types.html#t:-92--92-">\\</a> (b ': bs) = <a href="TensorFlow-Types.html#t:Delete">Delete</a> b as <a href="TensorFlow-Types.html#t:-92--92-">\\</a> bs</td><td class="doc empty">&nbsp;</td></tr></table></div></div><div class="top"><p class="src"><span class="keyword">type family</span> <a id="t:Delete" class="def">Delete</a> a as <span class="keyword">where ...</span> <a href="src/TensorFlow.Types.html#Delete" class="link">Source</a> <a href="#t:Delete" class="selflink">#</a></p><div class="doc"><p>Removes a type from the given list of types.</p></div><div class="subs equations"><p class="caption">Equations</p><table><tr><td class="src"><a href="TensorFlow-Types.html#t:Delete">Delete</a> a '[] = '[]</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="TensorFlow-Types.html#t:Delete">Delete</a> a (a ': as) = <a href="TensorFlow-Types.html#t:Delete">Delete</a> a as</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="TensorFlow-Types.html#t:Delete">Delete</a> a (b ': as) = b ': <a href="TensorFlow-Types.html#t:Delete">Delete</a> a as</td><td class="doc empty">&nbsp;</td></tr></table></div></div><div class="top"><p class="src"><span class="keyword">type</span> <a id="t:AllTensorTypes" class="def">AllTensorTypes</a> = '[<a href="../base-4.9.1.0/Prelude.html#t:Float">Float</a>, <a href="../base-4.9.1.0/Prelude.html#t:Double">Double</a>, <a href="../base-4.9.1.0/Data-Int.html#t:Int8">Int8</a>, <a href="../base-4.9.1.0/Data-Int.html#t:Int16">Int16</a>, <a href="../base-4.9.1.0/Data-Int.html#t:Int32">Int32</a>, <a href="../base-4.9.1.0/Data-Int.html#t:Int64">Int64</a>, <a href="../base-4.9.1.0/Data-Word.html#t:Word8">Word8</a>, <a href="../base-4.9.1.0/Data-Word.html#t:Word16">Word16</a>, <a href="../bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a>, <a href="../base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a>] <a href="src/TensorFlow.Types.html#AllTensorTypes" class="link">Source</a> <a href="#t:AllTensorTypes" class="selflink">#</a></p><div class="doc"><p>An enumeration of all valid <code><a href="TensorFlow-Types.html#t:TensorType">TensorType</a></code>s.</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.17.3</p></div></body></html>