api/file_c10_util_Optional.h.html (622 lines of code) (raw):

<!DOCTYPE html> <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]--> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>File Optional.h &mdash; PyTorch master documentation</title> <link rel="canonical" href="https://pytorch.org/docs/stable/api/file_c10_util_Optional.h.html"/> <link rel="stylesheet" href="../_static/css/theme.css" type="text/css" /> <!-- <link rel="stylesheet" href="../_static/pygments.css" type="text/css" /> --> <link rel="stylesheet" href="../_static/cpp_theme.css" type="text/css" /> <link rel="stylesheet" href="../_static/collapsible-lists/css/tree_view.css" type="text/css" /> <link rel="index" title="Index" href="../genindex.html" /> <link rel="search" title="Search" href="../search.html" /> <!-- Google Analytics --> <!-- End Google Analytics --> <script src="../_static/js/modernizr.min.js"></script> <!-- Preload the theme fonts --> <link rel="preload" href="../_static/fonts/FreightSans/freight-sans-book.woff2" as="font" type="font/woff2" crossorigin="anonymous"> <link rel="preload" href="../_static/fonts/FreightSans/freight-sans-medium.woff2" as="font" type="font/woff2" crossorigin="anonymous"> <link rel="preload" href="../_static/fonts/IBMPlexMono/IBMPlexMono-Medium.woff2" as="font" type="font/woff2" crossorigin="anonymous"> <link rel="preload" href="../_static/fonts/FreightSans/freight-sans-bold.woff2" as="font" type="font/woff2" crossorigin="anonymous"> <link rel="preload" href="../_static/fonts/FreightSans/freight-sans-medium-italic.woff2" as="font" type="font/woff2" crossorigin="anonymous"> <link rel="preload" href="../_static/fonts/IBMPlexMono/IBMPlexMono-SemiBold.woff2" as="font" type="font/woff2" crossorigin="anonymous"> <!-- Preload the katex fonts --> <link rel="preload" href="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/fonts/KaTeX_Math-Italic.woff2" as="font" type="font/woff2" crossorigin="anonymous"> <link rel="preload" href="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/fonts/KaTeX_Main-Regular.woff2" as="font" type="font/woff2" crossorigin="anonymous"> <link rel="preload" href="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/fonts/KaTeX_Main-Bold.woff2" as="font" type="font/woff2" crossorigin="anonymous"> <link rel="preload" href="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/fonts/KaTeX_Size1-Regular.woff2" as="font" type="font/woff2" crossorigin="anonymous"> <link rel="preload" href="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/fonts/KaTeX_Size4-Regular.woff2" as="font" type="font/woff2" crossorigin="anonymous"> <link rel="preload" href="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/fonts/KaTeX_Size2-Regular.woff2" as="font" type="font/woff2" crossorigin="anonymous"> <link rel="preload" href="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/fonts/KaTeX_Size3-Regular.woff2" as="font" type="font/woff2" crossorigin="anonymous"> <link rel="preload" href="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/fonts/KaTeX_Caligraphic-Regular.woff2" as="font" type="font/woff2" crossorigin="anonymous"> <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.2/css/all.css" integrity="sha384-vSIIfh2YWi9wW0r9iZe7RJPrKwp6bG+s9QZMoITbCckVJqGCCRhc+ccxNcdpHuYu" crossorigin="anonymous"> </head> <div class="container-fluid header-holder tutorials-header" id="header-holder"> <div class="container"> <div class="header-container"> <a class="header-logo" href="https://pytorch.org/" aria-label="PyTorch"></a> <div class="main-menu"> <ul> <li> <a href="https://pytorch.org/get-started">Get Started</a> </li> <li> <a href="https://pytorch.org/ecosystem">Ecosystem</a> </li> <li> <a href="https://pytorch.org/mobile">Mobile</a> </li> <li> <a href="https://pytorch.org/blog/">Blog</a> </li> <li> <a href="https://pytorch.org/tutorials">Tutorials</a> </li> <li class="active docs-active"> <div id="resourcesDropdownButton" data-toggle="resources-dropdown" class="resources-dropdown"> <a class="resource-option with-down-orange-arrow"> Docs </a> <div class="resources-dropdown-menu"> <a class="doc-dropdown-option nav-dropdown-item" href="https://pytorch.org/docs/stable/index.html"> <span class="dropdown-title">PyTorch</span> <p></p> </a> <a class="doc-dropdown-option nav-dropdown-item" href="https://pytorch.org/audio/stable/index.html"> <span class="dropdown-title">torchaudio</span> <p></p> </a> <a class="doc-dropdown-option nav-dropdown-item" href="https://pytorch.org/text/stable/index.html"> <span class="dropdown-title">torchtext</span> <p></p> </a> <a class="doc-dropdown-option nav-dropdown-item" href="https://pytorch.org/vision/stable/index.html"> <span class="dropdown-title">torchvision</span> <p></p> </a> <a class="doc-dropdown-option nav-dropdown-item" href="https://pytorch.org/torchrec"> <span class="dropdown-title">TorchRec</span> <p></p> </a> <a class="doc-dropdown-option nav-dropdown-item" href="https://pytorch.org/data"> <span class="dropdown-title">TorchData</span> <p></p> </a> <a class="doc-dropdown-option nav-dropdown-item" href="https://pytorch.org/serve/"> <span class="dropdown-title">TorchServe</span> <p></p> </a> <a class="doc-dropdown-option nav-dropdown-item" href="https://pytorch.org/xla"> <span class="dropdown-title">PyTorch on XLA Devices</span> <p></p> </a> </div> </li> <li> <div id="resourcesDropdownButton" data-toggle="resources-dropdown" class="resources-dropdown"> <a class="resource-option with-down-arrow"> Resources </a> <div class="resources-dropdown-menu"> <a class="nav-dropdown-item" href="https://pytorch.org/features"> <span class="dropdown-title">About</span> <p>Learn about PyTorch’s features and capabilities</p> </a> <a class="nav-dropdown-item" href="https://pytorch.org/#community-module"> <span class="dropdown-title">Community</span> <p>Join the PyTorch developer community to contribute, learn, and get your questions answered.</p> </a> <a class="nav-dropdown-item" href="https://pytorch.org/resources"> <span class="dropdown-title">Developer Resources</span> <p>Find resources and get questions answered</p> </a> <a class="nav-dropdown-item" href="https://discuss.pytorch.org/" target="_blank"> <span class="dropdown-title">Forums</span> <p>A place to discuss PyTorch code, issues, install, research</p> </a> <a class="nav-dropdown-item" href="https://pytorch.org/hub"> <span class="dropdown-title">Models (Beta)</span> <p>Discover, publish, and reuse pre-trained models</p> </a> </div> </div> </li> <li> <a href="https://github.com/pytorch/pytorch">GitHub</a> </li> </ul> </div> <a class="main-menu-open-button" href="#" data-behavior="open-mobile-menu"></a> </div> </div> </div> <body class="pytorch-body"> <div class="table-of-contents-link-wrapper"> <span>Table of Contents</span> <a href="#" class="toggle-table-of-contents" data-behavior="toggle-table-of-contents"></a> </div> <nav data-toggle="wy-nav-shift" class="pytorch-left-menu" id="pytorch-left-menu"> <div class="pytorch-side-scroll"> <div class="pytorch-menu pytorch-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation"> <div class="pytorch-left-menu-search"> <div class="version"> master </div> <div role="search"> <form id="rtd-search-form" class="wy-form" action="../search.html" method="get"> <input type="text" name="q" placeholder="Search Docs" /> <input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="area" value="default" /> </form> </div> </div> <ul> <li class="toctree-l1"><a class="reference internal" href="../installing.html">Installing C++ Distributions of PyTorch</a></li> <li class="toctree-l1"><a class="reference internal" href="../frontend.html">The C++ Frontend</a></li> <li class="toctree-l1"><a class="reference internal" href="library_root.html">Library API</a></li> </ul> <p class="caption"><span class="caption-text">Notes</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../notes/faq.html">FAQ</a></li> <li class="toctree-l1"><a class="reference internal" href="../notes/inference_mode.html">Inference Mode</a></li> <li class="toctree-l1"><a class="reference internal" href="../notes/maybe_owned.html">MaybeOwned&lt;Tensor&gt;</a></li> <li class="toctree-l1"><a class="reference internal" href="../notes/tensor_basics.html">Tensor Basics</a></li> <li class="toctree-l1"><a class="reference internal" href="../notes/tensor_creation.html">Tensor Creation API</a></li> <li class="toctree-l1"><a class="reference internal" href="../notes/tensor_cuda_stream.html">Tensor CUDA Stream API</a></li> <li class="toctree-l1"><a class="reference internal" href="../notes/tensor_indexing.html">Tensor Indexing API</a></li> <li class="toctree-l1"><a class="reference internal" href="../notes/versioning.html">Library Versioning</a></li> </ul> </div> </div> </nav> <div class="pytorch-container"> <div class="pytorch-page-level-bar" id="pytorch-page-level-bar"> <div class="pytorch-breadcrumbs-wrapper"> <div role="navigation" aria-label="breadcrumbs navigation"> <ul class="pytorch-breadcrumbs"> <li> <a href="../index.html"> Docs </a> &gt; </li> <li>File Optional.h</li> <li class="pytorch-breadcrumbs-aside"> <!-- User defined GitHub URL --> <a href="https://github.com/pytorch/pytorch" class="fa fa-github"> Edit on GitHub</a> </li> </ul> </div> </div> <div class="pytorch-shortcuts-wrapper" id="pytorch-shortcuts-wrapper"> Shortcuts </div> </div> <section data-toggle="wy-nav-shift" id="pytorch-content-wrap" class="pytorch-content-wrap"> <div class="pytorch-content-left"> <div class="rst-content"> <div role="main" class="main-content" itemscope="itemscope" itemtype="http://schema.org/Article"> <article itemprop="articleBody" id="pytorch-article" class="pytorch-article"> <div class="section" id="file-optional-h"> <span id="file-c10-util-optional-h"></span><h1>File Optional.h<a class="headerlink" href="#file-optional-h" title="Permalink to this headline">¶</a></h1> <p>↰ <a class="reference internal" href="dir_c10_util.html#dir-c10-util"><span class="std std-ref">Parent directory</span></a> (<code class="docutils literal notranslate"><span class="pre">c10/util</span></code>)</p> <div class="contents local topic" id="page-contents"> <p class="topic-title">Page Contents</p> <ul class="simple"> <li><p><a class="reference internal" href="#definition-c10-util-optional-h" id="id1">Definition (<code class="docutils literal notranslate"><span class="pre">c10/util/Optional.h</span></code>)</a></p></li> <li><p><a class="reference internal" href="#includes" id="id2">Includes</a></p></li> <li><p><a class="reference internal" href="#included-by" id="id3">Included By</a></p></li> <li><p><a class="reference internal" href="#namespaces" id="id4">Namespaces</a></p></li> <li><p><a class="reference internal" href="#classes" id="id5">Classes</a></p></li> <li><p><a class="reference internal" href="#functions" id="id6">Functions</a></p></li> <li><p><a class="reference internal" href="#defines" id="id7">Defines</a></p></li> <li><p><a class="reference internal" href="#typedefs" id="id8">Typedefs</a></p></li> <li><p><a class="reference internal" href="#unions" id="id9">Unions</a></p></li> <li><p><a class="reference internal" href="#variables" id="id10">Variables</a></p></li> </ul> </div> <div class="section" id="definition-c10-util-optional-h"> <h2>Definition (<code class="docutils literal notranslate"><span class="pre">c10/util/Optional.h</span></code>)<a class="headerlink" href="#definition-c10-util-optional-h" title="Permalink to this headline">¶</a></h2> <div class="toctree-wrapper compound"> <ul> <li class="toctree-l1"><a class="reference internal" href="program_listing_file_c10_util_Optional.h.html">Program Listing for File Optional.h</a></li> </ul> </div> </div> <div class="section" id="includes"> <h2>Includes<a class="headerlink" href="#includes" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p><code class="docutils literal notranslate"><span class="pre">c10/macros/Macros.h</span></code></p></li> <li><p><code class="docutils literal notranslate"><span class="pre">c10/util/ArrayRef.h</span></code> (<a class="reference internal" href="file_c10_util_ArrayRef.h.html#file-c10-util-arrayref-h"><span class="std std-ref">File ArrayRef.h</span></a>)</p></li> <li><p><code class="docutils literal notranslate"><span class="pre">c10/util/Metaprogramming.h</span></code></p></li> <li><p><code class="docutils literal notranslate"><span class="pre">c10/util/in_place.h</span></code></p></li> <li><p><code class="docutils literal notranslate"><span class="pre">cassert</span></code></p></li> <li><p><code class="docutils literal notranslate"><span class="pre">functional</span></code> (<a class="reference internal" href="file_torch_csrc_api_include_torch_nn_functional_activation.h.html#file-torch-csrc-api-include-torch-nn-functional-activation-h"><span class="std std-ref">File activation.h</span></a>)</p></li> <li><p><code class="docutils literal notranslate"><span class="pre">initializer_list</span></code></p></li> <li><p><code class="docutils literal notranslate"><span class="pre">stdexcept</span></code></p></li> <li><p><code class="docutils literal notranslate"><span class="pre">string</span></code></p></li> <li><p><code class="docutils literal notranslate"><span class="pre">type_traits</span></code></p></li> <li><p><code class="docutils literal notranslate"><span class="pre">utility</span></code></p></li> </ul> </div> <div class="section" id="included-by"> <h2>Included By<a class="headerlink" href="#included-by" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p><a class="reference internal" href="file_aten_src_ATen_core_ScalarType.h.html#file-aten-src-aten-core-scalartype-h"><span class="std std-ref">File ScalarType.h</span></a></p></li> <li><p><a class="reference internal" href="file_c10_util_OptionalArrayRef.h.html#file-c10-util-optionalarrayref-h"><span class="std std-ref">File OptionalArrayRef.h</span></a></p></li> <li><p><a class="reference internal" href="file_aten_src_ATen_TensorOptions.h.html#file-aten-src-aten-tensoroptions-h"><span class="std std-ref">File TensorOptions.h</span></a></p></li> <li><p><a class="reference internal" href="file_build_aten_src_ATen_Functions.h.html#file-build-aten-src-aten-functions-h"><span class="std std-ref">File Functions.h</span></a></p></li> <li><p><a class="reference internal" href="file_build_aten_src_ATen_core_TensorBody.h.html#file-build-aten-src-aten-core-tensorbody-h"><span class="std std-ref">File TensorBody.h</span></a></p></li> <li><p><a class="reference internal" href="file_torch_csrc_api_include_torch_types.h.html#file-torch-csrc-api-include-torch-types-h"><span class="std std-ref">File types.h</span></a></p></li> <li><p><a class="reference internal" href="file_torch_csrc_api_include_torch_data_detail_data_shuttle.h.html#file-torch-csrc-api-include-torch-data-detail-data-shuttle-h"><span class="std std-ref">File data_shuttle.h</span></a></p></li> <li><p><a class="reference internal" href="file_torch_csrc_jit_api_module.h.html#file-torch-csrc-jit-api-module-h"><span class="std std-ref">File module.h</span></a></p></li> <li><p><a class="reference internal" href="file_torch_csrc_api_include_torch_expanding_array.h.html#file-torch-csrc-api-include-torch-expanding-array-h"><span class="std std-ref">File expanding_array.h</span></a></p></li> <li><p><a class="reference internal" href="file_torch_csrc_api_include_torch_nn_modules_utils.h.html#file-torch-csrc-api-include-torch-nn-modules-utils-h"><span class="std std-ref">File utils.h</span></a></p></li> </ul> </div> <div class="section" id="namespaces"> <h2>Namespaces<a class="headerlink" href="#namespaces" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p><a class="reference internal" href="namespace_c10.html#namespace-c10"><span class="std std-ref">Namespace c10</span></a></p></li> <li><p><a class="reference internal" href="namespace_c10__detail_.html#namespace-c10-detail"><span class="std std-ref">Namespace c10::detail_</span></a></p></li> <li><p><a class="reference internal" href="namespace_std.html#namespace-std"><span class="std std-ref">Namespace std</span></a></p></li> </ul> </div> <div class="section" id="classes"> <h2>Classes<a class="headerlink" href="#classes" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p><a class="reference internal" href="structc10_1_1arrayref__optional__base_1_1storage_1_1raw.html#exhale-struct-structc10-1-1arrayref-optional-base-1-1storage-1-1raw"><span class="std std-ref">Struct raw</span></a></p></li> <li><p><a class="reference internal" href="structc10_1_1constexpr__optional__base.html#exhale-struct-structc10-1-1constexpr-optional-base"><span class="std std-ref">Template Struct constexpr_optional_base</span></a></p></li> <li><p><a class="reference internal" href="structc10_1_1detail___1_1is__arrayref.html#exhale-struct-structc10-1-1detail-1-1is-arrayref"><span class="std std-ref">Template Struct is_arrayref</span></a></p></li> <li><p><a class="reference internal" href="structc10_1_1detail___1_1is__arrayref_3_01c10_1_1_array_ref_3_01_t_01_4_01_4.html#exhale-struct-structc10-1-1detail-1-1is-arrayref-3-01c10-1-1-array-ref-3-01-t-01-4-01-4"><span class="std std-ref">Template Struct is_arrayref&lt; c10::ArrayRef&lt; T &gt; &gt;</span></a></p></li> <li><p><a class="reference internal" href="structc10_1_1nullopt__t.html#exhale-struct-structc10-1-1nullopt-t"><span class="std std-ref">Struct nullopt_t</span></a></p></li> <li><p><a class="reference internal" href="structc10_1_1optional__base.html#exhale-struct-structc10-1-1optional-base"><span class="std std-ref">Template Struct optional_base</span></a></p></li> <li><p><a class="reference internal" href="structc10_1_1trivial__init__t.html#exhale-struct-structc10-1-1trivial-init-t"><span class="std std-ref">Struct trivial_init_t</span></a></p></li> <li><p><a class="reference internal" href="structc10_1_1trivially__copyable__optimization__optional__base.html#exhale-struct-structc10-1-1trivially-copyable-optimization-optional-base"><span class="std std-ref">Template Struct trivially_copyable_optimization_optional_base</span></a></p></li> <li><p><a class="reference internal" href="classc10_1_1arrayref__optional__base.html#exhale-class-classc10-1-1arrayref-optional-base"><span class="std std-ref">Template Class arrayref_optional_base</span></a></p></li> <li><p><a class="reference internal" href="classc10_1_1bad__optional__access.html#exhale-class-classc10-1-1bad-optional-access"><span class="std std-ref">Class bad_optional_access</span></a></p></li> <li><p><a class="reference internal" href="classc10_1_1optional.html#exhale-class-classc10-1-1optional"><span class="std std-ref">Template Class optional</span></a></p></li> <li><p><a class="reference internal" href="classc10_1_1optional_3_01_t_01_6_01_4.html#exhale-class-classc10-1-1optional-3-01-t-01-6-01-4"><span class="std std-ref">Template Class optional&lt; T &amp; &gt;</span></a></p></li> <li><p><a class="reference internal" href="classc10_1_1optional_3_01_t_01_6_6_01_4.html#exhale-class-classc10-1-1optional-3-01-t-01-6-6-01-4"><span class="std std-ref">Template Class optional&lt; T &amp;&amp; &gt;</span></a></p></li> </ul> </div> <div class="section" id="functions"> <h2>Functions<a class="headerlink" href="#functions" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p><a class="reference internal" href="function_namespacec10_1ad383b62f56456ff8cb8e9f089be70d49.html#exhale-function-namespacec10-1ad383b62f56456ff8cb8e9f089be70d49"><span class="std std-ref">Template Function c10::constexpr_forward(typename std::remove_reference&lt;T&gt;::type&amp;)</span></a></p></li> <li><p><a class="reference internal" href="function_namespacec10_1a5a0f359ffd33e6d40971afb99c5f2903.html#exhale-function-namespacec10-1a5a0f359ffd33e6d40971afb99c5f2903"><span class="std std-ref">Template Function c10::constexpr_forward(typename std::remove_reference&lt;T&gt;::type&amp;&amp;)</span></a></p></li> <li><p><a class="reference internal" href="function_namespacec10_1a270bd4854d520ee2a8e045bb1565a356.html#exhale-function-namespacec10-1a270bd4854d520ee2a8e045bb1565a356"><span class="std std-ref">Template Function c10::constexpr_move</span></a></p></li> <li><p><a class="reference internal" href="function_namespacec10_1a7407b86d00633661d656c6260df94a61.html#exhale-function-namespacec10-1a7407b86d00633661d656c6260df94a61"><span class="std std-ref">Template Function c10::make_optional(T&amp;&amp;)</span></a></p></li> <li><p><a class="reference internal" href="function_namespacec10_1aef559b939b814bb1f95cc007f4378e08.html#exhale-function-namespacec10-1aef559b939b814bb1f95cc007f4378e08"><span class="std std-ref">Template Function c10::make_optional(std::reference_wrapper&lt;X&gt;)</span></a></p></li> <li><p><a class="reference internal" href="function_namespacec10_1a2bb7207ce7825f71afc6a188195dcfdd.html#exhale-function-namespacec10-1a2bb7207ce7825f71afc6a188195dcfdd"><span class="std std-ref">Template Function c10::operator!=(const T&amp;, const optional&lt;const T&amp;&gt;&amp;)</span></a></p></li> <li><p><a class="reference internal" href="function_namespacec10_1a529036e89f22edec3a0515916a0086b6.html#exhale-function-namespacec10-1a529036e89f22edec3a0515916a0086b6"><span class="std std-ref">Template Function c10::operator!=(const optional&lt;T&amp;&gt;&amp;, const T&amp;)</span></a></p></li> <li><p><a class="reference internal" href="function_namespacec10_1a093e78a39dd40a4e3ded23fd41f34a28.html#exhale-function-namespacec10-1a093e78a39dd40a4e3ded23fd41f34a28"><span class="std std-ref">Template Function c10::operator!=(const optional&lt;T&gt;&amp;, const optional&lt;T&gt;&amp;)</span></a></p></li> <li><p><a class="reference internal" href="function_namespacec10_1ae18527bd51c4db56951cddceafa263ca.html#exhale-function-namespacec10-1ae18527bd51c4db56951cddceafa263ca"><span class="std std-ref">Template Function c10::operator!=(const T&amp;, const optional&lt;T&amp;&gt;&amp;)</span></a></p></li> <li><p><a class="reference internal" href="function_namespacec10_1a5dcabfaa0b0266df189bdb6539651f0f.html#exhale-function-namespacec10-1a5dcabfaa0b0266df189bdb6539651f0f"><span class="std std-ref">Template Function c10::operator!=(const optional&lt;const T&amp;&gt;&amp;, const T&amp;)</span></a></p></li> <li><p><a class="reference internal" href="function_namespacec10_1a80e8818471909c83259917503c087e67.html#exhale-function-namespacec10-1a80e8818471909c83259917503c087e67"><span class="std std-ref">Template Function c10::operator!=(const optional&lt;T&gt;&amp;, const U&amp;)</span></a></p></li> <li><p><a class="reference internal" href="function_namespacec10_1aa7694fe8b1267c73899d30be09915c74.html#exhale-function-namespacec10-1aa7694fe8b1267c73899d30be09915c74"><span class="std std-ref">Template Function c10::operator!=(const U&amp;, const optional&lt;T&gt;&amp;)</span></a></p></li> <li><p><a class="reference internal" href="function_namespacec10_1a50df1ef0b829d10d1933655d1c2384b5.html#exhale-function-namespacec10-1a50df1ef0b829d10d1933655d1c2384b5"><span class="std std-ref">Template Function c10::operator!=(const optional&lt;T&gt;&amp;, nullopt_t)</span></a></p></li> <li><p><a class="reference internal" href="function_namespacec10_1a62e0864ef7494a1d8d50a4b76a305bb5.html#exhale-function-namespacec10-1a62e0864ef7494a1d8d50a4b76a305bb5"><span class="std std-ref">Template Function c10::operator!=(nullopt_t, const optional&lt;T&gt;&amp;)</span></a></p></li> <li><p><a class="reference internal" href="function_namespacec10_1ab47f25e4099126a6e1e6f6be37ee9dfa.html#exhale-function-namespacec10-1ab47f25e4099126a6e1e6f6be37ee9dfa"><span class="std std-ref">Template Function c10::operator&lt;(const optional&lt;const T&amp;&gt;&amp;, const T&amp;)</span></a></p></li> <li><p><a class="reference internal" href="function_namespacec10_1a54898a8cc36872ca6ff4d841dae37219.html#exhale-function-namespacec10-1a54898a8cc36872ca6ff4d841dae37219"><span class="std std-ref">Template Function c10::operator&lt;(const T&amp;, const optional&lt;const T&amp;&gt;&amp;)</span></a></p></li> <li><p><a class="reference internal" href="function_namespacec10_1ac26ac421a4b676bf779f3dd4305108a2.html#exhale-function-namespacec10-1ac26ac421a4b676bf779f3dd4305108a2"><span class="std std-ref">Template Function c10::operator&lt;(const optional&lt;T&gt;&amp;, const optional&lt;T&gt;&amp;)</span></a></p></li> <li><p><a class="reference internal" href="function_namespacec10_1a1a333de387baffb838a024a47def4d04.html#exhale-function-namespacec10-1a1a333de387baffb838a024a47def4d04"><span class="std std-ref">Template Function c10::operator&lt;(const optional&lt;T&amp;&gt;&amp;, const T&amp;)</span></a></p></li> <li><p><a class="reference internal" href="function_namespacec10_1ac3396be5a3bcca36f5ba3e8bbd60acf1.html#exhale-function-namespacec10-1ac3396be5a3bcca36f5ba3e8bbd60acf1"><span class="std std-ref">Template Function c10::operator&lt;(const T&amp;, const optional&lt;T&amp;&gt;&amp;)</span></a></p></li> <li><p><a class="reference internal" href="function_namespacec10_1af7b154d6947c1807aad3d24515f9930c.html#exhale-function-namespacec10-1af7b154d6947c1807aad3d24515f9930c"><span class="std std-ref">Template Function c10::operator&lt;(const optional&lt;T&gt;&amp;, const U&amp;)</span></a></p></li> <li><p><a class="reference internal" href="function_namespacec10_1a101768d882358ec24aff0eff443c9ec7.html#exhale-function-namespacec10-1a101768d882358ec24aff0eff443c9ec7"><span class="std std-ref">Template Function c10::operator&lt;(const U&amp;, const optional&lt;T&gt;&amp;)</span></a></p></li> <li><p><a class="reference internal" href="function_namespacec10_1a346e4d4ad602b1b1ebcab28a072b83d4.html#exhale-function-namespacec10-1a346e4d4ad602b1b1ebcab28a072b83d4"><span class="std std-ref">Template Function c10::operator&lt;(const optional&lt;T&gt;&amp;, nullopt_t)</span></a></p></li> <li><p><a class="reference internal" href="function_namespacec10_1aae236db74cbc6f0c4cb8afeff2cd4219.html#exhale-function-namespacec10-1aae236db74cbc6f0c4cb8afeff2cd4219"><span class="std std-ref">Template Function c10::operator&lt;(nullopt_t, const optional&lt;T&gt;&amp;)</span></a></p></li> <li><p><a class="reference internal" href="function_namespacec10_1ab63f986e22ff6277e30f34d97df79d47.html#exhale-function-namespacec10-1ab63f986e22ff6277e30f34d97df79d47"><span class="std std-ref">Template Function c10::operator&lt;=(nullopt_t, const optional&lt;T&gt;&amp;)</span></a></p></li> <li><p><a class="reference internal" href="function_namespacec10_1a550a9bdcca847305808b7714a5d21fcf.html#exhale-function-namespacec10-1a550a9bdcca847305808b7714a5d21fcf"><span class="std std-ref">Template Function c10::operator&lt;=(const T&amp;, const optional&lt;const T&amp;&gt;&amp;)</span></a></p></li> <li><p><a class="reference internal" href="function_namespacec10_1a2fd3ee4e02b43ff797d67626c5ef4c07.html#exhale-function-namespacec10-1a2fd3ee4e02b43ff797d67626c5ef4c07"><span class="std std-ref">Template Function c10::operator&lt;=(const optional&lt;T&gt;&amp;, const optional&lt;T&gt;&amp;)</span></a></p></li> <li><p><a class="reference internal" href="function_namespacec10_1a9ad66c9953fd27741a15d2834e9bc6bb.html#exhale-function-namespacec10-1a9ad66c9953fd27741a15d2834e9bc6bb"><span class="std std-ref">Template Function c10::operator&lt;=(const optional&lt;const T&amp;&gt;&amp;, const T&amp;)</span></a></p></li> <li><p><a class="reference internal" href="function_namespacec10_1ac6ae9fdbe406a52fca8c6b0ec9089a98.html#exhale-function-namespacec10-1ac6ae9fdbe406a52fca8c6b0ec9089a98"><span class="std std-ref">Template Function c10::operator&lt;=(const T&amp;, const optional&lt;T&amp;&gt;&amp;)</span></a></p></li> <li><p><a class="reference internal" href="function_namespacec10_1a9bc23b1b58970b648256d6ad29bea7b7.html#exhale-function-namespacec10-1a9bc23b1b58970b648256d6ad29bea7b7"><span class="std std-ref">Template Function c10::operator&lt;=(const optional&lt;T&amp;&gt;&amp;, const T&amp;)</span></a></p></li> <li><p><a class="reference internal" href="function_namespacec10_1a2208a770bd14479687965495be7fb4bd.html#exhale-function-namespacec10-1a2208a770bd14479687965495be7fb4bd"><span class="std std-ref">Template Function c10::operator&lt;=(const optional&lt;T&gt;&amp;, const U&amp;)</span></a></p></li> <li><p><a class="reference internal" href="function_namespacec10_1a951aa10f4207ae2156f684eae50c18fb.html#exhale-function-namespacec10-1a951aa10f4207ae2156f684eae50c18fb"><span class="std std-ref">Template Function c10::operator&lt;=(const U&amp;, const optional&lt;T&gt;&amp;)</span></a></p></li> <li><p><a class="reference internal" href="function_namespacec10_1a1fd35238c77d275d57543a018f41934f.html#exhale-function-namespacec10-1a1fd35238c77d275d57543a018f41934f"><span class="std std-ref">Template Function c10::operator&lt;=(const optional&lt;T&gt;&amp;, nullopt_t)</span></a></p></li> <li><p><a class="reference internal" href="function_namespacec10_1aca4b6aa61d0a1681e5c2c60f95983016.html#exhale-function-namespacec10-1aca4b6aa61d0a1681e5c2c60f95983016"><span class="std std-ref">Template Function c10::operator==(const optional&lt;T&amp;&gt;&amp;, const T&amp;)</span></a></p></li> <li><p><a class="reference internal" href="function_namespacec10_1acc49fa855bdc9efb1bca6821c643d624.html#exhale-function-namespacec10-1acc49fa855bdc9efb1bca6821c643d624"><span class="std std-ref">Template Function c10::operator==(const T&amp;, const optional&lt;T&amp;&gt;&amp;)</span></a></p></li> <li><p><a class="reference internal" href="function_namespacec10_1af577e93be6e3da907ac100d016a2aec0.html#exhale-function-namespacec10-1af577e93be6e3da907ac100d016a2aec0"><span class="std std-ref">Template Function c10::operator==(const optional&lt;T&gt;&amp;, const optional&lt;T&gt;&amp;)</span></a></p></li> <li><p><a class="reference internal" href="function_namespacec10_1aa5049cb6284570dff876d0b19bb7f7ed.html#exhale-function-namespacec10-1aa5049cb6284570dff876d0b19bb7f7ed"><span class="std std-ref">Template Function c10::operator==(const optional&lt;T&gt;&amp;, const U&amp;)</span></a></p></li> <li><p><a class="reference internal" href="function_namespacec10_1a75b5c1c07209f1392b59335d6f32fb9d.html#exhale-function-namespacec10-1a75b5c1c07209f1392b59335d6f32fb9d"><span class="std std-ref">Template Function c10::operator==(const U&amp;, const optional&lt;T&gt;&amp;)</span></a></p></li> <li><p><a class="reference internal" href="function_namespacec10_1a8e710caadc4964bc02158bded666c55b.html#exhale-function-namespacec10-1a8e710caadc4964bc02158bded666c55b"><span class="std std-ref">Template Function c10::operator==(const optional&lt;T&gt;&amp;, nullopt_t)</span></a></p></li> <li><p><a class="reference internal" href="function_namespacec10_1a80d58fcdb7502811e276b57606f1bda2.html#exhale-function-namespacec10-1a80d58fcdb7502811e276b57606f1bda2"><span class="std std-ref">Template Function c10::operator==(nullopt_t, const optional&lt;T&gt;&amp;)</span></a></p></li> <li><p><a class="reference internal" href="function_namespacec10_1a3cfe4b5646ac98118c4418dabe90a716.html#exhale-function-namespacec10-1a3cfe4b5646ac98118c4418dabe90a716"><span class="std std-ref">Template Function c10::operator==(const optional&lt;const T&amp;&gt;&amp;, const T&amp;)</span></a></p></li> <li><p><a class="reference internal" href="function_namespacec10_1a43dec6cb22172dcb4596b22ec1fd1ef4.html#exhale-function-namespacec10-1a43dec6cb22172dcb4596b22ec1fd1ef4"><span class="std std-ref">Template Function c10::operator==(const T&amp;, const optional&lt;const T&amp;&gt;&amp;)</span></a></p></li> <li><p><a class="reference internal" href="function_namespacec10_1a1f0f4a49f5b103f5cde1d85e312f1bfb.html#exhale-function-namespacec10-1a1f0f4a49f5b103f5cde1d85e312f1bfb"><span class="std std-ref">Template Function c10::operator&gt;(const optional&lt;T&gt;&amp;, nullopt_t)</span></a></p></li> <li><p><a class="reference internal" href="function_namespacec10_1a9bd852c1da539a3282faaa506e105199.html#exhale-function-namespacec10-1a9bd852c1da539a3282faaa506e105199"><span class="std std-ref">Template Function c10::operator&gt;(nullopt_t, const optional&lt;T&gt;&amp;)</span></a></p></li> <li><p><a class="reference internal" href="function_namespacec10_1a91d9fd85c365fb5276e92cce30d4364b.html#exhale-function-namespacec10-1a91d9fd85c365fb5276e92cce30d4364b"><span class="std std-ref">Template Function c10::operator&gt;(const T&amp;, const optional&lt;const T&amp;&gt;&amp;)</span></a></p></li> <li><p><a class="reference internal" href="function_namespacec10_1af419f9c16dd01c77b3313c6774a03d62.html#exhale-function-namespacec10-1af419f9c16dd01c77b3313c6774a03d62"><span class="std std-ref">Template Function c10::operator&gt;(const optional&lt;const T&amp;&gt;&amp;, const T&amp;)</span></a></p></li> <li><p><a class="reference internal" href="function_namespacec10_1a3382369bf47f02992c0b4b70ae6a54bb.html#exhale-function-namespacec10-1a3382369bf47f02992c0b4b70ae6a54bb"><span class="std std-ref">Template Function c10::operator&gt;(const optional&lt;T&gt;&amp;, const optional&lt;T&gt;&amp;)</span></a></p></li> <li><p><a class="reference internal" href="function_namespacec10_1a2561e58311a70cd6e2ea18d54e7c790e.html#exhale-function-namespacec10-1a2561e58311a70cd6e2ea18d54e7c790e"><span class="std std-ref">Template Function c10::operator&gt;(const T&amp;, const optional&lt;T&amp;&gt;&amp;)</span></a></p></li> <li><p><a class="reference internal" href="function_namespacec10_1a4cf9179d214d8311954c240f339f6a54.html#exhale-function-namespacec10-1a4cf9179d214d8311954c240f339f6a54"><span class="std std-ref">Template Function c10::operator&gt;(const optional&lt;T&amp;&gt;&amp;, const T&amp;)</span></a></p></li> <li><p><a class="reference internal" href="function_namespacec10_1ac021ab226a17a5327ce62b586c327430.html#exhale-function-namespacec10-1ac021ab226a17a5327ce62b586c327430"><span class="std std-ref">Template Function c10::operator&gt;(const U&amp;, const optional&lt;T&gt;&amp;)</span></a></p></li> <li><p><a class="reference internal" href="function_namespacec10_1a69532b58aec7ffc8a05abaedd7350740.html#exhale-function-namespacec10-1a69532b58aec7ffc8a05abaedd7350740"><span class="std std-ref">Template Function c10::operator&gt;(const optional&lt;T&gt;&amp;, const U&amp;)</span></a></p></li> <li><p><a class="reference internal" href="function_namespacec10_1a2011fae50608bca64ddf24a4f30ad528.html#exhale-function-namespacec10-1a2011fae50608bca64ddf24a4f30ad528"><span class="std std-ref">Template Function c10::operator&gt;=(const U&amp;, const optional&lt;T&gt;&amp;)</span></a></p></li> <li><p><a class="reference internal" href="function_namespacec10_1a4483cbb07d8db82319a9913ccf7839f5.html#exhale-function-namespacec10-1a4483cbb07d8db82319a9913ccf7839f5"><span class="std std-ref">Template Function c10::operator&gt;=(const optional&lt;T&gt;&amp;, nullopt_t)</span></a></p></li> <li><p><a class="reference internal" href="function_namespacec10_1a3347acd55c607deaf14ee4fa40054e45.html#exhale-function-namespacec10-1a3347acd55c607deaf14ee4fa40054e45"><span class="std std-ref">Template Function c10::operator&gt;=(nullopt_t, const optional&lt;T&gt;&amp;)</span></a></p></li> <li><p><a class="reference internal" href="function_namespacec10_1aab4f3f16f4b94416d13fa346bd11e74f.html#exhale-function-namespacec10-1aab4f3f16f4b94416d13fa346bd11e74f"><span class="std std-ref">Template Function c10::operator&gt;=(const optional&lt;const T&amp;&gt;&amp;, const T&amp;)</span></a></p></li> <li><p><a class="reference internal" href="function_namespacec10_1ac2caef1f7b1456d5c9a5a35f51596753.html#exhale-function-namespacec10-1ac2caef1f7b1456d5c9a5a35f51596753"><span class="std std-ref">Template Function c10::operator&gt;=(const optional&lt;T&gt;&amp;, const optional&lt;T&gt;&amp;)</span></a></p></li> <li><p><a class="reference internal" href="function_namespacec10_1a4490b9198c5a138463a29f8aafb5d67b.html#exhale-function-namespacec10-1a4490b9198c5a138463a29f8aafb5d67b"><span class="std std-ref">Template Function c10::operator&gt;=(const T&amp;, const optional&lt;const T&amp;&gt;&amp;)</span></a></p></li> <li><p><a class="reference internal" href="function_namespacec10_1a275f44884ab3ad174e645e02d804f4f0.html#exhale-function-namespacec10-1a275f44884ab3ad174e645e02d804f4f0"><span class="std std-ref">Template Function c10::operator&gt;=(const optional&lt;T&amp;&gt;&amp;, const T&amp;)</span></a></p></li> <li><p><a class="reference internal" href="function_namespacec10_1a309410bc4f11f10c0b77bcb5fca766a0.html#exhale-function-namespacec10-1a309410bc4f11f10c0b77bcb5fca766a0"><span class="std std-ref">Template Function c10::operator&gt;=(const T&amp;, const optional&lt;T&amp;&gt;&amp;)</span></a></p></li> <li><p><a class="reference internal" href="function_namespacec10_1ab41d95dcfa9487e14ee6ff6288f12896.html#exhale-function-namespacec10-1ab41d95dcfa9487e14ee6ff6288f12896"><span class="std std-ref">Template Function c10::operator&gt;=(const optional&lt;T&gt;&amp;, const U&amp;)</span></a></p></li> <li><p><a class="reference internal" href="function_namespacec10_1af2deed5ecd6ef9aaacd1d611c105e7a6.html#exhale-function-namespacec10-1af2deed5ecd6ef9aaacd1d611c105e7a6"><span class="std std-ref">Template Function c10::swap</span></a></p></li> <li><p><a class="reference internal" href="function_namespacec10_1a80490a977e31c701f8b8042fe58ada78.html#exhale-function-namespacec10-1a80490a977e31c701f8b8042fe58ada78"><span class="std std-ref">Template Function c10::value_or_else(const optional&lt;T&gt;&amp;, F&amp;&amp;)</span></a></p></li> <li><p><a class="reference internal" href="function_namespacec10_1a58c7d29827dcf2fd6d5c240164c09562.html#exhale-function-namespacec10-1a58c7d29827dcf2fd6d5c240164c09562"><span class="std std-ref">Template Function c10::value_or_else(optional&lt;T&gt;&amp;&amp;, F&amp;&amp;)</span></a></p></li> </ul> </div> <div class="section" id="defines"> <h2>Defines<a class="headerlink" href="#defines" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p><a class="reference internal" href="define__optional_8h_1aba246528349d07cba40ef2d678e6fc78.html#exhale-define-optional-8h-1aba246528349d07cba40ef2d678e6fc78"><span class="std std-ref">Define TR2_OPTIONAL_ASSERTED_EXPRESSION</span></a></p></li> <li><p><a class="reference internal" href="define__optional_8h_1a8df785cb8c5588e7ac8b1cf377f419c5.html#exhale-define-optional-8h-1a8df785cb8c5588e7ac8b1cf377f419c5"><span class="std std-ref">Define TR2_OPTIONAL_HOST_CONSTEXPR</span></a></p></li> <li><p><a class="reference internal" href="define__optional_8h_1a2bc77cf029dcdedaf87668a8da6e899b.html#exhale-define-optional-8h-1a2bc77cf029dcdedaf87668a8da6e899b"><span class="std std-ref">Define TR2_OPTIONAL_REQUIRES</span></a></p></li> </ul> </div> <div class="section" id="typedefs"> <h2>Typedefs<a class="headerlink" href="#typedefs" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p><a class="reference internal" href="typedef_namespacec10_1ab3d4a5b371a99fc4684b029858910cb0.html#exhale-typedef-namespacec10-1ab3d4a5b371a99fc4684b029858910cb0"><span class="std std-ref">Typedef c10::OptionalBase</span></a></p></li> </ul> </div> <div class="section" id="unions"> <h2>Unions<a class="headerlink" href="#unions" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p><a class="reference internal" href="unionc10_1_1arrayref__optional__base_1_1storage.html#exhale-union-unionc10-1-1arrayref-optional-base-1-1storage"><span class="std std-ref">Union arrayref_optional_base::storage</span></a></p></li> <li><p><a class="reference internal" href="unionc10_1_1constexpr__storage__t.html#exhale-union-unionc10-1-1constexpr-storage-t"><span class="std std-ref">Union constexpr_storage_t</span></a></p></li> <li><p><a class="reference internal" href="unionc10_1_1storage__t.html#exhale-union-unionc10-1-1storage-t"><span class="std std-ref">Union storage_t</span></a></p></li> </ul> </div> <div class="section" id="variables"> <h2>Variables<a class="headerlink" href="#variables" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p><a class="reference internal" href="variable_namespacec10_1a50a512029e2d04c6cee5f0cb857323b0.html#exhale-variable-namespacec10-1a50a512029e2d04c6cee5f0cb857323b0"><span class="std std-ref">Variable c10::nullopt</span></a></p></li> <li><p><a class="reference internal" href="variable_namespacec10_1a9f18cf522212fec3fc52db59d8a94f45.html#exhale-variable-namespacec10-1a9f18cf522212fec3fc52db59d8a94f45"><span class="std std-ref">Variable c10::trivial_init</span></a></p></li> </ul> </div> </div> </article> </div> <footer> <hr> <div role="contentinfo"> <p> &copy; Copyright 2019, Torch Contributors. </p> </div> <div> Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. </div> </footer> </div> </div> <div class="pytorch-content-right" id="pytorch-content-right"> <div class="pytorch-right-menu" id="pytorch-right-menu"> <div class="pytorch-side-scroll" id="pytorch-side-scroll-right"> <ul> <li><a class="reference internal" href="#">File Optional.h</a><ul> <li><a class="reference internal" href="#definition-c10-util-optional-h">Definition (<code class="docutils literal notranslate"><span class="pre">c10/util/Optional.h</span></code>)</a></li> <li><a class="reference internal" href="#includes">Includes</a></li> <li><a class="reference internal" href="#included-by">Included By</a></li> <li><a class="reference internal" href="#namespaces">Namespaces</a></li> <li><a class="reference internal" href="#classes">Classes</a></li> <li><a class="reference internal" href="#functions">Functions</a></li> <li><a class="reference internal" href="#defines">Defines</a></li> <li><a class="reference internal" href="#typedefs">Typedefs</a></li> <li><a class="reference internal" href="#unions">Unions</a></li> <li><a class="reference internal" href="#variables">Variables</a></li> </ul> </li> </ul> </div> </div> </div> </section> </div> <script type="text/javascript" id="documentation_options" data-url_root="../" src="../_static/documentation_options.js"></script> <script src="../_static/jquery.js"></script> <script src="../_static/underscore.js"></script> <script src="../_static/doctools.js"></script> <script src="../_static/language_data.js"></script> <script src="../_static/collapsible-lists/js/CollapsibleLists.compressed.js"></script> <script src="../_static/collapsible-lists/js/apply-collapsible-lists.js"></script> <script type="text/javascript" src="../_static/js/vendor/popper.min.js"></script> <script type="text/javascript" src="../_static/js/vendor/bootstrap.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/list.js/1.5.0/list.min.js"></script> <script type="text/javascript" src="../_static/js/theme.js"></script> <script type="text/javascript"> jQuery(function () { SphinxRtdTheme.Navigation.enable(true); }); </script> <!-- Begin Footer --> <div class="container-fluid docs-tutorials-resources" id="docs-tutorials-resources"> <div class="container"> <div class="row"> <div class="col-md-4 text-center"> <h2>Docs</h2> <p>Access comprehensive developer documentation for PyTorch</p> <a class="with-right-arrow" href="https://pytorch.org/docs/stable/index.html">View Docs</a> </div> <div class="col-md-4 text-center"> <h2>Tutorials</h2> <p>Get in-depth tutorials for beginners and advanced developers</p> <a class="with-right-arrow" href="https://pytorch.org/tutorials">View Tutorials</a> </div> <div class="col-md-4 text-center"> <h2>Resources</h2> <p>Find development resources and get your questions answered</p> <a class="with-right-arrow" href="https://pytorch.org/resources">View Resources</a> </div> </div> </div> </div> <footer class="site-footer"> <div class="container footer-container"> <div class="footer-logo-wrapper"> <a href="https://pytorch.org/" class="footer-logo"></a> </div> <div class="footer-links-wrapper"> <div class="footer-links-col"> <ul> <li class="list-title"><a href="https://pytorch.org/">PyTorch</a></li> <li><a href="https://pytorch.org/get-started">Get Started</a></li> <li><a href="https://pytorch.org/features">Features</a></li> <li><a href="https://pytorch.org/ecosystem">Ecosystem</a></li> <li><a href="https://pytorch.org/blog/">Blog</a></li> <li><a href="https://github.com/pytorch/pytorch/blob/master/CONTRIBUTING.md">Contributing</a></li> </ul> </div> <div class="footer-links-col"> <ul> <li class="list-title"><a href="https://pytorch.org/resources">Resources</a></li> <li><a href="https://pytorch.org/tutorials">Tutorials</a></li> <li><a href="https://pytorch.org/docs/stable/index.html">Docs</a></li> <li><a href="https://discuss.pytorch.org" target="_blank">Discuss</a></li> <li><a href="https://github.com/pytorch/pytorch/issues" target="_blank">Github Issues</a></li> <li><a href="https://pytorch.org/assets/brand-guidelines/PyTorch-Brand-Guidelines.pdf" target="_blank">Brand Guidelines</a></li> </ul> </div> <div class="footer-links-col follow-us-col"> <ul> <li class="list-title">Stay Connected</li> <li> <div id="mc_embed_signup"> <form action="https://twitter.us14.list-manage.com/subscribe/post?u=75419c71fe0a935e53dfa4a3f&id=91d0dccd39" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="email-subscribe-form validate" target="_blank" novalidate> <div id="mc_embed_signup_scroll" class="email-subscribe-form-fields-wrapper"> <div class="mc-field-group"> <label for="mce-EMAIL" style="display:none;">Email Address</label> <input type="email" value="" name="EMAIL" class="required email" id="mce-EMAIL" placeholder="Email Address"> </div> <div id="mce-responses" class="clear"> <div class="response" id="mce-error-response" style="display:none"></div> <div class="response" id="mce-success-response" style="display:none"></div> </div> <!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups--> <div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="b_75419c71fe0a935e53dfa4a3f_91d0dccd39" tabindex="-1" value=""></div> <div class="clear"> <input type="submit" value="" name="subscribe" id="mc-embedded-subscribe" class="button email-subscribe-button"> </div> </div> </form> </div> </li> </ul> <div class="footer-social-icons"> <a href="https://www.facebook.com/pytorch" target="_blank" class="facebook"></a> <a href="https://twitter.com/pytorch" target="_blank" class="twitter"></a> <a href="https://www.youtube.com/pytorch" target="_blank" class="youtube"></a> </div> </div> </div> </div> </footer> <div class="cookie-banner-wrapper"> <div class="container"> <p class="gdpr-notice">To analyze traffic and optimize your experience, we serve cookies on this site. By clicking or navigating, you agree to allow our usage of cookies. As the current maintainers of this site, Facebook’s Cookies Policy applies. Learn more, including about available controls: <a href="https://www.facebook.com/policies/cookies/">Cookies Policy</a>.</p> <img class="close-button" src="../_static/images/pytorch-x.svg"> </div> </div> <!-- End Footer --> <!-- Begin Mobile Menu --> <div class="mobile-main-menu"> <div class="container-fluid"> <div class="container"> <div class="mobile-main-menu-header-container"> <a class="header-logo" href="https://pytorch.org/" aria-label="PyTorch"></a> <a class="main-menu-close-button" href="#" data-behavior="close-mobile-menu"></a> </div> </div> </div> <div class="mobile-main-menu-links-container"> <div class="main-menu"> <ul> <li> <a href="https://pytorch.org/get-started">Get Started</a> </li> <li> <a href="https://pytorch.org/ecosystem">Ecosystem</a> </li> <li> <a href="https://pytorch.org/mobile">Mobile</a> </li> <li> <a href="https://pytorch.org/hub">PyTorch Hub</a> </li> <li> <a href="https://pytorch.org/blog/">Blog</a> </li> <li> <a href="https://pytorch.org/tutorials">Tutorials</a> </li> <li class="resources-mobile-menu-title" class="active"> Docs </li> <ul class="resources-mobile-menu-items"> <li> <a href="https://pytorch.org/docs/stable/index.html">PyTorch</a> </li> <li> <a href="https://pytorch.org/audio/stable/index.html">torchaudio</a> </li> <li> <a href="https://pytorch.org/text/stable/index.html">torchtext</a> </li> <li> <a href="https://pytorch.org/vision/stable/index.html">torchvision</a> </li> <li> <a href="https://pytorch.org/elastic/">TorchElastic</a> </li> <li> <a href="https://pytorch.org/serve/">TorchServe</a> </li> <li> <a href="https://pytorch.org/xla">PyTorch on XLA Devices</a> </li> </ul> <li class="resources-mobile-menu-title"> Resources </li> <ul class="resources-mobile-menu-items"> <li> <a href="https://pytorch.org/resources">Developer Resources</a> </li> <li> <a href="https://pytorch.org/features">About</a> </li> <li> <a href="https://pytorch.org/hub">Models (Beta)</a> </li> <li> <a href="https://pytorch.org/#community-module">Community</a> </li> <li> <a href="https://discuss.pytorch.org/">Forums</a> </li> </ul> <li> <a href="https://github.com/pytorch/pytorch">Github</a> </li> </ul> </div> </div> </div> <!-- End Mobile Menu --> <script type="text/javascript" src="../_static/js/vendor/anchor.min.js"></script> <script type="text/javascript"> $(document).ready(function() { mobileMenu.bind(); mobileTOC.bind(); pytorchAnchors.bind(); sideMenus.bind(); scrollToAnchor.bind(); highlightNavigation.bind(); mainMenuDropdown.bind(); filterTags.bind(); // Add class to links that have code blocks, since we cannot create links in code blocks $("article.pytorch-article a span.pre").each(function(e) { $(this).closest("a").addClass("has-code"); }); }) </script> </body> </html>