CINXE.COM
Module: tfa | TensorFlow Addons
<!doctype html> <html lang="en" dir="ltr"> <head> <meta name="google-signin-client-id" content="157101835696-ooapojlodmuabs2do2vuhhnf90bccmoi.apps.googleusercontent.com"> <meta name="google-signin-scope" content="profile email https://www.googleapis.com/auth/developerprofiles https://www.googleapis.com/auth/developerprofiles.award"> <meta property="og:site_name" content="TensorFlow"> <meta property="og:type" content="website"><meta name="theme-color" content="#ff6f00"><meta charset="utf-8"> <meta content="IE=Edge" http-equiv="X-UA-Compatible"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="manifest" href="/_pwa/tensorflow/manifest.json" crossorigin="use-credentials"> <link rel="preconnect" href="//www.gstatic.com" crossorigin> <link rel="preconnect" href="//fonts.gstatic.com" crossorigin> <link rel="preconnect" href="//fonts.googleapis.com" crossorigin> <link rel="preconnect" href="//apis.google.com" crossorigin> <link rel="preconnect" href="//www.google-analytics.com" crossorigin><link rel="stylesheet" href="//fonts.googleapis.com/css?family=Google+Sans:400,500|Roboto:400,400italic,500,500italic,700,700italic|Roboto+Mono:400,500,700&display=swap"> <link rel="stylesheet" href="//fonts.googleapis.com/css2?family=Material+Icons&family=Material+Symbols+Outlined&display=block"><link rel="stylesheet" href="https://www.gstatic.com/devrel-devsite/prod/v870e399c64f7c43c99a3043db4b3a74327bb93d0914e84a0c3dba90bbfd67625/tensorflow/css/app.css"> <link rel="shortcut icon" href="https://www.gstatic.com/devrel-devsite/prod/v870e399c64f7c43c99a3043db4b3a74327bb93d0914e84a0c3dba90bbfd67625/tensorflow/images/favicon.png"> <link rel="apple-touch-icon" href="https://www.gstatic.com/devrel-devsite/prod/v870e399c64f7c43c99a3043db4b3a74327bb93d0914e84a0c3dba90bbfd67625/tensorflow/images/apple-touch-icon-180x180.png"><link rel="canonical" href="https://www.tensorflow.org/addons/api_docs/python/tfa"><link rel="search" type="application/opensearchdescription+xml" title="TensorFlow" href="https://www.tensorflow.org/s/opensearch.xml"> <link rel="alternate" hreflang="en" href="https://www.tensorflow.org/addons/api_docs/python/tfa" /><link rel="alternate" hreflang="x-default" href="https://www.tensorflow.org/addons/api_docs/python/tfa" /><title>Module: tfa | TensorFlow Addons</title> <meta property="og:title" content="Module: tfa | TensorFlow Addons"><meta name="description" content="Useful extra functionality for TensorFlow maintained by SIG-addons."> <meta property="og:description" content="Useful extra functionality for TensorFlow maintained by SIG-addons."><meta property="og:url" content="https://www.tensorflow.org/addons/api_docs/python/tfa"><meta property="og:image" content="https://www.tensorflow.org/static/images/tf_logo_social.png"> <meta property="og:image:width" content="1200"> <meta property="og:image:height" content="675"><meta property="og:locale" content="en"><meta name="twitter:card" content="summary_large_image"><script type="application/ld+json"> { "@context": "https://schema.org", "@type": "BreadcrumbList", "itemListElement": [{ "@type": "ListItem", "position": 1, "name": "Addons", "item": "https://www.tensorflow.org/addons" },{ "@type": "ListItem", "position": 2, "name": "Module: tfa", "item": "https://www.tensorflow.org/addons/api_docs/python/tfa" }] } </script> <link rel="stylesheet" href="/extras.css"></head> <body class="" template="page" theme="tensorflow-theme" type="reference" layout="docs" display-toc pending> <devsite-progress type="indeterminate" id="app-progress"></devsite-progress> <section class="devsite-wrapper"> <devsite-cookie-notification-bar></devsite-cookie-notification-bar><devsite-header role="banner"> <div class="devsite-header--inner nocontent"> <div class="devsite-top-logo-row-wrapper-wrapper"> <div class="devsite-top-logo-row-wrapper"> <div class="devsite-top-logo-row"> <button type="button" id="devsite-hamburger-menu" class="devsite-header-icon-button button-flat material-icons gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Navigation menu button" visually-hidden aria-label="Open menu"> </button> <div class="devsite-product-name-wrapper"> <a href="/" class="devsite-site-logo-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Site logo" track-type="globalNav" track-name="tensorFlow" track-metadata-position="nav" track-metadata-eventDetail="nav"> <picture> <img src="https://www.gstatic.com/devrel-devsite/prod/v870e399c64f7c43c99a3043db4b3a74327bb93d0914e84a0c3dba90bbfd67625/tensorflow/images/lockup.svg" class="devsite-site-logo" alt="TensorFlow"> </picture> </a> <span class="devsite-product-name"> <ul class="devsite-breadcrumb-list" > <li class="devsite-breadcrumb-item "> </li> </ul> </span> </div> <div class="devsite-top-logo-row-middle"> <div class="devsite-header-upper-tabs"> <devsite-tabs class="upper-tabs"> <nav class="devsite-tabs-wrapper" aria-label="Upper tabs"> <tab > <a href="https://www.tensorflow.org/install" track-metadata-eventdetail="https://www.tensorflow.org/install" class="devsite-tabs-content gc-analytics-event " track-type="nav" track-metadata-position="nav - install" track-metadata-module="primary nav" data-category="Site-Wide Custom Events" data-label="Tab: Install" track-name="install" > Install </a> </tab> <tab class="devsite-dropdown "> <a href="https://www.tensorflow.org/learn" track-metadata-eventdetail="https://www.tensorflow.org/learn" class="devsite-tabs-content gc-analytics-event " track-type="nav" track-metadata-position="nav - learn" track-metadata-module="primary nav" data-category="Site-Wide Custom Events" data-label="Tab: Learn" track-name="learn" > Learn </a> <a href="#" role="button" aria-haspopup="true" aria-expanded="false" aria-label="Dropdown menu for Learn" track-type="nav" track-metadata-eventdetail="https://www.tensorflow.org/learn" track-metadata-position="nav - learn" track-metadata-module="primary nav" data-category="Site-Wide Custom Events" data-label="Tab: Learn" track-name="learn" class="devsite-tabs-dropdown-toggle devsite-icon devsite-icon-arrow-drop-down"></a> <div class="devsite-tabs-dropdown" aria-label="submenu" hidden> <div class="devsite-tabs-dropdown-content"> <div class="devsite-tabs-dropdown-column tfo-menu-column-learn"> <ul class="devsite-tabs-dropdown-section "> <li class="devsite-nav-item"> <a href="https://www.tensorflow.org/learn" track-type="nav" track-metadata-eventdetail="https://www.tensorflow.org/learn" track-metadata-position="nav - learn" track-metadata-module="tertiary nav" tooltip > <div class="devsite-nav-item-title"> Introduction </div> <div class="devsite-nav-item-description"> New to TensorFlow? </div> </a> </li> <li class="devsite-nav-item"> <a href="https://www.tensorflow.org/tutorials" track-type="nav" track-metadata-eventdetail="https://www.tensorflow.org/tutorials" track-metadata-position="nav - learn" track-metadata-module="tertiary nav" tooltip > <div class="devsite-nav-item-title"> Tutorials </div> <div class="devsite-nav-item-description"> Learn how to use TensorFlow with end-to-end examples </div> </a> </li> <li class="devsite-nav-item"> <a href="https://www.tensorflow.org/guide" track-type="nav" track-metadata-eventdetail="https://www.tensorflow.org/guide" track-metadata-position="nav - learn" track-metadata-module="tertiary nav" tooltip > <div class="devsite-nav-item-title"> Guide </div> <div class="devsite-nav-item-description"> Learn framework concepts and components </div> </a> </li> <li class="devsite-nav-item"> <a href="https://www.tensorflow.org/resources/learn-ml" track-type="nav" track-metadata-eventdetail="https://www.tensorflow.org/resources/learn-ml" track-metadata-position="nav - learn" track-metadata-module="tertiary nav" tooltip > <div class="devsite-nav-item-title"> Learn ML </div> <div class="devsite-nav-item-description"> Educational resources to master your path with TensorFlow </div> </a> </li> </ul> </div> </div> </div> </tab> <tab class="devsite-dropdown "> <a href="https://www.tensorflow.org/api" track-metadata-eventdetail="https://www.tensorflow.org/api" class="devsite-tabs-content gc-analytics-event " track-type="nav" track-metadata-position="nav - api" track-metadata-module="primary nav" data-category="Site-Wide Custom Events" data-label="Tab: API" track-name="api" > API </a> <a href="#" role="button" aria-haspopup="true" aria-expanded="false" aria-label="Dropdown menu for API" track-type="nav" track-metadata-eventdetail="https://www.tensorflow.org/api" track-metadata-position="nav - api" track-metadata-module="primary nav" data-category="Site-Wide Custom Events" data-label="Tab: API" track-name="api" class="devsite-tabs-dropdown-toggle devsite-icon devsite-icon-arrow-drop-down"></a> <div class="devsite-tabs-dropdown" aria-label="submenu" hidden> <div class="devsite-tabs-dropdown-content"> <div class="devsite-tabs-dropdown-column "> <ul class="devsite-tabs-dropdown-section "> <li class="devsite-nav-item"> <a href="https://www.tensorflow.org/api/stable" track-type="nav" track-metadata-eventdetail="https://www.tensorflow.org/api/stable" track-metadata-position="nav - api" track-metadata-module="tertiary nav" tooltip > <div class="devsite-nav-item-title"> TensorFlow (v2.16.1) </div> </a> </li> <li class="devsite-nav-item"> <a href="https://www.tensorflow.org/versions" track-type="nav" track-metadata-eventdetail="https://www.tensorflow.org/versions" track-metadata-position="nav - api" track-metadata-module="tertiary nav" tooltip > <div class="devsite-nav-item-title"> Versions… </div> </a> </li> </ul> </div> <div class="devsite-tabs-dropdown-column "> <ul class="devsite-tabs-dropdown-section "> <li class="devsite-nav-item"> <a href="https://js.tensorflow.org/api/latest/" track-type="nav" track-metadata-eventdetail="https://js.tensorflow.org/api/latest/" track-metadata-position="nav - api" track-metadata-module="tertiary nav" tooltip > <div class="devsite-nav-item-title"> TensorFlow.js </div> </a> </li> <li class="devsite-nav-item"> <a href="https://www.tensorflow.org/lite/api_docs" track-type="nav" track-metadata-eventdetail="https://www.tensorflow.org/lite/api_docs" track-metadata-position="nav - api" track-metadata-module="tertiary nav" tooltip > <div class="devsite-nav-item-title"> TensorFlow Lite </div> </a> </li> <li class="devsite-nav-item"> <a href="https://www.tensorflow.org/tfx/api_docs" track-type="nav" track-metadata-eventdetail="https://www.tensorflow.org/tfx/api_docs" track-metadata-position="nav - api" track-metadata-module="tertiary nav" tooltip > <div class="devsite-nav-item-title"> TFX </div> </a> </li> </ul> </div> </div> </div> </tab> <tab class="devsite-dropdown devsite-active "> <a href="https://www.tensorflow.org/resources" track-metadata-eventdetail="https://www.tensorflow.org/resources" class="devsite-tabs-content gc-analytics-event " track-type="nav" track-metadata-position="nav - resources" track-metadata-module="primary nav" aria-label="Resources, selected" data-category="Site-Wide Custom Events" data-label="Tab: Resources" track-name="resources" > Resources </a> <a href="#" role="button" aria-haspopup="true" aria-expanded="false" aria-label="Dropdown menu for Resources" track-type="nav" track-metadata-eventdetail="https://www.tensorflow.org/resources" track-metadata-position="nav - resources" track-metadata-module="primary nav" data-category="Site-Wide Custom Events" data-label="Tab: Resources" track-name="resources" class="devsite-tabs-dropdown-toggle devsite-icon devsite-icon-arrow-drop-down"></a> <div class="devsite-tabs-dropdown" aria-label="submenu" hidden> <div class="devsite-tabs-dropdown-content"> <div class="devsite-tabs-dropdown-column "> <ul class="devsite-tabs-dropdown-section "> <li class="devsite-nav-title" role="heading" tooltip>LIBRARIES</li> <li class="devsite-nav-item"> <a href="https://www.tensorflow.org/js" track-type="nav" track-metadata-eventdetail="https://www.tensorflow.org/js" track-metadata-position="nav - resources" track-metadata-module="tertiary nav" track-metadata-module_headline="libraries" tooltip > <div class="devsite-nav-item-title"> TensorFlow.js </div> <div class="devsite-nav-item-description"> Develop web ML applications in JavaScript </div> </a> </li> <li class="devsite-nav-item"> <a href="https://www.tensorflow.org/lite" track-type="nav" track-metadata-eventdetail="https://www.tensorflow.org/lite" track-metadata-position="nav - resources" track-metadata-module="tertiary nav" track-metadata-module_headline="libraries" tooltip > <div class="devsite-nav-item-title"> TensorFlow Lite </div> <div class="devsite-nav-item-description"> Deploy ML on mobile, microcontrollers and other edge devices </div> </a> </li> <li class="devsite-nav-item"> <a href="https://www.tensorflow.org/tfx" track-type="nav" track-metadata-eventdetail="https://www.tensorflow.org/tfx" track-metadata-position="nav - resources" track-metadata-module="tertiary nav" track-metadata-module_headline="libraries" tooltip > <div class="devsite-nav-item-title"> TFX </div> <div class="devsite-nav-item-description"> Build production ML pipelines </div> </a> </li> <li class="devsite-nav-item"> <a href="https://www.tensorflow.org/resources/libraries-extensions" track-type="nav" track-metadata-eventdetail="https://www.tensorflow.org/resources/libraries-extensions" track-metadata-position="nav - resources" track-metadata-module="tertiary nav" track-metadata-module_headline="libraries" tooltip > <div class="devsite-nav-item-title"> All libraries </div> <div class="devsite-nav-item-description"> Create advanced models and extend TensorFlow </div> </a> </li> </ul> </div> <div class="devsite-tabs-dropdown-column "> <ul class="devsite-tabs-dropdown-section "> <li class="devsite-nav-title" role="heading" tooltip>RESOURCES</li> <li class="devsite-nav-item"> <a href="https://www.tensorflow.org/resources/models-datasets" track-type="nav" track-metadata-eventdetail="https://www.tensorflow.org/resources/models-datasets" track-metadata-position="nav - resources" track-metadata-module="tertiary nav" track-metadata-module_headline="resources" tooltip > <div class="devsite-nav-item-title"> Models & datasets </div> <div class="devsite-nav-item-description"> Pre-trained models and datasets built by Google and the community </div> </a> </li> <li class="devsite-nav-item"> <a href="https://www.tensorflow.org/resources/tools" track-type="nav" track-metadata-eventdetail="https://www.tensorflow.org/resources/tools" track-metadata-position="nav - resources" track-metadata-module="tertiary nav" track-metadata-module_headline="resources" tooltip > <div class="devsite-nav-item-title"> Tools </div> <div class="devsite-nav-item-description"> Tools to support and accelerate TensorFlow workflows </div> </a> </li> <li class="devsite-nav-item"> <a href="https://www.tensorflow.org/responsible_ai" track-type="nav" track-metadata-eventdetail="https://www.tensorflow.org/responsible_ai" track-metadata-position="nav - resources" track-metadata-module="tertiary nav" track-metadata-module_headline="resources" tooltip > <div class="devsite-nav-item-title"> Responsible AI </div> <div class="devsite-nav-item-description"> Resources for every stage of the ML workflow </div> </a> </li> <li class="devsite-nav-item"> <a href="https://www.tensorflow.org/resources/recommendation-systems" track-type="nav" track-metadata-eventdetail="https://www.tensorflow.org/resources/recommendation-systems" track-metadata-position="nav - resources" track-metadata-module="tertiary nav" track-metadata-module_headline="resources" tooltip > <div class="devsite-nav-item-title"> Recommendation systems </div> <div class="devsite-nav-item-description"> Build recommendation systems with open source tools </div> </a> </li> </ul> </div> </div> </div> </tab> <tab class="devsite-dropdown "> <a href="https://www.tensorflow.org/community" track-metadata-eventdetail="https://www.tensorflow.org/community" class="devsite-tabs-content gc-analytics-event " track-type="nav" track-metadata-position="nav - community" track-metadata-module="primary nav" data-category="Site-Wide Custom Events" data-label="Tab: Community" track-name="community" > Community </a> <a href="#" role="button" aria-haspopup="true" aria-expanded="false" aria-label="Dropdown menu for Community" track-type="nav" track-metadata-eventdetail="https://www.tensorflow.org/community" track-metadata-position="nav - community" track-metadata-module="primary nav" data-category="Site-Wide Custom Events" data-label="Tab: Community" track-name="community" class="devsite-tabs-dropdown-toggle devsite-icon devsite-icon-arrow-drop-down"></a> <div class="devsite-tabs-dropdown" aria-label="submenu" hidden> <div class="devsite-tabs-dropdown-content"> <div class="devsite-tabs-dropdown-column "> <ul class="devsite-tabs-dropdown-section "> <li class="devsite-nav-item"> <a href="https://www.tensorflow.org/community/groups" track-type="nav" track-metadata-eventdetail="https://www.tensorflow.org/community/groups" track-metadata-position="nav - community" track-metadata-module="tertiary nav" tooltip > <div class="devsite-nav-item-title"> Groups </div> <div class="devsite-nav-item-description"> User groups, interest groups and mailing lists </div> </a> </li> <li class="devsite-nav-item"> <a href="https://www.tensorflow.org/community/contribute" track-type="nav" track-metadata-eventdetail="https://www.tensorflow.org/community/contribute" track-metadata-position="nav - community" track-metadata-module="tertiary nav" tooltip > <div class="devsite-nav-item-title"> Contribute </div> <div class="devsite-nav-item-description"> Guide for contributing to code and documentation </div> </a> </li> <li class="devsite-nav-item"> <a href="https://blog.tensorflow.org/" track-type="nav" track-metadata-eventdetail="https://blog.tensorflow.org/" track-metadata-position="nav - community" track-metadata-module="tertiary nav" tooltip > <div class="devsite-nav-item-title"> Blog </div> <div class="devsite-nav-item-description"> Stay up to date with all things TensorFlow </div> </a> </li> <li class="devsite-nav-item"> <a href="https://discuss.tensorflow.org" track-type="nav" track-metadata-eventdetail="https://discuss.tensorflow.org" track-metadata-position="nav - community" track-metadata-module="tertiary nav" tooltip > <div class="devsite-nav-item-title"> Forum </div> <div class="devsite-nav-item-description"> Discussion platform for the TensorFlow community </div> </a> </li> </ul> </div> </div> </div> </tab> <tab class="devsite-dropdown "> <a href="https://www.tensorflow.org/about" track-metadata-eventdetail="https://www.tensorflow.org/about" class="devsite-tabs-content gc-analytics-event " track-type="nav" track-metadata-position="nav - why tensorflow" track-metadata-module="primary nav" data-category="Site-Wide Custom Events" data-label="Tab: Why TensorFlow" track-name="why tensorflow" > Why TensorFlow </a> <a href="#" role="button" aria-haspopup="true" aria-expanded="false" aria-label="Dropdown menu for Why TensorFlow" track-type="nav" track-metadata-eventdetail="https://www.tensorflow.org/about" track-metadata-position="nav - why tensorflow" track-metadata-module="primary nav" data-category="Site-Wide Custom Events" data-label="Tab: Why TensorFlow" track-name="why tensorflow" class="devsite-tabs-dropdown-toggle devsite-icon devsite-icon-arrow-drop-down"></a> <div class="devsite-tabs-dropdown" aria-label="submenu" hidden> <div class="devsite-tabs-dropdown-content"> <div class="devsite-tabs-dropdown-column "> <ul class="devsite-tabs-dropdown-section "> <li class="devsite-nav-item"> <a href="https://www.tensorflow.org/about" track-type="nav" track-metadata-eventdetail="https://www.tensorflow.org/about" track-metadata-position="nav - why tensorflow" track-metadata-module="tertiary nav" tooltip > <div class="devsite-nav-item-title"> About </div> </a> </li> <li class="devsite-nav-item"> <a href="https://www.tensorflow.org/about/case-studies" track-type="nav" track-metadata-eventdetail="https://www.tensorflow.org/about/case-studies" track-metadata-position="nav - why tensorflow" track-metadata-module="tertiary nav" tooltip > <div class="devsite-nav-item-title"> Case studies </div> </a> </li> </ul> </div> </div> </div> </tab> </nav> </devsite-tabs> </div> <devsite-search enable-signin enable-search enable-suggestions enable-query-completion project-name="TensorFlow Addons" tenant-name="TensorFlow" > <form class="devsite-search-form" action="https://www.tensorflow.org/s/results" method="GET"> <div class="devsite-search-container"> <button type="button" search-open class="devsite-search-button devsite-header-icon-button button-flat material-icons" aria-label="Open search"></button> <div class="devsite-searchbox"> <input aria-activedescendant="" aria-autocomplete="list" aria-label="Search" aria-expanded="false" aria-haspopup="listbox" autocomplete="off" class="devsite-search-field devsite-search-query" name="q" placeholder="Search" role="combobox" type="text" value="" > <div class="devsite-search-image material-icons" aria-hidden="true"> </div> <div class="devsite-search-shortcut-icon-container" aria-hidden="true"> <kbd class="devsite-search-shortcut-icon">/</kbd> </div> </div> </div> </form> <button type="button" search-close class="devsite-search-button devsite-header-icon-button button-flat material-icons" aria-label="Close search"></button> </devsite-search> </div> <devsite-language-selector> <ul role="presentation"> <li role="presentation"> <a role="menuitem" lang="en" >English</a> </li> <li role="presentation"> <a role="menuitem" lang="zh_cn" >中文 – 简体</a> </li> </ul> </devsite-language-selector> <a class="devsite-header-link devsite-top-button button gc-analytics-event" href="//github.com/tensorflow" data-category="Site-Wide Custom Events" data-label="Site header link" > GitHub </a> <devsite-user enable-profiles id="devsite-user"> <span class="button devsite-top-button" aria-hidden="true" visually-hidden>Sign in</span> </devsite-user> </div> </div> </div> <div class="devsite-collapsible-section "> <div class="devsite-header-background"> <div class="devsite-product-id-row" > <div class="devsite-product-description-row"> <ul class="devsite-breadcrumb-list" > <li class="devsite-breadcrumb-item "> <a href="https://www.tensorflow.org/addons" class="devsite-breadcrumb-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Lower Header" data-value="1" track-type="globalNav" track-name="breadcrumb" track-metadata-position="1" track-metadata-eventdetail="TensorFlow Addons" > Addons </a> </li> </ul> </div> </div> <div class="devsite-doc-set-nav-row"> <devsite-tabs class="lower-tabs"> <nav class="devsite-tabs-wrapper" aria-label="Lower tabs"> <tab > <a href="https://www.tensorflow.org/addons" track-metadata-eventdetail="https://www.tensorflow.org/addons" class="devsite-tabs-content gc-analytics-event " track-type="nav" track-metadata-position="nav - overview" track-metadata-module="primary nav" data-category="Site-Wide Custom Events" data-label="Tab: Overview" track-name="overview" > Overview </a> </tab> <tab > <a href="https://www.tensorflow.org/addons/overview" track-metadata-eventdetail="https://www.tensorflow.org/addons/overview" class="devsite-tabs-content gc-analytics-event " track-type="nav" track-metadata-position="nav - guide & tutorials" track-metadata-module="primary nav" data-category="Site-Wide Custom Events" data-label="Tab: Guide & Tutorials" track-name="guide & tutorials" > Guide & Tutorials </a> </tab> <tab class="devsite-active"> <a href="https://www.tensorflow.org/addons/api_docs/python/tfa" track-metadata-eventdetail="https://www.tensorflow.org/addons/api_docs/python/tfa" class="devsite-tabs-content gc-analytics-event " track-type="nav" track-metadata-position="nav - api" track-metadata-module="primary nav" aria-label="API, selected" data-category="Site-Wide Custom Events" data-label="Tab: API" track-name="api" > API </a> </tab> </nav> </devsite-tabs> </div> </div> </div> </div> </devsite-header> <devsite-book-nav scrollbars > <div class="devsite-book-nav-filter" > <span class="filter-list-icon material-icons" aria-hidden="true"></span> <input type="text" placeholder="Filter" aria-label="Type to filter" role="searchbox"> <span class="filter-clear-button hidden" data-title="Clear filter" aria-label="Clear filter" role="button" tabindex="0"></span> </div> <nav class="devsite-book-nav devsite-nav nocontent" aria-label="Side menu"> <div class="devsite-mobile-header"> <button type="button" id="devsite-close-nav" class="devsite-header-icon-button button-flat material-icons gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Close navigation" aria-label="Close navigation"> </button> <div class="devsite-product-name-wrapper"> <a href="/" class="devsite-site-logo-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Site logo" track-type="globalNav" track-name="tensorFlow" track-metadata-position="nav" track-metadata-eventDetail="nav"> <picture> <img src="https://www.gstatic.com/devrel-devsite/prod/v870e399c64f7c43c99a3043db4b3a74327bb93d0914e84a0c3dba90bbfd67625/tensorflow/images/lockup.svg" class="devsite-site-logo" alt="TensorFlow"> </picture> </a> <span class="devsite-product-name"> <ul class="devsite-breadcrumb-list" > <li class="devsite-breadcrumb-item "> </li> </ul> </span> </div> </div> <div class="devsite-book-nav-wrapper"> <div class="devsite-mobile-nav-top"> <ul class="devsite-nav-list"> <li class="devsite-nav-item"> <a href="/install" class="devsite-nav-title gc-analytics-event devsite-nav-has-children " data-category="Site-Wide Custom Events" data-label="Tab: Install" track-name="install" data-category="Site-Wide Custom Events" data-label="Responsive Tab: Install" track-type="globalNav" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Install </span> <span class="devsite-nav-icon material-icons" data-icon="forward" > </span> </a> </li> <li class="devsite-nav-item"> <a href="/learn" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Tab: Learn" track-name="learn" data-category="Site-Wide Custom Events" data-label="Responsive Tab: Learn" track-type="globalNav" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Learn </span> </a> <ul class="devsite-nav-responsive-tabs devsite-nav-has-menu "> <li class="devsite-nav-item"> <span class="devsite-nav-title" tooltip data-category="Site-Wide Custom Events" data-label="Tab: Learn" track-name="learn" > <span class="devsite-nav-text" tooltip menu="Learn"> More </span> <span class="devsite-nav-icon material-icons" data-icon="forward" menu="Learn"> </span> </span> </li> </ul> </li> <li class="devsite-nav-item"> <a href="/api" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Tab: API" track-name="api" data-category="Site-Wide Custom Events" data-label="Responsive Tab: API" track-type="globalNav" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > API </span> </a> <ul class="devsite-nav-responsive-tabs devsite-nav-has-menu "> <li class="devsite-nav-item"> <span class="devsite-nav-title" tooltip data-category="Site-Wide Custom Events" data-label="Tab: API" track-name="api" > <span class="devsite-nav-text" tooltip menu="API"> More </span> <span class="devsite-nav-icon material-icons" data-icon="forward" menu="API"> </span> </span> </li> </ul> </li> <li class="devsite-nav-item"> <a href="/resources" class="devsite-nav-title gc-analytics-event devsite-nav-active" data-category="Site-Wide Custom Events" data-label="Tab: Resources" track-name="resources" data-category="Site-Wide Custom Events" data-label="Responsive Tab: Resources" track-type="globalNav" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Resources </span> </a> <ul class="devsite-nav-responsive-tabs devsite-nav-has-menu "> <li class="devsite-nav-item"> <span class="devsite-nav-title" tooltip data-category="Site-Wide Custom Events" data-label="Tab: Resources" track-name="resources" > <span class="devsite-nav-text" tooltip menu="Resources"> More </span> <span class="devsite-nav-icon material-icons" data-icon="forward" menu="Resources"> </span> </span> </li> </ul> <ul class="devsite-nav-responsive-tabs"> <li class="devsite-nav-item"> <a href="/addons" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Tab: Overview" track-name="overview" data-category="Site-Wide Custom Events" data-label="Responsive Tab: Overview" track-type="globalNav" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Overview </span> </a> </li> <li class="devsite-nav-item"> <a href="/addons/overview" class="devsite-nav-title gc-analytics-event devsite-nav-has-children " data-category="Site-Wide Custom Events" data-label="Tab: Guide & Tutorials" track-name="guide & tutorials" data-category="Site-Wide Custom Events" data-label="Responsive Tab: Guide & Tutorials" track-type="globalNav" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Guide & Tutorials </span> <span class="devsite-nav-icon material-icons" data-icon="forward" > </span> </a> </li> <li class="devsite-nav-item"> <a href="/addons/api_docs/python/tfa" class="devsite-nav-title gc-analytics-event devsite-nav-has-children devsite-nav-active" data-category="Site-Wide Custom Events" data-label="Tab: API" track-name="api" data-category="Site-Wide Custom Events" data-label="Responsive Tab: API" track-type="globalNav" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip menu="_book"> API </span> <span class="devsite-nav-icon material-icons" data-icon="forward" menu="_book"> </span> </a> </li> </ul> </li> <li class="devsite-nav-item"> <a href="/community" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Tab: Community" track-name="community" data-category="Site-Wide Custom Events" data-label="Responsive Tab: Community" track-type="globalNav" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Community </span> </a> <ul class="devsite-nav-responsive-tabs devsite-nav-has-menu "> <li class="devsite-nav-item"> <span class="devsite-nav-title" tooltip data-category="Site-Wide Custom Events" data-label="Tab: Community" track-name="community" > <span class="devsite-nav-text" tooltip menu="Community"> More </span> <span class="devsite-nav-icon material-icons" data-icon="forward" menu="Community"> </span> </span> </li> </ul> </li> <li class="devsite-nav-item"> <a href="/about" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Tab: Why TensorFlow" track-name="why tensorflow" data-category="Site-Wide Custom Events" data-label="Responsive Tab: Why TensorFlow" track-type="globalNav" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Why TensorFlow </span> </a> <ul class="devsite-nav-responsive-tabs devsite-nav-has-menu "> <li class="devsite-nav-item"> <span class="devsite-nav-title" tooltip data-category="Site-Wide Custom Events" data-label="Tab: Why TensorFlow" track-name="why tensorflow" > <span class="devsite-nav-text" tooltip menu="Why TensorFlow"> More </span> <span class="devsite-nav-icon material-icons" data-icon="forward" menu="Why TensorFlow"> </span> </span> </li> </ul> </li> <li class="devsite-nav-item"> <a href="//github.com/tensorflow" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: GitHub" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > GitHub </span> </a> </li> </ul> </div> <div class="devsite-mobile-nav-bottom"> <ul class="devsite-nav-list" menu="_book"> <li class="devsite-nav-item devsite-nav-expandable"><div class="devsite-expandable-nav"> <a class="devsite-nav-toggle" aria-hidden="true"></a><div class="devsite-nav-title devsite-nav-title-no-path" tabindex="0" role="button"> <span class="devsite-nav-text" tooltip>tfa</span> </div><ul class="devsite-nav-section"><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa" ><span class="devsite-nav-text" tooltip>Overview</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/register_all" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/register_all" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/register_all" ><span class="devsite-nav-text" tooltip>register_all</span></a></li></ul></div></li> <li class="devsite-nav-item devsite-nav-expandable"><div class="devsite-expandable-nav"> <a class="devsite-nav-toggle" aria-hidden="true"></a><div class="devsite-nav-title devsite-nav-title-no-path" tabindex="0" role="button"> <span class="devsite-nav-text" tooltip>tfa.activations</span> </div><ul class="devsite-nav-section"><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/activations" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/activations" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/activations" ><span class="devsite-nav-text" tooltip>Overview</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/activations/gelu" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/activations/gelu" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/activations/gelu" ><span class="devsite-nav-text" tooltip>gelu</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/activations/hardshrink" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/activations/hardshrink" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/activations/hardshrink" ><span class="devsite-nav-text" tooltip>hardshrink</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/activations/lisht" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/activations/lisht" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/activations/lisht" ><span class="devsite-nav-text" tooltip>lisht</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/activations/mish" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/activations/mish" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/activations/mish" ><span class="devsite-nav-text" tooltip>mish</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/activations/rrelu" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/activations/rrelu" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/activations/rrelu" ><span class="devsite-nav-text" tooltip>rrelu</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/activations/snake" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/activations/snake" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/activations/snake" ><span class="devsite-nav-text" tooltip>snake</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/activations/softshrink" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/activations/softshrink" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/activations/softshrink" ><span class="devsite-nav-text" tooltip>softshrink</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/activations/sparsemax" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/activations/sparsemax" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/activations/sparsemax" ><span class="devsite-nav-text" tooltip>sparsemax</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/activations/tanhshrink" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/activations/tanhshrink" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/activations/tanhshrink" ><span class="devsite-nav-text" tooltip>tanhshrink</span></a></li></ul></div></li> <li class="devsite-nav-item devsite-nav-expandable"><div class="devsite-expandable-nav"> <a class="devsite-nav-toggle" aria-hidden="true"></a><div class="devsite-nav-title devsite-nav-title-no-path" tabindex="0" role="button"> <span class="devsite-nav-text" tooltip>tfa.callbacks</span> </div><ul class="devsite-nav-section"><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/callbacks" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/callbacks" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/callbacks" ><span class="devsite-nav-text" tooltip>Overview</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/callbacks/AverageModelCheckpoint" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/callbacks/AverageModelCheckpoint" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/callbacks/AverageModelCheckpoint" ><span class="devsite-nav-text" tooltip>AverageModelCheckpoint</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/callbacks/TQDMProgressBar" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/callbacks/TQDMProgressBar" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/callbacks/TQDMProgressBar" ><span class="devsite-nav-text" tooltip>TQDMProgressBar</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/callbacks/TimeStopping" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/callbacks/TimeStopping" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/callbacks/TimeStopping" ><span class="devsite-nav-text" tooltip>TimeStopping</span></a></li></ul></div></li> <li class="devsite-nav-item devsite-nav-expandable"><div class="devsite-expandable-nav"> <a class="devsite-nav-toggle" aria-hidden="true"></a><div class="devsite-nav-title devsite-nav-title-no-path" tabindex="0" role="button"> <span class="devsite-nav-text" tooltip>tfa.image</span> </div><ul class="devsite-nav-section"><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/image" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/image" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/image" ><span class="devsite-nav-text" tooltip>Overview</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/image/adjust_hsv_in_yiq" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/image/adjust_hsv_in_yiq" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/image/adjust_hsv_in_yiq" ><span class="devsite-nav-text" tooltip>adjust_hsv_in_yiq</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/image/angles_to_projective_transforms" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/image/angles_to_projective_transforms" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/image/angles_to_projective_transforms" ><span class="devsite-nav-text" tooltip>angles_to_projective_transforms</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/image/blend" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/image/blend" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/image/blend" ><span class="devsite-nav-text" tooltip>blend</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/image/compose_transforms" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/image/compose_transforms" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/image/compose_transforms" ><span class="devsite-nav-text" tooltip>compose_transforms</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/image/connected_components" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/image/connected_components" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/image/connected_components" ><span class="devsite-nav-text" tooltip>connected_components</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/image/cutout" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/image/cutout" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/image/cutout" ><span class="devsite-nav-text" tooltip>cutout</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/image/dense_image_warp" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/image/dense_image_warp" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/image/dense_image_warp" ><span class="devsite-nav-text" tooltip>dense_image_warp</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/image/equalize" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/image/equalize" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/image/equalize" ><span class="devsite-nav-text" tooltip>equalize</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/image/euclidean_dist_transform" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/image/euclidean_dist_transform" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/image/euclidean_dist_transform" ><span class="devsite-nav-text" tooltip>euclidean_dist_transform</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/image/gaussian_filter2d" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/image/gaussian_filter2d" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/image/gaussian_filter2d" ><span class="devsite-nav-text" tooltip>gaussian_filter2d</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/image/interpolate_bilinear" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/image/interpolate_bilinear" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/image/interpolate_bilinear" ><span class="devsite-nav-text" tooltip>interpolate_bilinear</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/image/interpolate_spline" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/image/interpolate_spline" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/image/interpolate_spline" ><span class="devsite-nav-text" tooltip>interpolate_spline</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/image/mean_filter2d" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/image/mean_filter2d" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/image/mean_filter2d" ><span class="devsite-nav-text" tooltip>mean_filter2d</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/image/median_filter2d" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/image/median_filter2d" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/image/median_filter2d" ><span class="devsite-nav-text" tooltip>median_filter2d</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/image/random_cutout" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/image/random_cutout" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/image/random_cutout" ><span class="devsite-nav-text" tooltip>random_cutout</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/image/random_hsv_in_yiq" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/image/random_hsv_in_yiq" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/image/random_hsv_in_yiq" ><span class="devsite-nav-text" tooltip>random_hsv_in_yiq</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/image/resampler" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/image/resampler" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/image/resampler" ><span class="devsite-nav-text" tooltip>resampler</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/image/rotate" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/image/rotate" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/image/rotate" ><span class="devsite-nav-text" tooltip>rotate</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/image/sharpness" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/image/sharpness" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/image/sharpness" ><span class="devsite-nav-text" tooltip>sharpness</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/image/shear_x" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/image/shear_x" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/image/shear_x" ><span class="devsite-nav-text" tooltip>shear_x</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/image/shear_y" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/image/shear_y" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/image/shear_y" ><span class="devsite-nav-text" tooltip>shear_y</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/image/sparse_image_warp" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/image/sparse_image_warp" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/image/sparse_image_warp" ><span class="devsite-nav-text" tooltip>sparse_image_warp</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/image/transform" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/image/transform" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/image/transform" ><span class="devsite-nav-text" tooltip>transform</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/image/translate" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/image/translate" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/image/translate" ><span class="devsite-nav-text" tooltip>translate</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/image/translate_xy" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/image/translate_xy" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/image/translate_xy" ><span class="devsite-nav-text" tooltip>translate_xy</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/image/translations_to_projective_transforms" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/image/translations_to_projective_transforms" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/image/translations_to_projective_transforms" ><span class="devsite-nav-text" tooltip>translations_to_projective_transforms</span></a></li></ul></div></li> <li class="devsite-nav-item devsite-nav-expandable"><div class="devsite-expandable-nav"> <a class="devsite-nav-toggle" aria-hidden="true"></a><div class="devsite-nav-title devsite-nav-title-no-path" tabindex="0" role="button"> <span class="devsite-nav-text" tooltip>tfa.layers</span> </div><ul class="devsite-nav-section"><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/layers" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/layers" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/layers" ><span class="devsite-nav-text" tooltip>Overview</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/layers/AdaptiveAveragePooling1D" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/layers/AdaptiveAveragePooling1D" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/layers/AdaptiveAveragePooling1D" ><span class="devsite-nav-text" tooltip>AdaptiveAveragePooling1D</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/layers/AdaptiveAveragePooling2D" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/layers/AdaptiveAveragePooling2D" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/layers/AdaptiveAveragePooling2D" ><span class="devsite-nav-text" tooltip>AdaptiveAveragePooling2D</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/layers/AdaptiveAveragePooling3D" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/layers/AdaptiveAveragePooling3D" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/layers/AdaptiveAveragePooling3D" ><span class="devsite-nav-text" tooltip>AdaptiveAveragePooling3D</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/layers/AdaptiveMaxPooling1D" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/layers/AdaptiveMaxPooling1D" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/layers/AdaptiveMaxPooling1D" ><span class="devsite-nav-text" tooltip>AdaptiveMaxPooling1D</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/layers/AdaptiveMaxPooling2D" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/layers/AdaptiveMaxPooling2D" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/layers/AdaptiveMaxPooling2D" ><span class="devsite-nav-text" tooltip>AdaptiveMaxPooling2D</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/layers/AdaptiveMaxPooling3D" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/layers/AdaptiveMaxPooling3D" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/layers/AdaptiveMaxPooling3D" ><span class="devsite-nav-text" tooltip>AdaptiveMaxPooling3D</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/layers/CRF" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/layers/CRF" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/layers/CRF" ><span class="devsite-nav-text" tooltip>CRF</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/layers/CorrelationCost" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/layers/CorrelationCost" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/layers/CorrelationCost" ><span class="devsite-nav-text" tooltip>CorrelationCost</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/layers/ESN" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/layers/ESN" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/layers/ESN" ><span class="devsite-nav-text" tooltip>ESN</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/layers/EmbeddingBag" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/layers/EmbeddingBag" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/layers/EmbeddingBag" ><span class="devsite-nav-text" tooltip>EmbeddingBag</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/layers/FilterResponseNormalization" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/layers/FilterResponseNormalization" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/layers/FilterResponseNormalization" ><span class="devsite-nav-text" tooltip>FilterResponseNormalization</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/layers/GELU" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/layers/GELU" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/layers/GELU" ><span class="devsite-nav-text" tooltip>GELU</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/layers/GroupNormalization" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/layers/GroupNormalization" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/layers/GroupNormalization" ><span class="devsite-nav-text" tooltip>GroupNormalization</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/layers/InstanceNormalization" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/layers/InstanceNormalization" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/layers/InstanceNormalization" ><span class="devsite-nav-text" tooltip>InstanceNormalization</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/layers/MaxUnpooling2D" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/layers/MaxUnpooling2D" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/layers/MaxUnpooling2D" ><span class="devsite-nav-text" tooltip>MaxUnpooling2D</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/layers/MaxUnpooling2DV2" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/layers/MaxUnpooling2DV2" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/layers/MaxUnpooling2DV2" ><span class="devsite-nav-text" tooltip>MaxUnpooling2DV2</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/layers/Maxout" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/layers/Maxout" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/layers/Maxout" ><span class="devsite-nav-text" tooltip>Maxout</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/layers/MultiHeadAttention" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/layers/MultiHeadAttention" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/layers/MultiHeadAttention" ><span class="devsite-nav-text" tooltip>MultiHeadAttention</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/layers/NoisyDense" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/layers/NoisyDense" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/layers/NoisyDense" ><span class="devsite-nav-text" tooltip>NoisyDense</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/layers/PoincareNormalize" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/layers/PoincareNormalize" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/layers/PoincareNormalize" ><span class="devsite-nav-text" tooltip>PoincareNormalize</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/layers/PolynomialCrossing" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/layers/PolynomialCrossing" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/layers/PolynomialCrossing" ><span class="devsite-nav-text" tooltip>PolynomialCrossing</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/layers/Snake" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/layers/Snake" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/layers/Snake" ><span class="devsite-nav-text" tooltip>Snake</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/layers/Sparsemax" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/layers/Sparsemax" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/layers/Sparsemax" ><span class="devsite-nav-text" tooltip>Sparsemax</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/layers/SpatialPyramidPooling2D" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/layers/SpatialPyramidPooling2D" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/layers/SpatialPyramidPooling2D" ><span class="devsite-nav-text" tooltip>SpatialPyramidPooling2D</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/layers/SpectralNormalization" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/layers/SpectralNormalization" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/layers/SpectralNormalization" ><span class="devsite-nav-text" tooltip>SpectralNormalization</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/layers/StochasticDepth" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/layers/StochasticDepth" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/layers/StochasticDepth" ><span class="devsite-nav-text" tooltip>StochasticDepth</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/layers/TLU" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/layers/TLU" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/layers/TLU" ><span class="devsite-nav-text" tooltip>TLU</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/layers/WeightNormalization" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/layers/WeightNormalization" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/layers/WeightNormalization" ><span class="devsite-nav-text" tooltip>WeightNormalization</span></a></li></ul></div></li> <li class="devsite-nav-item devsite-nav-expandable"><div class="devsite-expandable-nav"> <a class="devsite-nav-toggle" aria-hidden="true"></a><div class="devsite-nav-title devsite-nav-title-no-path" tabindex="0" role="button"> <span class="devsite-nav-text" tooltip>tfa.losses</span> </div><ul class="devsite-nav-section"><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/losses" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/losses" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/losses" ><span class="devsite-nav-text" tooltip>Overview</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/losses/ContrastiveLoss" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/losses/ContrastiveLoss" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/losses/ContrastiveLoss" ><span class="devsite-nav-text" tooltip>ContrastiveLoss</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/losses/GIoULoss" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/losses/GIoULoss" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/losses/GIoULoss" ><span class="devsite-nav-text" tooltip>GIoULoss</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/losses/LiftedStructLoss" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/losses/LiftedStructLoss" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/losses/LiftedStructLoss" ><span class="devsite-nav-text" tooltip>LiftedStructLoss</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/losses/NpairsLoss" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/losses/NpairsLoss" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/losses/NpairsLoss" ><span class="devsite-nav-text" tooltip>NpairsLoss</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/losses/NpairsMultilabelLoss" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/losses/NpairsMultilabelLoss" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/losses/NpairsMultilabelLoss" ><span class="devsite-nav-text" tooltip>NpairsMultilabelLoss</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/losses/PinballLoss" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/losses/PinballLoss" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/losses/PinballLoss" ><span class="devsite-nav-text" tooltip>PinballLoss</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/losses/SigmoidFocalCrossEntropy" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/losses/SigmoidFocalCrossEntropy" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/losses/SigmoidFocalCrossEntropy" ><span class="devsite-nav-text" tooltip>SigmoidFocalCrossEntropy</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/losses/SparsemaxLoss" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/losses/SparsemaxLoss" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/losses/SparsemaxLoss" ><span class="devsite-nav-text" tooltip>SparsemaxLoss</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/losses/TripletHardLoss" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/losses/TripletHardLoss" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/losses/TripletHardLoss" ><span class="devsite-nav-text" tooltip>TripletHardLoss</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/losses/TripletSemiHardLoss" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/losses/TripletSemiHardLoss" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/losses/TripletSemiHardLoss" ><span class="devsite-nav-text" tooltip>TripletSemiHardLoss</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/losses/WeightedKappaLoss" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/losses/WeightedKappaLoss" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/losses/WeightedKappaLoss" ><span class="devsite-nav-text" tooltip>WeightedKappaLoss</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/losses/contrastive_loss" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/losses/contrastive_loss" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/losses/contrastive_loss" ><span class="devsite-nav-text" tooltip>contrastive_loss</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/losses/giou_loss" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/losses/giou_loss" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/losses/giou_loss" ><span class="devsite-nav-text" tooltip>giou_loss</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/losses/lifted_struct_loss" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/losses/lifted_struct_loss" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/losses/lifted_struct_loss" ><span class="devsite-nav-text" tooltip>lifted_struct_loss</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/losses/npairs_loss" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/losses/npairs_loss" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/losses/npairs_loss" ><span class="devsite-nav-text" tooltip>npairs_loss</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/losses/npairs_multilabel_loss" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/losses/npairs_multilabel_loss" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/losses/npairs_multilabel_loss" ><span class="devsite-nav-text" tooltip>npairs_multilabel_loss</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/losses/pinball_loss" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/losses/pinball_loss" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/losses/pinball_loss" ><span class="devsite-nav-text" tooltip>pinball_loss</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/losses/sigmoid_focal_crossentropy" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/losses/sigmoid_focal_crossentropy" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/losses/sigmoid_focal_crossentropy" ><span class="devsite-nav-text" tooltip>sigmoid_focal_crossentropy</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/losses/sparsemax_loss" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/losses/sparsemax_loss" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/losses/sparsemax_loss" ><span class="devsite-nav-text" tooltip>sparsemax_loss</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/losses/triplet_hard_loss" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/losses/triplet_hard_loss" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/losses/triplet_hard_loss" ><span class="devsite-nav-text" tooltip>triplet_hard_loss</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/losses/triplet_semihard_loss" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/losses/triplet_semihard_loss" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/losses/triplet_semihard_loss" ><span class="devsite-nav-text" tooltip>triplet_semihard_loss</span></a></li></ul></div></li> <li class="devsite-nav-item devsite-nav-expandable"><div class="devsite-expandable-nav"> <a class="devsite-nav-toggle" aria-hidden="true"></a><div class="devsite-nav-title devsite-nav-title-no-path" tabindex="0" role="button"> <span class="devsite-nav-text" tooltip>tfa.metrics</span> </div><ul class="devsite-nav-section"><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/metrics" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/metrics" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/metrics" ><span class="devsite-nav-text" tooltip>Overview</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/metrics/CohenKappa" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/metrics/CohenKappa" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/metrics/CohenKappa" ><span class="devsite-nav-text" tooltip>CohenKappa</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/metrics/F1Score" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/metrics/F1Score" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/metrics/F1Score" ><span class="devsite-nav-text" tooltip>F1Score</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/metrics/FBetaScore" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/metrics/FBetaScore" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/metrics/FBetaScore" ><span class="devsite-nav-text" tooltip>FBetaScore</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/metrics/GeometricMean" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/metrics/GeometricMean" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/metrics/GeometricMean" ><span class="devsite-nav-text" tooltip>GeometricMean</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/metrics/HammingLoss" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/metrics/HammingLoss" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/metrics/HammingLoss" ><span class="devsite-nav-text" tooltip>HammingLoss</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/metrics/HarmonicMean" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/metrics/HarmonicMean" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/metrics/HarmonicMean" ><span class="devsite-nav-text" tooltip>HarmonicMean</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/metrics/KendallsTauB" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/metrics/KendallsTauB" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/metrics/KendallsTauB" ><span class="devsite-nav-text" tooltip>KendallsTauB</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/metrics/KendallsTauC" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/metrics/KendallsTauC" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/metrics/KendallsTauC" ><span class="devsite-nav-text" tooltip>KendallsTauC</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/metrics/MatthewsCorrelationCoefficient" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/metrics/MatthewsCorrelationCoefficient" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/metrics/MatthewsCorrelationCoefficient" ><span class="devsite-nav-text" tooltip>MatthewsCorrelationCoefficient</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/metrics/MeanMetricWrapper" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/metrics/MeanMetricWrapper" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/metrics/MeanMetricWrapper" ><span class="devsite-nav-text" tooltip>MeanMetricWrapper</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/metrics/MultiLabelConfusionMatrix" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/metrics/MultiLabelConfusionMatrix" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/metrics/MultiLabelConfusionMatrix" ><span class="devsite-nav-text" tooltip>MultiLabelConfusionMatrix</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/metrics/PearsonsCorrelation" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/metrics/PearsonsCorrelation" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/metrics/PearsonsCorrelation" ><span class="devsite-nav-text" tooltip>PearsonsCorrelation</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/metrics/RSquare" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/metrics/RSquare" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/metrics/RSquare" ><span class="devsite-nav-text" tooltip>RSquare</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/metrics/SpearmansRank" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/metrics/SpearmansRank" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/metrics/SpearmansRank" ><span class="devsite-nav-text" tooltip>SpearmansRank</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/metrics/hamming_distance" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/metrics/hamming_distance" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/metrics/hamming_distance" ><span class="devsite-nav-text" tooltip>hamming_distance</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/metrics/hamming_loss_fn" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/metrics/hamming_loss_fn" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/metrics/hamming_loss_fn" ><span class="devsite-nav-text" tooltip>hamming_loss_fn</span></a></li></ul></div></li> <li class="devsite-nav-item devsite-nav-expandable"><div class="devsite-expandable-nav"> <a class="devsite-nav-toggle" aria-hidden="true"></a><div class="devsite-nav-title devsite-nav-title-no-path" tabindex="0" role="button"> <span class="devsite-nav-text" tooltip>tfa.optimizers</span> </div><ul class="devsite-nav-section"><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/optimizers" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/optimizers" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/optimizers" ><span class="devsite-nav-text" tooltip>Overview</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/optimizers/AdaBelief" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/optimizers/AdaBelief" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/optimizers/AdaBelief" ><span class="devsite-nav-text" tooltip>AdaBelief</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/optimizers/AdamW" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/optimizers/AdamW" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/optimizers/AdamW" ><span class="devsite-nav-text" tooltip>AdamW</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/optimizers/AveragedOptimizerWrapper" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/optimizers/AveragedOptimizerWrapper" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/optimizers/AveragedOptimizerWrapper" ><span class="devsite-nav-text" tooltip>AveragedOptimizerWrapper</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/optimizers/COCOB" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/optimizers/COCOB" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/optimizers/COCOB" ><span class="devsite-nav-text" tooltip>COCOB</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/optimizers/ConditionalGradient" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/optimizers/ConditionalGradient" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/optimizers/ConditionalGradient" ><span class="devsite-nav-text" tooltip>ConditionalGradient</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/optimizers/CyclicalLearningRate" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/optimizers/CyclicalLearningRate" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/optimizers/CyclicalLearningRate" ><span class="devsite-nav-text" tooltip>CyclicalLearningRate</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/optimizers/DecoupledWeightDecayExtension" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/optimizers/DecoupledWeightDecayExtension" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/optimizers/DecoupledWeightDecayExtension" ><span class="devsite-nav-text" tooltip>DecoupledWeightDecayExtension</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/optimizers/ExponentialCyclicalLearningRate" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/optimizers/ExponentialCyclicalLearningRate" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/optimizers/ExponentialCyclicalLearningRate" ><span class="devsite-nav-text" tooltip>ExponentialCyclicalLearningRate</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/optimizers/LAMB" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/optimizers/LAMB" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/optimizers/LAMB" ><span class="devsite-nav-text" tooltip>LAMB</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/optimizers/LazyAdam" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/optimizers/LazyAdam" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/optimizers/LazyAdam" ><span class="devsite-nav-text" tooltip>LazyAdam</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/optimizers/Lookahead" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/optimizers/Lookahead" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/optimizers/Lookahead" ><span class="devsite-nav-text" tooltip>Lookahead</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/optimizers/MovingAverage" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/optimizers/MovingAverage" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/optimizers/MovingAverage" ><span class="devsite-nav-text" tooltip>MovingAverage</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/optimizers/MultiOptimizer" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/optimizers/MultiOptimizer" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/optimizers/MultiOptimizer" ><span class="devsite-nav-text" tooltip>MultiOptimizer</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/optimizers/NovoGrad" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/optimizers/NovoGrad" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/optimizers/NovoGrad" ><span class="devsite-nav-text" tooltip>NovoGrad</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/optimizers/ProximalAdagrad" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/optimizers/ProximalAdagrad" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/optimizers/ProximalAdagrad" ><span class="devsite-nav-text" tooltip>ProximalAdagrad</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/optimizers/RectifiedAdam" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/optimizers/RectifiedAdam" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/optimizers/RectifiedAdam" ><span class="devsite-nav-text" tooltip>RectifiedAdam</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/optimizers/SGDW" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/optimizers/SGDW" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/optimizers/SGDW" ><span class="devsite-nav-text" tooltip>SGDW</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/optimizers/SWA" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/optimizers/SWA" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/optimizers/SWA" ><span class="devsite-nav-text" tooltip>SWA</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/optimizers/Triangular2CyclicalLearningRate" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/optimizers/Triangular2CyclicalLearningRate" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/optimizers/Triangular2CyclicalLearningRate" ><span class="devsite-nav-text" tooltip>Triangular2CyclicalLearningRate</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/optimizers/TriangularCyclicalLearningRate" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/optimizers/TriangularCyclicalLearningRate" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/optimizers/TriangularCyclicalLearningRate" ><span class="devsite-nav-text" tooltip>TriangularCyclicalLearningRate</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/optimizers/Yogi" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/optimizers/Yogi" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/optimizers/Yogi" ><span class="devsite-nav-text" tooltip>Yogi</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/optimizers/extend_with_decoupled_weight_decay" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/optimizers/extend_with_decoupled_weight_decay" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/optimizers/extend_with_decoupled_weight_decay" ><span class="devsite-nav-text" tooltip>extend_with_decoupled_weight_decay</span></a></li></ul></div></li> <li class="devsite-nav-item devsite-nav-expandable"><div class="devsite-expandable-nav"> <a class="devsite-nav-toggle" aria-hidden="true"></a><div class="devsite-nav-title devsite-nav-title-no-path" tabindex="0" role="button"> <span class="devsite-nav-text" tooltip>tfa.options</span> </div><ul class="devsite-nav-section"><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/options" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/options" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/options" ><span class="devsite-nav-text" tooltip>Overview</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/options/disable_custom_kernel" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/options/disable_custom_kernel" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/options/disable_custom_kernel" ><span class="devsite-nav-text" tooltip>disable_custom_kernel</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/options/enable_custom_kernel" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/options/enable_custom_kernel" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/options/enable_custom_kernel" ><span class="devsite-nav-text" tooltip>enable_custom_kernel</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/options/is_custom_kernel_disabled" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/options/is_custom_kernel_disabled" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/options/is_custom_kernel_disabled" ><span class="devsite-nav-text" tooltip>is_custom_kernel_disabled</span></a></li></ul></div></li> <li class="devsite-nav-item devsite-nav-expandable"><div class="devsite-expandable-nav"> <a class="devsite-nav-toggle" aria-hidden="true"></a><div class="devsite-nav-title devsite-nav-title-no-path" tabindex="0" role="button"> <span class="devsite-nav-text" tooltip>tfa.rnn</span> </div><ul class="devsite-nav-section"><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/rnn" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/rnn" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/rnn" ><span class="devsite-nav-text" tooltip>Overview</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/rnn/ESNCell" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/rnn/ESNCell" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/rnn/ESNCell" ><span class="devsite-nav-text" tooltip>ESNCell</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/rnn/LayerNormLSTMCell" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/rnn/LayerNormLSTMCell" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/rnn/LayerNormLSTMCell" ><span class="devsite-nav-text" tooltip>LayerNormLSTMCell</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/rnn/LayerNormSimpleRNNCell" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/rnn/LayerNormSimpleRNNCell" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/rnn/LayerNormSimpleRNNCell" ><span class="devsite-nav-text" tooltip>LayerNormSimpleRNNCell</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/rnn/NASCell" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/rnn/NASCell" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/rnn/NASCell" ><span class="devsite-nav-text" tooltip>NASCell</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/rnn/PeepholeLSTMCell" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/rnn/PeepholeLSTMCell" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/rnn/PeepholeLSTMCell" ><span class="devsite-nav-text" tooltip>PeepholeLSTMCell</span></a></li></ul></div></li> <li class="devsite-nav-item devsite-nav-expandable"><div class="devsite-expandable-nav"> <a class="devsite-nav-toggle" aria-hidden="true"></a><div class="devsite-nav-title devsite-nav-title-no-path" tabindex="0" role="button"> <span class="devsite-nav-text" tooltip>tfa.seq2seq</span> </div><ul class="devsite-nav-section"><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/seq2seq" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/seq2seq" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/seq2seq" ><span class="devsite-nav-text" tooltip>Overview</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/seq2seq/AttentionMechanism" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/seq2seq/AttentionMechanism" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/seq2seq/AttentionMechanism" ><span class="devsite-nav-text" tooltip>AttentionMechanism</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/seq2seq/AttentionWrapper" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/seq2seq/AttentionWrapper" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/seq2seq/AttentionWrapper" ><span class="devsite-nav-text" tooltip>AttentionWrapper</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/seq2seq/AttentionWrapperState" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/seq2seq/AttentionWrapperState" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/seq2seq/AttentionWrapperState" ><span class="devsite-nav-text" tooltip>AttentionWrapperState</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/seq2seq/BahdanauAttention" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/seq2seq/BahdanauAttention" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/seq2seq/BahdanauAttention" ><span class="devsite-nav-text" tooltip>BahdanauAttention</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/seq2seq/BahdanauMonotonicAttention" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/seq2seq/BahdanauMonotonicAttention" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/seq2seq/BahdanauMonotonicAttention" ><span class="devsite-nav-text" tooltip>BahdanauMonotonicAttention</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/seq2seq/BaseDecoder" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/seq2seq/BaseDecoder" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/seq2seq/BaseDecoder" ><span class="devsite-nav-text" tooltip>BaseDecoder</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/seq2seq/BasicDecoder" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/seq2seq/BasicDecoder" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/seq2seq/BasicDecoder" ><span class="devsite-nav-text" tooltip>BasicDecoder</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/seq2seq/BasicDecoderOutput" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/seq2seq/BasicDecoderOutput" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/seq2seq/BasicDecoderOutput" ><span class="devsite-nav-text" tooltip>BasicDecoderOutput</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/seq2seq/BeamSearchDecoder" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/seq2seq/BeamSearchDecoder" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/seq2seq/BeamSearchDecoder" ><span class="devsite-nav-text" tooltip>BeamSearchDecoder</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/seq2seq/BeamSearchDecoderOutput" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/seq2seq/BeamSearchDecoderOutput" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/seq2seq/BeamSearchDecoderOutput" ><span class="devsite-nav-text" tooltip>BeamSearchDecoderOutput</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/seq2seq/BeamSearchDecoderState" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/seq2seq/BeamSearchDecoderState" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/seq2seq/BeamSearchDecoderState" ><span class="devsite-nav-text" tooltip>BeamSearchDecoderState</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/seq2seq/CustomSampler" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/seq2seq/CustomSampler" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/seq2seq/CustomSampler" ><span class="devsite-nav-text" tooltip>CustomSampler</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/seq2seq/Decoder" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/seq2seq/Decoder" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/seq2seq/Decoder" ><span class="devsite-nav-text" tooltip>Decoder</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/seq2seq/FinalBeamSearchDecoderOutput" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/seq2seq/FinalBeamSearchDecoderOutput" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/seq2seq/FinalBeamSearchDecoderOutput" ><span class="devsite-nav-text" tooltip>FinalBeamSearchDecoderOutput</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/seq2seq/GreedyEmbeddingSampler" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/seq2seq/GreedyEmbeddingSampler" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/seq2seq/GreedyEmbeddingSampler" ><span class="devsite-nav-text" tooltip>GreedyEmbeddingSampler</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/seq2seq/InferenceSampler" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/seq2seq/InferenceSampler" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/seq2seq/InferenceSampler" ><span class="devsite-nav-text" tooltip>InferenceSampler</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/seq2seq/LuongAttention" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/seq2seq/LuongAttention" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/seq2seq/LuongAttention" ><span class="devsite-nav-text" tooltip>LuongAttention</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/seq2seq/LuongMonotonicAttention" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/seq2seq/LuongMonotonicAttention" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/seq2seq/LuongMonotonicAttention" ><span class="devsite-nav-text" tooltip>LuongMonotonicAttention</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/seq2seq/SampleEmbeddingSampler" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/seq2seq/SampleEmbeddingSampler" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/seq2seq/SampleEmbeddingSampler" ><span class="devsite-nav-text" tooltip>SampleEmbeddingSampler</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/seq2seq/Sampler" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/seq2seq/Sampler" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/seq2seq/Sampler" ><span class="devsite-nav-text" tooltip>Sampler</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/seq2seq/ScheduledEmbeddingTrainingSampler" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/seq2seq/ScheduledEmbeddingTrainingSampler" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/seq2seq/ScheduledEmbeddingTrainingSampler" ><span class="devsite-nav-text" tooltip>ScheduledEmbeddingTrainingSampler</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/seq2seq/ScheduledOutputTrainingSampler" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/seq2seq/ScheduledOutputTrainingSampler" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/seq2seq/ScheduledOutputTrainingSampler" ><span class="devsite-nav-text" tooltip>ScheduledOutputTrainingSampler</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/seq2seq/SequenceLoss" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/seq2seq/SequenceLoss" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/seq2seq/SequenceLoss" ><span class="devsite-nav-text" tooltip>SequenceLoss</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/seq2seq/TrainingSampler" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/seq2seq/TrainingSampler" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/seq2seq/TrainingSampler" ><span class="devsite-nav-text" tooltip>TrainingSampler</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/seq2seq/dynamic_decode" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/seq2seq/dynamic_decode" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/seq2seq/dynamic_decode" ><span class="devsite-nav-text" tooltip>dynamic_decode</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/seq2seq/gather_tree" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/seq2seq/gather_tree" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/seq2seq/gather_tree" ><span class="devsite-nav-text" tooltip>gather_tree</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/seq2seq/gather_tree_from_array" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/seq2seq/gather_tree_from_array" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/seq2seq/gather_tree_from_array" ><span class="devsite-nav-text" tooltip>gather_tree_from_array</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/seq2seq/hardmax" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/seq2seq/hardmax" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/seq2seq/hardmax" ><span class="devsite-nav-text" tooltip>hardmax</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/seq2seq/monotonic_attention" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/seq2seq/monotonic_attention" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/seq2seq/monotonic_attention" ><span class="devsite-nav-text" tooltip>monotonic_attention</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/seq2seq/safe_cumprod" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/seq2seq/safe_cumprod" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/seq2seq/safe_cumprod" ><span class="devsite-nav-text" tooltip>safe_cumprod</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/seq2seq/sequence_loss" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/seq2seq/sequence_loss" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/seq2seq/sequence_loss" ><span class="devsite-nav-text" tooltip>sequence_loss</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/seq2seq/tile_batch" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/seq2seq/tile_batch" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/seq2seq/tile_batch" ><span class="devsite-nav-text" tooltip>tile_batch</span></a></li></ul></div></li> <li class="devsite-nav-item devsite-nav-expandable"><div class="devsite-expandable-nav"> <a class="devsite-nav-toggle" aria-hidden="true"></a><div class="devsite-nav-title devsite-nav-title-no-path" tabindex="0" role="button"> <span class="devsite-nav-text" tooltip>tfa.text</span> </div><ul class="devsite-nav-section"><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/text" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/text" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/text" ><span class="devsite-nav-text" tooltip>Overview</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/text/CRFModelWrapper" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/text/CRFModelWrapper" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/text/CRFModelWrapper" ><span class="devsite-nav-text" tooltip>CRFModelWrapper</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/text/CrfDecodeForwardRnnCell" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/text/CrfDecodeForwardRnnCell" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/text/CrfDecodeForwardRnnCell" ><span class="devsite-nav-text" tooltip>CrfDecodeForwardRnnCell</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/text/crf_binary_score" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/text/crf_binary_score" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/text/crf_binary_score" ><span class="devsite-nav-text" tooltip>crf_binary_score</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/text/crf_constrained_decode" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/text/crf_constrained_decode" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/text/crf_constrained_decode" ><span class="devsite-nav-text" tooltip>crf_constrained_decode</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/text/crf_decode" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/text/crf_decode" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/text/crf_decode" ><span class="devsite-nav-text" tooltip>crf_decode</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/text/crf_decode_backward" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/text/crf_decode_backward" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/text/crf_decode_backward" ><span class="devsite-nav-text" tooltip>crf_decode_backward</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/text/crf_decode_forward" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/text/crf_decode_forward" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/text/crf_decode_forward" ><span class="devsite-nav-text" tooltip>crf_decode_forward</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/text/crf_filtered_inputs" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/text/crf_filtered_inputs" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/text/crf_filtered_inputs" ><span class="devsite-nav-text" tooltip>crf_filtered_inputs</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/text/crf_forward" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/text/crf_forward" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/text/crf_forward" ><span class="devsite-nav-text" tooltip>crf_forward</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/text/crf_log_likelihood" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/text/crf_log_likelihood" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/text/crf_log_likelihood" ><span class="devsite-nav-text" tooltip>crf_log_likelihood</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/text/crf_log_norm" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/text/crf_log_norm" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/text/crf_log_norm" ><span class="devsite-nav-text" tooltip>crf_log_norm</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/text/crf_multitag_sequence_score" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/text/crf_multitag_sequence_score" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/text/crf_multitag_sequence_score" ><span class="devsite-nav-text" tooltip>crf_multitag_sequence_score</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/text/crf_sequence_score" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/text/crf_sequence_score" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/text/crf_sequence_score" ><span class="devsite-nav-text" tooltip>crf_sequence_score</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/text/crf_unary_score" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/text/crf_unary_score" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/text/crf_unary_score" ><span class="devsite-nav-text" tooltip>crf_unary_score</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/text/parse_time" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/text/parse_time" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/text/parse_time" ><span class="devsite-nav-text" tooltip>parse_time</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/text/skip_gram_sample" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/text/skip_gram_sample" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/text/skip_gram_sample" ><span class="devsite-nav-text" tooltip>skip_gram_sample</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/text/skip_gram_sample_with_text_vocab" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/text/skip_gram_sample_with_text_vocab" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/text/skip_gram_sample_with_text_vocab" ><span class="devsite-nav-text" tooltip>skip_gram_sample_with_text_vocab</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/text/viterbi_decode" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/text/viterbi_decode" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/text/viterbi_decode" ><span class="devsite-nav-text" tooltip>viterbi_decode</span></a></li><li class="devsite-nav-item devsite-nav-expandable"><div class="devsite-expandable-nav"> <a class="devsite-nav-toggle" aria-hidden="true"></a><div class="devsite-nav-title devsite-nav-title-no-path" tabindex="0" role="button"> <span class="devsite-nav-text" tooltip>crf</span> </div><ul class="devsite-nav-section"><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/text/crf" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/text/crf" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/text/crf" ><span class="devsite-nav-text" tooltip>Overview</span></a></li></ul></div></li></ul></div></li> <li class="devsite-nav-item devsite-nav-expandable"><div class="devsite-expandable-nav"> <a class="devsite-nav-toggle" aria-hidden="true"></a><div class="devsite-nav-title devsite-nav-title-no-path" tabindex="0" role="button"> <span class="devsite-nav-text" tooltip>tfa.types</span> </div><ul class="devsite-nav-section"><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/types" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/types" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/types" ><span class="devsite-nav-text" tooltip>Overview</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/types/AcceptableDTypes" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/types/AcceptableDTypes" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/types/AcceptableDTypes" ><span class="devsite-nav-text" tooltip>AcceptableDTypes</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/types/Activation" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/types/Activation" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/types/Activation" ><span class="devsite-nav-text" tooltip>Activation</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/types/Constraint" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/types/Constraint" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/types/Constraint" ><span class="devsite-nav-text" tooltip>Constraint</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/types/FloatTensorLike" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/types/FloatTensorLike" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/types/FloatTensorLike" ><span class="devsite-nav-text" tooltip>FloatTensorLike</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/types/Initializer" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/types/Initializer" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/types/Initializer" ><span class="devsite-nav-text" tooltip>Initializer</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/types/Number" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/types/Number" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/types/Number" ><span class="devsite-nav-text" tooltip>Number</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/types/Optimizer" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/types/Optimizer" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/types/Optimizer" ><span class="devsite-nav-text" tooltip>Optimizer</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/types/Regularizer" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/types/Regularizer" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/types/Regularizer" ><span class="devsite-nav-text" tooltip>Regularizer</span></a></li><li class="devsite-nav-item"><a href="/addons/api_docs/python/tfa/types/TensorLike" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /addons/api_docs/python/tfa/types/TensorLike" track-type="bookNav" track-name="click" track-metadata-eventdetail="/addons/api_docs/python/tfa/types/TensorLike" ><span class="devsite-nav-text" tooltip>TensorLike</span></a></li></ul></div></li> </ul> <ul class="devsite-nav-list" menu="Learn" aria-label="Side menu" hidden> <li class="devsite-nav-item"> <a href="/learn" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Introduction" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Introduction </span> </a> </li> <li class="devsite-nav-item"> <a href="/tutorials" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Tutorials" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Tutorials </span> </a> </li> <li class="devsite-nav-item"> <a href="/guide" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Guide" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Guide </span> </a> </li> <li class="devsite-nav-item"> <a href="/resources/learn-ml" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Learn ML" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Learn ML </span> </a> </li> </ul> <ul class="devsite-nav-list" menu="API" aria-label="Side menu" hidden> <li class="devsite-nav-item"> <a href="/api/stable" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: TensorFlow (v2.16.1)" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > TensorFlow (v2.16.1) </span> </a> </li> <li class="devsite-nav-item"> <a href="/versions" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Versions…" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Versions… </span> </a> </li> <li class="devsite-nav-item"> <a href="https://js.tensorflow.org/api/latest/" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: TensorFlow.js" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > TensorFlow.js </span> </a> </li> <li class="devsite-nav-item"> <a href="/lite/api_docs" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: TensorFlow Lite" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > TensorFlow Lite </span> </a> </li> <li class="devsite-nav-item"> <a href="/tfx/api_docs" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: TFX" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > TFX </span> </a> </li> </ul> <ul class="devsite-nav-list" menu="Resources" aria-label="Side menu" hidden> <li class="devsite-nav-item devsite-nav-heading"> <span class="devsite-nav-title" tooltip > <span class="devsite-nav-text" tooltip > LIBRARIES </span> </span> </li> <li class="devsite-nav-item"> <a href="/js" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: TensorFlow.js" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > TensorFlow.js </span> </a> </li> <li class="devsite-nav-item"> <a href="/lite" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: TensorFlow Lite" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > TensorFlow Lite </span> </a> </li> <li class="devsite-nav-item"> <a href="/tfx" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: TFX" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > TFX </span> </a> </li> <li class="devsite-nav-item"> <a href="/resources/libraries-extensions" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: All libraries" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > All libraries </span> </a> </li> <li class="devsite-nav-item devsite-nav-heading"> <span class="devsite-nav-title" tooltip > <span class="devsite-nav-text" tooltip > RESOURCES </span> </span> </li> <li class="devsite-nav-item"> <a href="/resources/models-datasets" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Models & datasets" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Models & datasets </span> </a> </li> <li class="devsite-nav-item"> <a href="/resources/tools" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Tools" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Tools </span> </a> </li> <li class="devsite-nav-item"> <a href="/responsible_ai" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Responsible AI" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Responsible AI </span> </a> </li> <li class="devsite-nav-item"> <a href="/resources/recommendation-systems" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Recommendation systems" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Recommendation systems </span> </a> </li> </ul> <ul class="devsite-nav-list" menu="Community" aria-label="Side menu" hidden> <li class="devsite-nav-item"> <a href="/community/groups" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Groups" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Groups </span> </a> </li> <li class="devsite-nav-item"> <a href="/community/contribute" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Contribute" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Contribute </span> </a> </li> <li class="devsite-nav-item"> <a href="https://blog.tensorflow.org/" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Blog" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Blog </span> </a> </li> <li class="devsite-nav-item"> <a href="https://discuss.tensorflow.org" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Forum" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Forum </span> </a> </li> </ul> <ul class="devsite-nav-list" menu="Why TensorFlow" aria-label="Side menu" hidden> <li class="devsite-nav-item"> <a href="/about" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: About" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > About </span> </a> </li> <li class="devsite-nav-item"> <a href="/about/case-studies" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Case studies" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Case studies </span> </a> </li> </ul> </div> </div> </nav> </devsite-book-nav> <section id="gc-wrapper"> <main role="main" class="devsite-main-content" has-book-nav has-sidebar > <div class="devsite-sidebar"> <div class="devsite-sidebar-content"> <devsite-toc class="devsite-nav" role="navigation" aria-label="On this page" depth="2" scrollbars ></devsite-toc> <devsite-recommendations-sidebar class="nocontent devsite-nav"> </devsite-recommendations-sidebar> </div> </div> <devsite-content> <article class="devsite-article"><style> /* Styles inlined from /site-assets/css/style.css */ /* override theme */ table img { max-width: 100%; } /* .devsite-terminal virtualenv prompt */ .tfo-terminal-venv::before { content: "(venv) $ " !important; } /* .devsite-terminal root prompt */ .tfo-terminal-root::before { content: "# " !important; } /* Used in links for type annotations in function/method signatures */ .tfo-signature-link a, .tfo-signature-link a:visited, .tfo-signature-link a:hover, .tfo-signature-link a:focus, .tfo-signature-link a:hover *, .tfo-signature-link a:focus * { text-decoration: none !important; } .tfo-signature-link a, .tfo-signature-link a:visited { border-bottom: 1px dotted #1a73e8; } .tfo-signature-link a:focus { border-bottom-style: solid; } /* .devsite-terminal Windows prompt */ .tfo-terminal-windows::before { content: "C:\\> " !important; } /* .devsite-terminal Windows prompt w/ virtualenv */ .tfo-terminal-windows-venv::before { content: "(venv) C:\\> " !important; } .tfo-diff-green-one-level + * { background: rgba(175, 245, 162, .6) !important; } .tfo-diff-green + * > * { background: rgba(175, 245, 162, .6) !important; } .tfo-diff-green-list + ul > li:first-of-type { background: rgba(175, 245, 162, .6) !important; } .tfo-diff-red-one-level + * { background: rgba(255, 230, 230, .6) !important; text-decoration: line-through !important; } .tfo-diff-red + * > * { background: rgba(255, 230, 230, .6) !important; text-decoration: line-through !important; } .tfo-diff-red-list + ul > li:first-of-type { background: rgba(255, 230, 230, .6) !important; text-decoration: line-through !important; } devsite-code .tfo-notebook-code-cell-output { max-height: 300px; overflow: auto; background: rgba(255, 247, 237, 1); /* orange bg to distinguish from input code cells */ } devsite-code .tfo-notebook-code-cell-output + .devsite-code-buttons-container button { background: rgba(255, 247, 237, .7); /* orange bg to distinguish from input code cells */ } devsite-code[dark-code] .tfo-notebook-code-cell-output { background: rgba(64, 78, 103, 1); /* medium slate */ } devsite-code[dark-code] .tfo-notebook-code-cell-output + .devsite-code-buttons-container button { background: rgba(64, 78, 103, .7); /* medium slate */ } /* override default table styles for notebook buttons */ .devsite-table-wrapper .tfo-notebook-buttons { display: inline-block; margin-left: 3px; width: auto; } .tfo-notebook-buttons td { padding-left: 0; padding-right: 20px; } .tfo-notebook-buttons a, .tfo-notebook-buttons :link, .tfo-notebook-buttons :visited { border-radius: 8px; box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .3), 0 1px 3px 1px rgba(60, 64, 67, .15); color: #202124; padding: 12px 17px; transition: box-shadow 0.2s; } .tfo-notebook-buttons a:hover, .tfo-notebook-buttons a:focus { box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .3), 0 2px 6px 2px rgba(60, 64, 67, .15); } .tfo-notebook-buttons tr { background: 0; border: 0; } /* on rendered notebook page, remove link to webpage since we're already here */ .tfo-notebook-buttons:not(.tfo-api) td:first-child { display: none; } .tfo-notebook-buttons td > a { -webkit-box-align: center; -ms-flex-align: center; align-items: center; display: -webkit-box; display: -ms-flexbox; display: flex; } .tfo-notebook-buttons td > a > img { margin-right: 8px; } /* landing pages */ .tfo-landing-row-item-inset-white { background-color: #fff; padding: 32px; } .tfo-landing-row-item-inset-white ol, .tfo-landing-row-item-inset-white ul { padding-left: 20px; } /* colab callout button */ .colab-callout-row devsite-code { border-radius: 8px 8px 0 0; box-shadow: none; } .colab-callout-footer { background: #e3e4e7; border-radius: 0 0 8px 8px; color: #37474f; padding: 20px; } .colab-callout-row devsite-code[dark-code] + .colab-callout-footer { background: #3f4f66; } .colab-callout-footer > .button { margin-top: 4px; color: #ff5c00; } .colab-callout-footer > a > span { vertical-align: middle; color: #37474f; padding-left: 10px; font-size: 14px; } .colab-callout-row devsite-code[dark-code] + .colab-callout-footer > a > span { color: #fff; } a.colab-button { background: rgba(255, 255, 255, .75); border: solid 1px rgba(0, 0, 0, .08); border-bottom-color: rgba(0, 0, 0, .15); border-radius: 4px; color: #aaa; display: inline-block; font-size: 11px !important; font-weight: 300; line-height: 16px; padding: 4px 8px; text-decoration: none; text-transform: uppercase; } a.colab-button:hover { background: white; border-color: rgba(0, 0, 0, .2); color: #666; } a.colab-button span { background: url(/images/colab_logo_button.svg) no-repeat 1px 1px / 20px; border-radius: 4px; display: inline-block; padding-left: 24px; text-decoration: none; } @media screen and (max-width: 600px) { .tfo-notebook-buttons td { display: block; } } /* guide and tutorials landing page cards and sections */ .tfo-landing-page-card { padding: 16px; box-shadow: 0 0 36px rgba(0,0,0,0.1); border-radius: 10px; } /* Page section headings */ .tfo-landing-page-heading h2, h2.tfo-landing-page-heading { font-family: "Google Sans", sans-serif; color: #425066; font-size: 30px; font-weight: 700; line-height: 40px; } /* Item title headings */ .tfo-landing-page-heading h3, h3.tfo-landing-page-heading, .tfo-landing-page-card h3, h3.tfo-landing-page-card { font-family: "Google Sans", sans-serif; color: #425066; font-size: 20px; font-weight: 500; line-height: 26px; } /* List of tutorials notebooks for subsites */ .tfo-landing-page-resources-ul { padding-left: 15px } .tfo-landing-page-resources-ul > li { margin: 6px 0; } /* Temporary fix to hide product description in header on landing pages */ devsite-header .devsite-product-description { display: none; } </style> <div class="devsite-banner devsite-banner-announcement nocontent" > <div class="devsite-banner-message"> <div class="devsite-banner-message-text"> <style> .devsite-banner-announcement { background: #fce8e6; } .devsite-banner-message-text { color: #d50000; } .devsite-banner-announcement :link, .devsite-banner-announcement :visited { background: none; color: #d50000; } </style> <p> <b>Warning:</b> This project is <b>deprecated</b>. TensorFlow Addons has stopped development, The project will only be providing minimal maintenance releases until May 2024. See the full announcement <a style="color:#d50000;background:none" href="/addons">here</a> or on <a style="color:#d50000;background:none" href="https://github.com/tensorflow/addons/issues/2807">github</a>. </p> </div> </div> </div> <div class="devsite-article-meta nocontent" role="navigation"> <ul class="devsite-breadcrumb-list" aria-label="Breadcrumb"> <li class="devsite-breadcrumb-item "> <a href="https://www.tensorflow.org/" class="devsite-breadcrumb-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Breadcrumbs" data-value="1" track-type="globalNav" track-name="breadcrumb" track-metadata-position="1" track-metadata-eventdetail="TensorFlow" > TensorFlow </a> </li> <li class="devsite-breadcrumb-item "> <div class="devsite-breadcrumb-guillemet material-icons" aria-hidden="true"></div> <a href="https://www.tensorflow.org/resources" class="devsite-breadcrumb-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Breadcrumbs" data-value="2" track-type="globalNav" track-name="breadcrumb" track-metadata-position="2" track-metadata-eventdetail="" > Resources </a> </li> <li class="devsite-breadcrumb-item "> <div class="devsite-breadcrumb-guillemet material-icons" aria-hidden="true"></div> <a href="https://www.tensorflow.org/addons" class="devsite-breadcrumb-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Breadcrumbs" data-value="3" track-type="globalNav" track-name="breadcrumb" track-metadata-position="3" track-metadata-eventdetail="TensorFlow Addons" > Addons </a> </li> <li class="devsite-breadcrumb-item "> <div class="devsite-breadcrumb-guillemet material-icons" aria-hidden="true"></div> <a href="https://www.tensorflow.org/addons/api_docs/python/tfa" class="devsite-breadcrumb-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Breadcrumbs" data-value="4" track-type="globalNav" track-name="breadcrumb" track-metadata-position="4" track-metadata-eventdetail="" > API </a> </li> </ul> <devsite-thumb-rating position="header"> </devsite-thumb-rating> </div> <h1 class="devsite-page-title" tabindex="-1"> Module: tfa </h1> <devsite-feature-tooltip ack-key="AckCollectionsBookmarkTooltipDismiss" analytics-category="Site-Wide Custom Events" analytics-action-show="Callout Profile displayed" analytics-action-close="Callout Profile dismissed" analytics-label="Create Collection Callout" class="devsite-page-bookmark-tooltip nocontent" dismiss-button="true" id="devsite-collections-dropdown" dismiss-button-text="Dismiss" close-button-text="Got it"> <devsite-bookmark></devsite-bookmark> <span slot="popout-heading"> Stay organized with collections </span> <span slot="popout-contents"> Save and categorize content based on your preferences. </span> </devsite-feature-tooltip> <div class="devsite-page-title-meta"><devsite-view-release-notes></devsite-view-release-notes></div> <devsite-toc class="devsite-nav" depth="2" devsite-toc-embedded > </devsite-toc> <div class="devsite-article-body clearfix "> <p></p> <!-- DO NOT EDIT! Automatically generated file. --> <div itemscope itemtype="http://developers.google.com/ReferenceObject"> <meta itemprop="name" content="tfa" /> <meta itemprop="path" content="Stable" /> </div> <!-- Insert buttons and diff --> <table class="tfo-notebook-buttons tfo-api nocontent" align="left"> <td> <a target="_blank" href="https://github.com/tensorflow/addons/blob/v0.20.0/tensorflow_addons/__init__.py"> <img src="https://www.tensorflow.org/images/GitHub-Mark-32px.png"> View source on GitHub </a> </td> </table> <p>Useful extra functionality for TensorFlow maintained by SIG-addons.</p> <h2 id="modules" data-text="Modules" tabindex="-1">Modules</h2> <p><a href="https://www.tensorflow.org/addons/api_docs/python/tfa/activations"><code translate="no" dir="ltr">activations</code></a> module: Additional activation functions.</p> <p><a href="https://www.tensorflow.org/addons/api_docs/python/tfa/callbacks"><code translate="no" dir="ltr">callbacks</code></a> module: Additional callbacks that conform to Keras API.</p> <p><a href="https://www.tensorflow.org/addons/api_docs/python/tfa/image"><code translate="no" dir="ltr">image</code></a> module: Additional image manipulation ops.</p> <p><a href="https://www.tensorflow.org/addons/api_docs/python/tfa/layers"><code translate="no" dir="ltr">layers</code></a> module: Additional layers that conform to Keras API.</p> <p><a href="https://www.tensorflow.org/addons/api_docs/python/tfa/losses"><code translate="no" dir="ltr">losses</code></a> module: Additional losses that conform to Keras API.</p> <p><a href="https://www.tensorflow.org/addons/api_docs/python/tfa/metrics"><code translate="no" dir="ltr">metrics</code></a> module: Additional metrics that conform to Keras API.</p> <p><a href="https://www.tensorflow.org/addons/api_docs/python/tfa/optimizers"><code translate="no" dir="ltr">optimizers</code></a> module: Additional optimizers that conform to Keras API.</p> <p><a href="https://www.tensorflow.org/addons/api_docs/python/tfa/options"><code translate="no" dir="ltr">options</code></a> module</p> <p><a href="https://www.tensorflow.org/addons/api_docs/python/tfa/rnn"><code translate="no" dir="ltr">rnn</code></a> module: Additional RNN cells that corform to Keras API.</p> <p><a href="https://www.tensorflow.org/addons/api_docs/python/tfa/seq2seq"><code translate="no" dir="ltr">seq2seq</code></a> module: Additional layers for sequence to sequence models.</p> <p><a href="https://www.tensorflow.org/addons/api_docs/python/tfa/text"><code translate="no" dir="ltr">text</code></a> module: Additional text-processing ops.</p> <p><a href="https://www.tensorflow.org/addons/api_docs/python/tfa/types"><code translate="no" dir="ltr">types</code></a> module: Types for typing functions signatures.</p> <h2 id="functions" data-text="Functions" tabindex="-1">Functions</h2> <p><a href="https://www.tensorflow.org/addons/api_docs/python/tfa/register_all"><code translate="no" dir="ltr">register_all(...)</code></a>: Register TensorFlow Addons' objects in TensorFlow global dictionaries.</p> </div> <devsite-thumb-rating position="footer"> </devsite-thumb-rating> <div class="devsite-floating-action-buttons"> </div> </article> <devsite-content-footer class="nocontent"> <p>Except as otherwise noted, the content of this page is licensed under the <a href="https://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 License</a>, and code samples are licensed under the <a href="https://www.apache.org/licenses/LICENSE-2.0">Apache 2.0 License</a>. For details, see the <a href="https://developers.google.com/site-policies">Google Developers Site Policies</a>. Java is a registered trademark of Oracle and/or its affiliates.</p> <p>Last updated 2023-05-25 UTC.</p> </devsite-content-footer> <devsite-notification > </devsite-notification> <div class="devsite-content-data"> <template class="devsite-content-data-template"> [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-05-25 UTC."],[],[]] </template> </div> </devsite-content> </main> <devsite-footer-promos class="devsite-footer"> </devsite-footer-promos> <devsite-footer-linkboxes class="devsite-footer"> <nav class="devsite-footer-linkboxes nocontent" aria-label="Footer links"> <ul class="devsite-footer-linkboxes-list"> <li class="devsite-footer-linkbox "> <h3 class="devsite-footer-linkbox-heading no-link">Stay connected</h3> <ul class="devsite-footer-linkbox-list"> <li class="devsite-footer-linkbox-item"> <a href="//blog.tensorflow.org" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 1)" > Blog </a> </li> <li class="devsite-footer-linkbox-item"> <a href="//discuss.tensorflow.org" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 2)" > Forum </a> </li> <li class="devsite-footer-linkbox-item"> <a href="//github.com/tensorflow/" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 3)" > GitHub </a> </li> <li class="devsite-footer-linkbox-item"> <a href="//twitter.com/tensorflow" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 4)" > Twitter </a> </li> <li class="devsite-footer-linkbox-item"> <a href="//youtube.com/tensorflow" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 5)" > YouTube </a> </li> </ul> </li> <li class="devsite-footer-linkbox "> <h3 class="devsite-footer-linkbox-heading no-link">Support</h3> <ul class="devsite-footer-linkbox-list"> <li class="devsite-footer-linkbox-item"> <a href="//github.com/tensorflow/tensorflow/issues" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 1)" > Issue tracker </a> </li> <li class="devsite-footer-linkbox-item"> <a href="//github.com/tensorflow/tensorflow/blob/master/RELEASE.md" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 2)" > Release notes </a> </li> <li class="devsite-footer-linkbox-item"> <a href="//stackoverflow.com/questions/tagged/tensorflow" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 3)" > Stack Overflow </a> </li> <li class="devsite-footer-linkbox-item"> <a href="/extras/tensorflow_brand_guidelines.pdf" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 4)" > Brand guidelines </a> </li> <li class="devsite-footer-linkbox-item"> <a href="/about/bib" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 5)" > Cite TensorFlow </a> </li> </ul> </li> </ul> </nav> </devsite-footer-linkboxes> <devsite-footer-utility class="devsite-footer"> <div class="devsite-footer-utility nocontent"> <nav class="devsite-footer-utility-links" aria-label="Utility links"> <ul class="devsite-footer-utility-list"> <li class="devsite-footer-utility-item "> <a class="devsite-footer-utility-link gc-analytics-event" href="//policies.google.com/terms" data-category="Site-Wide Custom Events" data-label="Footer Terms link" > Terms </a> </li> <li class="devsite-footer-utility-item "> <a class="devsite-footer-utility-link gc-analytics-event" href="//policies.google.com/privacy" data-category="Site-Wide Custom Events" data-label="Footer Privacy link" > Privacy </a> </li> <li class="devsite-footer-utility-item glue-cookie-notification-bar-control"> <a class="devsite-footer-utility-link gc-analytics-event" href="#" data-category="Site-Wide Custom Events" data-label="Footer Manage cookies link" aria-hidden="true" > Manage cookies </a> </li> <li class="devsite-footer-utility-item devsite-footer-utility-button"> <span class="devsite-footer-utility-description">Sign up for the TensorFlow newsletter</span> <a class="devsite-footer-utility-link gc-analytics-event" href="//www.tensorflow.org/subscribe" data-category="Site-Wide Custom Events" data-label="Footer Subscribe link" > Subscribe </a> </li> </ul> <devsite-language-selector> <ul role="presentation"> <li role="presentation"> <a role="menuitem" lang="en" >English</a> </li> <li role="presentation"> <a role="menuitem" lang="zh_cn" >中文 – 简体</a> </li> </ul> </devsite-language-selector> </nav> </div> </devsite-footer-utility> <devsite-panel></devsite-panel> </section></section> <devsite-sitemask></devsite-sitemask> <devsite-snackbar></devsite-snackbar> <devsite-tooltip ></devsite-tooltip> <devsite-heading-link></devsite-heading-link> <devsite-analytics> <script type="application/json" analytics>[{"dimensions": {"dimension5": "en", "dimension12": false, "dimension1": "Signed out", "dimension3": false, "dimension6": "en", "dimension4": "TensorFlow Addons"}, "gaid": "UA-69864048-1", "metrics": {"ratings_count": "metric2", "ratings_value": "metric1"}, "purpose": 0}]</script> <script type="application/json" tag-management>{"at": "True", "ga4": [], "ga4p": [], "gtm": [{"id": "GTM-MXSL34P", "purpose": 0}], "parameters": {"internalUser": "False", "language": {"machineTranslated": "False", "requested": "en", "served": "en"}, "pageType": "reference", "projectName": "TensorFlow Addons", "signedIn": "False", "tenant": "tensorflow", "recommendations": {"sourcePage": "", "sourceType": 0, "sourceRank": 0, "sourceIdenticalDescriptions": 0, "sourceTitleWords": 0, "sourceDescriptionWords": 0, "experiment": ""}, "experiment": {"ids": ""}}}</script> </devsite-analytics> <devsite-badger></devsite-badger> <script nonce="m3VPCyKLP/63wkp887xKc1E4WdedOC"> (function(d,e,v,s,i,t,E){d['GoogleDevelopersObject']=i; t=e.createElement(v);t.async=1;t.src=s;E=e.getElementsByTagName(v)[0]; E.parentNode.insertBefore(t,E);})(window, document, 'script', 'https://www.gstatic.com/devrel-devsite/prod/v870e399c64f7c43c99a3043db4b3a74327bb93d0914e84a0c3dba90bbfd67625/tensorflow/js/app_loader.js', '[15,"en",null,"/js/devsite_app_module.js","https://www.gstatic.com/devrel-devsite/prod/v870e399c64f7c43c99a3043db4b3a74327bb93d0914e84a0c3dba90bbfd67625","https://www.gstatic.com/devrel-devsite/prod/v870e399c64f7c43c99a3043db4b3a74327bb93d0914e84a0c3dba90bbfd67625/tensorflow","https://tensorflow-dot-devsite-v2-prod-3p.appspot.com",null,null,["/_pwa/tensorflow/manifest.json","https://www.gstatic.com/devrel-devsite/prod/v870e399c64f7c43c99a3043db4b3a74327bb93d0914e84a0c3dba90bbfd67625/images/video-placeholder.svg","https://www.gstatic.com/devrel-devsite/prod/v870e399c64f7c43c99a3043db4b3a74327bb93d0914e84a0c3dba90bbfd67625/tensorflow/images/favicon.png","https://www.gstatic.com/devrel-devsite/prod/v870e399c64f7c43c99a3043db4b3a74327bb93d0914e84a0c3dba90bbfd67625/tensorflow/images/lockup.svg","https://fonts.googleapis.com/css?family=Google+Sans:400,500|Roboto:400,400italic,500,500italic,700,700italic|Roboto+Mono:400,500,700&display=swap"],1,null,[1,6,8,12,14,17,21,25,50,52,63,70,75,76,80,87,91,92,93,97,98,100,101,102,103,104,105,107,108,109,110,112,113,117,118,120,122,124,125,126,127,129,130,131,132,133,134,135,136,138,140,141,147,148,149,151,152,156,157,158,159,161,163,164,168,169,170,179,180,182,183,186,191,193,196],"AIzaSyCNm9YxQumEXwGJgTDjxoxXK6m1F-9720Q","AIzaSyCc76DZePGtoyUjqKrLdsMGk_ry7sljLbY","www.tensorflow.org","AIzaSyB9bqgQ2t11WJsOX8qNsCQ6U-w91mmqF-I","AIzaSyAdYnStPdzjcJJtQ0mvIaeaMKj7_t6J_Fg",null,null,null,["Profiles__enable_public_developer_profiles","Profiles__enable_awarding_url","Analytics__enable_clearcut_logging","Cloud__enable_cloud_dlp_service","Concierge__enable_pushui","TpcFeatures__enable_mirror_tenant_redirects","Cloud__enable_cloud_shell_fte_user_flow","MiscFeatureFlags__enable_firebase_utm","Profiles__enable_developer_profiles_callout","MiscFeatureFlags__enable_explain_this_code","EngEduTelemetry__enable_engedu_telemetry","Profiles__enable_release_notes_notifications","TpcFeatures__enable_required_headers","Cloud__enable_cloud_shell","Experiments__reqs_query_experiments","Search__enable_page_map","Profiles__enable_page_saving","SignIn__enable_refresh_access_tokens","MiscFeatureFlags__emergency_css","Profiles__enable_recognition_badges","MiscFeatureFlags__enable_variable_operator","Cloud__enable_free_trial_server_call","BookNav__enable_tenant_cache_key","Cloud__enable_cloudx_experiment_ids","MiscFeatureFlags__enable_project_variables","Search__enable_suggestions_from_borg","Profiles__enable_dashboard_curated_recommendations","Profiles__require_profile_eligibility_for_signin","Cloud__enable_legacy_calculator_redirect","Search__enable_ai_eligibility_checks","Profiles__enable_complete_playlist_endpoint","CloudShell__cloud_shell_button","Cloud__enable_cloudx_ping","DevPro__enable_cloud_innovators_plus","DevPro__enable_developer_subscriptions","MiscFeatureFlags__developers_footer_image","CloudShell__cloud_code_overflow_menu","MiscFeatureFlags__developers_footer_dark_image","Search__enable_dynamic_content_confidential_banner","Profiles__enable_profile_collections","Cloud__enable_llm_concierge_chat","Cloud__enable_cloud_facet_chat","MiscFeatureFlags__enable_view_transitions","Profiles__enable_completecodelab_endpoint"],null,null,"AIzaSyA58TaKli1DculwmAmbpzLVGuWc8eCQgQc","https://developerscontentserving-pa.googleapis.com","AIzaSyDWBU60w0P9hEkr29kkksYs8Z7gvZ8u_wc","https://developerscontentsearch-pa.googleapis.com",2,4,null,"https://developerprofiles-pa.googleapis.com",[15,"tensorflow","TensorFlow","www.tensorflow.org",null,"tensorflow-dot-devsite-v2-prod-3p.appspot.com",null,null,[null,1,null,null,null,null,null,null,null,null,null,[1],null,null,null,null,null,null,[1],[1,null,null,[1]],null,null,null,[1,null,1],[1,1,null,1,1]],null,[25,null,null,null,null,null,"/images/lockup.svg","/images/logo.png",null,null,null,1,1,null,null,null,null,null,null,null,null,1,null,null,null,null,[]],[],null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,[6,1],null,[[],[1,1]],[[["UA-69864048-1"],["UA-69864048-4"],null,null,["UA-69864048-5"],["GTM-MXSL34P"],null,null,[["UA-69864048-1",1]],null,[["UA-69864048-5",1]],[["GTM-MXSL34P",1]],1],[[1,1],[5,4],[6,5],[12,8],[3,2],[4,3]],[[1,1],[2,2]]],null,4]]') </script> <devsite-a11y-announce></devsite-a11y-announce> </body> </html>