<divclass="platform-hinted "data-platform-hinted="data-platform-hinted"><divclass="content sourceset-depenent-content"data-active=""data-togglable=":kmath-tensors:dokkaHtmlPartial/commonMain"><divclass="symbol monospace">abstract fun <ahref="../index.html#-1680022905%2FClasslikes%2F-1345790395">Tensor</a><<ahref="index.html">T</a>>.<ahref="min.html">min</a>(dim: <ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>, keepDim: <ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a>): <ahref="../index.html#-1680022905%2FClasslikes%2F-1345790395">Tensor</a><<ahref="index.html">T</a>><spanclass="top-right-position"><spanclass="copy-icon"></span><divclass="copy-popup-wrapper popup-to-left"><spanclass="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
<pclass="paragraph">Returns the minimum value of each row of the input tensor in the given dimension <ahref="min.html">dim</a>.</p><pclass="paragraph">If <ahref="min.html">keepDim</a> is true, the output tensor is of the same size as input except in the dimension <ahref="min.html">dim</a> where it is of size 1. Otherwise, <ahref="min.html">dim</a> is squeezed, resulting in the output tensor having 1 fewer dimension.</p><h4class="">Return</h4><pclass="paragraph">the minimum value of each row of the input tensor in the given dimension <ahref="min.html">dim</a>.</p><h2class="">Parameters</h2><divdata-togglable="Parameters"><divclass="platform-hinted WithExtraAttributes"data-platform-hinted="data-platform-hinted"data-togglable="Parameters"><divclass="content sourceset-depenent-content"data-active=""data-togglable=":kmath-tensors:dokkaHtmlPartial/commonMain"><divdata-togglable="Parameters"><divclass="table"data-togglable="Parameters"><divclass="table-row"data-filterable-current=":kmath-tensors:dokkaHtmlPartial/commonMain"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"><divclass="main-subrow keyValue WithExtraAttributes"><divclass=""><spanclass="inline-flex">dim</span></div><div><divclass="title"><divdata-togglable="Parameters"><pclass="paragraph">the dimension to reduce.</p></div></div></div></div></div><divclass="table-row"data-filterable-current=":kmath-tensors:dokkaHtmlPartial/commonMain"data-filterable-set=":kmath-tensors:dokkaHtmlPartial/commonMain"><divclass="main-subrow keyValue WithExtraAttributes"><divclass=""><spanclass="inline-flex">keepDim</span></div><div><divclass="title"><divdata-togglable="Parameters"><pclass="paragraph">whether the output tensor has <ahref="min.html">dim</a> retained or not.</p></div></div></div></div></div></div></div></div></div></div></div>