cutlass/docs/tensor_8h_source.html

170 lines
98 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/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>CUTLASS: tensor.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js"],
jax: ["input/TeX","output/HTML-CSS"],
});
</script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="cutlass-logo-small.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">CUTLASS
</div>
<div id="projectbrief">CUDA Templates for Linear Algebra Subroutines and Solvers</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&#160;List</span></a></li>
<li><a href="globals.html"><span>File&#160;Members</span></a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_6baf2bb612a2f0daa69af3101ede80a1.html">cutlass</a></li><li class="navelem"><a class="el" href="dir_2296cf082f2778f9a3503c8ea1010763.html">layout</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">tensor.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="tensor_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">/***************************************************************************************************</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment"> * Copyright (c) 2017-2019, NVIDIA CORPORATION. All rights reserved.</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment"> * Redistribution and use in source and binary forms, with or without modification, are permitted</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment"> * provided that the following conditions are met:</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment"> * * Redistributions of source code must retain the above copyright notice, this list of</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment"> * conditions and the following disclaimer.</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment"> * * Redistributions in binary form must reproduce the above copyright notice, this list of</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment"> * conditions and the following disclaimer in the documentation and/or other materials</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment"> * provided with the distribution.</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment"> * * Neither the name of the NVIDIA CORPORATION nor the names of its contributors may be used</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment"> * to endorse or promote products derived from this software without specific prior written</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="comment"> * permission.</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="comment"> * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS &quot;AS IS&quot; AND ANY EXPRESS OR</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="comment"> * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="comment"> * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL NVIDIA CORPORATION BE LIABLE</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="comment"> * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="comment"> * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="comment"> * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="comment"> * STRICT LIABILITY, OR TOR (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE</span></div><div class="line"><a name="l00022"></a><
<div class="ttc" id="classcutlass_1_1layout_1_1TensorNCHW_html_a71ed1de94210b6110c5017a10a52376d"><div class="ttname"><a href="classcutlass_1_1layout_1_1TensorNCHW.html#a71ed1de94210b6110c5017a10a52376d">cutlass::layout::TensorNCHW::stride</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE Stride stride() const </div><div class="ttdoc">Returns the stride of the layout. </div><div class="ttdef"><b>Definition:</b> tensor.h:246</div></div>
<div class="ttc" id="structcutlass_1_1Tensor4DCoord_html"><div class="ttname"><a href="structcutlass_1_1Tensor4DCoord.html">cutlass::Tensor4DCoord</a></div><div class="ttdoc">Defines a canonical 4D coordinate used by tensor operations. </div><div class="ttdef"><b>Definition:</b> tensor_coord.h:38</div></div>
<div class="ttc" id="classcutlass_1_1layout_1_1TensorCxRSKx_html_a53cbde36dc454e12231492154c3c0e3e"><div class="ttname"><a href="classcutlass_1_1layout_1_1TensorCxRSKx.html#a53cbde36dc454e12231492154c3c0e3e">cutlass::layout::TensorCxRSKx::TensorCxRSKx</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE TensorCxRSKx(Stride const &amp;stride=Stride(0))</div><div class="ttdoc">Constructor. </div><div class="ttdef"><b>Definition:</b> tensor.h:396</div></div>
<div class="ttc" id="namespacecutlass_html"><div class="ttname"><a href="namespacecutlass.html">cutlass</a></div><div class="ttdef"><b>Definition:</b> aligned_buffer.h:35</div></div>
<div class="ttc" id="namespacecutlass_html_ab9726f5a6b39322cf13cd916257fd9a7"><div class="ttname"><a href="namespacecutlass.html#ab9726f5a6b39322cf13cd916257fd9a7">cutlass::fast_divmod</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE void fast_divmod(int &amp;quo, int &amp;rem, int src, int div, unsigned int mul, unsigned int shr)</div><div class="ttdef"><b>Definition:</b> fast_math.h:176</div></div>
<div class="ttc" id="classcutlass_1_1layout_1_1TensorNCxHWx_html_a915e1193d4f9c1feb973ae1331687bf9"><div class="ttname"><a href="classcutlass_1_1layout_1_1TensorNCxHWx.html#a915e1193d4f9c1feb973ae1331687bf9">cutlass::layout::TensorNCxHWx::capacity</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE LongIndex capacity(TensorCoord const &amp;extent) const </div><div class="ttdoc">Compute the number of contiguous elements needed to store a tensor with the given size...</div><div class="ttdef"><b>Definition:</b> tensor.h:348</div></div>
<div class="ttc" id="classcutlass_1_1layout_1_1TensorNCxHWx_html_a59e93fceb4a8c9a7dd7492a19e4c98df"><div class="ttname"><a href="classcutlass_1_1layout_1_1TensorNCxHWx.html#a59e93fceb4a8c9a7dd7492a19e4c98df">cutlass::layout::TensorNCxHWx::TensorNCxHWx</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE TensorNCxHWx(Stride const &amp;stride=Stride(0))</div><div class="ttdoc">Constructor. </div><div class="ttdef"><b>Definition:</b> tensor.h:306</div></div>
<div class="ttc" id="classcutlass_1_1layout_1_1TensorNHWC_html_aa03e4031f1ea30e534df11ffdc0cf59c"><div class="ttname"><a href="classcutlass_1_1layout_1_1TensorNHWC.html#aa03e4031f1ea30e534df11ffdc0cf59c">cutlass::layout::TensorNHWC::kStrideRank</a></div><div class="ttdeci">static int const kStrideRank</div><div class="ttdoc">Rank of stride vector. </div><div class="ttdef"><b>Definition:</b> tensor.h:59</div></div>
<div class="ttc" id="classcutlass_1_1layout_1_1TensorNCxHWx_html_af6a8593026ce08ec962f43db36c84496"><div class="ttname"><a href="classcutlass_1_1layout_1_1TensorNCxHWx.html#af6a8593026ce08ec962f43db36c84496">cutlass::layout::TensorNCxHWx::packed</a></div><div class="ttdeci">static CUTLASS_HOST_DEVICE TensorNCxHWx packed(TensorCoord const &amp;extent)</div><div class="ttdoc">Helper returns a layout to a tightly packed tensor. </div><div class="ttdef"><b>Definition:</b> tensor.h:310</div></div>
<div class="ttc" id="coord_8h_html"><div class="ttname"><a href="coord_8h.html">coord.h</a></div><div class="ttdoc">A Coord is a coordinate of arbitrary rank into a tensor or matrix. </div></div>
<div class="ttc" id="namespacecutlass_html_a7419519fa453a121dfa5f26bf87318d9"><div class="ttname"><a href="namespacecutlass.html#a7419519fa453a121dfa5f26bf87318d9">cutlass::make_Coord</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE Coord&lt; 1 &gt; make_Coord(int _0)</div><div class="ttdoc">Helper to make a 2-element coordinate. </div><div class="ttdef"><b>Definition:</b> coord.h:387</div></div>
<div class="ttc" id="classcutlass_1_1layout_1_1TensorCxRSKx_html_a1f7f0c8accc79e69057fc4ac487142b4"><div class="ttname"><a href="classcutlass_1_1layout_1_1TensorCxRSKx.html#a1f7f0c8accc79e69057fc4ac487142b4">cutlass::layout::TensorCxRSKx::operator()</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE LongIndex operator()(TensorCoord const &amp;coord) const </div><div class="ttdoc">Returns the offset of a coordinate in linear memory. </div><div class="ttdef"><b>Definition:</b> tensor.h:412</div></div>
<div class="ttc" id="classcutlass_1_1layout_1_1TensorNCxHWx_html_a7b136a1523b0ba92e8e54b7882696cf9"><div class="ttname"><a href="classcutlass_1_1layout_1_1TensorNCxHWx.html#a7b136a1523b0ba92e8e54b7882696cf9">cutlass::layout::TensorNCxHWx::stride</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE Stride stride() const </div><div class="ttdoc">Returns the stride of the layout. </div><div class="ttdef"><b>Definition:</b> tensor.h:336</div></div>
<div class="ttc" id="classcutlass_1_1layout_1_1TensorNHWC_html_a3bb3250d891e752789fa02d5c0cc0ede"><div class="ttname"><a href="classcutlass_1_1layout_1_1TensorNHWC.html#a3bb3250d891e752789fa02d5c0cc0ede">cutlass::layout::TensorNHWC::capacity</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE LongIndex capacity(TensorCoord const &amp;extent) const </div><div class="ttdoc">Compute the number of contiguous elements needed to store a tensor with the given size...</div><div class="ttdef"><b>Definition:</b> tensor.h:169</div></div>
<div class="ttc" id="classcutlass_1_1layout_1_1TensorNHWC_html_ac261fc9c833126bb2afa5c70feacf2a3"><div class="ttname"><a href="classcutlass_1_1layout_1_1TensorNHWC.html#ac261fc9c833126bb2afa5c70feacf2a3">cutlass::layout::TensorNHWC::Index</a></div><div class="ttdeci">int32_t Index</div><div class="ttdoc">Index type used for coordinates. </div><div class="ttdef"><b>Definition:</b> tensor.h:62</div></div>
<div class="ttc" id="classcutlass_1_1layout_1_1TensorNHWC_html_a89257c24195c4ebe72466ed6be4ea898"><div class="ttname"><a href="classcutlass_1_1layout_1_1TensorNHWC.html#a89257c24195c4ebe72466ed6be4ea898">cutlass::layout::TensorNHWC::TensorCoord</a></div><div class="ttdeci">Tensor4DCoord TensorCoord</div><div class="ttdoc">Logical coordinate (n, h, w, c) </div><div class="ttdef"><b>Definition:</b> tensor.h:68</div></div>
<div class="ttc" id="classcutlass_1_1layout_1_1TensorNCxHWx_html"><div class="ttname"><a href="classcutlass_1_1layout_1_1TensorNCxHWx.html">cutlass::layout::TensorNCxHWx</a></div><div class="ttdoc">Mapping function for 4-D NC/xHWx tensors. </div><div class="ttdef"><b>Definition:</b> tensor.h:267</div></div>
<div class="ttc" id="classcutlass_1_1layout_1_1TensorNCHW_html_a9f0b098e30b11bc2f5aaef336c8ed204"><div class="ttname"><a href="classcutlass_1_1layout_1_1TensorNCHW.html#a9f0b098e30b11bc2f5aaef336c8ed204">cutlass::layout::TensorNCHW::LongIndex</a></div><div class="ttdeci">int64_t LongIndex</div><div class="ttdoc">Long index type used for offsets. </div><div class="ttdef"><b>Definition:</b> tensor.h:198</div></div>
<div class="ttc" id="structcutlass_1_1Tensor4DCoord_html_ae3136dc898c4ef079e73b51b1850ba7e"><div class="ttname"><a href="structcutlass_1_1Tensor4DCoord.html#ae3136dc898c4ef079e73b51b1850ba7e">cutlass::Tensor4DCoord::w</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE Index const &amp; w() const </div><div class="ttdoc">Returns the column of the coordinate. </div><div class="ttdef"><b>Definition:</b> tensor_coord.h:95</div></div>
<div class="ttc" id="classcutlass_1_1layout_1_1TensorNHWC_html_a4214c37382cd4e479748dae3f5e3bc52"><div class="ttname"><a href="classcutlass_1_1layout_1_1TensorNHWC.html#a4214c37382cd4e479748dae3f5e3bc52">cutlass::layout::TensorNHWC::TensorNHWC</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE TensorNHWC(Stride const &amp;stride=Stride(0))</div><div class="ttdoc">Constructor. </div><div class="ttdef"><b>Definition:</b> tensor.h:88</div></div>
<div class="ttc" id="structcutlass_1_1Coord_html_a7a89e5661ef391dd9f4fe81f0c982b75"><div class="ttname"><a href="structcutlass_1_1Coord.html#a7a89e5661ef391dd9f4fe81f0c982b75">cutlass::Coord&lt; kStrideRank &gt;::Index</a></div><div class="ttdeci">int Index</div><div class="ttdoc">Index type used to store elements. </div><div class="ttdef"><b>Definition:</b> coord.h:55</div></div>
<div class="ttc" id="classcutlass_1_1layout_1_1TensorNCHW_html_a3096dbd7c7243eaa54c139d137b7e2b5"><div class="ttname"><a href="classcutlass_1_1layout_1_1TensorNCHW.html#a3096dbd7c7243eaa54c139d137b7e2b5">cutlass::layout::TensorNCHW::packed</a></div><div class="ttdeci">static CUTLASS_HOST_DEVICE TensorNCHW packed(TensorCoord const &amp;extent)</div><div class="ttdoc">Helper returns a layout to a tightly packed tensor. </div><div class="ttdef"><b>Definition:</b> tensor.h:225</div></div>
<div class="ttc" id="classcutlass_1_1layout_1_1TensorNHWC_html_a82ef6fe64c60f808f2844fcb15834a4c"><div class="ttname"><a href="classcutlass_1_1layout_1_1TensorNHWC.html#a82ef6fe64c60f808f2844fcb15834a4c">cutlass::layout::TensorNHWC::stride</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE Stride &amp; stride()</div><div class="ttdoc">Returns the stride of the layout. </div><div class="ttdef"><b>Definition:</b> tensor.h:163</div></div>
<div class="ttc" id="classcutlass_1_1layout_1_1TensorNCHW_html_aa0b2d1bcdf7697cf07d26b91aba7f5d8"><div class="ttname"><a href="classcutlass_1_1layout_1_1TensorNCHW.html#aa0b2d1bcdf7697cf07d26b91aba7f5d8">cutlass::layout::TensorNCHW::TensorNCHW</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE TensorNCHW(Stride const &amp;stride=Stride(0))</div><div class="ttdoc">Constructor. </div><div class="ttdef"><b>Definition:</b> tensor.h:221</div></div>
<div class="ttc" id="classcutlass_1_1layout_1_1TensorNHWC_html_afa85abf66e9f96d675a038307f8896bc"><div class="ttname"><a href="classcutlass_1_1layout_1_1TensorNHWC.html#afa85abf66e9f96d675a038307f8896bc">cutlass::layout::TensorNHWC::kRank</a></div><div class="ttdeci">static int const kRank</div><div class="ttdoc">Logical rank of tensor. </div><div class="ttdef"><b>Definition:</b> tensor.h:56</div></div>
<div class="ttc" id="classcutlass_1_1layout_1_1TensorNCxHWx_html_a18eccaeabb7badcd2fc5d7326d194730"><div class="ttname"><a href="classcutlass_1_1layout_1_1TensorNCxHWx.html#a18eccaeabb7badcd2fc5d7326d194730">cutlass::layout::TensorNCxHWx::stride</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE Stride &amp; stride()</div><div class="ttdoc">Returns the stride of the layout. </div><div class="ttdef"><b>Definition:</b> tensor.h:342</div></div>
<div class="ttc" id="classcutlass_1_1layout_1_1TensorNCHW_html_a20dd56dacab1558db7253fb737704c51"><div class="ttname"><a href="classcutlass_1_1layout_1_1TensorNCHW.html#a20dd56dacab1558db7253fb737704c51">cutlass::layout::TensorNCHW::capacity</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE LongIndex capacity(TensorCoord const &amp;extent) const </div><div class="ttdoc">Compute the number of contiguous elements needed to store a tensor with the given size...</div><div class="ttdef"><b>Definition:</b> tensor.h:258</div></div>
<div class="ttc" id="structcutlass_1_1Tensor4DCoord_html_ab0f58e5f54b42534fca77a662c78c7ad"><div class="ttname"><a href="structcutlass_1_1Tensor4DCoord.html#ab0f58e5f54b42534fca77a662c78c7ad">cutlass::Tensor4DCoord::c</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE Index const &amp; c() const </div><div class="ttdoc">Returns the channel of the coordinate. </div><div class="ttdef"><b>Definition:</b> tensor_coord.h:103</div></div>
<div class="ttc" id="classcutlass_1_1layout_1_1TensorCxRSKx_html_aa7759f0e487cfa2d314951e3dec569e3"><div class="ttname"><a href="classcutlass_1_1layout_1_1TensorCxRSKx.html#aa7759f0e487cfa2d314951e3dec569e3">cutlass::layout::TensorCxRSKx::Index</a></div><div class="ttdeci">int32_t Index</div><div class="ttdoc">Index type used for coordinates. </div><div class="ttdef"><b>Definition:</b> tensor.h:370</div></div>
<div class="ttc" id="classcutlass_1_1layout_1_1TensorNHWC_html_a0f03db22381cc9a08699667452e42e1e"><div class="ttname"><a href="classcutlass_1_1layout_1_1TensorNHWC.html#a0f03db22381cc9a08699667452e42e1e">cutlass::layout::TensorNHWC::TensorNHWC</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE TensorNHWC(typename Stride::Index c, typename Stride::Index wc, typename Stride::Index hwc)</div><div class="ttdoc">Constructor. </div><div class="ttdef"><b>Definition:</b> tensor.h:92</div></div>
<div class="ttc" id="classcutlass_1_1layout_1_1TensorCxRSKx_html_abe444796b2156c056d77f399c81616ac"><div class="ttname"><a href="classcutlass_1_1layout_1_1TensorCxRSKx.html#abe444796b2156c056d77f399c81616ac">cutlass::layout::TensorCxRSKx::stride</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE Stride &amp; stride()</div><div class="ttdoc">Returns the stride of the layout. </div><div class="ttdef"><b>Definition:</b> tensor.h:432</div></div>
<div class="ttc" id="tensor__coord_8h_html"><div class="ttname"><a href="tensor__coord_8h.html">tensor_coord.h</a></div><div class="ttdoc">Defines a canonical coordinate for rank=4 tensors offering named indices. </div></div>
<div class="ttc" id="classcutlass_1_1layout_1_1TensorCxRSKx_html_a80a74c41700027d19b7dd8e134506a3a"><div class="ttname"><a href="classcutlass_1_1layout_1_1TensorCxRSKx.html#a80a74c41700027d19b7dd8e134506a3a">cutlass::layout::TensorCxRSKx::stride</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE Stride stride() const </div><div class="ttdoc">Returns the stride of the layout. </div><div class="ttdef"><b>Definition:</b> tensor.h:426</div></div>
<div class="ttc" id="classcutlass_1_1layout_1_1TensorCxRSKx_html"><div class="ttname"><a href="classcutlass_1_1layout_1_1TensorCxRSKx.html">cutlass::layout::TensorCxRSKx</a></div><div class="ttdoc">Mapping function for 4-D CxRSKx tensors. </div><div class="ttdef"><b>Definition:</b> tensor.h:357</div></div>
<div class="ttc" id="classcutlass_1_1layout_1_1TensorNHWC_html_a4e66e7ef2905194af62c8f0a8d3be4c9"><div class="ttname"><a href="classcutlass_1_1layout_1_1TensorNHWC.html#a4e66e7ef2905194af62c8f0a8d3be4c9">cutlass::layout::TensorNHWC::LongIndex</a></div><div class="ttdeci">int64_t LongIndex</div><div class="ttdoc">Long index type used for offsets. </div><div class="ttdef"><b>Definition:</b> tensor.h:65</div></div>
<div class="ttc" id="cutlass_8h_html_a28c2443a142676d3d71effdae1a986b1"><div class="ttname"><a href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="ttdeci">#define CUTLASS_HOST_DEVICE</div><div class="ttdef"><b>Definition:</b> cutlass.h:89</div></div>
<div class="ttc" id="classcutlass_1_1layout_1_1TensorNHWC_html_ab38ea68b38cf635ea661360967edb8d2"><div class="ttname"><a href="classcutlass_1_1layout_1_1TensorNHWC.html#ab38ea68b38cf635ea661360967edb8d2">cutlass::layout::TensorNHWC::packed</a></div><div class="ttdeci">static CUTLASS_HOST_DEVICE TensorNHWC packed(TensorCoord const &amp;extent)</div><div class="ttdoc">Helper returns a layout to a tightly packed NHWC tensor. </div><div class="ttdef"><b>Definition:</b> tensor.h:96</div></div>
<div class="ttc" id="classcutlass_1_1layout_1_1TensorNCHW_html"><div class="ttname"><a href="classcutlass_1_1layout_1_1TensorNCHW.html">cutlass::layout::TensorNCHW</a></div><div class="ttdoc">Mapping function for 4-D NCHW tensors. </div><div class="ttdef"><b>Definition:</b> tensor.h:186</div></div>
<div class="ttc" id="classcutlass_1_1layout_1_1TensorNHWC_html_acff01037b5d6cd8040f644060cdac639"><div class="ttname"><a href="classcutlass_1_1layout_1_1TensorNHWC.html#acff01037b5d6cd8040f644060cdac639">cutlass::layout::TensorNHWC::stride</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE Stride stride() const </div><div class="ttdoc">Returns the stride of the layout. </div><div class="ttdef"><b>Definition:</b> tensor.h:157</div></div>
<div class="ttc" id="classcutlass_1_1layout_1_1TensorCxRSKx_html_a27c2569d09991401630d7842c0c1ba67"><div class="ttname"><a href="classcutlass_1_1layout_1_1TensorCxRSKx.html#a27c2569d09991401630d7842c0c1ba67">cutlass::layout::TensorCxRSKx::capacity</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE LongIndex capacity(TensorCoord const &amp;extent) const </div><div class="ttdoc">Compute the number of contiguous elements needed to store a tensor with the given size...</div><div class="ttdef"><b>Definition:</b> tensor.h:438</div></div>
<div class="ttc" id="classcutlass_1_1layout_1_1TensorCxRSKx_html_a48194ca13de771a824c37d48bf3885d7"><div class="ttname"><a href="classcutlass_1_1layout_1_1TensorCxRSKx.html#a48194ca13de771a824c37d48bf3885d7">cutlass::layout::TensorCxRSKx::packed</a></div><div class="ttdeci">static CUTLASS_HOST_DEVICE TensorCxRSKx packed(TensorCoord const &amp;extent)</div><div class="ttdoc">Helper returns a layout to a tightly packed tensor. </div><div class="ttdef"><b>Definition:</b> tensor.h:400</div></div>
<div class="ttc" id="classcutlass_1_1layout_1_1TensorNCHW_html_a3d14ee878cfbd3b46a2aef671f9cdfb3"><div class="ttname"><a href="classcutlass_1_1layout_1_1TensorNCHW.html#a3d14ee878cfbd3b46a2aef671f9cdfb3">cutlass::layout::TensorNCHW::Index</a></div><div class="ttdeci">int32_t Index</div><div class="ttdoc">Index type used for coordinates. </div><div class="ttdef"><b>Definition:</b> tensor.h:195</div></div>
<div class="ttc" id="classcutlass_1_1layout_1_1TensorNCHW_html_adb289aec0ed0a3e5db329210ec55c9be"><div class="ttname"><a href="classcutlass_1_1layout_1_1TensorNCHW.html#adb289aec0ed0a3e5db329210ec55c9be">cutlass::layout::TensorNCHW::operator()</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE LongIndex operator()(TensorCoord const &amp;coord) const </div><div class="ttdoc">Returns the offset of a coordinate in linear memory. </div><div class="ttdef"><b>Definition:</b> tensor.h:237</div></div>
<div class="ttc" id="structcutlass_1_1Coord_html"><div class="ttname"><a href="structcutlass_1_1Coord.html">cutlass::Coord&lt; kStrideRank &gt;</a></div></div>
<div class="ttc" id="classcutlass_1_1layout_1_1RowMajor_html"><div class="ttname"><a href="classcutlass_1_1layout_1_1RowMajor.html">cutlass::layout::RowMajor</a></div><div class="ttdoc">Mapping function for row-major matrices. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:50</div></div>
<div class="ttc" id="structcutlass_1_1Tensor4DCoord_html_a2fa718218c21df006b71d9325f1ddb5a"><div class="ttname"><a href="structcutlass_1_1Tensor4DCoord.html#a2fa718218c21df006b71d9325f1ddb5a">cutlass::Tensor4DCoord::n</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE Index const &amp; n() const </div><div class="ttdoc">Returns the batch of the coordinate. </div><div class="ttdef"><b>Definition:</b> tensor_coord.h:79</div></div>
<div class="ttc" id="namespacecutlass_html_aac63a770acddafd828619834cf2c99d3"><div class="ttname"><a href="namespacecutlass.html#aac63a770acddafd828619834cf2c99d3">cutlass::find_divisor</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE void find_divisor(unsigned int &amp;mul, unsigned int &amp;shr, unsigned int denom)</div><div class="ttdef"><b>Definition:</b> fast_math.h:159</div></div>
<div class="ttc" id="classcutlass_1_1layout_1_1TensorCxRSKx_html_a782c4ac33be5bb8a934897f2e7f588dd"><div class="ttname"><a href="classcutlass_1_1layout_1_1TensorCxRSKx.html#a782c4ac33be5bb8a934897f2e7f588dd">cutlass::layout::TensorCxRSKx::LongIndex</a></div><div class="ttdeci">int64_t LongIndex</div><div class="ttdoc">Long index type used for offsets. </div><div class="ttdef"><b>Definition:</b> tensor.h:373</div></div>
<div class="ttc" id="classcutlass_1_1layout_1_1TensorNCHW_html_ae3256320d227b911be28f4cfad9f8280"><div class="ttname"><a href="classcutlass_1_1layout_1_1TensorNCHW.html#ae3256320d227b911be28f4cfad9f8280">cutlass::layout::TensorNCHW::stride</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE Stride &amp; stride()</div><div class="ttdoc">Returns the stride of the layout. </div><div class="ttdef"><b>Definition:</b> tensor.h:252</div></div>
<div class="ttc" id="layout_2matrix_8h_html"><div class="ttname"><a href="layout_2matrix_8h.html">matrix.h</a></div><div class="ttdoc">Defines layout functions used by TensorRef and derived classes. </div></div>
<div class="ttc" id="classcutlass_1_1layout_1_1TensorNCxHWx_html_aee9b7569e5e31b15d35ca64cfa0bc0d6"><div class="ttname"><a href="classcutlass_1_1layout_1_1TensorNCxHWx.html#aee9b7569e5e31b15d35ca64cfa0bc0d6">cutlass::layout::TensorNCxHWx::operator()</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE LongIndex operator()(TensorCoord const &amp;coord) const </div><div class="ttdoc">Returns the offset of a coordinate in linear memory. </div><div class="ttdef"><b>Definition:</b> tensor.h:322</div></div>
<div class="ttc" id="fast__math_8h_html"><div class="ttname"><a href="fast__math_8h.html">fast_math.h</a></div><div class="ttdoc">Math utilities. </div></div>
<div class="ttc" id="classcutlass_1_1layout_1_1TensorNCxHWx_html_a32f02e6a348caf051d2faab503fbc65c"><div class="ttname"><a href="classcutlass_1_1layout_1_1TensorNCxHWx.html#a32f02e6a348caf051d2faab503fbc65c">cutlass::layout::TensorNCxHWx::LongIndex</a></div><div class="ttdeci">int64_t LongIndex</div><div class="ttdoc">Long index type used for offsets. </div><div class="ttdef"><b>Definition:</b> tensor.h:283</div></div>
<div class="ttc" id="structcutlass_1_1Tensor4DCoord_html_a71dda571a04037e564f238bb9a76f213"><div class="ttname"><a href="structcutlass_1_1Tensor4DCoord.html#a71dda571a04037e564f238bb9a76f213">cutlass::Tensor4DCoord::h</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE Index const &amp; h() const </div><div class="ttdoc">Returns the row of the coordinate. </div><div class="ttdef"><b>Definition:</b> tensor_coord.h:87</div></div>
<div class="ttc" id="classcutlass_1_1layout_1_1TensorNHWC_html"><div class="ttname"><a href="classcutlass_1_1layout_1_1TensorNHWC.html">cutlass::layout::TensorNHWC</a></div><div class="ttdoc">Mapping function for 4-D NHWC tensors. </div><div class="ttdef"><b>Definition:</b> tensor.h:53</div></div>
<div class="ttc" id="classcutlass_1_1layout_1_1TensorNCxHWx_html_a57a1e3a60ba44629bbdabe43dc588899"><div class="ttname"><a href="classcutlass_1_1layout_1_1TensorNCxHWx.html#a57a1e3a60ba44629bbdabe43dc588899">cutlass::layout::TensorNCxHWx::Index</a></div><div class="ttdeci">int32_t Index</div><div class="ttdoc">Index type used for coordinates. </div><div class="ttdef"><b>Definition:</b> tensor.h:280</div></div>
<div class="ttc" id="classcutlass_1_1layout_1_1TensorNHWC_html_ac172f5707f9eb601046c8fde392a2bf6"><div class="ttname"><a href="classcutlass_1_1layout_1_1TensorNHWC.html#ac172f5707f9eb601046c8fde392a2bf6">cutlass::layout::TensorNHWC::inverse</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE TensorCoord inverse(LongIndex index) const </div><div class="ttdoc">Returns the logical coordinate (n, h, w, c) from a given offset in linear memory. ...</div><div class="ttdef"><b>Definition:</b> tensor.h:123</div></div>
<div class="ttc" id="cutlass_8h_html"><div class="ttname"><a href="cutlass_8h.html">cutlass.h</a></div><div class="ttdoc">Basic include for CUTLASS. </div></div>
<div class="ttc" id="classcutlass_1_1layout_1_1TensorNHWC_html_a681b2a1c1a1df6b68b6fb68a18a8392a"><div class="ttname"><a href="classcutlass_1_1layout_1_1TensorNHWC.html#a681b2a1c1a1df6b68b6fb68a18a8392a">cutlass::layout::TensorNHWC::operator()</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE LongIndex operator()(TensorCoord const &amp;coord) const </div><div class="ttdoc">Returns the offset of a coordinate (n, h, w, c) in linear memory. </div><div class="ttdef"><b>Definition:</b> tensor.h:108</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>