{% extends "!layout.html" %} {% block sidebartitle %}
{{ version }} ▼
{% include "searchbox.html" %} {% endblock %} {# ################################################################################ # Adding Colab / notebook header like tutorials repo # Based off of # https://github.com/pytorch/pytorch_sphinx_theme/blob/fe1f3d5b9233497d81d04f55f5750ccad92500be/pytorch_sphinx_theme/layout.html#L275-L319 ################################################################################ #} {%- block content %} {% if 'tutorial' in pagename %} {% endif %} {{ super() }} {% endblock %} {# ################################################################################ # Because the repo URL is hardcoded to pytorch/tutorials, # we need to modify the URL to pytorch/audio. # We insert the script in footer so that it is executed after the main `theme.js` is loaded # Based off of # https://github.com/pytorch/pytorch_sphinx_theme/blob/b4d00058a48604d8fb63771b513a50450f0ee188/js/theme.js#L245-L263 ################################################################################ #} {%- block footer %} {{ super() }} {% if 'libtorchaudio' in pagename %} {# # change the layout of signature one param per line if #params >= 2 #} {% endif %} {% endblock %}