1
0
mirror of https://github.com/tensorflow/haskell.git synced 2024-06-18 02:28:33 +02:00
tensorflow-haskell/docs/haddock/tensorflow-0.3.0.0/TensorFlow-Types.html

12 lines
197 KiB
HTML
Raw Normal View History

<!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" /><meta name="viewport" content="width=device-width, initial-scale=1" /><title>TensorFlow.Types</title><link href="linuwial.css" rel="stylesheet" type="text/css" title="Linuwial" /><link rel="stylesheet" type="text/css" href="quick-jump.css" /><link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=PT+Sans:400,400i,700" /><script src="haddock-bundle.min.js" async="async" type="text/javascript"></script><script type="text/x-mathjax-config">MathJax.Hub.Config({ tex2jax: { processClass: "mathjax", ignoreClass: ".*" } });</script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script></head><body><div id="package-header"><span class="caption">tensorflow-0.3.0.0: TensorFlow bindings.</span><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></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"><div id="contents-list"><p class="caption" onclick="window.scrollTo(0,0)">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><div id="synopsis"><details id="syn"><summary>Synopsis</summary><ul class="details-toggle" data-details-id="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"><li><a href="#v:tensorType">tensorType</a> :: a -&gt; <a href="TensorFlow-Types.html#t:DataType" title="TensorFlow.Types">DataType</a></li><li><a href="#v:tensorRefType">tensorRefType</a> :: a -&gt; <a href="TensorFlow-Types.html#t:DataType" title="TensorFlow.Types">DataType</a></li><li><a href="#v:tensorVal">tensorVal</a> :: Lens' <a href="../tensorflow-proto-0.3.0.0/Proto-Tensorflow-Core-Framework-Tensor.html#t:TensorProto" title="Proto.Tensorflow.Core.Framework.Tensor">TensorProto</a> [a]</li></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" title="TensorFlow.Internal.FFI">TensorData</a></li></ul>}</li><li class="src short"><span class="keyword">class</span> <a href="TensorFlow-Types.html#t:TensorType" title="TensorFlow.Types">TensorType</a> a =&gt; <a href="#t:TensorDataType">TensorDataType</a> s a <span class="keyword">where</span><ul class="subs"><li><a href="#v:decodeTensorData">decodeTensorData</a> :: <a href="TensorFlow-Types.html#t:TensorData" title="TensorFlow.Types">TensorData</a> a -&gt; s a</li><li><a href="#v:encodeTensorData">encodeTensorData</a> :: <a href="TensorFlow-Types.html#t:Shape" title="TensorFlow.Types">Shape</a> -&gt; s a -&gt; <a href="TensorFlow-Types.html#t:TensorData" title="TensorFlow.Types">TensorData</a> a</li></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.13.0.0/Data-Int.html#t:Int64" title="Data.Int">Int64</a>]</li><li class="src short"><a href="#v:protoShape">protoShape</a> :: Lens' <a href="../tensorflow-proto-0.3.0.0/Proto-Tensorflow-Core-Framework-TensorShape.html#t:TensorShapeProto" title="Proto.Tensorflow.Core.Framework.TensorShap
element 1: index (0, ..., 1)
...</p></div></div><div class="subs instances"><h4 class="instances details-toggle-control details-toggle" data-details-id="i:TensorDataType">Instances</h4><details id="i:TensorDataType" open="open"><summary class="hide-when-js-enabled">Instances details</summary><table><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:ic:TensorDataType:TensorDataType:1"></span> <a href="TensorFlow-Types.html#t:TensorDataType" title="TensorFlow.Types">TensorDataType</a> Vector <a href="../base-4.13.0.0/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a></span> <a href="src/TensorFlow.Types.html#line-298" class="link">Source</a> <a href="#t:TensorDataType" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:TensorDataType:TensorDataType:1"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Types.html">TensorFlow.Types</a></p> <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" title="TensorFlow.Types">TensorData</a> <a href="../base-4.13.0.0/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> -&gt; Vector <a href="../base-4.13.0.0/Data-Bool.html#t:Bool" title="Data.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" title="TensorFlow.Types">Shape</a> -&gt; Vector <a href="../base-4.13.0.0/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> -&gt; <a href="TensorFlow-Types.html#t:TensorData" title="TensorFlow.Types">TensorData</a> <a href="../base-4.13.0.0/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> <a href="src/TensorFlow.Types.html#encodeTensorData" class="link">Source</a> <a href="#v:encodeTensorData" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:ic:TensorDataType:TensorDataType:2"></span> <a href="TensorFlow-Types.html#t:TensorDataType" title="TensorFlow.Types">TensorDataType</a> Vector <a href="../base-4.13.0.0/Prelude.html#t:Double" title="Prelude">Double</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"><details id="i:ic:TensorDataType:TensorDataType:2"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Types.html">TensorFlow.Types</a></p> <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" title="TensorFlow.Types">TensorData</a> <a href="../base-4.13.0.0/Prelude.html#t:Double" title="Prelude">Double</a> -&gt; Vector <a href="../base-4.13.0.0/Prelude.html#t:Double" title="Prelude">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" title="TensorFlow.Types">Shape</a> -&gt; Vector <a href="../base-4.13.0.0/Prelude.html#t:Double" title="Prelude">Double</a> -&gt; <a href="TensorFlow-Types.html#t:TensorData" title="TensorFlow.Types">TensorData</a> <a href="../base-4.13.0.0/Prelude.html#t:Double" title="Prelude">Double</a> <a href="src/TensorFlow.Types.html#encodeTensorData" class="link">Source</a> <a href="#v:encodeTensorData" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:ic:TensorDataType:TensorDataType:3"></span> <a href="TensorFlow-Types.html#t:TensorDataType" title
<code>Nothing :: Maybe Shape</code> in Haskell.</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.13.0.0/Data-Int.html#t:Int64" title="Data.Int">Int64</a>]</td><td class="doc empty">&nbsp;</td></tr></table></div><div class="subs instances"><h4 class="instances details-toggle-control details-toggle" data-details-id="i:Shape">Instances</h4><details id="i:Shape" open="open"><summary class="hide-when-js-enabled">Instances details</summary><table><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:Shape:IsList:1"></span> <a href="../base-4.13.0.0/GHC-Exts.html#t:IsList" title="GHC.Exts">IsList</a> <a href="TensorFlow-Types.html#t:Shape" title="TensorFlow.Types">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"><details id="i:id:Shape:IsList:1"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Types.html">TensorFlow.Types</a></p> <div class="subs associated-types"><p class="caption">Associated Types</p><p class="src"><span class="keyword">type</span> <a href="../base-4.13.0.0/GHC-Exts.html#t:Item" title="GHC.Exts">Item</a> <a href="TensorFlow-Types.html#t:Shape" title="TensorFlow.Types">Shape</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.13.0.0/GHC-Exts.html#t:Item" title="GHC.Exts">Item</a> <a href="TensorFlow-Types.html#t:Shape" title="TensorFlow.Types">Shape</a>] -&gt; <a href="TensorFlow-Types.html#t:Shape" title="TensorFlow.Types">Shape</a> <a href="#v:fromList" class="selflink">#</a></p><p class="src"><a href="#v:fromListN">fromListN</a> :: <a href="../base-4.13.0.0/Data-Int.html#t:Int" title="Data.Int">Int</a> -&gt; [<a href="../base-4.13.0.0/GHC-Exts.html#t:Item" title="GHC.Exts">Item</a> <a href="TensorFlow-Types.html#t:Shape" title="TensorFlow.Types">Shape</a>] -&gt; <a href="TensorFlow-Types.html#t:Shape" title="TensorFlow.Types">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" title="TensorFlow.Types">Shape</a> -&gt; [<a href="../base-4.13.0.0/GHC-Exts.html#t:Item" title="GHC.Exts">Item</a> <a href="TensorFlow-Types.html#t:Shape" title="TensorFlow.Types">Shape</a>] <a href="#v:toList" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:Shape:Show:2"></span> <a href="../base-4.13.0.0/Text-Show.html#t:Show" title="Text.Show">Show</a> <a href="TensorFlow-Types.html#t:Shape" title="TensorFlow.Types">Shape</a></span> <a href="src/TensorFlow.Types.html#line-389" class="link">Source</a> <a href="#t:Shape" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:Shape:Show:2"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Types.html">TensorFlow.Types</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="../base-4.13.0.0/Data-Int.html#t:Int" title="Data.Int">Int</a> -&gt; <a href="TensorFlow-Types.html#t:Shape" title="TensorFlow.Types">Shape</a> -&gt; <a href="../base-4.13.0.0/Text-Show.html#t:ShowS" title="Text.Show">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" title="TensorFlow.Types">Shape</a> -&gt; <a href="../base-4.13.0.0/Data-String.html#t:String" title="Data.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:Sha
TensorFlow variants aren't supported yet. This type acts a placeholder to
simplify op generation.</p></div><div class="subs instances"><h4 class="instances details-toggle-control details-toggle" data-details-id="i:Variant">Instances</h4><details id="i:Variant" open="open"><summary class="hide-when-js-enabled">Instances details</summary><table><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:Variant:TensorType:1"></span> <a href="TensorFlow-Types.html#t:TensorType" title="TensorFlow.Types">TensorType</a> <a href="TensorFlow-Types.html#t:Variant" title="TensorFlow.Types">Variant</a></span> <a href="src/TensorFlow.Types.html#line-223" class="link">Source</a> <a href="#t:Variant" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:Variant:TensorType:1"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Types.html">TensorFlow.Types</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:tensorType">tensorType</a> :: <a href="TensorFlow-Types.html#t:Variant" title="TensorFlow.Types">Variant</a> -&gt; <a href="TensorFlow-Types.html#t:DataType" title="TensorFlow.Types">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:Variant" title="TensorFlow.Types">Variant</a> -&gt; <a href="TensorFlow-Types.html#t:DataType" title="TensorFlow.Types">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.3.0.0/Proto-Tensorflow-Core-Framework-Tensor.html#t:TensorProto" title="Proto.Tensorflow.Core.Framework.Tensor">TensorProto</a> [<a href="TensorFlow-Types.html#t:Variant" title="TensorFlow.Types">Variant</a>] <a href="src/TensorFlow.Types.html#tensorVal" class="link">Source</a> <a href="#v:tensorVal" class="selflink">#</a></p></div></details></td></tr></table></details></div></div><a href="#g:1" id="g:1"><h1>Lists</h1></a><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" title="TensorFlow.Types">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" title="TensorFlow.Types">ListOf</a> f as -&gt; <a href="TensorFlow-Types.html#t:ListOf" title="TensorFlow.Types">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"><h4 class="instances details-toggle-control details-toggle" data-details-id="i:ListOf">Instances</h4><details id="i:ListOf" open="open"><summary class="hide-when-js-enabled">Instances details</summary><table><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:ListOf:Eq:1"></span> All <a href="../base-4.13.0.0/Data-Eq.html#t:Eq" title="Data.Eq">Eq</a> (Map f as) =&gt; <a href="../base-4.13.0.0/Data-Eq.html#t:Eq" title="Data.Eq">Eq</a> (<a href="TensorFlow-Types.html#t:ListOf" title="TensorFlow.Types">ListOf</a> f as)</span> <a href="src/TensorFlow.Types.html#line-471" class="link">Source</a> <a href="#t:ListOf" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:ListOf:Eq:1"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined
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" title="TensorFlow.Types">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.13.0.0/Data-Kind.html#t:Constraint" title="Data.Kind">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-" title="TensorFlow.Types">/=</a> a = <a href="TensorFlow-Types.html#t:TypeError" title="TensorFlow.Types">TypeError</a> a ~ <a href="TensorFlow-Types.html#t:ExcludedCase" title="TensorFlow.Types">ExcludedCase</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">a <a href="TensorFlow-Types.html#t:-47--61-" title="TensorFlow.Types">/=</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" title="TensorFlow.Types">TensorTypes</a> as, TensorTypes' ts, NoneOfs (<a href="TensorFlow-Types.html#t:AllTensorTypes" title="TensorFlow.Types">AllTensorTypes</a> <a href="TensorFlow-Types.html#t:-92--92-" title="TensorFlow.Types">\\</a> ts) as) <a href="src/TensorFlow.Types.html#OneOfs" class="link">Source</a> <a href="#t:OneOfs" class="selflink">#</a></p></div><a href="#g:3" id="g:3"><h2>Implementation of constraints</h2></a><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.13.0.0/Data-Kind.html#t:Constraint" title="Data.Kind">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" title="TensorFlow.Types">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" title="TensorFlow.Types">NoneOf</a> (t1 ': (t2 ': (t3 ': (t4 ': ts)))) a = (a <a href="TensorFlow-Types.html#t:-47--61-" title="TensorFlow.Types">/=</a> t1, a <a href="TensorFlow-Types.html#t:-47--61-" title="TensorFlow.Types">/=</a> t2, a <a href="TensorFlow-Types.html#t:-47--61-" title="TensorFlow.Types">/=</a> t3, a <a href="TensorFlow-Types.html#t:-47--61-" title="TensorFlow.Types">/=</a> t4, <a href="TensorFlow-Types.html#t:NoneOf" title="TensorFlow.Types">NoneOf</a> ts a)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="TensorFlow-Types.html#t:NoneOf" title="TensorFlow.Types">NoneOf</a> (t1 ': (t2 ': (t3 ': ts))) a = (a <a href="TensorFlow-Types.html#t:-47--61-" title="TensorFlow.Types">/=</a> t1, a <a href="TensorFlow-Types.html#t:-47--61-" title="TensorFlow.Types">/=</a> t2, a <a href="TensorFlow-Types.html#t:-47--61-" title="TensorFlow.Types">/=</a> t3, <a href="TensorFlow-Types.html#t:NoneOf" title="TensorFlow.Types">NoneOf</a> ts a)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="TensorFlow-Types.html#t:NoneOf" title="TensorFlow.Types">NoneOf</a> (t1 ': (t2 ': ts)) a = (a <a href="TensorFlow-Types.html#t:-47--61-" title="TensorFlow.Types">/=</a> t1, a <a href="TensorFlow-Types.html#t:-47--61-" title="TensorFlow.Types">/=</a> t2, <a href="TensorFlow-Types.html#t:NoneOf" title="TensorFlow.Types">NoneOf</a> ts a)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="TensorFlow-Types.html#t:NoneOf" title="TensorFlow.Types">NoneOf</a> (t1 ': ts) a = (a <a href="TensorFlow-Types.html#t:-47--61-" title="TensorFlow.Types">/=</a> t1, <a href="TensorFlow-Types.html#t:NoneOf" title="TensorFlow.Types">NoneOf</a> ts a)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="TensorFlow-Types.html#t:NoneOf" title="TensorFlow.Types">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-" title="TensorFlow.Types">\\</a> '[] = as</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">as <a href="TensorFlow-Types.html#t:-92--92-" title="TensorFlow.Types">\\</a> (b ': bs) = <a href="TensorFlow-Types.html#t:Delete" title="TensorFlow.Types">Delete</a> b as <a href="TensorFlow-Types.html#t:-92--92-" title="TensorFlow.Types">\\</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" title="TensorFlow.Types">Delete</a> a '[] = '[]</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="TensorFlow-Types.html#t:Delete" title="TensorFlow.Types">Delete</a> a (a ': as) = <a href="TensorFlow-Types.html#t:Delete" title="TensorFlow.Types">Delete</a> a as</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="TensorFlow-Types.html#t:Delete" title="TensorFlow.Types">Delete</a> a (b ': as) = b ': <a href="TensorFlow-Types.html#t:Delete" title="TensorFlo