1{% extends "!layout.html" %} 2<link rel="canonical" href="{{ theme_canonical_url }}{{ pagename }}.html" /> 3 4{% block extrahead %} 5{% if release == "main" %} 6<!-- 7 Search engines should not index the main version of documentation. 8 Stable documentation are built without release == 'main'. 9--> 10<meta name="robots" content="noindex"> 11{% endif %} 12{{ super() }} 13{% endblock %} 14 15{% block menu %} 16{% if release == "main" %} 17<div> 18 <a style="color:#F05732" href="{{ theme_canonical_url }}{{ pagename }}.html"> 19 You are viewing unstable developer preview docs. 20 Click here to view docs for latest stable release. 21 </a> 22</div> 23{% endif %} 24{{ super() }} 25{% endblock %} 26 27{% block sidebartitle %} 28 <div class="version"> 29 <a href='https://pytorch.org/docs/versions.html'>{{ version }} ▼</a> 30 </div> 31 {% include "searchbox.html" %} 32{% endblock %} 33 34{%- block content %} 35{{ super() }} 36<script> 37 38var match = window.location.href.match(/\/_[a-zA-Z0-9_]*.html|_dynamo/gi); 39var url = window.location.href.lastIndexOf(match[match.length-1]); 40 41if (url) 42 { 43 var div = '<div class="admonition note"><p class="admonition-title">Note</p><p><i class="fa fa-exclamation-circle" aria-hidden="true"> </i> This page describes an internal API which is not intended to be used outside of the PyTorch codebase and can be modified or removed without notice.</p></div>' 44 document.getElementById("pytorch-article").insertAdjacentHTML('afterBegin', div) 45 } 46</script> 47{%- endblock %} 48 49{% block footer %} 50{{ super() }} 51<script script type="text/javascript"> 52 var collapsedSections = ['Developer Notes', 'Language Bindings', 'Libraries', 'Community']; 53</script> 54 55<img height="1" width="1" style="border-style:none;" alt="" src="https://www.googleadservices.com/pagead/conversion/795629140/?label=txkmCPmdtosBENSssfsC&guid=ON&script=0"/> 56{% endblock %} 57