diff --git a/.gitignore b/.gitignore new file mode 100755 index 000000000..91b0961f7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,15 @@ +# MacOS temporary files +.DS_Store + +# Temporary file generated after docker_run +.confirm + +# IntelliJ IDEA files +.idea + +# Artifact folders in the Model Zoo +model_zoo/models/*/*/artifacts + + +/docs/ +/docsrc/build/ diff --git a/docker_run.sh b/docker_run.sh index 54108a97e..681c8adb4 100755 --- a/docker_run.sh +++ b/docker_run.sh @@ -77,6 +77,7 @@ docker_run_params=$(cat <<-END -v /opt/xilinx/dsa:/opt/xilinx/dsa \ -v /opt/xilinx/overlaybins:/opt/xilinx/overlaybins \ -e USER=$user -e UID=$uid -e GID=$gid \ + -v /sys/kernel/debug:/sys/kernel/debug --privileged=true \ -v $DOCKER_RUN_DIR:/vitis_ai_home \ -v $HERE:/workspace \ -w /workspace \ diff --git a/docs/_static/basic.css b/docs/_static/basic.css index 088967717..bf18350b6 100644 --- a/docs/_static/basic.css +++ b/docs/_static/basic.css @@ -222,7 +222,7 @@ table.modindextable td { /* -- general body styles --------------------------------------------------- */ div.body { - min-width: 360px; + min-width: 450px; max-width: 800px; } @@ -237,6 +237,16 @@ a.headerlink { visibility: hidden; } +a.brackets:before, +span.brackets > a:before{ + content: "["; +} + +a.brackets:after, +span.brackets > a:after { + content: "]"; +} + h1:hover > a.headerlink, h2:hover > a.headerlink, h3:hover > a.headerlink, @@ -324,16 +334,12 @@ aside.sidebar { p.sidebar-title { font-weight: bold; } -nav.contents, -aside.topic, div.admonition, div.topic, blockquote { clear: left; } /* -- topics ---------------------------------------------------------------- */ -nav.contents, -aside.topic, div.topic { border: 1px solid #ccc; @@ -373,9 +379,6 @@ div.body p.centered { div.sidebar > :last-child, aside.sidebar > :last-child, -nav.contents > :last-child, -aside.topic > :last-child, - div.topic > :last-child, div.admonition > :last-child { margin-bottom: 0; @@ -383,9 +386,6 @@ div.admonition > :last-child { div.sidebar::after, aside.sidebar::after, -nav.contents::after, -aside.topic::after, - div.topic::after, div.admonition::after, blockquote::after { @@ -428,6 +428,10 @@ table.docutils td, table.docutils th { border-bottom: 1px solid #aaa; } +table.footnote td, table.footnote th { + border: 0 !important; +} + th { text-align: left; padding-right: 5px; @@ -611,7 +615,6 @@ ul.simple p { margin-bottom: 0; } -/* Docutils 0.17 and older (footnotes & citations) */ dl.footnote > dt, dl.citation > dt { float: left; @@ -629,33 +632,6 @@ dl.citation > dd:after { clear: both; } -/* Docutils 0.18+ (footnotes & citations) */ -aside.footnote > span, -div.citation > span { - float: left; -} -aside.footnote > span:last-of-type, -div.citation > span:last-of-type { - padding-right: 0.5em; -} -aside.footnote > p { - margin-left: 2em; -} -div.citation > p { - margin-left: 4em; -} -aside.footnote > p:last-of-type, -div.citation > p:last-of-type { - margin-bottom: 0em; -} -aside.footnote > p:last-of-type:after, -div.citation > p:last-of-type:after { - content: ""; - clear: both; -} - -/* Footnotes & citations ends */ - dl.field-list { display: grid; grid-template-columns: fit-content(30%) auto; diff --git a/docs/_static/doctools.js b/docs/_static/doctools.js index c3db08d1c..e1bfd708b 100644 --- a/docs/_static/doctools.js +++ b/docs/_static/doctools.js @@ -2,263 +2,357 @@ * doctools.js * ~~~~~~~~~~~ * - * Base JavaScript utilities for all Sphinx HTML documentation. + * Sphinx JavaScript utilities for all documentation. * * :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS. * :license: BSD, see LICENSE for details. * */ -"use strict"; -const _ready = (callback) => { - if (document.readyState !== "loading") { - callback(); - } else { - document.addEventListener("DOMContentLoaded", callback); +/** + * select a different prefix for underscore + */ +$u = _.noConflict(); + +/** + * make the code below compatible with browsers without + * an installed firebug like debugger +if (!window.console || !console.firebug) { + var names = ["log", "debug", "info", "warn", "error", "assert", "dir", + "dirxml", "group", "groupEnd", "time", "timeEnd", "count", "trace", + "profile", "profileEnd"]; + window.console = {}; + for (var i = 0; i < names.length; ++i) + window.console[names[i]] = function() {}; +} + */ + +/** + * small helper function to urldecode strings + * + * See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/decodeURIComponent#Decoding_query_parameters_from_a_URL + */ +jQuery.urldecode = function(x) { + if (!x) { + return x } + return decodeURIComponent(x.replace(/\+/g, ' ')); }; /** - * highlight a given string on a node by wrapping it in - * span elements with the given class name. + * small helper function to urlencode strings */ -const _highlight = (node, addItems, text, className) => { - if (node.nodeType === Node.TEXT_NODE) { - const val = node.nodeValue; - const parent = node.parentNode; - const pos = val.toLowerCase().indexOf(text); - if ( - pos >= 0 && - !parent.classList.contains(className) && - !parent.classList.contains("nohighlight") - ) { - let span; +jQuery.urlencode = encodeURIComponent; - const closestNode = parent.closest("body, svg, foreignObject"); - const isInSVG = closestNode && closestNode.matches("svg"); - if (isInSVG) { - span = document.createElementNS("http://www.w3.org/2000/svg", "tspan"); - } else { - span = document.createElement("span"); - span.classList.add(className); - } +/** + * This function returns the parsed url parameters of the + * current request. Multiple values per key are supported, + * it will always return arrays of strings for the value parts. + */ +jQuery.getQueryParameters = function(s) { + if (typeof s === 'undefined') + s = document.location.search; + var parts = s.substr(s.indexOf('?') + 1).split('&'); + var result = {}; + for (var i = 0; i < parts.length; i++) { + var tmp = parts[i].split('=', 2); + var key = jQuery.urldecode(tmp[0]); + var value = jQuery.urldecode(tmp[1]); + if (key in result) + result[key].push(value); + else + result[key] = [value]; + } + return result; +}; - span.appendChild(document.createTextNode(val.substr(pos, text.length))); - parent.insertBefore( - span, - parent.insertBefore( +/** + * highlight a given string on a jquery object by wrapping it in + * span elements with the given class name. + */ +jQuery.fn.highlightText = function(text, className) { + function highlight(node, addItems) { + if (node.nodeType === 3) { + var val = node.nodeValue; + var pos = val.toLowerCase().indexOf(text); + if (pos >= 0 && + !jQuery(node.parentNode).hasClass(className) && + !jQuery(node.parentNode).hasClass("nohighlight")) { + var span; + var isInSVG = jQuery(node).closest("body, svg, foreignObject").is("svg"); + if (isInSVG) { + span = document.createElementNS("http://www.w3.org/2000/svg", "tspan"); + } else { + span = document.createElement("span"); + span.className = className; + } + span.appendChild(document.createTextNode(val.substr(pos, text.length))); + node.parentNode.insertBefore(span, node.parentNode.insertBefore( document.createTextNode(val.substr(pos + text.length)), - node.nextSibling - ) - ); - node.nodeValue = val.substr(0, pos); - - if (isInSVG) { - const rect = document.createElementNS( - "http://www.w3.org/2000/svg", - "rect" - ); - const bbox = parent.getBBox(); - rect.x.baseVal.value = bbox.x; - rect.y.baseVal.value = bbox.y; - rect.width.baseVal.value = bbox.width; - rect.height.baseVal.value = bbox.height; - rect.setAttribute("class", className); - addItems.push({ parent: parent, target: rect }); + node.nextSibling)); + node.nodeValue = val.substr(0, pos); + if (isInSVG) { + var rect = document.createElementNS("http://www.w3.org/2000/svg", "rect"); + var bbox = node.parentElement.getBBox(); + rect.x.baseVal.value = bbox.x; + rect.y.baseVal.value = bbox.y; + rect.width.baseVal.value = bbox.width; + rect.height.baseVal.value = bbox.height; + rect.setAttribute('class', className); + addItems.push({ + "parent": node.parentNode, + "target": rect}); + } } } - } else if (node.matches && !node.matches("button, select, textarea")) { - node.childNodes.forEach((el) => _highlight(el, addItems, text, className)); + else if (!jQuery(node).is("button, select, textarea")) { + jQuery.each(node.childNodes, function() { + highlight(this, addItems); + }); + } } -}; -const _highlightText = (thisNode, text, className) => { - let addItems = []; - _highlight(thisNode, addItems, text, className); - addItems.forEach((obj) => - obj.parent.insertAdjacentElement("beforebegin", obj.target) - ); + var addItems = []; + var result = this.each(function() { + highlight(this, addItems); + }); + for (var i = 0; i < addItems.length; ++i) { + jQuery(addItems[i].parent).before(addItems[i].target); + } + return result; }; +/* + * backward compatibility for jQuery.browser + * This will be supported until firefox bug is fixed. + */ +if (!jQuery.browser) { + jQuery.uaMatch = function(ua) { + ua = ua.toLowerCase(); + + var match = /(chrome)[ \/]([\w.]+)/.exec(ua) || + /(webkit)[ \/]([\w.]+)/.exec(ua) || + /(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua) || + /(msie) ([\w.]+)/.exec(ua) || + ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua) || + []; + + return { + browser: match[ 1 ] || "", + version: match[ 2 ] || "0" + }; + }; + jQuery.browser = {}; + jQuery.browser[jQuery.uaMatch(navigator.userAgent).browser] = true; +} + /** * Small JavaScript module for the documentation. */ -const Documentation = { - init: () => { - Documentation.highlightSearchWords(); - Documentation.initDomainIndexTable(); - Documentation.initOnKeyListeners(); +var Documentation = { + + init : function() { + this.fixFirefoxAnchorBug(); + this.highlightSearchWords(); + this.initIndexTable(); + this.initOnKeyListeners(); }, /** * i18n support */ - TRANSLATIONS: {}, - PLURAL_EXPR: (n) => (n === 1 ? 0 : 1), - LOCALE: "unknown", + TRANSLATIONS : {}, + PLURAL_EXPR : function(n) { return n === 1 ? 0 : 1; }, + LOCALE : 'unknown', // gettext and ngettext don't access this so that the functions // can safely bound to a different name (_ = Documentation.gettext) - gettext: (string) => { - const translated = Documentation.TRANSLATIONS[string]; - switch (typeof translated) { - case "undefined": - return string; // no translation - case "string": - return translated; // translation exists - default: - return translated[0]; // (singular, plural) translation tuple exists - } + gettext : function(string) { + var translated = Documentation.TRANSLATIONS[string]; + if (typeof translated === 'undefined') + return string; + return (typeof translated === 'string') ? translated : translated[0]; }, - ngettext: (singular, plural, n) => { - const translated = Documentation.TRANSLATIONS[singular]; - if (typeof translated !== "undefined") - return translated[Documentation.PLURAL_EXPR(n)]; - return n === 1 ? singular : plural; + ngettext : function(singular, plural, n) { + var translated = Documentation.TRANSLATIONS[singular]; + if (typeof translated === 'undefined') + return (n == 1) ? singular : plural; + return translated[Documentation.PLURALEXPR(n)]; }, - addTranslations: (catalog) => { - Object.assign(Documentation.TRANSLATIONS, catalog.messages); - Documentation.PLURAL_EXPR = new Function( - "n", - `return (${catalog.plural_expr})` - ); - Documentation.LOCALE = catalog.locale; + addTranslations : function(catalog) { + for (var key in catalog.messages) + this.TRANSLATIONS[key] = catalog.messages[key]; + this.PLURAL_EXPR = new Function('n', 'return +(' + catalog.plural_expr + ')'); + this.LOCALE = catalog.locale; }, /** - * highlight the search words provided in the url in the text + * add context elements like header anchor links */ - highlightSearchWords: () => { - const highlight = - new URLSearchParams(window.location.search).get("highlight") || ""; - const terms = highlight.toLowerCase().split(/\s+/).filter(x => x); - if (terms.length === 0) return; // nothing to do + addContextElements : function() { + $('div[id] > :header:first').each(function() { + $('<a class="headerlink">\u00B6</a>'). + attr('href', '#' + this.id). + attr('title', _('Permalink to this headline')). + appendTo(this); + }); + $('dt[id]').each(function() { + $('<a class="headerlink">\u00B6</a>'). + attr('href', '#' + this.id). + attr('title', _('Permalink to this definition')). + appendTo(this); + }); + }, - // There should never be more than one element matching "div.body" - const divBody = document.querySelectorAll("div.body"); - const body = divBody.length ? divBody[0] : document.querySelector("body"); - window.setTimeout(() => { - terms.forEach((term) => _highlightText(body, term, "highlighted")); - }, 10); + /** + * workaround a firefox stupidity + * see: https://bugzilla.mozilla.org/show_bug.cgi?id=645075 + */ + fixFirefoxAnchorBug : function() { + if (document.location.hash && $.browser.mozilla) + window.setTimeout(function() { + document.location.href += ''; + }, 10); + }, - const searchBox = document.getElementById("searchbox"); - if (searchBox === null) return; - searchBox.appendChild( - document - .createRange() - .createContextualFragment( - '<p class="highlight-link">' + - '<a href="javascript:Documentation.hideSearchWords()">' + - Documentation.gettext("Hide Search Matches") + - "</a></p>" - ) - ); + /** + * highlight the search words provided in the url in the text + */ + highlightSearchWords : function() { + var params = $.getQueryParameters(); + var terms = (params.highlight) ? params.highlight[0].split(/\s+/) : []; + if (terms.length) { + var body = $('div.body'); + if (!body.length) { + body = $('body'); + } + window.setTimeout(function() { + $.each(terms, function() { + body.highlightText(this.toLowerCase(), 'highlighted'); + }); + }, 10); + $('<p class="highlight-link"><a href="javascript:Documentation.' + + 'hideSearchWords()">' + _('Hide Search Matches') + '</a></p>') + .appendTo($('#searchbox')); + } }, /** - * helper function to hide the search marks again + * init the domain index toggle buttons */ - hideSearchWords: () => { - document - .querySelectorAll("#searchbox .highlight-link") - .forEach((el) => el.remove()); - document - .querySelectorAll("span.highlighted") - .forEach((el) => el.classList.remove("highlighted")); - const url = new URL(window.location); - url.searchParams.delete("highlight"); - window.history.replaceState({}, "", url); + initIndexTable : function() { + var togglers = $('img.toggler').click(function() { + var src = $(this).attr('src'); + var idnum = $(this).attr('id').substr(7); + $('tr.cg-' + idnum).toggle(); + if (src.substr(-9) === 'minus.png') + $(this).attr('src', src.substr(0, src.length-9) + 'plus.png'); + else + $(this).attr('src', src.substr(0, src.length-8) + 'minus.png'); + }).css('display', ''); + if (DOCUMENTATION_OPTIONS.COLLAPSE_INDEX) { + togglers.click(); + } }, /** + * helper function to hide the search marks again + */ + hideSearchWords : function() { + $('#searchbox .highlight-link').fadeOut(300); + $('span.highlighted').removeClass('highlighted'); + var url = new URL(window.location); + url.searchParams.delete('highlight'); + window.history.replaceState({}, '', url); + }, + + /** * helper function to focus on search bar */ - focusSearchBar: () => { - document.querySelectorAll("input[name=q]")[0]?.focus(); + focusSearchBar : function() { + $('input[name=q]').first().focus(); }, /** - * Initialise the domain index toggle buttons + * make the url absolute */ - initDomainIndexTable: () => { - const toggler = (el) => { - const idNumber = el.id.substr(7); - const toggledRows = document.querySelectorAll(`tr.cg-${idNumber}`); - if (el.src.substr(-9) === "minus.png") { - el.src = `${el.src.substr(0, el.src.length - 9)}plus.png`; - toggledRows.forEach((el) => (el.style.display = "none")); - } else { - el.src = `${el.src.substr(0, el.src.length - 8)}minus.png`; - toggledRows.forEach((el) => (el.style.display = "")); - } - }; + makeURL : function(relativeURL) { + return DOCUMENTATION_OPTIONS.URL_ROOT + '/' + relativeURL; + }, - const togglerElements = document.querySelectorAll("img.toggler"); - togglerElements.forEach((el) => - el.addEventListener("click", (event) => toggler(event.currentTarget)) - ); - togglerElements.forEach((el) => (el.style.display = "")); - if (DOCUMENTATION_OPTIONS.COLLAPSE_INDEX) togglerElements.forEach(toggler); + /** + * get the current relative url + */ + getCurrentURL : function() { + var path = document.location.pathname; + var parts = path.split(/\//); + $.each(DOCUMENTATION_OPTIONS.URL_ROOT.split(/\//), function() { + if (this === '..') + parts.pop(); + }); + var url = parts.join('/'); + return path.substring(url.lastIndexOf('/') + 1, path.length - 1); }, - initOnKeyListeners: () => { + initOnKeyListeners: function() { // only install a listener if it is really needed - if ( - !DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS && - !DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS - ) - return; + if (!DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS && + !DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS) + return; - const blacklistedElements = new Set([ - "TEXTAREA", - "INPUT", - "SELECT", - "BUTTON", - ]); - document.addEventListener("keydown", (event) => { - if (blacklistedElements.has(document.activeElement.tagName)) return; // bail for input elements - if (event.altKey || event.ctrlKey || event.metaKey) return; // bail with special keys + $(document).keydown(function(event) { + var activeElementType = document.activeElement.tagName; + // don't navigate when in search box, textarea, dropdown or button + if (activeElementType !== 'TEXTAREA' && activeElementType !== 'INPUT' && activeElementType !== 'SELECT' + && activeElementType !== 'BUTTON') { + if (event.altKey || event.ctrlKey || event.metaKey) + return; - if (!event.shiftKey) { - switch (event.key) { - case "ArrowLeft": - if (!DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS) break; - - const prevLink = document.querySelector('link[rel="prev"]'); - if (prevLink && prevLink.href) { - window.location.href = prevLink.href; - event.preventDefault(); - } - break; - case "ArrowRight": - if (!DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS) break; - - const nextLink = document.querySelector('link[rel="next"]'); - if (nextLink && nextLink.href) { - window.location.href = nextLink.href; - event.preventDefault(); - } - break; - case "Escape": - if (!DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS) break; - Documentation.hideSearchWords(); - event.preventDefault(); + if (!event.shiftKey) { + switch (event.key) { + case 'ArrowLeft': + if (!DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS) + break; + var prevHref = $('link[rel="prev"]').prop('href'); + if (prevHref) { + window.location.href = prevHref; + return false; + } + break; + case 'ArrowRight': + if (!DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS) + break; + var nextHref = $('link[rel="next"]').prop('href'); + if (nextHref) { + window.location.href = nextHref; + return false; + } + break; + case 'Escape': + if (!DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS) + break; + Documentation.hideSearchWords(); + return false; + } } - } - // some keyboard layouts may need Shift to get / - switch (event.key) { - case "/": - if (!DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS) break; - Documentation.focusSearchBar(); - event.preventDefault(); + // some keyboard layouts may need Shift to get / + switch (event.key) { + case '/': + if (!DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS) + break; + Documentation.focusSearchBar(); + return false; + } } }); - }, + } }; // quick alias for translations -const _ = Documentation.gettext; +_ = Documentation.gettext; -_ready(Documentation.init); +$(document).ready(function() { + Documentation.init(); +}); diff --git a/docs/_static/documentation_options.js b/docs/_static/documentation_options.js index abc007187..6a0ac12eb 100644 --- a/docs/_static/documentation_options.js +++ b/docs/_static/documentation_options.js @@ -1,7 +1,7 @@ var DOCUMENTATION_OPTIONS = { URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'), VERSION: '3.5', - LANGUAGE: 'en', + LANGUAGE: 'None', COLLAPSE_INDEX: false, BUILDER: 'html', FILE_SUFFIX: '.html', @@ -10,5 +10,5 @@ var DOCUMENTATION_OPTIONS = { SOURCELINK_SUFFIX: '.txt', NAVIGATION_WITH_KEYS: false, SHOW_SEARCH_SUMMARY: true, - ENABLE_SEARCH_SHORTCUTS: false, + ENABLE_SEARCH_SHORTCUTS: true, }; \ No newline at end of file diff --git a/docs/_static/jquery.js b/docs/_static/jquery.js index c4c6022f2..b0614034a 100644 --- a/docs/_static/jquery.js +++ b/docs/_static/jquery.js @@ -1,2 +1,2 @@ -/*! jQuery v3.6.0 | (c) OpenJS Foundation and other contributors | jquery.org/license */ -!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],r=Object.getPrototypeOf,s=t.slice,g=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},u=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},x=function(e){return null!=e&&e===e.window},E=C.document,c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.6.0",S=function(e,t){return new S.fn.init(e,t)};function p(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}S.fn=S.prototype={jquery:f,constructor:S,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=S.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return S.each(this,e)},map:function(n){return this.pushStack(S.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(S.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(S.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:t.sort,splice:t.splice},S.extend=S.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||m(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(S.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||S.isPlainObject(n)?n:{},i=!1,a[t]=S.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},S.extend({expando:"jQuery"+(f+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==o.call(e))&&(!(t=r(e))||"function"==typeof(n=v.call(t,"constructor")&&t.constructor)&&a.call(n)===l)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){b(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(p(e)){for(n=e.length;r<n;r++)if(!1===t.call(e[r],r,e[r]))break}else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(p(Object(e))?S.merge(n,"string"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:i.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(p(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return g(a)},guid:1,support:y}),"function"==typeof Symbol&&(S.fn[Symbol.iterator]=t[Symbol.iterator]),S.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var d=function(n){var e,d,b,o,i,h,f,g,w,u,l,T,C,a,E,v,s,c,y,S="sizzle"+1*new Date,p=n.document,k=0,r=0,m=ue(),x=ue(),A=ue(),N=ue(),j=function(e,t){return e===t&&(l=!0),0},D={}.hasOwnProperty,t=[],q=t.pop,L=t.push,H=t.push,O=t.slice,P=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",I="(?:\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",W="\\["+M+"*("+I+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+I+"))|)"+M+"*\\]",F=":("+I+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+W+")*)|.*)\\)|)",B=new RegExp(M+"+","g"),$=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),_=new RegExp("^"+M+"*,"+M+"*"),z=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp(F),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){T()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=O.call(p.childNodes),p.childNodes),t[p.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(T(e),e=e||C,E)){if(11!==p&&(u=Z.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&y(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n,e.getElementsByClassName(i)),n}if(d.qsa&&!N[t+" "]&&(!v||!v.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&(U.test(t)||z.test(t))){(f=ee.test(t)&&ye(e.parentNode)||e)===e&&d.scope||((s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=S)),o=(l=h(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+xe(l[o]);c=l.join(",")}try{return H.apply(n,f.querySelectorAll(c)),n}catch(e){N(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return g(t.replace($,"$1"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[S]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ve(a){return le(function(o){return o=+o,le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ye(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:p;return r!=C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,E=!i(C),p!=C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),d.scope=ce(function(e){return a.appendChild(e).appendChild(C.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(C.getElementsByClassName),d.getById=ce(function(e){return a.appendChild(e).id=S,!C.getElementsByName||!C.getElementsByName(S).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},b.find.CLASS=d.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&E)return t.getElementsByClassName(e)},s=[],v=[],(d.qsa=K.test(C.querySelectorAll))&&(ce(function(e){var t;a.appendChild(e).innerHTML="<a id='"+S+"'></a><select id='"+S+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+S+"-]").length||v.push("~="),(t=C.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||v.push("\\["+M+"*name"+M+"*="+M+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+S+"+*").length||v.push(".#.+[+~]"),e.querySelectorAll("\\\f"),v.push("[\\r\\n\\f]")}),ce(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",F)}),v=v.length&&new RegExp(v.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),y=t||K.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},j=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e==C||e.ownerDocument==p&&y(p,e)?-1:t==C||t.ownerDocument==p&&y(p,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==C?-1:t==C?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return pe(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?pe(a[r],s[r]):a[r]==p?-1:s[r]==p?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(T(e),d.matchesSelector&&E&&!N[t+" "]&&(!s||!s.test(t))&&(!v||!v.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){N(t,!0)}return 0<se(t,C,null,[e]).length},se.contains=function(e,t){return(e.ownerDocument||e)!=C&&T(e),y(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=C&&T(e);var n=b.attrHandle[t.toLowerCase()],r=n&&D.call(b.attrHandle,t.toLowerCase())?n(e,t,!E):void 0;return void 0!==r?r:d.attributes||!E?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},se.escape=function(e){return(e+"").replace(re,ie)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,n=[],r=0,i=0;if(l=!d.detectDuplicates,u=!d.sortStable&&e.slice(0),e.sort(j),l){while(t=e[i++])t===e[i]&&(r=n.push(i));while(r--)e.splice(n[r],1)}return u=null,e},o=se.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===i||4===i)return e.nodeValue}else while(t=e[r++])n+=o(t);return n},(b=se.selectors={cacheLength:50,createPseudo:le,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=m[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&m(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1<t.indexOf(i):"$="===r?i&&t.slice(-i.length)===i:"~="===r?-1<(" "+t.replace(B," ")+" ").indexOf(i):"|="===r&&(t===i||t.slice(0,i.length+1)===i+"-"))}},CHILD:function(h,e,t,g,v){var y="nth"!==h.slice(0,3),m="last"!==h.slice(-4),x="of-type"===e;return 1===g&&0===v?function(e){return!!e.parentNode}:function(e,t,n){var r,i,o,a,s,u,l=y!==m?"nextSibling":"previousSibling",c=e.parentNode,f=x&&e.nodeName.toLowerCase(),p=!n&&!x,d=!1;if(c){if(y){while(l){a=e;while(a=a[l])if(x?a.nodeName.toLowerCase()===f:1===a.nodeType)return!1;u=l="only"===h&&!u&&"nextSibling"}return!0}if(u=[m?c.firstChild:c.lastChild],m&&p){d=(s=(r=(i=(o=(a=c)[S]||(a[S]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]||[])[0]===k&&r[1])&&r[2],a=s&&c.childNodes[s];while(a=++s&&a&&a[l]||(d=s=0)||u.pop())if(1===a.nodeType&&++d&&a===e){i[h]=[k,s,d];break}}else if(p&&(d=s=(r=(i=(o=(a=e)[S]||(a[S]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]||[])[0]===k&&r[1]),!1===d)while(a=++s&&a&&a[l]||(d=s=0)||u.pop())if((x?a.nodeName.toLowerCase()===f:1===a.nodeType)&&++d&&(p&&((i=(o=a[S]||(a[S]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]=[k,d]),a===e))break;return(d-=v)===g||d%g==0&&0<=d/g}}},PSEUDO:function(e,o){var t,a=b.pseudos[e]||b.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return a[S]?a(o):1<a.length?(t=[e,e,"",o],b.setFilters.hasOwnProperty(e.toLowerCase())?le(function(e,t){var n,r=a(e,o),i=r.length;while(i--)e[n=P(e,r[i])]=!(t[n]=r[i])}):function(e){return a(e,0,t)}):a}},pseudos:{not:le(function(e){var r=[],i=[],s=f(e.replace($,"$1"));return s[S]?le(function(e,t,n,r){var i,o=s(e,null,r,[]),a=e.length;while(a--)(i=o[a])&&(e[a]=!(t[a]=i))}):function(e,t,n){return r[0]=e,s(r,null,n,i),r[0]=null,!i.pop()}}),has:le(function(t){return function(e){return 0<se(t,e).length}}),contains:le(function(t){return t=t.replace(te,ne),function(e){return-1<(e.textContent||o(e)).indexOf(t)}}),lang:le(function(n){return V.test(n||"")||se.error("unsupported lang: "+n),n=n.replace(te,ne).toLowerCase(),function(e){var t;do{if(t=E?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===a},focus:function(e){return e===C.activeElement&&(!C.hasFocus||C.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ge(!1),disabled:ge(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!b.pseudos.empty(e)},header:function(e){return J.test(e.nodeName)},input:function(e){return Q.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ve(function(){return[0]}),last:ve(function(e,t){return[t-1]}),eq:ve(function(e,t,n){return[n<0?n+t:n]}),even:ve(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:ve(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:ve(function(e,t,n){for(var r=n<0?n+t:t<n?t:n;0<=--r;)e.push(r);return e}),gt:ve(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=b.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[e]=de(e);for(e in{submit:!0,reset:!0})b.pseudos[e]=he(e);function me(){}function xe(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function be(s,e,t){var u=e.dir,l=e.next,c=l||u,f=t&&"parentNode"===c,p=r++;return e.first?function(e,t,n){while(e=e[u])if(1===e.nodeType||f)return s(e,t,n);return!1}:function(e,t,n){var r,i,o,a=[k,p];if(n){while(e=e[u])if((1===e.nodeType||f)&&s(e,t,n))return!0}else while(e=e[u])if(1===e.nodeType||f)if(i=(o=e[S]||(e[S]={}))[e.uniqueID]||(o[e.uniqueID]={}),l&&l===e.nodeName.toLowerCase())e=e[u]||e;else{if((r=i[c])&&r[0]===k&&r[1]===p)return a[2]=r[2];if((i[c]=a)[2]=s(e,t,n))return!0}return!1}}function we(i){return 1<i.length?function(e,t,n){var r=i.length;while(r--)if(!i[r](e,t,n))return!1;return!0}:i[0]}function Te(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function Ce(d,h,g,v,y,e){return v&&!v[S]&&(v=Ce(v)),y&&!y[S]&&(y=Ce(y,e)),le(function(e,t,n,r){var i,o,a,s=[],u=[],l=t.length,c=e||function(e,t,n){for(var r=0,i=t.length;r<i;r++)se(e,t[r],n);return n}(h||"*",n.nodeType?[n]:n,[]),f=!d||!e&&h?c:Te(c,s,d,n,r),p=g?y||(e?d:l||v)?[]:t:f;if(g&&g(f,p,n,r),v){i=Te(p,u),v(i,[],n,r),o=i.length;while(o--)(a=i[o])&&(p[u[o]]=!(f[u[o]]=a))}if(e){if(y||d){if(y){i=[],o=p.length;while(o--)(a=p[o])&&i.push(f[o]=a);y(null,p=[],i,r)}o=p.length;while(o--)(a=p[o])&&-1<(i=y?P(e,a):s[o])&&(e[i]=!(t[i]=a))}}else p=Te(p===t?p.splice(l,p.length):p),y?y(null,t,p,r):H.apply(t,p)})}function Ee(e){for(var i,t,n,r=e.length,o=b.relative[e[0].type],a=o||b.relative[" "],s=o?1:0,u=be(function(e){return e===i},a,!0),l=be(function(e){return-1<P(i,e)},a,!0),c=[function(e,t,n){var r=!o&&(n||t!==w)||((i=t).nodeType?u(e,t,n):l(e,t,n));return i=null,r}];s<r;s++)if(t=b.relative[e[s].type])c=[be(we(c),t)];else{if((t=b.filter[e[s].type].apply(null,e[s].matches))[S]){for(n=++s;n<r;n++)if(b.relative[e[n].type])break;return Ce(1<s&&we(c),1<s&&xe(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace($,"$1"),t,s<n&&Ee(e.slice(s,n)),n<r&&Ee(e=e.slice(n)),n<r&&xe(e))}c.push(t)}return we(c)}return me.prototype=b.filters=b.pseudos,b.setFilters=new me,h=se.tokenize=function(e,t){var n,r,i,o,a,s,u,l=x[e+" "];if(l)return t?0:l.slice(0);a=e,s=[],u=b.preFilter;while(a){for(o in n&&!(r=_.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=z.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace($," ")}),a=a.slice(n.length)),b.filter)!(r=G[o].exec(a))||u[o]&&!(r=u[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?se.error(e):x(e,s).slice(0)},f=se.compile=function(e,t){var n,v,y,m,x,r,i=[],o=[],a=A[e+" "];if(!a){t||(t=h(e)),n=t.length;while(n--)(a=Ee(t[n]))[S]?i.push(a):o.push(a);(a=A(e,(v=o,m=0<(y=i).length,x=0<v.length,r=function(e,t,n,r,i){var o,a,s,u=0,l="0",c=e&&[],f=[],p=w,d=e||x&&b.find.TAG("*",i),h=k+=null==p?1:Math.random()||.1,g=d.length;for(i&&(w=t==C||t||i);l!==g&&null!=(o=d[l]);l++){if(x&&o){a=0,t||o.ownerDocument==C||(T(o),n=!E);while(s=v[a++])if(s(o,t||C,n)){r.push(o);break}i&&(k=h)}m&&((o=!s&&o)&&u--,e&&c.push(o))}if(u+=l,m&&l!==u){a=0;while(s=y[a++])s(c,f,t,n);if(e){if(0<u)while(l--)c[l]||f[l]||(f[l]=q.call(r));f=Te(f)}H.apply(r,f),i&&!e&&0<f.length&&1<u+y.length&&se.uniqueSort(r)}return i&&(k=h,w=p),c},m?le(r):r))).selector=e}return a},g=se.select=function(e,t,n,r){var i,o,a,s,u,l="function"==typeof e&&e,c=!r&&h(e=l.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&E&&b.relative[o[1].type]){if(!(t=(b.find.ID(a.matches[0].replace(te,ne),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}i=G.needsContext.test(e)?0:o.length;while(i--){if(a=o[i],b.relative[s=a.type])break;if((u=b.find[s])&&(r=u(a.matches[0].replace(te,ne),ee.test(o[0].type)&&ye(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&xe(o)))return H.apply(n,r),n;break}}}return(l||f(e,c))(r,t,!E,n,!t||ee.test(e)&&ye(t.parentNode)||t),n},d.sortStable=S.split("").sort(j).join("")===S,d.detectDuplicates=!!l,T(),d.sortDetached=ce(function(e){return 1&e.compareDocumentPosition(C.createElement("fieldset"))}),ce(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||fe("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),d.attributes&&ce(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||fe("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ce(function(e){return null==e.getAttribute("disabled")})||fe(R,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),se}(C);S.find=d,S.expr=d.selectors,S.expr[":"]=S.expr.pseudos,S.uniqueSort=S.unique=d.uniqueSort,S.text=d.getText,S.isXMLDoc=d.isXML,S.contains=d.contains,S.escapeSelector=d.escape;var h=function(e,t,n){var r=[],i=void 0!==n;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(i&&S(e).is(n))break;r.push(e)}return r},T=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},k=S.expr.match.needsContext;function A(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var N=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,n,r){return m(n)?S.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?S.grep(e,function(e){return e===n!==r}):"string"!=typeof n?S.grep(e,function(e){return-1<i.call(n,e)!==r}):S.filter(n,e,r)}S.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?S.find.matchesSelector(r,e)?[r]:[]:S.find.matches(e,S.grep(t,function(e){return 1===e.nodeType}))},S.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(S(e).filter(function(){for(t=0;t<r;t++)if(S.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)S.find(e,i[t],n);return 1<r?S.uniqueSort(n):n},filter:function(e){return this.pushStack(j(this,e||[],!1))},not:function(e){return this.pushStack(j(this,e||[],!0))},is:function(e){return!!j(this,"string"==typeof e&&k.test(e)?S(e):e||[],!1).length}});var D,q=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(S.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||D,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:q.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof S?t[0]:t,S.merge(this,S.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),N.test(r[1])&&S.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=E.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(S):S.makeArray(e,this)}).prototype=S.fn,D=S(E);var L=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){while((e=e[t])&&1!==e.nodeType);return e}S.fn.extend({has:function(e){var t=S(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(S.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&S(e);if(!k.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&S.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?S.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?i.call(S(e),this[0]):i.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(S.uniqueSort(S.merge(this.get(),S(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),S.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return h(e,"parentNode")},parentsUntil:function(e,t,n){return h(e,"parentNode",n)},next:function(e){return O(e,"nextSibling")},prev:function(e){return O(e,"previousSibling")},nextAll:function(e){return h(e,"nextSibling")},prevAll:function(e){return h(e,"previousSibling")},nextUntil:function(e,t,n){return h(e,"nextSibling",n)},prevUntil:function(e,t,n){return h(e,"previousSibling",n)},siblings:function(e){return T((e.parentNode||{}).firstChild,e)},children:function(e){return T(e.firstChild)},contents:function(e){return null!=e.contentDocument&&r(e.contentDocument)?e.contentDocument:(A(e,"template")&&(e=e.content||e),S.merge([],e.childNodes))}},function(r,i){S.fn[r]=function(e,t){var n=S.map(this,i,e);return"Until"!==r.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=S.filter(t,n)),1<this.length&&(H[r]||S.uniqueSort(n),L.test(r)&&n.reverse()),this.pushStack(n)}});var P=/[^\x20\t\r\n\f]+/g;function R(e){return e}function M(e){throw e}function I(e,t,n,r){var i;try{e&&m(i=e.promise)?i.call(e).done(t).fail(n):e&&m(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}S.Callbacks=function(r){var e,n;r="string"==typeof r?(e=r,n={},S.each(e.match(P)||[],function(e,t){n[t]=!0}),n):S.extend({},r);var i,t,o,a,s=[],u=[],l=-1,c=function(){for(a=a||r.once,o=i=!0;u.length;l=-1){t=u.shift();while(++l<s.length)!1===s[l].apply(t[0],t[1])&&r.stopOnFalse&&(l=s.length,t=!1)}r.memory||(t=!1),i=!1,a&&(s=t?[]:"")},f={add:function(){return s&&(t&&!i&&(l=s.length-1,u.push(t)),function n(e){S.each(e,function(e,t){m(t)?r.unique&&f.has(t)||s.push(t):t&&t.length&&"string"!==w(t)&&n(t)})}(arguments),t&&!i&&c()),this},remove:function(){return S.each(arguments,function(e,t){var n;while(-1<(n=S.inArray(t,s,n)))s.splice(n,1),n<=l&&l--}),this},has:function(e){return e?-1<S.inArray(e,s):0<s.length},empty:function(){return s&&(s=[]),this},disable:function(){return a=u=[],s=t="",this},disabled:function(){return!s},lock:function(){return a=u=[],t||i||(s=t=""),this},locked:function(){return!!a},fireWith:function(e,t){return a||(t=[e,(t=t||[]).slice?t.slice():t],u.push(t),i||c()),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!o}};return f},S.extend({Deferred:function(e){var o=[["notify","progress",S.Callbacks("memory"),S.Callbacks("memory"),2],["resolve","done",S.Callbacks("once memory"),S.Callbacks("once memory"),0,"resolved"],["reject","fail",S.Callbacks("once memory"),S.Callbacks("once memory"),1,"rejected"]],i="pending",a={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},"catch":function(e){return a.then(null,e)},pipe:function(){var i=arguments;return S.Deferred(function(r){S.each(o,function(e,t){var n=m(i[t[4]])&&i[t[4]];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&m(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[t[0]+"With"](this,n?[e]:arguments)})}),i=null}).promise()},then:function(t,n,r){var u=0;function l(i,o,a,s){return function(){var n=this,r=arguments,e=function(){var e,t;if(!(i<u)){if((e=a.apply(n,r))===o.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,m(t)?s?t.call(e,l(u,o,R,s),l(u,o,M,s)):(u++,t.call(e,l(u,o,R,s),l(u,o,M,s),l(u,o,R,o.notifyWith))):(a!==R&&(n=void 0,r=[e]),(s||o.resolveWith)(n,r))}},t=s?e:function(){try{e()}catch(e){S.Deferred.exceptionHook&&S.Deferred.exceptionHook(e,t.stackTrace),u<=i+1&&(a!==M&&(n=void 0,r=[e]),o.rejectWith(n,r))}};i?t():(S.Deferred.getStackHook&&(t.stackTrace=S.Deferred.getStackHook()),C.setTimeout(t))}}return S.Deferred(function(e){o[0][3].add(l(0,e,m(r)?r:R,e.notifyWith)),o[1][3].add(l(0,e,m(t)?t:R)),o[2][3].add(l(0,e,m(n)?n:M))}).promise()},promise:function(e){return null!=e?S.extend(e,a):a}},s={};return S.each(o,function(e,t){var n=t[2],r=t[5];a[t[1]]=n.add,r&&n.add(function(){i=r},o[3-e][2].disable,o[3-e][3].disable,o[0][2].lock,o[0][3].lock),n.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?void 0:this,arguments),this},s[t[0]+"With"]=n.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){var n=arguments.length,t=n,r=Array(t),i=s.call(arguments),o=S.Deferred(),a=function(t){return function(e){r[t]=this,i[t]=1<arguments.length?s.call(arguments):e,--n||o.resolveWith(r,i)}};if(n<=1&&(I(e,o.done(a(t)).resolve,o.reject,!n),"pending"===o.state()||m(i[t]&&i[t].then)))return o.then();while(t--)I(i[t],a(t),o.reject);return o.promise()}});var W=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;S.Deferred.exceptionHook=function(e,t){C.console&&C.console.warn&&e&&W.test(e.name)&&C.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},S.readyException=function(e){C.setTimeout(function(){throw e})};var F=S.Deferred();function B(){E.removeEventListener("DOMContentLoaded",B),C.removeEventListener("load",B),S.ready()}S.fn.ready=function(e){return F.then(e)["catch"](function(e){S.readyException(e)}),this},S.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--S.readyWait:S.isReady)||(S.isReady=!0)!==e&&0<--S.readyWait||F.resolveWith(E,[S])}}),S.ready.then=F.then,"complete"===E.readyState||"loading"!==E.readyState&&!E.documentElement.doScroll?C.setTimeout(S.ready):(E.addEventListener("DOMContentLoaded",B),C.addEventListener("load",B));var $=function(e,t,n,r,i,o,a){var s=0,u=e.length,l=null==n;if("object"===w(n))for(s in i=!0,n)$(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,m(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(S(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):u?t(e[0],n):o},_=/^-ms-/,z=/-([a-z])/g;function U(e,t){return t.toUpperCase()}function X(e){return e.replace(_,"ms-").replace(z,U)}var V=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function G(){this.expando=S.expando+G.uid++}G.uid=1,G.prototype={cache:function(e){var t=e[this.expando];return t||(t={},V(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[X(t)]=n;else for(r in t)i[X(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][X(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(X):(t=X(t))in r?[t]:t.match(P)||[]).length;while(n--)delete r[t[n]]}(void 0===t||S.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!S.isEmptyObject(t)}};var Y=new G,Q=new G,J=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,K=/[A-Z]/g;function Z(e,t,n){var r,i;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(K,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===(i=n)||"false"!==i&&("null"===i?null:i===+i+""?+i:J.test(i)?JSON.parse(i):i)}catch(e){}Q.set(e,t,n)}else n=void 0;return n}S.extend({hasData:function(e){return Q.hasData(e)||Y.hasData(e)},data:function(e,t,n){return Q.access(e,t,n)},removeData:function(e,t){Q.remove(e,t)},_data:function(e,t,n){return Y.access(e,t,n)},_removeData:function(e,t){Y.remove(e,t)}}),S.fn.extend({data:function(n,e){var t,r,i,o=this[0],a=o&&o.attributes;if(void 0===n){if(this.length&&(i=Q.get(o),1===o.nodeType&&!Y.get(o,"hasDataAttrs"))){t=a.length;while(t--)a[t]&&0===(r=a[t].name).indexOf("data-")&&(r=X(r.slice(5)),Z(o,r,i[r]));Y.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof n?this.each(function(){Q.set(this,n)}):$(this,function(e){var t;if(o&&void 0===e)return void 0!==(t=Q.get(o,n))?t:void 0!==(t=Z(o,n))?t:void 0;this.each(function(){Q.set(this,n,e)})},null,e,1<arguments.length,null,!0)},removeData:function(e){return this.each(function(){Q.remove(this,e)})}}),S.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Y.get(e,t),n&&(!r||Array.isArray(n)?r=Y.access(e,t,S.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=S.queue(e,t),r=n.length,i=n.shift(),o=S._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){S.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Y.get(e,n)||Y.access(e,n,{empty:S.Callbacks("once memory").add(function(){Y.remove(e,[t+"queue",n])})})}}),S.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?S.queue(this[0],t):void 0===n?this:this.each(function(){var e=S.queue(this,t,n);S._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&S.dequeue(this,t)})},dequeue:function(e){return this.each(function(){S.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=S.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};"string"!=typeof e&&(t=e,e=void 0),e=e||"fx";while(a--)(n=Y.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var ee=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,te=new RegExp("^(?:([+-])=|)("+ee+")([a-z%]*)$","i"),ne=["Top","Right","Bottom","Left"],re=E.documentElement,ie=function(e){return S.contains(e.ownerDocument,e)},oe={composed:!0};re.getRootNode&&(ie=function(e){return S.contains(e.ownerDocument,e)||e.getRootNode(oe)===e.ownerDocument});var ae=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ie(e)&&"none"===S.css(e,"display")};function se(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return S.css(e,t,"")},u=s(),l=n&&n[3]||(S.cssNumber[t]?"":"px"),c=e.nodeType&&(S.cssNumber[t]||"px"!==l&&+u)&&te.exec(S.css(e,t));if(c&&c[3]!==l){u/=2,l=l||c[3],c=+u||1;while(a--)S.style(e,t,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;c*=2,S.style(e,t,c+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}var ue={};function le(e,t){for(var n,r,i,o,a,s,u,l=[],c=0,f=e.length;c<f;c++)(r=e[c]).style&&(n=r.style.display,t?("none"===n&&(l[c]=Y.get(r,"display")||null,l[c]||(r.style.display="")),""===r.style.display&&ae(r)&&(l[c]=(u=a=o=void 0,a=(i=r).ownerDocument,s=i.nodeName,(u=ue[s])||(o=a.body.appendChild(a.createElement(s)),u=S.css(o,"display"),o.parentNode.removeChild(o),"none"===u&&(u="block"),ue[s]=u)))):"none"!==n&&(l[c]="none",Y.set(r,"display",n)));for(c=0;c<f;c++)null!=l[c]&&(e[c].style.display=l[c]);return e}S.fn.extend({show:function(){return le(this,!0)},hide:function(){return le(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ae(this)?S(this).show():S(this).hide()})}});var ce,fe,pe=/^(?:checkbox|radio)$/i,de=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i;ce=E.createDocumentFragment().appendChild(E.createElement("div")),(fe=E.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),ce.appendChild(fe),y.checkClone=ce.cloneNode(!0).cloneNode(!0).lastChild.checked,ce.innerHTML="<textarea>x</textarea>",y.noCloneChecked=!!ce.cloneNode(!0).lastChild.defaultValue,ce.innerHTML="<option></option>",y.option=!!ce.lastChild;var ge={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ve(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?S.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;n<r;n++)Y.set(e[n],"globalEval",!t||Y.get(t[n],"globalEval"))}ge.tbody=ge.tfoot=ge.colgroup=ge.caption=ge.thead,ge.th=ge.td,y.option||(ge.optgroup=ge.option=[1,"<select multiple='multiple'>","</select>"]);var me=/<|&#?\w+;/;function xe(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d<h;d++)if((o=e[d])||0===o)if("object"===w(o))S.merge(p,o.nodeType?[o]:o);else if(me.test(o)){a=a||f.appendChild(t.createElement("div")),s=(de.exec(o)||["",""])[1].toLowerCase(),u=ge[s]||ge._default,a.innerHTML=u[1]+S.htmlPrefilter(o)+u[2],c=u[0];while(c--)a=a.lastChild;S.merge(p,a.childNodes),(a=f.firstChild).textContent=""}else p.push(t.createTextNode(o));f.textContent="",d=0;while(o=p[d++])if(r&&-1<S.inArray(o,r))i&&i.push(o);else if(l=ie(o),a=ve(f.appendChild(o),"script"),l&&ye(a),n){c=0;while(o=a[c++])he.test(o.type||"")&&n.push(o)}return f}var be=/^([^.]*)(?:\.(.+)|)/;function we(){return!0}function Te(){return!1}function Ce(e,t){return e===function(){try{return E.activeElement}catch(e){}}()==("focus"===t)}function Ee(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Ee(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Te;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return S().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=S.guid++)),e.each(function(){S.event.add(this,t,i,r,n)})}function Se(e,i,o){o?(Y.set(e,i,!1),S.event.add(e,i,{namespace:!1,handler:function(e){var t,n,r=Y.get(this,i);if(1&e.isTrigger&&this[i]){if(r.length)(S.event.special[i]||{}).delegateType&&e.stopPropagation();else if(r=s.call(arguments),Y.set(this,i,r),t=o(this,i),this[i](),r!==(n=Y.get(this,i))||t?Y.set(this,i,!1):n={},r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n&&n.value}else r.length&&(Y.set(this,i,{value:S.event.trigger(S.extend(r[0],S.Event.prototype),r.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Y.get(e,i)&&S.event.add(e,i,we)}S.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Y.get(t);if(V(t)){n.handler&&(n=(o=n).handler,i=o.selector),i&&S.find.matchesSelector(re,i),n.guid||(n.guid=S.guid++),(u=v.events)||(u=v.events=Object.create(null)),(a=v.handle)||(a=v.handle=function(e){return"undefined"!=typeof S&&S.event.triggered!==e.type?S.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(P)||[""]).length;while(l--)d=g=(s=be.exec(e[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=S.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=S.event.special[d]||{},c=S.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&S.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,h,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),S.event.global[d]=!0)}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Y.hasData(e)&&Y.get(e);if(v&&(u=v.events)){l=(t=(t||"").match(P)||[""]).length;while(l--)if(d=g=(s=be.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){f=S.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;while(o--)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||S.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)S.event.remove(e,d+t[l],n,r,!0);S.isEmptyObject(u)&&Y.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),u=S.event.fix(e),l=(Y.get(this,"events")||Object.create(null))[u.type]||[],c=S.event.special[u.type]||{};for(s[0]=u,t=1;t<arguments.length;t++)s[t]=arguments[t];if(u.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,u)){a=S.event.handlers.call(this,u,l),t=0;while((i=a[t++])&&!u.isPropagationStopped()){u.currentTarget=i.elem,n=0;while((o=i.handlers[n++])&&!u.isImmediatePropagationStopped())u.rnamespace&&!1!==o.namespace&&!u.rnamespace.test(o.namespace)||(u.handleObj=o,u.data=o.data,void 0!==(r=((S.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(u.result=r)&&(u.preventDefault(),u.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,u),u.result}},handlers:function(e,t){var n,r,i,o,a,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&1<=e.button))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],a={},n=0;n<u;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?-1<S(i,this).index(l):S.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(t,e){Object.defineProperty(S.Event.prototype,t,{enumerable:!0,configurable:!0,get:m(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[S.expando]?e:new S.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return pe.test(t.type)&&t.click&&A(t,"input")&&Se(t,"click",we),!1},trigger:function(e){var t=this||e;return pe.test(t.type)&&t.click&&A(t,"input")&&Se(t,"click"),!0},_default:function(e){var t=e.target;return pe.test(t.type)&&t.click&&A(t,"input")&&Y.get(t,"click")||A(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},S.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},S.Event=function(e,t){if(!(this instanceof S.Event))return new S.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?we:Te,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&S.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[S.expando]=!0},S.Event.prototype={constructor:S.Event,isDefaultPrevented:Te,isPropagationStopped:Te,isImmediatePropagationStopped:Te,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=we,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=we,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=we,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},S.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},S.event.addProp),S.each({focus:"focusin",blur:"focusout"},function(e,t){S.event.special[e]={setup:function(){return Se(this,e,Ce),!1},trigger:function(){return Se(this,e),!0},_default:function(){return!0},delegateType:t}}),S.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,i){S.event.special[e]={delegateType:i,bindType:i,handle:function(e){var t,n=e.relatedTarget,r=e.handleObj;return n&&(n===this||S.contains(this,n))||(e.type=r.origType,t=r.handler.apply(this,arguments),e.type=i),t}}}),S.fn.extend({on:function(e,t,n,r){return Ee(this,e,t,n,r)},one:function(e,t,n,r){return Ee(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,S(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Te),this.each(function(){S.event.remove(this,e,n,t)})}});var ke=/<script|<style|<link/i,Ae=/checked\s*(?:[^=]|=\s*.checked.)/i,Ne=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function je(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&S(e).children("tbody")[0]||e}function De(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function qe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Le(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(Y.hasData(e)&&(s=Y.get(e).events))for(i in Y.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)S.event.add(t,i,s[i][n]);Q.hasData(e)&&(o=Q.access(e),a=S.extend({},o),Q.set(t,a))}}function He(n,r,i,o){r=g(r);var e,t,a,s,u,l,c=0,f=n.length,p=f-1,d=r[0],h=m(d);if(h||1<f&&"string"==typeof d&&!y.checkClone&&Ae.test(d))return n.each(function(e){var t=n.eq(e);h&&(r[0]=d.call(this,e,t.html())),He(t,r,i,o)});if(f&&(t=(e=xe(r,n[0].ownerDocument,!1,n,o)).firstChild,1===e.childNodes.length&&(e=t),t||o)){for(s=(a=S.map(ve(e,"script"),De)).length;c<f;c++)u=e,c!==p&&(u=S.clone(u,!0,!0),s&&S.merge(a,ve(u,"script"))),i.call(n[c],u,c);if(s)for(l=a[a.length-1].ownerDocument,S.map(a,qe),c=0;c<s;c++)u=a[c],he.test(u.type||"")&&!Y.access(u,"globalEval")&&S.contains(l,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?S._evalUrl&&!u.noModule&&S._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},l):b(u.textContent.replace(Ne,""),u,l))}return n}function Oe(e,t,n){for(var r,i=t?S.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||S.cleanData(ve(r)),r.parentNode&&(n&&ie(r)&&ye(ve(r,"script")),r.parentNode.removeChild(r));return e}S.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s,u,l,c=e.cloneNode(!0),f=ie(e);if(!(y.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||S.isXMLDoc(e)))for(a=ve(c),r=0,i=(o=ve(e)).length;r<i;r++)s=o[r],u=a[r],void 0,"input"===(l=u.nodeName.toLowerCase())&&pe.test(s.type)?u.checked=s.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=s.defaultValue);if(t)if(n)for(o=o||ve(e),a=a||ve(c),r=0,i=o.length;r<i;r++)Le(o[r],a[r]);else Le(e,c);return 0<(a=ve(c,"script")).length&&ye(a,!f&&ve(e,"script")),c},cleanData:function(e){for(var t,n,r,i=S.event.special,o=0;void 0!==(n=e[o]);o++)if(V(n)){if(t=n[Y.expando]){if(t.events)for(r in t.events)i[r]?S.event.remove(n,r):S.removeEvent(n,r,t.handle);n[Y.expando]=void 0}n[Q.expando]&&(n[Q.expando]=void 0)}}}),S.fn.extend({detach:function(e){return Oe(this,e,!0)},remove:function(e){return Oe(this,e)},text:function(e){return $(this,function(e){return void 0===e?S.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return He(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||je(this,e).appendChild(e)})},prepend:function(){return He(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=je(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return He(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return He(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(S.cleanData(ve(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return S.clone(this,e,t)})},html:function(e){return $(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!ke.test(e)&&!ge[(de.exec(e)||["",""])[1].toLowerCase()]){e=S.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(S.cleanData(ve(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return He(this,arguments,function(e){var t=this.parentNode;S.inArray(this,n)<0&&(S.cleanData(ve(this)),t&&t.replaceChild(e,this))},n)}}),S.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){S.fn[e]=function(e){for(var t,n=[],r=S(e),i=r.length-1,o=0;o<=i;o++)t=o===i?this:this.clone(!0),S(r[o])[a](t),u.apply(n,t.get());return this.pushStack(n)}});var Pe=new RegExp("^("+ee+")(?!px)[a-z%]+$","i"),Re=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=C),t.getComputedStyle(e)},Me=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},Ie=new RegExp(ne.join("|"),"i");function We(e,t,n){var r,i,o,a,s=e.style;return(n=n||Re(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||ie(e)||(a=S.style(e,t)),!y.pixelBoxStyles()&&Pe.test(a)&&Ie.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function Fe(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(l){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",re.appendChild(u).appendChild(l);var e=C.getComputedStyle(l);n="1%"!==e.top,s=12===t(e.marginLeft),l.style.right="60%",o=36===t(e.right),r=36===t(e.width),l.style.position="absolute",i=12===t(l.offsetWidth/3),re.removeChild(u),l=null}}function t(e){return Math.round(parseFloat(e))}var n,r,i,o,a,s,u=E.createElement("div"),l=E.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",y.clearCloneStyle="content-box"===l.style.backgroundClip,S.extend(y,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),s},scrollboxSize:function(){return e(),i},reliableTrDimensions:function(){var e,t,n,r;return null==a&&(e=E.createElement("table"),t=E.createElement("tr"),n=E.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",re.appendChild(e).appendChild(t).appendChild(n),r=C.getComputedStyle(t),a=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===t.offsetHeight,re.removeChild(e)),a}}))}();var Be=["Webkit","Moz","ms"],$e=E.createElement("div").style,_e={};function ze(e){var t=S.cssProps[e]||_e[e];return t||(e in $e?e:_e[e]=function(e){var t=e[0].toUpperCase()+e.slice(1),n=Be.length;while(n--)if((e=Be[n]+t)in $e)return e}(e)||e)}var Ue=/^(none|table(?!-c[ea]).+)/,Xe=/^--/,Ve={position:"absolute",visibility:"hidden",display:"block"},Ge={letterSpacing:"0",fontWeight:"400"};function Ye(e,t,n){var r=te.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function Qe(e,t,n,r,i,o){var a="width"===t?1:0,s=0,u=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(u+=S.css(e,n+ne[a],!0,i)),r?("content"===n&&(u-=S.css(e,"padding"+ne[a],!0,i)),"margin"!==n&&(u-=S.css(e,"border"+ne[a]+"Width",!0,i))):(u+=S.css(e,"padding"+ne[a],!0,i),"padding"!==n?u+=S.css(e,"border"+ne[a]+"Width",!0,i):s+=S.css(e,"border"+ne[a]+"Width",!0,i));return!r&&0<=o&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))||0),u}function Je(e,t,n){var r=Re(e),i=(!y.boxSizingReliable()||n)&&"border-box"===S.css(e,"boxSizing",!1,r),o=i,a=We(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(Pe.test(a)){if(!n)return a;a="auto"}return(!y.boxSizingReliable()&&i||!y.reliableTrDimensions()&&A(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===S.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===S.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+Qe(e,t,n||(i?"border":"content"),o,r,a)+"px"}function Ke(e,t,n,r,i){return new Ke.prototype.init(e,t,n,r,i)}S.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=We(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=X(t),u=Xe.test(t),l=e.style;if(u||(t=ze(s)),a=S.cssHooks[t]||S.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];"string"===(o=typeof n)&&(i=te.exec(n))&&i[1]&&(n=se(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=i&&i[3]||(S.cssNumber[s]?"":"px")),y.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=X(t);return Xe.test(t)||(t=ze(s)),(a=S.cssHooks[t]||S.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=We(e,t,r)),"normal"===i&&t in Ge&&(i=Ge[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),S.each(["height","width"],function(e,u){S.cssHooks[u]={get:function(e,t,n){if(t)return!Ue.test(S.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Je(e,u,n):Me(e,Ve,function(){return Je(e,u,n)})},set:function(e,t,n){var r,i=Re(e),o=!y.scrollboxSize()&&"absolute"===i.position,a=(o||n)&&"border-box"===S.css(e,"boxSizing",!1,i),s=n?Qe(e,u,n,a,i):0;return a&&o&&(s-=Math.ceil(e["offset"+u[0].toUpperCase()+u.slice(1)]-parseFloat(i[u])-Qe(e,u,"border",!1,i)-.5)),s&&(r=te.exec(t))&&"px"!==(r[3]||"px")&&(e.style[u]=t,t=S.css(e,u)),Ye(0,t,s)}}}),S.cssHooks.marginLeft=Fe(y.reliableMarginLeft,function(e,t){if(t)return(parseFloat(We(e,"marginLeft"))||e.getBoundingClientRect().left-Me(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),S.each({margin:"",padding:"",border:"Width"},function(i,o){S.cssHooks[i+o]={expand:function(e){for(var t=0,n={},r="string"==typeof e?e.split(" "):[e];t<4;t++)n[i+ne[t]+o]=r[t]||r[t-2]||r[0];return n}},"margin"!==i&&(S.cssHooks[i+o].set=Ye)}),S.fn.extend({css:function(e,t){return $(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Re(e),i=t.length;a<i;a++)o[t[a]]=S.css(e,t[a],!1,r);return o}return void 0!==n?S.style(e,t,n):S.css(e,t)},e,t,1<arguments.length)}}),((S.Tween=Ke).prototype={constructor:Ke,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||S.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(S.cssNumber[n]?"":"px")},cur:function(){var e=Ke.propHooks[this.prop];return e&&e.get?e.get(this):Ke.propHooks._default.get(this)},run:function(e){var t,n=Ke.propHooks[this.prop];return this.options.duration?this.pos=t=S.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Ke.propHooks._default.set(this),this}}).init.prototype=Ke.prototype,(Ke.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=S.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){S.fx.step[e.prop]?S.fx.step[e.prop](e):1!==e.elem.nodeType||!S.cssHooks[e.prop]&&null==e.elem.style[ze(e.prop)]?e.elem[e.prop]=e.now:S.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=Ke.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},S.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},S.fx=Ke.prototype.init,S.fx.step={};var Ze,et,tt,nt,rt=/^(?:toggle|show|hide)$/,it=/queueHooks$/;function ot(){et&&(!1===E.hidden&&C.requestAnimationFrame?C.requestAnimationFrame(ot):C.setTimeout(ot,S.fx.interval),S.fx.tick())}function at(){return C.setTimeout(function(){Ze=void 0}),Ze=Date.now()}function st(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=ne[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function ut(e,t,n){for(var r,i=(lt.tweeners[t]||[]).concat(lt.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function lt(o,e,t){var n,a,r=0,i=lt.prefilters.length,s=S.Deferred().always(function(){delete u.elem}),u=function(){if(a)return!1;for(var e=Ze||at(),t=Math.max(0,l.startTime+l.duration-e),n=1-(t/l.duration||0),r=0,i=l.tweens.length;r<i;r++)l.tweens[r].run(n);return s.notifyWith(o,[l,n,t]),n<1&&i?t:(i||s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l]),!1)},l=s.promise({elem:o,props:S.extend({},e),opts:S.extend(!0,{specialEasing:{},easing:S.easing._default},t),originalProperties:e,originalOptions:t,startTime:Ze||at(),duration:t.duration,tweens:[],createTween:function(e,t){var n=S.Tween(o,l.opts,e,t,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(n),n},stop:function(e){var t=0,n=e?l.tweens.length:0;if(a)return this;for(a=!0;t<n;t++)l.tweens[t].run(1);return e?(s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l,e])):s.rejectWith(o,[l,e]),this}}),c=l.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=X(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=S.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,l.opts.specialEasing);r<i;r++)if(n=lt.prefilters[r].call(l,o,c,l.opts))return m(n.stop)&&(S._queueHooks(l.elem,l.opts.queue).stop=n.stop.bind(n)),n;return S.map(c,ut,l),m(l.opts.start)&&l.opts.start.call(o,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),S.fx.timer(S.extend(u,{elem:o,anim:l,queue:l.opts.queue})),l}S.Animation=S.extend(lt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return se(n.elem,e,te.exec(t),n),n}]},tweener:function(e,t){m(e)?(t=e,e=["*"]):e=e.match(P);for(var n,r=0,i=e.length;r<i;r++)n=e[r],lt.tweeners[n]=lt.tweeners[n]||[],lt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,u,l,c,f="width"in t||"height"in t,p=this,d={},h=e.style,g=e.nodeType&&ae(e),v=Y.get(e,"fxshow");for(r in n.queue||(null==(a=S._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always(function(){p.always(function(){a.unqueued--,S.queue(e,"fx").length||a.empty.fire()})})),t)if(i=t[r],rt.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;g=!0}d[r]=v&&v[r]||S.style(e,r)}if((u=!S.isEmptyObject(t))||!S.isEmptyObject(d))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=v&&v.display)&&(l=Y.get(e,"display")),"none"===(c=S.css(e,"display"))&&(l?c=l:(le([e],!0),l=e.style.display||l,c=S.css(e,"display"),le([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===S.css(e,"float")&&(u||(p.done(function(){h.display=l}),null==l&&(c=h.display,l="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1,d)u||(v?"hidden"in v&&(g=v.hidden):v=Y.access(e,"fxshow",{display:l}),o&&(v.hidden=!g),g&&le([e],!0),p.done(function(){for(r in g||le([e]),Y.remove(e,"fxshow"),d)S.style(e,r,d[r])})),u=ut(g?v[r]:0,r,p),r in v||(v[r]=u.start,g&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?lt.prefilters.unshift(e):lt.prefilters.push(e)}}),S.speed=function(e,t,n){var r=e&&"object"==typeof e?S.extend({},e):{complete:n||!n&&t||m(e)&&e,duration:e,easing:n&&t||t&&!m(t)&&t};return S.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in S.fx.speeds?r.duration=S.fx.speeds[r.duration]:r.duration=S.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){m(r.old)&&r.old.call(this),r.queue&&S.dequeue(this,r.queue)},r},S.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ae).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(t,e,n,r){var i=S.isEmptyObject(t),o=S.speed(e,n,r),a=function(){var e=lt(this,S.extend({},t),o);(i||Y.get(this,"finish"))&&e.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(i,e,o){var a=function(e){var t=e.stop;delete e.stop,t(o)};return"string"!=typeof i&&(o=e,e=i,i=void 0),e&&this.queue(i||"fx",[]),this.each(function(){var e=!0,t=null!=i&&i+"queueHooks",n=S.timers,r=Y.get(this);if(t)r[t]&&r[t].stop&&a(r[t]);else for(t in r)r[t]&&r[t].stop&&it.test(t)&&a(r[t]);for(t=n.length;t--;)n[t].elem!==this||null!=i&&n[t].queue!==i||(n[t].anim.stop(o),e=!1,n.splice(t,1));!e&&o||S.dequeue(this,i)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=Y.get(this),n=t[a+"queue"],r=t[a+"queueHooks"],i=S.timers,o=n?n.length:0;for(t.finish=!0,S.queue(this,a,[]),r&&r.stop&&r.stop.call(this,!0),e=i.length;e--;)i[e].elem===this&&i[e].queue===a&&(i[e].anim.stop(!0),i.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),S.each(["toggle","show","hide"],function(e,r){var i=S.fn[r];S.fn[r]=function(e,t,n){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(st(r,!0),e,t,n)}}),S.each({slideDown:st("show"),slideUp:st("hide"),slideToggle:st("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,r){S.fn[e]=function(e,t,n){return this.animate(r,e,t,n)}}),S.timers=[],S.fx.tick=function(){var e,t=0,n=S.timers;for(Ze=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||S.fx.stop(),Ze=void 0},S.fx.timer=function(e){S.timers.push(e),S.fx.start()},S.fx.interval=13,S.fx.start=function(){et||(et=!0,ot())},S.fx.stop=function(){et=null},S.fx.speeds={slow:600,fast:200,_default:400},S.fn.delay=function(r,e){return r=S.fx&&S.fx.speeds[r]||r,e=e||"fx",this.queue(e,function(e,t){var n=C.setTimeout(e,r);t.stop=function(){C.clearTimeout(n)}})},tt=E.createElement("input"),nt=E.createElement("select").appendChild(E.createElement("option")),tt.type="checkbox",y.checkOn=""!==tt.value,y.optSelected=nt.selected,(tt=E.createElement("input")).value="t",tt.type="radio",y.radioValue="t"===tt.value;var ct,ft=S.expr.attrHandle;S.fn.extend({attr:function(e,t){return $(this,S.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){S.removeAttr(this,e)})}}),S.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?S.prop(e,t,n):(1===o&&S.isXMLDoc(e)||(i=S.attrHooks[t.toLowerCase()]||(S.expr.match.bool.test(t)?ct:void 0)),void 0!==n?null===n?void S.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=S.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!y.radioValue&&"radio"===t&&A(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(P);if(i&&1===e.nodeType)while(n=i[r++])e.removeAttribute(n)}}),ct={set:function(e,t,n){return!1===t?S.removeAttr(e,n):e.setAttribute(n,n),n}},S.each(S.expr.match.bool.source.match(/\w+/g),function(e,t){var a=ft[t]||S.find.attr;ft[t]=function(e,t,n){var r,i,o=t.toLowerCase();return n||(i=ft[o],ft[o]=r,r=null!=a(e,t,n)?o:null,ft[o]=i),r}});var pt=/^(?:input|select|textarea|button)$/i,dt=/^(?:a|area)$/i;function ht(e){return(e.match(P)||[]).join(" ")}function gt(e){return e.getAttribute&&e.getAttribute("class")||""}function vt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(P)||[]}S.fn.extend({prop:function(e,t){return $(this,S.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[S.propFix[e]||e]})}}),S.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&S.isXMLDoc(e)||(t=S.propFix[t]||t,i=S.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=S.find.attr(e,"tabindex");return t?parseInt(t,10):pt.test(e.nodeName)||dt.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),y.optSelected||(S.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),S.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){S.propFix[this.toLowerCase()]=this}),S.fn.extend({addClass:function(t){var e,n,r,i,o,a,s,u=0;if(m(t))return this.each(function(e){S(this).addClass(t.call(this,e,gt(this)))});if((e=vt(t)).length)while(n=this[u++])if(i=gt(n),r=1===n.nodeType&&" "+ht(i)+" "){a=0;while(o=e[a++])r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=ht(r))&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,r,i,o,a,s,u=0;if(m(t))return this.each(function(e){S(this).removeClass(t.call(this,e,gt(this)))});if(!arguments.length)return this.attr("class","");if((e=vt(t)).length)while(n=this[u++])if(i=gt(n),r=1===n.nodeType&&" "+ht(i)+" "){a=0;while(o=e[a++])while(-1<r.indexOf(" "+o+" "))r=r.replace(" "+o+" "," ");i!==(s=ht(r))&&n.setAttribute("class",s)}return this},toggleClass:function(i,t){var o=typeof i,a="string"===o||Array.isArray(i);return"boolean"==typeof t&&a?t?this.addClass(i):this.removeClass(i):m(i)?this.each(function(e){S(this).toggleClass(i.call(this,e,gt(this),t),t)}):this.each(function(){var e,t,n,r;if(a){t=0,n=S(this),r=vt(i);while(e=r[t++])n.hasClass(e)?n.removeClass(e):n.addClass(e)}else void 0!==i&&"boolean"!==o||((e=gt(this))&&Y.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===i?"":Y.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;t=" "+e+" ";while(n=this[r++])if(1===n.nodeType&&-1<(" "+ht(gt(n))+" ").indexOf(t))return!0;return!1}});var yt=/\r/g;S.fn.extend({val:function(n){var r,e,i,t=this[0];return arguments.length?(i=m(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=i?n.call(this,e,S(this).val()):n)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=S.map(t,function(e){return null==e?"":e+""})),(r=S.valHooks[this.type]||S.valHooks[this.nodeName.toLowerCase()])&&"set"in r&&void 0!==r.set(this,t,"value")||(this.value=t))})):t?(r=S.valHooks[t.type]||S.valHooks[t.nodeName.toLowerCase()])&&"get"in r&&void 0!==(e=r.get(t,"value"))?e:"string"==typeof(e=t.value)?e.replace(yt,""):null==e?"":e:void 0}}),S.extend({valHooks:{option:{get:function(e){var t=S.find.attr(e,"value");return null!=t?t:ht(S.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r<u;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!A(n.parentNode,"optgroup"))){if(t=S(n).val(),a)return t;s.push(t)}return s},set:function(e,t){var n,r,i=e.options,o=S.makeArray(t),a=i.length;while(a--)((r=i[a]).selected=-1<S.inArray(S.valHooks.option.get(r),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),S.each(["radio","checkbox"],function(){S.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<S.inArray(S(e).val(),t)}},y.checkOn||(S.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),y.focusin="onfocusin"in C;var mt=/^(?:focusinfocus|focusoutblur)$/,xt=function(e){e.stopPropagation()};S.extend(S.event,{trigger:function(e,t,n,r){var i,o,a,s,u,l,c,f,p=[n||E],d=v.call(e,"type")?e.type:e,h=v.call(e,"namespace")?e.namespace.split("."):[];if(o=f=a=n=n||E,3!==n.nodeType&&8!==n.nodeType&&!mt.test(d+S.event.triggered)&&(-1<d.indexOf(".")&&(d=(h=d.split(".")).shift(),h.sort()),u=d.indexOf(":")<0&&"on"+d,(e=e[S.expando]?e:new S.Event(d,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=h.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:S.makeArray(t,[e]),c=S.event.special[d]||{},r||!c.trigger||!1!==c.trigger.apply(n,t))){if(!r&&!c.noBubble&&!x(n)){for(s=c.delegateType||d,mt.test(s+d)||(o=o.parentNode);o;o=o.parentNode)p.push(o),a=o;a===(n.ownerDocument||E)&&p.push(a.defaultView||a.parentWindow||C)}i=0;while((o=p[i++])&&!e.isPropagationStopped())f=o,e.type=1<i?s:c.bindType||d,(l=(Y.get(o,"events")||Object.create(null))[e.type]&&Y.get(o,"handle"))&&l.apply(o,t),(l=u&&o[u])&&l.apply&&V(o)&&(e.result=l.apply(o,t),!1===e.result&&e.preventDefault());return e.type=d,r||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(p.pop(),t)||!V(n)||u&&m(n[d])&&!x(n)&&((a=n[u])&&(n[u]=null),S.event.triggered=d,e.isPropagationStopped()&&f.addEventListener(d,xt),n[d](),e.isPropagationStopped()&&f.removeEventListener(d,xt),S.event.triggered=void 0,a&&(n[u]=a)),e.result}},simulate:function(e,t,n){var r=S.extend(new S.Event,n,{type:e,isSimulated:!0});S.event.trigger(r,null,t)}}),S.fn.extend({trigger:function(e,t){return this.each(function(){S.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return S.event.trigger(e,t,n,!0)}}),y.focusin||S.each({focus:"focusin",blur:"focusout"},function(n,r){var i=function(e){S.event.simulate(r,e.target,S.event.fix(e))};S.event.special[r]={setup:function(){var e=this.ownerDocument||this.document||this,t=Y.access(e,r);t||e.addEventListener(n,i,!0),Y.access(e,r,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this.document||this,t=Y.access(e,r)-1;t?Y.access(e,r,t):(e.removeEventListener(n,i,!0),Y.remove(e,r))}}});var bt=C.location,wt={guid:Date.now()},Tt=/\?/;S.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new C.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||S.error("Invalid XML: "+(n?S.map(n.childNodes,function(e){return e.textContent}).join("\n"):e)),t};var Ct=/\[\]$/,Et=/\r?\n/g,St=/^(?:submit|button|image|reset|file)$/i,kt=/^(?:input|select|textarea|keygen)/i;function At(n,e,r,i){var t;if(Array.isArray(e))S.each(e,function(e,t){r||Ct.test(n)?i(n,t):At(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,r,i)});else if(r||"object"!==w(e))i(n,e);else for(t in e)At(n+"["+t+"]",e[t],r,i)}S.param=function(e,t){var n,r=[],i=function(e,t){var n=m(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!S.isPlainObject(e))S.each(e,function(){i(this.name,this.value)});else for(n in e)At(n,e[n],t,i);return r.join("&")},S.fn.extend({serialize:function(){return S.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=S.prop(this,"elements");return e?S.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!S(this).is(":disabled")&&kt.test(this.nodeName)&&!St.test(e)&&(this.checked||!pe.test(e))}).map(function(e,t){var n=S(this).val();return null==n?null:Array.isArray(n)?S.map(n,function(e){return{name:t.name,value:e.replace(Et,"\r\n")}}):{name:t.name,value:n.replace(Et,"\r\n")}}).get()}});var Nt=/%20/g,jt=/#.*$/,Dt=/([?&])_=[^&]*/,qt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Lt=/^(?:GET|HEAD)$/,Ht=/^\/\//,Ot={},Pt={},Rt="*/".concat("*"),Mt=E.createElement("a");function It(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,r=0,i=e.toLowerCase().match(P)||[];if(m(t))while(n=i[r++])"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function Wt(t,i,o,a){var s={},u=t===Pt;function l(e){var r;return s[e]=!0,S.each(t[e]||[],function(e,t){var n=t(i,o,a);return"string"!=typeof n||u||s[n]?u?!(r=n):void 0:(i.dataTypes.unshift(n),l(n),!1)}),r}return l(i.dataTypes[0])||!s["*"]&&l("*")}function Ft(e,t){var n,r,i=S.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&S.extend(!0,e,r),e}Mt.href=bt.href,S.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:bt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(bt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Rt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":S.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Ft(Ft(e,S.ajaxSettings),t):Ft(S.ajaxSettings,e)},ajaxPrefilter:It(Ot),ajaxTransport:It(Pt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var c,f,p,n,d,r,h,g,i,o,v=S.ajaxSetup({},t),y=v.context||v,m=v.context&&(y.nodeType||y.jquery)?S(y):S.event,x=S.Deferred(),b=S.Callbacks("once memory"),w=v.statusCode||{},a={},s={},u="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(h){if(!n){n={};while(t=qt.exec(p))n[t[1].toLowerCase()+" "]=(n[t[1].toLowerCase()+" "]||[]).concat(t[2])}t=n[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return h?p:null},setRequestHeader:function(e,t){return null==h&&(e=s[e.toLowerCase()]=s[e.toLowerCase()]||e,a[e]=t),this},overrideMimeType:function(e){return null==h&&(v.mimeType=e),this},statusCode:function(e){var t;if(e)if(h)T.always(e[T.status]);else for(t in e)w[t]=[w[t],e[t]];return this},abort:function(e){var t=e||u;return c&&c.abort(t),l(0,t),this}};if(x.promise(T),v.url=((e||v.url||bt.href)+"").replace(Ht,bt.protocol+"//"),v.type=t.method||t.type||v.method||v.type,v.dataTypes=(v.dataType||"*").toLowerCase().match(P)||[""],null==v.crossDomain){r=E.createElement("a");try{r.href=v.url,r.href=r.href,v.crossDomain=Mt.protocol+"//"+Mt.host!=r.protocol+"//"+r.host}catch(e){v.crossDomain=!0}}if(v.data&&v.processData&&"string"!=typeof v.data&&(v.data=S.param(v.data,v.traditional)),Wt(Ot,v,t,T),h)return T;for(i in(g=S.event&&v.global)&&0==S.active++&&S.event.trigger("ajaxStart"),v.type=v.type.toUpperCase(),v.hasContent=!Lt.test(v.type),f=v.url.replace(jt,""),v.hasContent?v.data&&v.processData&&0===(v.contentType||"").indexOf("application/x-www-form-urlencoded")&&(v.data=v.data.replace(Nt,"+")):(o=v.url.slice(f.length),v.data&&(v.processData||"string"==typeof v.data)&&(f+=(Tt.test(f)?"&":"?")+v.data,delete v.data),!1===v.cache&&(f=f.replace(Dt,"$1"),o=(Tt.test(f)?"&":"?")+"_="+wt.guid+++o),v.url=f+o),v.ifModified&&(S.lastModified[f]&&T.setRequestHeader("If-Modified-Since",S.lastModified[f]),S.etag[f]&&T.setRequestHeader("If-None-Match",S.etag[f])),(v.data&&v.hasContent&&!1!==v.contentType||t.contentType)&&T.setRequestHeader("Content-Type",v.contentType),T.setRequestHeader("Accept",v.dataTypes[0]&&v.accepts[v.dataTypes[0]]?v.accepts[v.dataTypes[0]]+("*"!==v.dataTypes[0]?", "+Rt+"; q=0.01":""):v.accepts["*"]),v.headers)T.setRequestHeader(i,v.headers[i]);if(v.beforeSend&&(!1===v.beforeSend.call(y,T,v)||h))return T.abort();if(u="abort",b.add(v.complete),T.done(v.success),T.fail(v.error),c=Wt(Pt,v,t,T)){if(T.readyState=1,g&&m.trigger("ajaxSend",[T,v]),h)return T;v.async&&0<v.timeout&&(d=C.setTimeout(function(){T.abort("timeout")},v.timeout));try{h=!1,c.send(a,l)}catch(e){if(h)throw e;l(-1,e)}}else l(-1,"No Transport");function l(e,t,n,r){var i,o,a,s,u,l=t;h||(h=!0,d&&C.clearTimeout(d),c=void 0,p=r||"",T.readyState=0<e?4:0,i=200<=e&&e<300||304===e,n&&(s=function(e,t,n){var r,i,o,a,s=e.contents,u=e.dataTypes;while("*"===u[0])u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(v,T,n)),!i&&-1<S.inArray("script",v.dataTypes)&&S.inArray("json",v.dataTypes)<0&&(v.converters["text script"]=function(){}),s=function(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];o=c.shift();while(o)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(v,s,T,i),i?(v.ifModified&&((u=T.getResponseHeader("Last-Modified"))&&(S.lastModified[f]=u),(u=T.getResponseHeader("etag"))&&(S.etag[f]=u)),204===e||"HEAD"===v.type?l="nocontent":304===e?l="notmodified":(l=s.state,o=s.data,i=!(a=s.error))):(a=l,!e&&l||(l="error",e<0&&(e=0))),T.status=e,T.statusText=(t||l)+"",i?x.resolveWith(y,[o,l,T]):x.rejectWith(y,[T,l,a]),T.statusCode(w),w=void 0,g&&m.trigger(i?"ajaxSuccess":"ajaxError",[T,v,i?o:a]),b.fireWith(y,[T,l]),g&&(m.trigger("ajaxComplete",[T,v]),--S.active||S.event.trigger("ajaxStop")))}return T},getJSON:function(e,t,n){return S.get(e,t,n,"json")},getScript:function(e,t){return S.get(e,void 0,t,"script")}}),S.each(["get","post"],function(e,i){S[i]=function(e,t,n,r){return m(t)&&(r=r||n,n=t,t=void 0),S.ajax(S.extend({url:e,type:i,dataType:r,data:t,success:n},S.isPlainObject(e)&&e))}}),S.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),S._evalUrl=function(e,t,n){return S.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){S.globalEval(e,t,n)}})},S.fn.extend({wrapAll:function(e){var t;return this[0]&&(m(e)&&(e=e.call(this[0])),t=S(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(n){return m(n)?this.each(function(e){S(this).wrapInner(n.call(this,e))}):this.each(function(){var e=S(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=m(t);return this.each(function(e){S(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){S(this).replaceWith(this.childNodes)}),this}}),S.expr.pseudos.hidden=function(e){return!S.expr.pseudos.visible(e)},S.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},S.ajaxSettings.xhr=function(){try{return new C.XMLHttpRequest}catch(e){}};var Bt={0:200,1223:204},$t=S.ajaxSettings.xhr();y.cors=!!$t&&"withCredentials"in $t,y.ajax=$t=!!$t,S.ajaxTransport(function(i){var o,a;if(y.cors||$t&&!i.crossDomain)return{send:function(e,t){var n,r=i.xhr();if(r.open(i.type,i.url,i.async,i.username,i.password),i.xhrFields)for(n in i.xhrFields)r[n]=i.xhrFields[n];for(n in i.mimeType&&r.overrideMimeType&&r.overrideMimeType(i.mimeType),i.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)r.setRequestHeader(n,e[n]);o=function(e){return function(){o&&(o=a=r.onload=r.onerror=r.onabort=r.ontimeout=r.onreadystatechange=null,"abort"===e?r.abort():"error"===e?"number"!=typeof r.status?t(0,"error"):t(r.status,r.statusText):t(Bt[r.status]||r.status,r.statusText,"text"!==(r.responseType||"text")||"string"!=typeof r.responseText?{binary:r.response}:{text:r.responseText},r.getAllResponseHeaders()))}},r.onload=o(),a=r.onerror=r.ontimeout=o("error"),void 0!==r.onabort?r.onabort=a:r.onreadystatechange=function(){4===r.readyState&&C.setTimeout(function(){o&&a()})},o=o("abort");try{r.send(i.hasContent&&i.data||null)}catch(e){if(o)throw e}},abort:function(){o&&o()}}}),S.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),S.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return S.globalEval(e),e}}}),S.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),S.ajaxTransport("script",function(n){var r,i;if(n.crossDomain||n.scriptAttrs)return{send:function(e,t){r=S("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),E.head.appendChild(r[0])},abort:function(){i&&i()}}});var _t,zt=[],Ut=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=zt.pop()||S.expando+"_"+wt.guid++;return this[e]=!0,e}}),S.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Ut.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ut.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Ut,"$1"+r):!1!==e.jsonp&&(e.url+=(Tt.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||S.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=C[r],C[r]=function(){o=arguments},n.always(function(){void 0===i?S(C).removeProp(r):C[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,zt.push(r)),o&&m(i)&&i(o[0]),o=i=void 0}),"script"}),y.createHTMLDocument=((_t=E.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===_t.childNodes.length),S.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((r=(t=E.implementation.createHTMLDocument("")).createElement("base")).href=E.location.href,t.head.appendChild(r)):t=E),o=!n&&[],(i=N.exec(e))?[t.createElement(i[1])]:(i=xe([e],t,o),o&&o.length&&S(o).remove(),S.merge([],i.childNodes)));var r,i,o},S.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1<s&&(r=ht(e.slice(s)),e=e.slice(0,s)),m(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),0<a.length&&S.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?S("<div>").append(S.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},S.expr.pseudos.animated=function(t){return S.grep(S.timers,function(e){return t===e.elem}).length},S.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=S.css(e,"position"),c=S(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=S.css(e,"top"),u=S.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m(t)&&(t=t.call(e,n,S.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},S.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){S.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===S.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===S.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=S(e).offset()).top+=S.css(e,"borderTopWidth",!0),i.left+=S.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-S.css(r,"marginTop",!0),left:t.left-i.left-S.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===S.css(e,"position"))e=e.offsetParent;return e||re})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;S.fn[t]=function(e){return $(this,function(e,t,n){var r;if(x(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),S.each(["top","left"],function(e,n){S.cssHooks[n]=Fe(y.pixelPosition,function(e,t){if(t)return t=We(e,n),Pe.test(t)?S(e).position()[n]+"px":t})}),S.each({Height:"height",Width:"width"},function(a,s){S.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){S.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return $(this,function(e,t,n){var r;return x(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?S.css(e,t,i):S.style(e,t,n,i)},s,n?e:void 0,n)}})}),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){S.fn[t]=function(e){return this.on(t,e)}}),S.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),S.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){S.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}});var Xt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;S.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),m(e))return r=s.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(s.call(arguments)))}).guid=e.guid=e.guid||S.guid++,i},S.holdReady=function(e){e?S.readyWait++:S.ready(!0)},S.isArray=Array.isArray,S.parseJSON=JSON.parse,S.nodeName=A,S.isFunction=m,S.isWindow=x,S.camelCase=X,S.type=w,S.now=Date.now,S.isNumeric=function(e){var t=S.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},S.trim=function(e){return null==e?"":(e+"").replace(Xt,"")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return S});var Vt=C.jQuery,Gt=C.$;return S.noConflict=function(e){return C.$===S&&(C.$=Gt),e&&C.jQuery===S&&(C.jQuery=Vt),S},"undefined"==typeof e&&(C.jQuery=C.$=S),S}); +/*! jQuery v3.5.1 | (c) JS Foundation and other contributors | jquery.org/license */ +!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],r=Object.getPrototypeOf,s=t.slice,g=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},u=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},x=function(e){return null!=e&&e===e.window},E=C.document,c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.5.1",S=function(e,t){return new S.fn.init(e,t)};function p(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}S.fn=S.prototype={jquery:f,constructor:S,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=S.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return S.each(this,e)},map:function(n){return this.pushStack(S.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(S.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(S.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:t.sort,splice:t.splice},S.extend=S.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||m(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(S.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||S.isPlainObject(n)?n:{},i=!1,a[t]=S.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},S.extend({expando:"jQuery"+(f+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==o.call(e))&&(!(t=r(e))||"function"==typeof(n=v.call(t,"constructor")&&t.constructor)&&a.call(n)===l)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){b(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(p(e)){for(n=e.length;r<n;r++)if(!1===t.call(e[r],r,e[r]))break}else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(p(Object(e))?S.merge(n,"string"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:i.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(p(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return g(a)},guid:1,support:y}),"function"==typeof Symbol&&(S.fn[Symbol.iterator]=t[Symbol.iterator]),S.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var d=function(n){var e,d,b,o,i,h,f,g,w,u,l,T,C,a,E,v,s,c,y,S="sizzle"+1*new Date,p=n.document,k=0,r=0,m=ue(),x=ue(),A=ue(),N=ue(),D=function(e,t){return e===t&&(l=!0),0},j={}.hasOwnProperty,t=[],q=t.pop,L=t.push,H=t.push,O=t.slice,P=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",I="(?:\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",W="\\["+M+"*("+I+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+I+"))|)"+M+"*\\]",F=":("+I+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+W+")*)|.*)\\)|)",B=new RegExp(M+"+","g"),$=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),_=new RegExp("^"+M+"*,"+M+"*"),z=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp(F),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){T()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=O.call(p.childNodes),p.childNodes),t[p.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(T(e),e=e||C,E)){if(11!==p&&(u=Z.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&y(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n,e.getElementsByClassName(i)),n}if(d.qsa&&!N[t+" "]&&(!v||!v.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&(U.test(t)||z.test(t))){(f=ee.test(t)&&ye(e.parentNode)||e)===e&&d.scope||((s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=S)),o=(l=h(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+xe(l[o]);c=l.join(",")}try{return H.apply(n,f.querySelectorAll(c)),n}catch(e){N(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return g(t.replace($,"$1"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[S]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ve(a){return le(function(o){return o=+o,le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ye(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:p;return r!=C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,E=!i(C),p!=C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),d.scope=ce(function(e){return a.appendChild(e).appendChild(C.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(C.getElementsByClassName),d.getById=ce(function(e){return a.appendChild(e).id=S,!C.getElementsByName||!C.getElementsByName(S).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},b.find.CLASS=d.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&E)return t.getElementsByClassName(e)},s=[],v=[],(d.qsa=K.test(C.querySelectorAll))&&(ce(function(e){var t;a.appendChild(e).innerHTML="<a id='"+S+"'></a><select id='"+S+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+S+"-]").length||v.push("~="),(t=C.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||v.push("\\["+M+"*name"+M+"*="+M+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+S+"+*").length||v.push(".#.+[+~]"),e.querySelectorAll("\\\f"),v.push("[\\r\\n\\f]")}),ce(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",F)}),v=v.length&&new RegExp(v.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),y=t||K.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},D=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e==C||e.ownerDocument==p&&y(p,e)?-1:t==C||t.ownerDocument==p&&y(p,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==C?-1:t==C?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return pe(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?pe(a[r],s[r]):a[r]==p?-1:s[r]==p?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(T(e),d.matchesSelector&&E&&!N[t+" "]&&(!s||!s.test(t))&&(!v||!v.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){N(t,!0)}return 0<se(t,C,null,[e]).length},se.contains=function(e,t){return(e.ownerDocument||e)!=C&&T(e),y(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=C&&T(e);var n=b.attrHandle[t.toLowerCase()],r=n&&j.call(b.attrHandle,t.toLowerCase())?n(e,t,!E):void 0;return void 0!==r?r:d.attributes||!E?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},se.escape=function(e){return(e+"").replace(re,ie)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,n=[],r=0,i=0;if(l=!d.detectDuplicates,u=!d.sortStable&&e.slice(0),e.sort(D),l){while(t=e[i++])t===e[i]&&(r=n.push(i));while(r--)e.splice(n[r],1)}return u=null,e},o=se.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===i||4===i)return e.nodeValue}else while(t=e[r++])n+=o(t);return n},(b=se.selectors={cacheLength:50,createPseudo:le,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=m[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&m(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1<t.indexOf(i):"$="===r?i&&t.slice(-i.length)===i:"~="===r?-1<(" "+t.replace(B," ")+" ").indexOf(i):"|="===r&&(t===i||t.slice(0,i.length+1)===i+"-"))}},CHILD:function(h,e,t,g,v){var y="nth"!==h.slice(0,3),m="last"!==h.slice(-4),x="of-type"===e;return 1===g&&0===v?function(e){return!!e.parentNode}:function(e,t,n){var r,i,o,a,s,u,l=y!==m?"nextSibling":"previousSibling",c=e.parentNode,f=x&&e.nodeName.toLowerCase(),p=!n&&!x,d=!1;if(c){if(y){while(l){a=e;while(a=a[l])if(x?a.nodeName.toLowerCase()===f:1===a.nodeType)return!1;u=l="only"===h&&!u&&"nextSibling"}return!0}if(u=[m?c.firstChild:c.lastChild],m&&p){d=(s=(r=(i=(o=(a=c)[S]||(a[S]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]||[])[0]===k&&r[1])&&r[2],a=s&&c.childNodes[s];while(a=++s&&a&&a[l]||(d=s=0)||u.pop())if(1===a.nodeType&&++d&&a===e){i[h]=[k,s,d];break}}else if(p&&(d=s=(r=(i=(o=(a=e)[S]||(a[S]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]||[])[0]===k&&r[1]),!1===d)while(a=++s&&a&&a[l]||(d=s=0)||u.pop())if((x?a.nodeName.toLowerCase()===f:1===a.nodeType)&&++d&&(p&&((i=(o=a[S]||(a[S]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]=[k,d]),a===e))break;return(d-=v)===g||d%g==0&&0<=d/g}}},PSEUDO:function(e,o){var t,a=b.pseudos[e]||b.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return a[S]?a(o):1<a.length?(t=[e,e,"",o],b.setFilters.hasOwnProperty(e.toLowerCase())?le(function(e,t){var n,r=a(e,o),i=r.length;while(i--)e[n=P(e,r[i])]=!(t[n]=r[i])}):function(e){return a(e,0,t)}):a}},pseudos:{not:le(function(e){var r=[],i=[],s=f(e.replace($,"$1"));return s[S]?le(function(e,t,n,r){var i,o=s(e,null,r,[]),a=e.length;while(a--)(i=o[a])&&(e[a]=!(t[a]=i))}):function(e,t,n){return r[0]=e,s(r,null,n,i),r[0]=null,!i.pop()}}),has:le(function(t){return function(e){return 0<se(t,e).length}}),contains:le(function(t){return t=t.replace(te,ne),function(e){return-1<(e.textContent||o(e)).indexOf(t)}}),lang:le(function(n){return V.test(n||"")||se.error("unsupported lang: "+n),n=n.replace(te,ne).toLowerCase(),function(e){var t;do{if(t=E?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===a},focus:function(e){return e===C.activeElement&&(!C.hasFocus||C.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ge(!1),disabled:ge(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!b.pseudos.empty(e)},header:function(e){return J.test(e.nodeName)},input:function(e){return Q.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ve(function(){return[0]}),last:ve(function(e,t){return[t-1]}),eq:ve(function(e,t,n){return[n<0?n+t:n]}),even:ve(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:ve(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:ve(function(e,t,n){for(var r=n<0?n+t:t<n?t:n;0<=--r;)e.push(r);return e}),gt:ve(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=b.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[e]=de(e);for(e in{submit:!0,reset:!0})b.pseudos[e]=he(e);function me(){}function xe(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function be(s,e,t){var u=e.dir,l=e.next,c=l||u,f=t&&"parentNode"===c,p=r++;return e.first?function(e,t,n){while(e=e[u])if(1===e.nodeType||f)return s(e,t,n);return!1}:function(e,t,n){var r,i,o,a=[k,p];if(n){while(e=e[u])if((1===e.nodeType||f)&&s(e,t,n))return!0}else while(e=e[u])if(1===e.nodeType||f)if(i=(o=e[S]||(e[S]={}))[e.uniqueID]||(o[e.uniqueID]={}),l&&l===e.nodeName.toLowerCase())e=e[u]||e;else{if((r=i[c])&&r[0]===k&&r[1]===p)return a[2]=r[2];if((i[c]=a)[2]=s(e,t,n))return!0}return!1}}function we(i){return 1<i.length?function(e,t,n){var r=i.length;while(r--)if(!i[r](e,t,n))return!1;return!0}:i[0]}function Te(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function Ce(d,h,g,v,y,e){return v&&!v[S]&&(v=Ce(v)),y&&!y[S]&&(y=Ce(y,e)),le(function(e,t,n,r){var i,o,a,s=[],u=[],l=t.length,c=e||function(e,t,n){for(var r=0,i=t.length;r<i;r++)se(e,t[r],n);return n}(h||"*",n.nodeType?[n]:n,[]),f=!d||!e&&h?c:Te(c,s,d,n,r),p=g?y||(e?d:l||v)?[]:t:f;if(g&&g(f,p,n,r),v){i=Te(p,u),v(i,[],n,r),o=i.length;while(o--)(a=i[o])&&(p[u[o]]=!(f[u[o]]=a))}if(e){if(y||d){if(y){i=[],o=p.length;while(o--)(a=p[o])&&i.push(f[o]=a);y(null,p=[],i,r)}o=p.length;while(o--)(a=p[o])&&-1<(i=y?P(e,a):s[o])&&(e[i]=!(t[i]=a))}}else p=Te(p===t?p.splice(l,p.length):p),y?y(null,t,p,r):H.apply(t,p)})}function Ee(e){for(var i,t,n,r=e.length,o=b.relative[e[0].type],a=o||b.relative[" "],s=o?1:0,u=be(function(e){return e===i},a,!0),l=be(function(e){return-1<P(i,e)},a,!0),c=[function(e,t,n){var r=!o&&(n||t!==w)||((i=t).nodeType?u(e,t,n):l(e,t,n));return i=null,r}];s<r;s++)if(t=b.relative[e[s].type])c=[be(we(c),t)];else{if((t=b.filter[e[s].type].apply(null,e[s].matches))[S]){for(n=++s;n<r;n++)if(b.relative[e[n].type])break;return Ce(1<s&&we(c),1<s&&xe(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace($,"$1"),t,s<n&&Ee(e.slice(s,n)),n<r&&Ee(e=e.slice(n)),n<r&&xe(e))}c.push(t)}return we(c)}return me.prototype=b.filters=b.pseudos,b.setFilters=new me,h=se.tokenize=function(e,t){var n,r,i,o,a,s,u,l=x[e+" "];if(l)return t?0:l.slice(0);a=e,s=[],u=b.preFilter;while(a){for(o in n&&!(r=_.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=z.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace($," ")}),a=a.slice(n.length)),b.filter)!(r=G[o].exec(a))||u[o]&&!(r=u[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?se.error(e):x(e,s).slice(0)},f=se.compile=function(e,t){var n,v,y,m,x,r,i=[],o=[],a=A[e+" "];if(!a){t||(t=h(e)),n=t.length;while(n--)(a=Ee(t[n]))[S]?i.push(a):o.push(a);(a=A(e,(v=o,m=0<(y=i).length,x=0<v.length,r=function(e,t,n,r,i){var o,a,s,u=0,l="0",c=e&&[],f=[],p=w,d=e||x&&b.find.TAG("*",i),h=k+=null==p?1:Math.random()||.1,g=d.length;for(i&&(w=t==C||t||i);l!==g&&null!=(o=d[l]);l++){if(x&&o){a=0,t||o.ownerDocument==C||(T(o),n=!E);while(s=v[a++])if(s(o,t||C,n)){r.push(o);break}i&&(k=h)}m&&((o=!s&&o)&&u--,e&&c.push(o))}if(u+=l,m&&l!==u){a=0;while(s=y[a++])s(c,f,t,n);if(e){if(0<u)while(l--)c[l]||f[l]||(f[l]=q.call(r));f=Te(f)}H.apply(r,f),i&&!e&&0<f.length&&1<u+y.length&&se.uniqueSort(r)}return i&&(k=h,w=p),c},m?le(r):r))).selector=e}return a},g=se.select=function(e,t,n,r){var i,o,a,s,u,l="function"==typeof e&&e,c=!r&&h(e=l.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&E&&b.relative[o[1].type]){if(!(t=(b.find.ID(a.matches[0].replace(te,ne),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}i=G.needsContext.test(e)?0:o.length;while(i--){if(a=o[i],b.relative[s=a.type])break;if((u=b.find[s])&&(r=u(a.matches[0].replace(te,ne),ee.test(o[0].type)&&ye(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&xe(o)))return H.apply(n,r),n;break}}}return(l||f(e,c))(r,t,!E,n,!t||ee.test(e)&&ye(t.parentNode)||t),n},d.sortStable=S.split("").sort(D).join("")===S,d.detectDuplicates=!!l,T(),d.sortDetached=ce(function(e){return 1&e.compareDocumentPosition(C.createElement("fieldset"))}),ce(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||fe("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),d.attributes&&ce(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||fe("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ce(function(e){return null==e.getAttribute("disabled")})||fe(R,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),se}(C);S.find=d,S.expr=d.selectors,S.expr[":"]=S.expr.pseudos,S.uniqueSort=S.unique=d.uniqueSort,S.text=d.getText,S.isXMLDoc=d.isXML,S.contains=d.contains,S.escapeSelector=d.escape;var h=function(e,t,n){var r=[],i=void 0!==n;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(i&&S(e).is(n))break;r.push(e)}return r},T=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},k=S.expr.match.needsContext;function A(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var N=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function D(e,n,r){return m(n)?S.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?S.grep(e,function(e){return e===n!==r}):"string"!=typeof n?S.grep(e,function(e){return-1<i.call(n,e)!==r}):S.filter(n,e,r)}S.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?S.find.matchesSelector(r,e)?[r]:[]:S.find.matches(e,S.grep(t,function(e){return 1===e.nodeType}))},S.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(S(e).filter(function(){for(t=0;t<r;t++)if(S.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)S.find(e,i[t],n);return 1<r?S.uniqueSort(n):n},filter:function(e){return this.pushStack(D(this,e||[],!1))},not:function(e){return this.pushStack(D(this,e||[],!0))},is:function(e){return!!D(this,"string"==typeof e&&k.test(e)?S(e):e||[],!1).length}});var j,q=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(S.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||j,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:q.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof S?t[0]:t,S.merge(this,S.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),N.test(r[1])&&S.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=E.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(S):S.makeArray(e,this)}).prototype=S.fn,j=S(E);var L=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){while((e=e[t])&&1!==e.nodeType);return e}S.fn.extend({has:function(e){var t=S(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(S.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&S(e);if(!k.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&S.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?S.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?i.call(S(e),this[0]):i.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(S.uniqueSort(S.merge(this.get(),S(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),S.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return h(e,"parentNode")},parentsUntil:function(e,t,n){return h(e,"parentNode",n)},next:function(e){return O(e,"nextSibling")},prev:function(e){return O(e,"previousSibling")},nextAll:function(e){return h(e,"nextSibling")},prevAll:function(e){return h(e,"previousSibling")},nextUntil:function(e,t,n){return h(e,"nextSibling",n)},prevUntil:function(e,t,n){return h(e,"previousSibling",n)},siblings:function(e){return T((e.parentNode||{}).firstChild,e)},children:function(e){return T(e.firstChild)},contents:function(e){return null!=e.contentDocument&&r(e.contentDocument)?e.contentDocument:(A(e,"template")&&(e=e.content||e),S.merge([],e.childNodes))}},function(r,i){S.fn[r]=function(e,t){var n=S.map(this,i,e);return"Until"!==r.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=S.filter(t,n)),1<this.length&&(H[r]||S.uniqueSort(n),L.test(r)&&n.reverse()),this.pushStack(n)}});var P=/[^\x20\t\r\n\f]+/g;function R(e){return e}function M(e){throw e}function I(e,t,n,r){var i;try{e&&m(i=e.promise)?i.call(e).done(t).fail(n):e&&m(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}S.Callbacks=function(r){var e,n;r="string"==typeof r?(e=r,n={},S.each(e.match(P)||[],function(e,t){n[t]=!0}),n):S.extend({},r);var i,t,o,a,s=[],u=[],l=-1,c=function(){for(a=a||r.once,o=i=!0;u.length;l=-1){t=u.shift();while(++l<s.length)!1===s[l].apply(t[0],t[1])&&r.stopOnFalse&&(l=s.length,t=!1)}r.memory||(t=!1),i=!1,a&&(s=t?[]:"")},f={add:function(){return s&&(t&&!i&&(l=s.length-1,u.push(t)),function n(e){S.each(e,function(e,t){m(t)?r.unique&&f.has(t)||s.push(t):t&&t.length&&"string"!==w(t)&&n(t)})}(arguments),t&&!i&&c()),this},remove:function(){return S.each(arguments,function(e,t){var n;while(-1<(n=S.inArray(t,s,n)))s.splice(n,1),n<=l&&l--}),this},has:function(e){return e?-1<S.inArray(e,s):0<s.length},empty:function(){return s&&(s=[]),this},disable:function(){return a=u=[],s=t="",this},disabled:function(){return!s},lock:function(){return a=u=[],t||i||(s=t=""),this},locked:function(){return!!a},fireWith:function(e,t){return a||(t=[e,(t=t||[]).slice?t.slice():t],u.push(t),i||c()),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!o}};return f},S.extend({Deferred:function(e){var o=[["notify","progress",S.Callbacks("memory"),S.Callbacks("memory"),2],["resolve","done",S.Callbacks("once memory"),S.Callbacks("once memory"),0,"resolved"],["reject","fail",S.Callbacks("once memory"),S.Callbacks("once memory"),1,"rejected"]],i="pending",a={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},"catch":function(e){return a.then(null,e)},pipe:function(){var i=arguments;return S.Deferred(function(r){S.each(o,function(e,t){var n=m(i[t[4]])&&i[t[4]];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&m(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[t[0]+"With"](this,n?[e]:arguments)})}),i=null}).promise()},then:function(t,n,r){var u=0;function l(i,o,a,s){return function(){var n=this,r=arguments,e=function(){var e,t;if(!(i<u)){if((e=a.apply(n,r))===o.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,m(t)?s?t.call(e,l(u,o,R,s),l(u,o,M,s)):(u++,t.call(e,l(u,o,R,s),l(u,o,M,s),l(u,o,R,o.notifyWith))):(a!==R&&(n=void 0,r=[e]),(s||o.resolveWith)(n,r))}},t=s?e:function(){try{e()}catch(e){S.Deferred.exceptionHook&&S.Deferred.exceptionHook(e,t.stackTrace),u<=i+1&&(a!==M&&(n=void 0,r=[e]),o.rejectWith(n,r))}};i?t():(S.Deferred.getStackHook&&(t.stackTrace=S.Deferred.getStackHook()),C.setTimeout(t))}}return S.Deferred(function(e){o[0][3].add(l(0,e,m(r)?r:R,e.notifyWith)),o[1][3].add(l(0,e,m(t)?t:R)),o[2][3].add(l(0,e,m(n)?n:M))}).promise()},promise:function(e){return null!=e?S.extend(e,a):a}},s={};return S.each(o,function(e,t){var n=t[2],r=t[5];a[t[1]]=n.add,r&&n.add(function(){i=r},o[3-e][2].disable,o[3-e][3].disable,o[0][2].lock,o[0][3].lock),n.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?void 0:this,arguments),this},s[t[0]+"With"]=n.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){var n=arguments.length,t=n,r=Array(t),i=s.call(arguments),o=S.Deferred(),a=function(t){return function(e){r[t]=this,i[t]=1<arguments.length?s.call(arguments):e,--n||o.resolveWith(r,i)}};if(n<=1&&(I(e,o.done(a(t)).resolve,o.reject,!n),"pending"===o.state()||m(i[t]&&i[t].then)))return o.then();while(t--)I(i[t],a(t),o.reject);return o.promise()}});var W=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;S.Deferred.exceptionHook=function(e,t){C.console&&C.console.warn&&e&&W.test(e.name)&&C.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},S.readyException=function(e){C.setTimeout(function(){throw e})};var F=S.Deferred();function B(){E.removeEventListener("DOMContentLoaded",B),C.removeEventListener("load",B),S.ready()}S.fn.ready=function(e){return F.then(e)["catch"](function(e){S.readyException(e)}),this},S.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--S.readyWait:S.isReady)||(S.isReady=!0)!==e&&0<--S.readyWait||F.resolveWith(E,[S])}}),S.ready.then=F.then,"complete"===E.readyState||"loading"!==E.readyState&&!E.documentElement.doScroll?C.setTimeout(S.ready):(E.addEventListener("DOMContentLoaded",B),C.addEventListener("load",B));var $=function(e,t,n,r,i,o,a){var s=0,u=e.length,l=null==n;if("object"===w(n))for(s in i=!0,n)$(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,m(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(S(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):u?t(e[0],n):o},_=/^-ms-/,z=/-([a-z])/g;function U(e,t){return t.toUpperCase()}function X(e){return e.replace(_,"ms-").replace(z,U)}var V=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function G(){this.expando=S.expando+G.uid++}G.uid=1,G.prototype={cache:function(e){var t=e[this.expando];return t||(t={},V(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[X(t)]=n;else for(r in t)i[X(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][X(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(X):(t=X(t))in r?[t]:t.match(P)||[]).length;while(n--)delete r[t[n]]}(void 0===t||S.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!S.isEmptyObject(t)}};var Y=new G,Q=new G,J=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,K=/[A-Z]/g;function Z(e,t,n){var r,i;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(K,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===(i=n)||"false"!==i&&("null"===i?null:i===+i+""?+i:J.test(i)?JSON.parse(i):i)}catch(e){}Q.set(e,t,n)}else n=void 0;return n}S.extend({hasData:function(e){return Q.hasData(e)||Y.hasData(e)},data:function(e,t,n){return Q.access(e,t,n)},removeData:function(e,t){Q.remove(e,t)},_data:function(e,t,n){return Y.access(e,t,n)},_removeData:function(e,t){Y.remove(e,t)}}),S.fn.extend({data:function(n,e){var t,r,i,o=this[0],a=o&&o.attributes;if(void 0===n){if(this.length&&(i=Q.get(o),1===o.nodeType&&!Y.get(o,"hasDataAttrs"))){t=a.length;while(t--)a[t]&&0===(r=a[t].name).indexOf("data-")&&(r=X(r.slice(5)),Z(o,r,i[r]));Y.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof n?this.each(function(){Q.set(this,n)}):$(this,function(e){var t;if(o&&void 0===e)return void 0!==(t=Q.get(o,n))?t:void 0!==(t=Z(o,n))?t:void 0;this.each(function(){Q.set(this,n,e)})},null,e,1<arguments.length,null,!0)},removeData:function(e){return this.each(function(){Q.remove(this,e)})}}),S.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Y.get(e,t),n&&(!r||Array.isArray(n)?r=Y.access(e,t,S.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=S.queue(e,t),r=n.length,i=n.shift(),o=S._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){S.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Y.get(e,n)||Y.access(e,n,{empty:S.Callbacks("once memory").add(function(){Y.remove(e,[t+"queue",n])})})}}),S.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?S.queue(this[0],t):void 0===n?this:this.each(function(){var e=S.queue(this,t,n);S._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&S.dequeue(this,t)})},dequeue:function(e){return this.each(function(){S.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=S.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};"string"!=typeof e&&(t=e,e=void 0),e=e||"fx";while(a--)(n=Y.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var ee=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,te=new RegExp("^(?:([+-])=|)("+ee+")([a-z%]*)$","i"),ne=["Top","Right","Bottom","Left"],re=E.documentElement,ie=function(e){return S.contains(e.ownerDocument,e)},oe={composed:!0};re.getRootNode&&(ie=function(e){return S.contains(e.ownerDocument,e)||e.getRootNode(oe)===e.ownerDocument});var ae=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ie(e)&&"none"===S.css(e,"display")};function se(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return S.css(e,t,"")},u=s(),l=n&&n[3]||(S.cssNumber[t]?"":"px"),c=e.nodeType&&(S.cssNumber[t]||"px"!==l&&+u)&&te.exec(S.css(e,t));if(c&&c[3]!==l){u/=2,l=l||c[3],c=+u||1;while(a--)S.style(e,t,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;c*=2,S.style(e,t,c+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}var ue={};function le(e,t){for(var n,r,i,o,a,s,u,l=[],c=0,f=e.length;c<f;c++)(r=e[c]).style&&(n=r.style.display,t?("none"===n&&(l[c]=Y.get(r,"display")||null,l[c]||(r.style.display="")),""===r.style.display&&ae(r)&&(l[c]=(u=a=o=void 0,a=(i=r).ownerDocument,s=i.nodeName,(u=ue[s])||(o=a.body.appendChild(a.createElement(s)),u=S.css(o,"display"),o.parentNode.removeChild(o),"none"===u&&(u="block"),ue[s]=u)))):"none"!==n&&(l[c]="none",Y.set(r,"display",n)));for(c=0;c<f;c++)null!=l[c]&&(e[c].style.display=l[c]);return e}S.fn.extend({show:function(){return le(this,!0)},hide:function(){return le(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ae(this)?S(this).show():S(this).hide()})}});var ce,fe,pe=/^(?:checkbox|radio)$/i,de=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i;ce=E.createDocumentFragment().appendChild(E.createElement("div")),(fe=E.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),ce.appendChild(fe),y.checkClone=ce.cloneNode(!0).cloneNode(!0).lastChild.checked,ce.innerHTML="<textarea>x</textarea>",y.noCloneChecked=!!ce.cloneNode(!0).lastChild.defaultValue,ce.innerHTML="<option></option>",y.option=!!ce.lastChild;var ge={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ve(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?S.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;n<r;n++)Y.set(e[n],"globalEval",!t||Y.get(t[n],"globalEval"))}ge.tbody=ge.tfoot=ge.colgroup=ge.caption=ge.thead,ge.th=ge.td,y.option||(ge.optgroup=ge.option=[1,"<select multiple='multiple'>","</select>"]);var me=/<|&#?\w+;/;function xe(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d<h;d++)if((o=e[d])||0===o)if("object"===w(o))S.merge(p,o.nodeType?[o]:o);else if(me.test(o)){a=a||f.appendChild(t.createElement("div")),s=(de.exec(o)||["",""])[1].toLowerCase(),u=ge[s]||ge._default,a.innerHTML=u[1]+S.htmlPrefilter(o)+u[2],c=u[0];while(c--)a=a.lastChild;S.merge(p,a.childNodes),(a=f.firstChild).textContent=""}else p.push(t.createTextNode(o));f.textContent="",d=0;while(o=p[d++])if(r&&-1<S.inArray(o,r))i&&i.push(o);else if(l=ie(o),a=ve(f.appendChild(o),"script"),l&&ye(a),n){c=0;while(o=a[c++])he.test(o.type||"")&&n.push(o)}return f}var be=/^key/,we=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Te=/^([^.]*)(?:\.(.+)|)/;function Ce(){return!0}function Ee(){return!1}function Se(e,t){return e===function(){try{return E.activeElement}catch(e){}}()==("focus"===t)}function ke(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)ke(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Ee;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return S().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=S.guid++)),e.each(function(){S.event.add(this,t,i,r,n)})}function Ae(e,i,o){o?(Y.set(e,i,!1),S.event.add(e,i,{namespace:!1,handler:function(e){var t,n,r=Y.get(this,i);if(1&e.isTrigger&&this[i]){if(r.length)(S.event.special[i]||{}).delegateType&&e.stopPropagation();else if(r=s.call(arguments),Y.set(this,i,r),t=o(this,i),this[i](),r!==(n=Y.get(this,i))||t?Y.set(this,i,!1):n={},r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n.value}else r.length&&(Y.set(this,i,{value:S.event.trigger(S.extend(r[0],S.Event.prototype),r.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Y.get(e,i)&&S.event.add(e,i,Ce)}S.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Y.get(t);if(V(t)){n.handler&&(n=(o=n).handler,i=o.selector),i&&S.find.matchesSelector(re,i),n.guid||(n.guid=S.guid++),(u=v.events)||(u=v.events=Object.create(null)),(a=v.handle)||(a=v.handle=function(e){return"undefined"!=typeof S&&S.event.triggered!==e.type?S.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(P)||[""]).length;while(l--)d=g=(s=Te.exec(e[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=S.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=S.event.special[d]||{},c=S.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&S.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,h,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),S.event.global[d]=!0)}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Y.hasData(e)&&Y.get(e);if(v&&(u=v.events)){l=(t=(t||"").match(P)||[""]).length;while(l--)if(d=g=(s=Te.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){f=S.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;while(o--)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||S.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)S.event.remove(e,d+t[l],n,r,!0);S.isEmptyObject(u)&&Y.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),u=S.event.fix(e),l=(Y.get(this,"events")||Object.create(null))[u.type]||[],c=S.event.special[u.type]||{};for(s[0]=u,t=1;t<arguments.length;t++)s[t]=arguments[t];if(u.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,u)){a=S.event.handlers.call(this,u,l),t=0;while((i=a[t++])&&!u.isPropagationStopped()){u.currentTarget=i.elem,n=0;while((o=i.handlers[n++])&&!u.isImmediatePropagationStopped())u.rnamespace&&!1!==o.namespace&&!u.rnamespace.test(o.namespace)||(u.handleObj=o,u.data=o.data,void 0!==(r=((S.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(u.result=r)&&(u.preventDefault(),u.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,u),u.result}},handlers:function(e,t){var n,r,i,o,a,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&1<=e.button))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],a={},n=0;n<u;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?-1<S(i,this).index(l):S.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(t,e){Object.defineProperty(S.Event.prototype,t,{enumerable:!0,configurable:!0,get:m(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[S.expando]?e:new S.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return pe.test(t.type)&&t.click&&A(t,"input")&&Ae(t,"click",Ce),!1},trigger:function(e){var t=this||e;return pe.test(t.type)&&t.click&&A(t,"input")&&Ae(t,"click"),!0},_default:function(e){var t=e.target;return pe.test(t.type)&&t.click&&A(t,"input")&&Y.get(t,"click")||A(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},S.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},S.Event=function(e,t){if(!(this instanceof S.Event))return new S.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ce:Ee,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&S.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[S.expando]=!0},S.Event.prototype={constructor:S.Event,isDefaultPrevented:Ee,isPropagationStopped:Ee,isImmediatePropagationStopped:Ee,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ce,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ce,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ce,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},S.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&be.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&we.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},S.event.addProp),S.each({focus:"focusin",blur:"focusout"},function(e,t){S.event.special[e]={setup:function(){return Ae(this,e,Se),!1},trigger:function(){return Ae(this,e),!0},delegateType:t}}),S.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,i){S.event.special[e]={delegateType:i,bindType:i,handle:function(e){var t,n=e.relatedTarget,r=e.handleObj;return n&&(n===this||S.contains(this,n))||(e.type=r.origType,t=r.handler.apply(this,arguments),e.type=i),t}}}),S.fn.extend({on:function(e,t,n,r){return ke(this,e,t,n,r)},one:function(e,t,n,r){return ke(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,S(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Ee),this.each(function(){S.event.remove(this,e,n,t)})}});var Ne=/<script|<style|<link/i,De=/checked\s*(?:[^=]|=\s*.checked.)/i,je=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function qe(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&S(e).children("tbody")[0]||e}function Le(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function He(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Oe(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(Y.hasData(e)&&(s=Y.get(e).events))for(i in Y.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)S.event.add(t,i,s[i][n]);Q.hasData(e)&&(o=Q.access(e),a=S.extend({},o),Q.set(t,a))}}function Pe(n,r,i,o){r=g(r);var e,t,a,s,u,l,c=0,f=n.length,p=f-1,d=r[0],h=m(d);if(h||1<f&&"string"==typeof d&&!y.checkClone&&De.test(d))return n.each(function(e){var t=n.eq(e);h&&(r[0]=d.call(this,e,t.html())),Pe(t,r,i,o)});if(f&&(t=(e=xe(r,n[0].ownerDocument,!1,n,o)).firstChild,1===e.childNodes.length&&(e=t),t||o)){for(s=(a=S.map(ve(e,"script"),Le)).length;c<f;c++)u=e,c!==p&&(u=S.clone(u,!0,!0),s&&S.merge(a,ve(u,"script"))),i.call(n[c],u,c);if(s)for(l=a[a.length-1].ownerDocument,S.map(a,He),c=0;c<s;c++)u=a[c],he.test(u.type||"")&&!Y.access(u,"globalEval")&&S.contains(l,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?S._evalUrl&&!u.noModule&&S._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},l):b(u.textContent.replace(je,""),u,l))}return n}function Re(e,t,n){for(var r,i=t?S.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||S.cleanData(ve(r)),r.parentNode&&(n&&ie(r)&&ye(ve(r,"script")),r.parentNode.removeChild(r));return e}S.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s,u,l,c=e.cloneNode(!0),f=ie(e);if(!(y.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||S.isXMLDoc(e)))for(a=ve(c),r=0,i=(o=ve(e)).length;r<i;r++)s=o[r],u=a[r],void 0,"input"===(l=u.nodeName.toLowerCase())&&pe.test(s.type)?u.checked=s.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=s.defaultValue);if(t)if(n)for(o=o||ve(e),a=a||ve(c),r=0,i=o.length;r<i;r++)Oe(o[r],a[r]);else Oe(e,c);return 0<(a=ve(c,"script")).length&&ye(a,!f&&ve(e,"script")),c},cleanData:function(e){for(var t,n,r,i=S.event.special,o=0;void 0!==(n=e[o]);o++)if(V(n)){if(t=n[Y.expando]){if(t.events)for(r in t.events)i[r]?S.event.remove(n,r):S.removeEvent(n,r,t.handle);n[Y.expando]=void 0}n[Q.expando]&&(n[Q.expando]=void 0)}}}),S.fn.extend({detach:function(e){return Re(this,e,!0)},remove:function(e){return Re(this,e)},text:function(e){return $(this,function(e){return void 0===e?S.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Pe(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||qe(this,e).appendChild(e)})},prepend:function(){return Pe(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=qe(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Pe(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Pe(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(S.cleanData(ve(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return S.clone(this,e,t)})},html:function(e){return $(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ne.test(e)&&!ge[(de.exec(e)||["",""])[1].toLowerCase()]){e=S.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(S.cleanData(ve(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return Pe(this,arguments,function(e){var t=this.parentNode;S.inArray(this,n)<0&&(S.cleanData(ve(this)),t&&t.replaceChild(e,this))},n)}}),S.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){S.fn[e]=function(e){for(var t,n=[],r=S(e),i=r.length-1,o=0;o<=i;o++)t=o===i?this:this.clone(!0),S(r[o])[a](t),u.apply(n,t.get());return this.pushStack(n)}});var Me=new RegExp("^("+ee+")(?!px)[a-z%]+$","i"),Ie=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=C),t.getComputedStyle(e)},We=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},Fe=new RegExp(ne.join("|"),"i");function Be(e,t,n){var r,i,o,a,s=e.style;return(n=n||Ie(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||ie(e)||(a=S.style(e,t)),!y.pixelBoxStyles()&&Me.test(a)&&Fe.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function $e(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(l){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",re.appendChild(u).appendChild(l);var e=C.getComputedStyle(l);n="1%"!==e.top,s=12===t(e.marginLeft),l.style.right="60%",o=36===t(e.right),r=36===t(e.width),l.style.position="absolute",i=12===t(l.offsetWidth/3),re.removeChild(u),l=null}}function t(e){return Math.round(parseFloat(e))}var n,r,i,o,a,s,u=E.createElement("div"),l=E.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",y.clearCloneStyle="content-box"===l.style.backgroundClip,S.extend(y,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),s},scrollboxSize:function(){return e(),i},reliableTrDimensions:function(){var e,t,n,r;return null==a&&(e=E.createElement("table"),t=E.createElement("tr"),n=E.createElement("div"),e.style.cssText="position:absolute;left:-11111px",t.style.height="1px",n.style.height="9px",re.appendChild(e).appendChild(t).appendChild(n),r=C.getComputedStyle(t),a=3<parseInt(r.height),re.removeChild(e)),a}}))}();var _e=["Webkit","Moz","ms"],ze=E.createElement("div").style,Ue={};function Xe(e){var t=S.cssProps[e]||Ue[e];return t||(e in ze?e:Ue[e]=function(e){var t=e[0].toUpperCase()+e.slice(1),n=_e.length;while(n--)if((e=_e[n]+t)in ze)return e}(e)||e)}var Ve=/^(none|table(?!-c[ea]).+)/,Ge=/^--/,Ye={position:"absolute",visibility:"hidden",display:"block"},Qe={letterSpacing:"0",fontWeight:"400"};function Je(e,t,n){var r=te.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function Ke(e,t,n,r,i,o){var a="width"===t?1:0,s=0,u=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(u+=S.css(e,n+ne[a],!0,i)),r?("content"===n&&(u-=S.css(e,"padding"+ne[a],!0,i)),"margin"!==n&&(u-=S.css(e,"border"+ne[a]+"Width",!0,i))):(u+=S.css(e,"padding"+ne[a],!0,i),"padding"!==n?u+=S.css(e,"border"+ne[a]+"Width",!0,i):s+=S.css(e,"border"+ne[a]+"Width",!0,i));return!r&&0<=o&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))||0),u}function Ze(e,t,n){var r=Ie(e),i=(!y.boxSizingReliable()||n)&&"border-box"===S.css(e,"boxSizing",!1,r),o=i,a=Be(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(Me.test(a)){if(!n)return a;a="auto"}return(!y.boxSizingReliable()&&i||!y.reliableTrDimensions()&&A(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===S.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===S.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+Ke(e,t,n||(i?"border":"content"),o,r,a)+"px"}function et(e,t,n,r,i){return new et.prototype.init(e,t,n,r,i)}S.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Be(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=X(t),u=Ge.test(t),l=e.style;if(u||(t=Xe(s)),a=S.cssHooks[t]||S.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];"string"===(o=typeof n)&&(i=te.exec(n))&&i[1]&&(n=se(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=i&&i[3]||(S.cssNumber[s]?"":"px")),y.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=X(t);return Ge.test(t)||(t=Xe(s)),(a=S.cssHooks[t]||S.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=Be(e,t,r)),"normal"===i&&t in Qe&&(i=Qe[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),S.each(["height","width"],function(e,u){S.cssHooks[u]={get:function(e,t,n){if(t)return!Ve.test(S.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Ze(e,u,n):We(e,Ye,function(){return Ze(e,u,n)})},set:function(e,t,n){var r,i=Ie(e),o=!y.scrollboxSize()&&"absolute"===i.position,a=(o||n)&&"border-box"===S.css(e,"boxSizing",!1,i),s=n?Ke(e,u,n,a,i):0;return a&&o&&(s-=Math.ceil(e["offset"+u[0].toUpperCase()+u.slice(1)]-parseFloat(i[u])-Ke(e,u,"border",!1,i)-.5)),s&&(r=te.exec(t))&&"px"!==(r[3]||"px")&&(e.style[u]=t,t=S.css(e,u)),Je(0,t,s)}}}),S.cssHooks.marginLeft=$e(y.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Be(e,"marginLeft"))||e.getBoundingClientRect().left-We(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),S.each({margin:"",padding:"",border:"Width"},function(i,o){S.cssHooks[i+o]={expand:function(e){for(var t=0,n={},r="string"==typeof e?e.split(" "):[e];t<4;t++)n[i+ne[t]+o]=r[t]||r[t-2]||r[0];return n}},"margin"!==i&&(S.cssHooks[i+o].set=Je)}),S.fn.extend({css:function(e,t){return $(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Ie(e),i=t.length;a<i;a++)o[t[a]]=S.css(e,t[a],!1,r);return o}return void 0!==n?S.style(e,t,n):S.css(e,t)},e,t,1<arguments.length)}}),((S.Tween=et).prototype={constructor:et,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||S.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(S.cssNumber[n]?"":"px")},cur:function(){var e=et.propHooks[this.prop];return e&&e.get?e.get(this):et.propHooks._default.get(this)},run:function(e){var t,n=et.propHooks[this.prop];return this.options.duration?this.pos=t=S.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):et.propHooks._default.set(this),this}}).init.prototype=et.prototype,(et.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=S.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){S.fx.step[e.prop]?S.fx.step[e.prop](e):1!==e.elem.nodeType||!S.cssHooks[e.prop]&&null==e.elem.style[Xe(e.prop)]?e.elem[e.prop]=e.now:S.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=et.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},S.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},S.fx=et.prototype.init,S.fx.step={};var tt,nt,rt,it,ot=/^(?:toggle|show|hide)$/,at=/queueHooks$/;function st(){nt&&(!1===E.hidden&&C.requestAnimationFrame?C.requestAnimationFrame(st):C.setTimeout(st,S.fx.interval),S.fx.tick())}function ut(){return C.setTimeout(function(){tt=void 0}),tt=Date.now()}function lt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=ne[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function ct(e,t,n){for(var r,i=(ft.tweeners[t]||[]).concat(ft.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function ft(o,e,t){var n,a,r=0,i=ft.prefilters.length,s=S.Deferred().always(function(){delete u.elem}),u=function(){if(a)return!1;for(var e=tt||ut(),t=Math.max(0,l.startTime+l.duration-e),n=1-(t/l.duration||0),r=0,i=l.tweens.length;r<i;r++)l.tweens[r].run(n);return s.notifyWith(o,[l,n,t]),n<1&&i?t:(i||s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l]),!1)},l=s.promise({elem:o,props:S.extend({},e),opts:S.extend(!0,{specialEasing:{},easing:S.easing._default},t),originalProperties:e,originalOptions:t,startTime:tt||ut(),duration:t.duration,tweens:[],createTween:function(e,t){var n=S.Tween(o,l.opts,e,t,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(n),n},stop:function(e){var t=0,n=e?l.tweens.length:0;if(a)return this;for(a=!0;t<n;t++)l.tweens[t].run(1);return e?(s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l,e])):s.rejectWith(o,[l,e]),this}}),c=l.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=X(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=S.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,l.opts.specialEasing);r<i;r++)if(n=ft.prefilters[r].call(l,o,c,l.opts))return m(n.stop)&&(S._queueHooks(l.elem,l.opts.queue).stop=n.stop.bind(n)),n;return S.map(c,ct,l),m(l.opts.start)&&l.opts.start.call(o,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),S.fx.timer(S.extend(u,{elem:o,anim:l,queue:l.opts.queue})),l}S.Animation=S.extend(ft,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return se(n.elem,e,te.exec(t),n),n}]},tweener:function(e,t){m(e)?(t=e,e=["*"]):e=e.match(P);for(var n,r=0,i=e.length;r<i;r++)n=e[r],ft.tweeners[n]=ft.tweeners[n]||[],ft.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,u,l,c,f="width"in t||"height"in t,p=this,d={},h=e.style,g=e.nodeType&&ae(e),v=Y.get(e,"fxshow");for(r in n.queue||(null==(a=S._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always(function(){p.always(function(){a.unqueued--,S.queue(e,"fx").length||a.empty.fire()})})),t)if(i=t[r],ot.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;g=!0}d[r]=v&&v[r]||S.style(e,r)}if((u=!S.isEmptyObject(t))||!S.isEmptyObject(d))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=v&&v.display)&&(l=Y.get(e,"display")),"none"===(c=S.css(e,"display"))&&(l?c=l:(le([e],!0),l=e.style.display||l,c=S.css(e,"display"),le([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===S.css(e,"float")&&(u||(p.done(function(){h.display=l}),null==l&&(c=h.display,l="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1,d)u||(v?"hidden"in v&&(g=v.hidden):v=Y.access(e,"fxshow",{display:l}),o&&(v.hidden=!g),g&&le([e],!0),p.done(function(){for(r in g||le([e]),Y.remove(e,"fxshow"),d)S.style(e,r,d[r])})),u=ct(g?v[r]:0,r,p),r in v||(v[r]=u.start,g&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?ft.prefilters.unshift(e):ft.prefilters.push(e)}}),S.speed=function(e,t,n){var r=e&&"object"==typeof e?S.extend({},e):{complete:n||!n&&t||m(e)&&e,duration:e,easing:n&&t||t&&!m(t)&&t};return S.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in S.fx.speeds?r.duration=S.fx.speeds[r.duration]:r.duration=S.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){m(r.old)&&r.old.call(this),r.queue&&S.dequeue(this,r.queue)},r},S.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ae).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(t,e,n,r){var i=S.isEmptyObject(t),o=S.speed(e,n,r),a=function(){var e=ft(this,S.extend({},t),o);(i||Y.get(this,"finish"))&&e.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(i,e,o){var a=function(e){var t=e.stop;delete e.stop,t(o)};return"string"!=typeof i&&(o=e,e=i,i=void 0),e&&this.queue(i||"fx",[]),this.each(function(){var e=!0,t=null!=i&&i+"queueHooks",n=S.timers,r=Y.get(this);if(t)r[t]&&r[t].stop&&a(r[t]);else for(t in r)r[t]&&r[t].stop&&at.test(t)&&a(r[t]);for(t=n.length;t--;)n[t].elem!==this||null!=i&&n[t].queue!==i||(n[t].anim.stop(o),e=!1,n.splice(t,1));!e&&o||S.dequeue(this,i)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=Y.get(this),n=t[a+"queue"],r=t[a+"queueHooks"],i=S.timers,o=n?n.length:0;for(t.finish=!0,S.queue(this,a,[]),r&&r.stop&&r.stop.call(this,!0),e=i.length;e--;)i[e].elem===this&&i[e].queue===a&&(i[e].anim.stop(!0),i.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),S.each(["toggle","show","hide"],function(e,r){var i=S.fn[r];S.fn[r]=function(e,t,n){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(lt(r,!0),e,t,n)}}),S.each({slideDown:lt("show"),slideUp:lt("hide"),slideToggle:lt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,r){S.fn[e]=function(e,t,n){return this.animate(r,e,t,n)}}),S.timers=[],S.fx.tick=function(){var e,t=0,n=S.timers;for(tt=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||S.fx.stop(),tt=void 0},S.fx.timer=function(e){S.timers.push(e),S.fx.start()},S.fx.interval=13,S.fx.start=function(){nt||(nt=!0,st())},S.fx.stop=function(){nt=null},S.fx.speeds={slow:600,fast:200,_default:400},S.fn.delay=function(r,e){return r=S.fx&&S.fx.speeds[r]||r,e=e||"fx",this.queue(e,function(e,t){var n=C.setTimeout(e,r);t.stop=function(){C.clearTimeout(n)}})},rt=E.createElement("input"),it=E.createElement("select").appendChild(E.createElement("option")),rt.type="checkbox",y.checkOn=""!==rt.value,y.optSelected=it.selected,(rt=E.createElement("input")).value="t",rt.type="radio",y.radioValue="t"===rt.value;var pt,dt=S.expr.attrHandle;S.fn.extend({attr:function(e,t){return $(this,S.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){S.removeAttr(this,e)})}}),S.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?S.prop(e,t,n):(1===o&&S.isXMLDoc(e)||(i=S.attrHooks[t.toLowerCase()]||(S.expr.match.bool.test(t)?pt:void 0)),void 0!==n?null===n?void S.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=S.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!y.radioValue&&"radio"===t&&A(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(P);if(i&&1===e.nodeType)while(n=i[r++])e.removeAttribute(n)}}),pt={set:function(e,t,n){return!1===t?S.removeAttr(e,n):e.setAttribute(n,n),n}},S.each(S.expr.match.bool.source.match(/\w+/g),function(e,t){var a=dt[t]||S.find.attr;dt[t]=function(e,t,n){var r,i,o=t.toLowerCase();return n||(i=dt[o],dt[o]=r,r=null!=a(e,t,n)?o:null,dt[o]=i),r}});var ht=/^(?:input|select|textarea|button)$/i,gt=/^(?:a|area)$/i;function vt(e){return(e.match(P)||[]).join(" ")}function yt(e){return e.getAttribute&&e.getAttribute("class")||""}function mt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(P)||[]}S.fn.extend({prop:function(e,t){return $(this,S.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[S.propFix[e]||e]})}}),S.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&S.isXMLDoc(e)||(t=S.propFix[t]||t,i=S.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=S.find.attr(e,"tabindex");return t?parseInt(t,10):ht.test(e.nodeName)||gt.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),y.optSelected||(S.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),S.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){S.propFix[this.toLowerCase()]=this}),S.fn.extend({addClass:function(t){var e,n,r,i,o,a,s,u=0;if(m(t))return this.each(function(e){S(this).addClass(t.call(this,e,yt(this)))});if((e=mt(t)).length)while(n=this[u++])if(i=yt(n),r=1===n.nodeType&&" "+vt(i)+" "){a=0;while(o=e[a++])r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=vt(r))&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,r,i,o,a,s,u=0;if(m(t))return this.each(function(e){S(this).removeClass(t.call(this,e,yt(this)))});if(!arguments.length)return this.attr("class","");if((e=mt(t)).length)while(n=this[u++])if(i=yt(n),r=1===n.nodeType&&" "+vt(i)+" "){a=0;while(o=e[a++])while(-1<r.indexOf(" "+o+" "))r=r.replace(" "+o+" "," ");i!==(s=vt(r))&&n.setAttribute("class",s)}return this},toggleClass:function(i,t){var o=typeof i,a="string"===o||Array.isArray(i);return"boolean"==typeof t&&a?t?this.addClass(i):this.removeClass(i):m(i)?this.each(function(e){S(this).toggleClass(i.call(this,e,yt(this),t),t)}):this.each(function(){var e,t,n,r;if(a){t=0,n=S(this),r=mt(i);while(e=r[t++])n.hasClass(e)?n.removeClass(e):n.addClass(e)}else void 0!==i&&"boolean"!==o||((e=yt(this))&&Y.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===i?"":Y.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;t=" "+e+" ";while(n=this[r++])if(1===n.nodeType&&-1<(" "+vt(yt(n))+" ").indexOf(t))return!0;return!1}});var xt=/\r/g;S.fn.extend({val:function(n){var r,e,i,t=this[0];return arguments.length?(i=m(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=i?n.call(this,e,S(this).val()):n)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=S.map(t,function(e){return null==e?"":e+""})),(r=S.valHooks[this.type]||S.valHooks[this.nodeName.toLowerCase()])&&"set"in r&&void 0!==r.set(this,t,"value")||(this.value=t))})):t?(r=S.valHooks[t.type]||S.valHooks[t.nodeName.toLowerCase()])&&"get"in r&&void 0!==(e=r.get(t,"value"))?e:"string"==typeof(e=t.value)?e.replace(xt,""):null==e?"":e:void 0}}),S.extend({valHooks:{option:{get:function(e){var t=S.find.attr(e,"value");return null!=t?t:vt(S.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r<u;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!A(n.parentNode,"optgroup"))){if(t=S(n).val(),a)return t;s.push(t)}return s},set:function(e,t){var n,r,i=e.options,o=S.makeArray(t),a=i.length;while(a--)((r=i[a]).selected=-1<S.inArray(S.valHooks.option.get(r),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),S.each(["radio","checkbox"],function(){S.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<S.inArray(S(e).val(),t)}},y.checkOn||(S.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),y.focusin="onfocusin"in C;var bt=/^(?:focusinfocus|focusoutblur)$/,wt=function(e){e.stopPropagation()};S.extend(S.event,{trigger:function(e,t,n,r){var i,o,a,s,u,l,c,f,p=[n||E],d=v.call(e,"type")?e.type:e,h=v.call(e,"namespace")?e.namespace.split("."):[];if(o=f=a=n=n||E,3!==n.nodeType&&8!==n.nodeType&&!bt.test(d+S.event.triggered)&&(-1<d.indexOf(".")&&(d=(h=d.split(".")).shift(),h.sort()),u=d.indexOf(":")<0&&"on"+d,(e=e[S.expando]?e:new S.Event(d,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=h.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:S.makeArray(t,[e]),c=S.event.special[d]||{},r||!c.trigger||!1!==c.trigger.apply(n,t))){if(!r&&!c.noBubble&&!x(n)){for(s=c.delegateType||d,bt.test(s+d)||(o=o.parentNode);o;o=o.parentNode)p.push(o),a=o;a===(n.ownerDocument||E)&&p.push(a.defaultView||a.parentWindow||C)}i=0;while((o=p[i++])&&!e.isPropagationStopped())f=o,e.type=1<i?s:c.bindType||d,(l=(Y.get(o,"events")||Object.create(null))[e.type]&&Y.get(o,"handle"))&&l.apply(o,t),(l=u&&o[u])&&l.apply&&V(o)&&(e.result=l.apply(o,t),!1===e.result&&e.preventDefault());return e.type=d,r||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(p.pop(),t)||!V(n)||u&&m(n[d])&&!x(n)&&((a=n[u])&&(n[u]=null),S.event.triggered=d,e.isPropagationStopped()&&f.addEventListener(d,wt),n[d](),e.isPropagationStopped()&&f.removeEventListener(d,wt),S.event.triggered=void 0,a&&(n[u]=a)),e.result}},simulate:function(e,t,n){var r=S.extend(new S.Event,n,{type:e,isSimulated:!0});S.event.trigger(r,null,t)}}),S.fn.extend({trigger:function(e,t){return this.each(function(){S.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return S.event.trigger(e,t,n,!0)}}),y.focusin||S.each({focus:"focusin",blur:"focusout"},function(n,r){var i=function(e){S.event.simulate(r,e.target,S.event.fix(e))};S.event.special[r]={setup:function(){var e=this.ownerDocument||this.document||this,t=Y.access(e,r);t||e.addEventListener(n,i,!0),Y.access(e,r,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this.document||this,t=Y.access(e,r)-1;t?Y.access(e,r,t):(e.removeEventListener(n,i,!0),Y.remove(e,r))}}});var Tt=C.location,Ct={guid:Date.now()},Et=/\?/;S.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new C.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||S.error("Invalid XML: "+e),t};var St=/\[\]$/,kt=/\r?\n/g,At=/^(?:submit|button|image|reset|file)$/i,Nt=/^(?:input|select|textarea|keygen)/i;function Dt(n,e,r,i){var t;if(Array.isArray(e))S.each(e,function(e,t){r||St.test(n)?i(n,t):Dt(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,r,i)});else if(r||"object"!==w(e))i(n,e);else for(t in e)Dt(n+"["+t+"]",e[t],r,i)}S.param=function(e,t){var n,r=[],i=function(e,t){var n=m(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!S.isPlainObject(e))S.each(e,function(){i(this.name,this.value)});else for(n in e)Dt(n,e[n],t,i);return r.join("&")},S.fn.extend({serialize:function(){return S.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=S.prop(this,"elements");return e?S.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!S(this).is(":disabled")&&Nt.test(this.nodeName)&&!At.test(e)&&(this.checked||!pe.test(e))}).map(function(e,t){var n=S(this).val();return null==n?null:Array.isArray(n)?S.map(n,function(e){return{name:t.name,value:e.replace(kt,"\r\n")}}):{name:t.name,value:n.replace(kt,"\r\n")}}).get()}});var jt=/%20/g,qt=/#.*$/,Lt=/([?&])_=[^&]*/,Ht=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ot=/^(?:GET|HEAD)$/,Pt=/^\/\//,Rt={},Mt={},It="*/".concat("*"),Wt=E.createElement("a");function Ft(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,r=0,i=e.toLowerCase().match(P)||[];if(m(t))while(n=i[r++])"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function Bt(t,i,o,a){var s={},u=t===Mt;function l(e){var r;return s[e]=!0,S.each(t[e]||[],function(e,t){var n=t(i,o,a);return"string"!=typeof n||u||s[n]?u?!(r=n):void 0:(i.dataTypes.unshift(n),l(n),!1)}),r}return l(i.dataTypes[0])||!s["*"]&&l("*")}function $t(e,t){var n,r,i=S.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&S.extend(!0,e,r),e}Wt.href=Tt.href,S.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Tt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Tt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":It,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":S.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?$t($t(e,S.ajaxSettings),t):$t(S.ajaxSettings,e)},ajaxPrefilter:Ft(Rt),ajaxTransport:Ft(Mt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var c,f,p,n,d,r,h,g,i,o,v=S.ajaxSetup({},t),y=v.context||v,m=v.context&&(y.nodeType||y.jquery)?S(y):S.event,x=S.Deferred(),b=S.Callbacks("once memory"),w=v.statusCode||{},a={},s={},u="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(h){if(!n){n={};while(t=Ht.exec(p))n[t[1].toLowerCase()+" "]=(n[t[1].toLowerCase()+" "]||[]).concat(t[2])}t=n[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return h?p:null},setRequestHeader:function(e,t){return null==h&&(e=s[e.toLowerCase()]=s[e.toLowerCase()]||e,a[e]=t),this},overrideMimeType:function(e){return null==h&&(v.mimeType=e),this},statusCode:function(e){var t;if(e)if(h)T.always(e[T.status]);else for(t in e)w[t]=[w[t],e[t]];return this},abort:function(e){var t=e||u;return c&&c.abort(t),l(0,t),this}};if(x.promise(T),v.url=((e||v.url||Tt.href)+"").replace(Pt,Tt.protocol+"//"),v.type=t.method||t.type||v.method||v.type,v.dataTypes=(v.dataType||"*").toLowerCase().match(P)||[""],null==v.crossDomain){r=E.createElement("a");try{r.href=v.url,r.href=r.href,v.crossDomain=Wt.protocol+"//"+Wt.host!=r.protocol+"//"+r.host}catch(e){v.crossDomain=!0}}if(v.data&&v.processData&&"string"!=typeof v.data&&(v.data=S.param(v.data,v.traditional)),Bt(Rt,v,t,T),h)return T;for(i in(g=S.event&&v.global)&&0==S.active++&&S.event.trigger("ajaxStart"),v.type=v.type.toUpperCase(),v.hasContent=!Ot.test(v.type),f=v.url.replace(qt,""),v.hasContent?v.data&&v.processData&&0===(v.contentType||"").indexOf("application/x-www-form-urlencoded")&&(v.data=v.data.replace(jt,"+")):(o=v.url.slice(f.length),v.data&&(v.processData||"string"==typeof v.data)&&(f+=(Et.test(f)?"&":"?")+v.data,delete v.data),!1===v.cache&&(f=f.replace(Lt,"$1"),o=(Et.test(f)?"&":"?")+"_="+Ct.guid+++o),v.url=f+o),v.ifModified&&(S.lastModified[f]&&T.setRequestHeader("If-Modified-Since",S.lastModified[f]),S.etag[f]&&T.setRequestHeader("If-None-Match",S.etag[f])),(v.data&&v.hasContent&&!1!==v.contentType||t.contentType)&&T.setRequestHeader("Content-Type",v.contentType),T.setRequestHeader("Accept",v.dataTypes[0]&&v.accepts[v.dataTypes[0]]?v.accepts[v.dataTypes[0]]+("*"!==v.dataTypes[0]?", "+It+"; q=0.01":""):v.accepts["*"]),v.headers)T.setRequestHeader(i,v.headers[i]);if(v.beforeSend&&(!1===v.beforeSend.call(y,T,v)||h))return T.abort();if(u="abort",b.add(v.complete),T.done(v.success),T.fail(v.error),c=Bt(Mt,v,t,T)){if(T.readyState=1,g&&m.trigger("ajaxSend",[T,v]),h)return T;v.async&&0<v.timeout&&(d=C.setTimeout(function(){T.abort("timeout")},v.timeout));try{h=!1,c.send(a,l)}catch(e){if(h)throw e;l(-1,e)}}else l(-1,"No Transport");function l(e,t,n,r){var i,o,a,s,u,l=t;h||(h=!0,d&&C.clearTimeout(d),c=void 0,p=r||"",T.readyState=0<e?4:0,i=200<=e&&e<300||304===e,n&&(s=function(e,t,n){var r,i,o,a,s=e.contents,u=e.dataTypes;while("*"===u[0])u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(v,T,n)),!i&&-1<S.inArray("script",v.dataTypes)&&(v.converters["text script"]=function(){}),s=function(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];o=c.shift();while(o)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(v,s,T,i),i?(v.ifModified&&((u=T.getResponseHeader("Last-Modified"))&&(S.lastModified[f]=u),(u=T.getResponseHeader("etag"))&&(S.etag[f]=u)),204===e||"HEAD"===v.type?l="nocontent":304===e?l="notmodified":(l=s.state,o=s.data,i=!(a=s.error))):(a=l,!e&&l||(l="error",e<0&&(e=0))),T.status=e,T.statusText=(t||l)+"",i?x.resolveWith(y,[o,l,T]):x.rejectWith(y,[T,l,a]),T.statusCode(w),w=void 0,g&&m.trigger(i?"ajaxSuccess":"ajaxError",[T,v,i?o:a]),b.fireWith(y,[T,l]),g&&(m.trigger("ajaxComplete",[T,v]),--S.active||S.event.trigger("ajaxStop")))}return T},getJSON:function(e,t,n){return S.get(e,t,n,"json")},getScript:function(e,t){return S.get(e,void 0,t,"script")}}),S.each(["get","post"],function(e,i){S[i]=function(e,t,n,r){return m(t)&&(r=r||n,n=t,t=void 0),S.ajax(S.extend({url:e,type:i,dataType:r,data:t,success:n},S.isPlainObject(e)&&e))}}),S.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),S._evalUrl=function(e,t,n){return S.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){S.globalEval(e,t,n)}})},S.fn.extend({wrapAll:function(e){var t;return this[0]&&(m(e)&&(e=e.call(this[0])),t=S(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(n){return m(n)?this.each(function(e){S(this).wrapInner(n.call(this,e))}):this.each(function(){var e=S(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=m(t);return this.each(function(e){S(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){S(this).replaceWith(this.childNodes)}),this}}),S.expr.pseudos.hidden=function(e){return!S.expr.pseudos.visible(e)},S.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},S.ajaxSettings.xhr=function(){try{return new C.XMLHttpRequest}catch(e){}};var _t={0:200,1223:204},zt=S.ajaxSettings.xhr();y.cors=!!zt&&"withCredentials"in zt,y.ajax=zt=!!zt,S.ajaxTransport(function(i){var o,a;if(y.cors||zt&&!i.crossDomain)return{send:function(e,t){var n,r=i.xhr();if(r.open(i.type,i.url,i.async,i.username,i.password),i.xhrFields)for(n in i.xhrFields)r[n]=i.xhrFields[n];for(n in i.mimeType&&r.overrideMimeType&&r.overrideMimeType(i.mimeType),i.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)r.setRequestHeader(n,e[n]);o=function(e){return function(){o&&(o=a=r.onload=r.onerror=r.onabort=r.ontimeout=r.onreadystatechange=null,"abort"===e?r.abort():"error"===e?"number"!=typeof r.status?t(0,"error"):t(r.status,r.statusText):t(_t[r.status]||r.status,r.statusText,"text"!==(r.responseType||"text")||"string"!=typeof r.responseText?{binary:r.response}:{text:r.responseText},r.getAllResponseHeaders()))}},r.onload=o(),a=r.onerror=r.ontimeout=o("error"),void 0!==r.onabort?r.onabort=a:r.onreadystatechange=function(){4===r.readyState&&C.setTimeout(function(){o&&a()})},o=o("abort");try{r.send(i.hasContent&&i.data||null)}catch(e){if(o)throw e}},abort:function(){o&&o()}}}),S.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),S.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return S.globalEval(e),e}}}),S.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),S.ajaxTransport("script",function(n){var r,i;if(n.crossDomain||n.scriptAttrs)return{send:function(e,t){r=S("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),E.head.appendChild(r[0])},abort:function(){i&&i()}}});var Ut,Xt=[],Vt=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Xt.pop()||S.expando+"_"+Ct.guid++;return this[e]=!0,e}}),S.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Vt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Vt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Vt,"$1"+r):!1!==e.jsonp&&(e.url+=(Et.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||S.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=C[r],C[r]=function(){o=arguments},n.always(function(){void 0===i?S(C).removeProp(r):C[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Xt.push(r)),o&&m(i)&&i(o[0]),o=i=void 0}),"script"}),y.createHTMLDocument=((Ut=E.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Ut.childNodes.length),S.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((r=(t=E.implementation.createHTMLDocument("")).createElement("base")).href=E.location.href,t.head.appendChild(r)):t=E),o=!n&&[],(i=N.exec(e))?[t.createElement(i[1])]:(i=xe([e],t,o),o&&o.length&&S(o).remove(),S.merge([],i.childNodes)));var r,i,o},S.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1<s&&(r=vt(e.slice(s)),e=e.slice(0,s)),m(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),0<a.length&&S.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?S("<div>").append(S.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},S.expr.pseudos.animated=function(t){return S.grep(S.timers,function(e){return t===e.elem}).length},S.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=S.css(e,"position"),c=S(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=S.css(e,"top"),u=S.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m(t)&&(t=t.call(e,n,S.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):("number"==typeof f.top&&(f.top+="px"),"number"==typeof f.left&&(f.left+="px"),c.css(f))}},S.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){S.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===S.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===S.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=S(e).offset()).top+=S.css(e,"borderTopWidth",!0),i.left+=S.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-S.css(r,"marginTop",!0),left:t.left-i.left-S.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===S.css(e,"position"))e=e.offsetParent;return e||re})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;S.fn[t]=function(e){return $(this,function(e,t,n){var r;if(x(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),S.each(["top","left"],function(e,n){S.cssHooks[n]=$e(y.pixelPosition,function(e,t){if(t)return t=Be(e,n),Me.test(t)?S(e).position()[n]+"px":t})}),S.each({Height:"height",Width:"width"},function(a,s){S.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){S.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return $(this,function(e,t,n){var r;return x(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?S.css(e,t,i):S.style(e,t,n,i)},s,n?e:void 0,n)}})}),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){S.fn[t]=function(e){return this.on(t,e)}}),S.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),S.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){S.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}});var Gt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;S.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),m(e))return r=s.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(s.call(arguments)))}).guid=e.guid=e.guid||S.guid++,i},S.holdReady=function(e){e?S.readyWait++:S.ready(!0)},S.isArray=Array.isArray,S.parseJSON=JSON.parse,S.nodeName=A,S.isFunction=m,S.isWindow=x,S.camelCase=X,S.type=w,S.now=Date.now,S.isNumeric=function(e){var t=S.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},S.trim=function(e){return null==e?"":(e+"").replace(Gt,"")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return S});var Yt=C.jQuery,Qt=C.$;return S.noConflict=function(e){return C.$===S&&(C.$=Qt),e&&C.jQuery===S&&(C.jQuery=Yt),S},"undefined"==typeof e&&(C.jQuery=C.$=S),S}); diff --git a/docs/_static/language_data.js b/docs/_static/language_data.js index 2e22b06ab..ebe2f03bf 100644 --- a/docs/_static/language_data.js +++ b/docs/_static/language_data.js @@ -10,7 +10,7 @@ * */ -var stopwords = ["a", "and", "are", "as", "at", "be", "but", "by", "for", "if", "in", "into", "is", "it", "near", "no", "not", "of", "on", "or", "such", "that", "the", "their", "then", "there", "these", "they", "this", "to", "was", "will", "with"]; +var stopwords = ["a","and","are","as","at","be","but","by","for","if","in","into","is","it","near","no","not","of","on","or","such","that","the","their","then","there","these","they","this","to","was","will","with"]; /* Non-minified version is copied as a separate JS file, is available */ @@ -197,3 +197,101 @@ var Stemmer = function() { } } + + + +var splitChars = (function() { + var result = {}; + var singles = [96, 180, 187, 191, 215, 247, 749, 885, 903, 907, 909, 930, 1014, 1648, + 1748, 1809, 2416, 2473, 2481, 2526, 2601, 2609, 2612, 2615, 2653, 2702, + 2706, 2729, 2737, 2740, 2857, 2865, 2868, 2910, 2928, 2948, 2961, 2971, + 2973, 3085, 3089, 3113, 3124, 3213, 3217, 3241, 3252, 3295, 3341, 3345, + 3369, 3506, 3516, 3633, 3715, 3721, 3736, 3744, 3748, 3750, 3756, 3761, + 3781, 3912, 4239, 4347, 4681, 4695, 4697, 4745, 4785, 4799, 4801, 4823, + 4881, 5760, 5901, 5997, 6313, 7405, 8024, 8026, 8028, 8030, 8117, 8125, + 8133, 8181, 8468, 8485, 8487, 8489, 8494, 8527, 11311, 11359, 11687, 11695, + 11703, 11711, 11719, 11727, 11735, 12448, 12539, 43010, 43014, 43019, 43587, + 43696, 43713, 64286, 64297, 64311, 64317, 64319, 64322, 64325, 65141]; + var i, j, start, end; + for (i = 0; i < singles.length; i++) { + result[singles[i]] = true; + } + var ranges = [[0, 47], [58, 64], [91, 94], [123, 169], [171, 177], [182, 184], [706, 709], + [722, 735], [741, 747], [751, 879], [888, 889], [894, 901], [1154, 1161], + [1318, 1328], [1367, 1368], [1370, 1376], [1416, 1487], [1515, 1519], [1523, 1568], + [1611, 1631], [1642, 1645], [1750, 1764], [1767, 1773], [1789, 1790], [1792, 1807], + [1840, 1868], [1958, 1968], [1970, 1983], [2027, 2035], [2038, 2041], [2043, 2047], + [2070, 2073], [2075, 2083], [2085, 2087], [2089, 2307], [2362, 2364], [2366, 2383], + [2385, 2391], [2402, 2405], [2419, 2424], [2432, 2436], [2445, 2446], [2449, 2450], + [2483, 2485], [2490, 2492], [2494, 2509], [2511, 2523], [2530, 2533], [2546, 2547], + [2554, 2564], [2571, 2574], [2577, 2578], [2618, 2648], [2655, 2661], [2672, 2673], + [2677, 2692], [2746, 2748], [2750, 2767], [2769, 2783], [2786, 2789], [2800, 2820], + [2829, 2830], [2833, 2834], [2874, 2876], [2878, 2907], [2914, 2917], [2930, 2946], + [2955, 2957], [2966, 2968], [2976, 2978], [2981, 2983], [2987, 2989], [3002, 3023], + [3025, 3045], [3059, 3076], [3130, 3132], [3134, 3159], [3162, 3167], [3170, 3173], + [3184, 3191], [3199, 3204], [3258, 3260], [3262, 3293], [3298, 3301], [3312, 3332], + [3386, 3388], [3390, 3423], [3426, 3429], [3446, 3449], [3456, 3460], [3479, 3481], + [3518, 3519], [3527, 3584], [3636, 3647], [3655, 3663], [3674, 3712], [3717, 3718], + [3723, 3724], [3726, 3731], [3752, 3753], [3764, 3772], [3774, 3775], [3783, 3791], + [3802, 3803], [3806, 3839], [3841, 3871], [3892, 3903], [3949, 3975], [3980, 4095], + [4139, 4158], [4170, 4175], [4182, 4185], [4190, 4192], [4194, 4196], [4199, 4205], + [4209, 4212], [4226, 4237], [4250, 4255], [4294, 4303], [4349, 4351], [4686, 4687], + [4702, 4703], [4750, 4751], [4790, 4791], [4806, 4807], [4886, 4887], [4955, 4968], + [4989, 4991], [5008, 5023], [5109, 5120], [5741, 5742], [5787, 5791], [5867, 5869], + [5873, 5887], [5906, 5919], [5938, 5951], [5970, 5983], [6001, 6015], [6068, 6102], + [6104, 6107], [6109, 6111], [6122, 6127], [6138, 6159], [6170, 6175], [6264, 6271], + [6315, 6319], [6390, 6399], [6429, 6469], [6510, 6511], [6517, 6527], [6572, 6592], + [6600, 6607], [6619, 6655], [6679, 6687], [6741, 6783], [6794, 6799], [6810, 6822], + [6824, 6916], [6964, 6980], [6988, 6991], [7002, 7042], [7073, 7085], [7098, 7167], + [7204, 7231], [7242, 7244], [7294, 7400], [7410, 7423], [7616, 7679], [7958, 7959], + [7966, 7967], [8006, 8007], [8014, 8015], [8062, 8063], [8127, 8129], [8141, 8143], + [8148, 8149], [8156, 8159], [8173, 8177], [8189, 8303], [8306, 8307], [8314, 8318], + [8330, 8335], [8341, 8449], [8451, 8454], [8456, 8457], [8470, 8472], [8478, 8483], + [8506, 8507], [8512, 8516], [8522, 8525], [8586, 9311], [9372, 9449], [9472, 10101], + [10132, 11263], [11493, 11498], [11503, 11516], [11518, 11519], [11558, 11567], + [11622, 11630], [11632, 11647], [11671, 11679], [11743, 11822], [11824, 12292], + [12296, 12320], [12330, 12336], [12342, 12343], [12349, 12352], [12439, 12444], + [12544, 12548], [12590, 12592], [12687, 12689], [12694, 12703], [12728, 12783], + [12800, 12831], [12842, 12880], [12896, 12927], [12938, 12976], [12992, 13311], + [19894, 19967], [40908, 40959], [42125, 42191], [42238, 42239], [42509, 42511], + [42540, 42559], [42592, 42593], [42607, 42622], [42648, 42655], [42736, 42774], + [42784, 42785], [42889, 42890], [42893, 43002], [43043, 43055], [43062, 43071], + [43124, 43137], [43188, 43215], [43226, 43249], [43256, 43258], [43260, 43263], + [43302, 43311], [43335, 43359], [43389, 43395], [43443, 43470], [43482, 43519], + [43561, 43583], [43596, 43599], [43610, 43615], [43639, 43641], [43643, 43647], + [43698, 43700], [43703, 43704], [43710, 43711], [43715, 43738], [43742, 43967], + [44003, 44015], [44026, 44031], [55204, 55215], [55239, 55242], [55292, 55295], + [57344, 63743], [64046, 64047], [64110, 64111], [64218, 64255], [64263, 64274], + [64280, 64284], [64434, 64466], [64830, 64847], [64912, 64913], [64968, 65007], + [65020, 65135], [65277, 65295], [65306, 65312], [65339, 65344], [65371, 65381], + [65471, 65473], [65480, 65481], [65488, 65489], [65496, 65497]]; + for (i = 0; i < ranges.length; i++) { + start = ranges[i][0]; + end = ranges[i][1]; + for (j = start; j <= end; j++) { + result[j] = true; + } + } + return result; +})(); + +function splitQuery(query) { + var result = []; + var start = -1; + for (var i = 0; i < query.length; i++) { + if (splitChars[query.charCodeAt(i)]) { + if (start !== -1) { + result.push(query.slice(start, i)); + start = -1; + } + } else if (start === -1) { + start = i; + } + } + if (start !== -1) { + result.push(query.slice(start)); + } + return result; +} + + diff --git a/docs/_static/pygments.css b/docs/_static/pygments.css index 08bec689d..631bc92ff 100644 --- a/docs/_static/pygments.css +++ b/docs/_static/pygments.css @@ -1,26 +1,21 @@ -pre { line-height: 125%; } -td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } -span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } -td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } -span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } .highlight .hll { background-color: #ffffcc } -.highlight { background: #f8f8f8; } -.highlight .c { color: #3D7B7B; font-style: italic } /* Comment */ +.highlight { background: #f8f8f8; } +.highlight .c { color: #408080; font-style: italic } /* Comment */ .highlight .err { border: 1px solid #FF0000 } /* Error */ .highlight .k { color: #008000; font-weight: bold } /* Keyword */ .highlight .o { color: #666666 } /* Operator */ -.highlight .ch { color: #3D7B7B; font-style: italic } /* Comment.Hashbang */ -.highlight .cm { color: #3D7B7B; font-style: italic } /* Comment.Multiline */ -.highlight .cp { color: #9C6500 } /* Comment.Preproc */ -.highlight .cpf { color: #3D7B7B; font-style: italic } /* Comment.PreprocFile */ -.highlight .c1 { color: #3D7B7B; font-style: italic } /* Comment.Single */ -.highlight .cs { color: #3D7B7B; font-style: italic } /* Comment.Special */ +.highlight .ch { color: #408080; font-style: italic } /* Comment.Hashbang */ +.highlight .cm { color: #408080; font-style: italic } /* Comment.Multiline */ +.highlight .cp { color: #BC7A00 } /* Comment.Preproc */ +.highlight .cpf { color: #408080; font-style: italic } /* Comment.PreprocFile */ +.highlight .c1 { color: #408080; font-style: italic } /* Comment.Single */ +.highlight .cs { color: #408080; font-style: italic } /* Comment.Special */ .highlight .gd { color: #A00000 } /* Generic.Deleted */ .highlight .ge { font-style: italic } /* Generic.Emph */ -.highlight .gr { color: #E40000 } /* Generic.Error */ +.highlight .gr { color: #FF0000 } /* Generic.Error */ .highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ -.highlight .gi { color: #008400 } /* Generic.Inserted */ -.highlight .go { color: #717171 } /* Generic.Output */ +.highlight .gi { color: #00A000 } /* Generic.Inserted */ +.highlight .go { color: #888888 } /* Generic.Output */ .highlight .gp { color: #000080; font-weight: bold } /* Generic.Prompt */ .highlight .gs { font-weight: bold } /* Generic.Strong */ .highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ @@ -33,15 +28,15 @@ span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: .highlight .kt { color: #B00040 } /* Keyword.Type */ .highlight .m { color: #666666 } /* Literal.Number */ .highlight .s { color: #BA2121 } /* Literal.String */ -.highlight .na { color: #687822 } /* Name.Attribute */ +.highlight .na { color: #7D9029 } /* Name.Attribute */ .highlight .nb { color: #008000 } /* Name.Builtin */ .highlight .nc { color: #0000FF; font-weight: bold } /* Name.Class */ .highlight .no { color: #880000 } /* Name.Constant */ .highlight .nd { color: #AA22FF } /* Name.Decorator */ -.highlight .ni { color: #717171; font-weight: bold } /* Name.Entity */ -.highlight .ne { color: #CB3F38; font-weight: bold } /* Name.Exception */ +.highlight .ni { color: #999999; font-weight: bold } /* Name.Entity */ +.highlight .ne { color: #D2413A; font-weight: bold } /* Name.Exception */ .highlight .nf { color: #0000FF } /* Name.Function */ -.highlight .nl { color: #767600 } /* Name.Label */ +.highlight .nl { color: #A0A000 } /* Name.Label */ .highlight .nn { color: #0000FF; font-weight: bold } /* Name.Namespace */ .highlight .nt { color: #008000; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #19177C } /* Name.Variable */ @@ -58,11 +53,11 @@ span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: .highlight .dl { color: #BA2121 } /* Literal.String.Delimiter */ .highlight .sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */ .highlight .s2 { color: #BA2121 } /* Literal.String.Double */ -.highlight .se { color: #AA5D1F; font-weight: bold } /* Literal.String.Escape */ +.highlight .se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */ .highlight .sh { color: #BA2121 } /* Literal.String.Heredoc */ -.highlight .si { color: #A45A77; font-weight: bold } /* Literal.String.Interpol */ +.highlight .si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */ .highlight .sx { color: #008000 } /* Literal.String.Other */ -.highlight .sr { color: #A45A77 } /* Literal.String.Regex */ +.highlight .sr { color: #BB6688 } /* Literal.String.Regex */ .highlight .s1 { color: #BA2121 } /* Literal.String.Single */ .highlight .ss { color: #19177C } /* Literal.String.Symbol */ .highlight .bp { color: #008000 } /* Name.Builtin.Pseudo */ diff --git a/docs/_static/searchtools.js b/docs/_static/searchtools.js index ac4d5861f..0a44e8582 100644 --- a/docs/_static/searchtools.js +++ b/docs/_static/searchtools.js @@ -8,20 +8,18 @@ * :license: BSD, see LICENSE for details. * */ -"use strict"; -/** - * Simple result scoring code. - */ -if (typeof Scorer === "undefined") { +if (!Scorer) { + /** + * Simple result scoring code. + */ var Scorer = { // Implement the following function to further tweak the score for each result - // The function takes a result array [docname, title, anchor, descr, score, filename] + // The function takes a result array [filename, title, anchor, descr, score] // and returns the new score. /* - score: result => { - const [docname, title, anchor, descr, score, filename] = result - return score + score: function(result) { + return result[4]; }, */ @@ -30,11 +28,9 @@ if (typeof Scorer === "undefined") { // or matches in the last dotted part of the object name objPartialMatch: 6, // Additive scores depending on the priority of the object - objPrio: { - 0: 15, // used to be importantResults - 1: 5, // used to be objectResults - 2: -5, // used to be unimportantResults - }, + objPrio: {0: 15, // used to be importantResults + 1: 5, // used to be objectResults + 2: -5}, // used to be unimportantResults // Used when the priority is not in the mapping. objPrioDefault: 0, @@ -43,455 +39,452 @@ if (typeof Scorer === "undefined") { partialTitle: 7, // query found in terms term: 5, - partialTerm: 2, + partialTerm: 2 }; } -const _removeChildren = (element) => { - while (element && element.lastChild) element.removeChild(element.lastChild); -}; - -/** - * See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions#escaping - */ -const _escapeRegExp = (string) => - string.replace(/[.*+\-?^${}()|[\]\\]/g, "\\$&"); // $& means the whole matched string - -const _displayItem = (item, highlightTerms, searchTerms) => { - const docBuilder = DOCUMENTATION_OPTIONS.BUILDER; - const docUrlRoot = DOCUMENTATION_OPTIONS.URL_ROOT; - const docFileSuffix = DOCUMENTATION_OPTIONS.FILE_SUFFIX; - const docLinkSuffix = DOCUMENTATION_OPTIONS.LINK_SUFFIX; - const showSearchSummary = DOCUMENTATION_OPTIONS.SHOW_SEARCH_SUMMARY; - - const [docName, title, anchor, descr] = item; - - let listItem = document.createElement("li"); - let requestUrl; - let linkUrl; - if (docBuilder === "dirhtml") { - // dirhtml builder - let dirname = docName + "/"; - if (dirname.match(/\/index\/$/)) - dirname = dirname.substring(0, dirname.length - 6); - else if (dirname === "index/") dirname = ""; - requestUrl = docUrlRoot + dirname; - linkUrl = requestUrl; - } else { - // normal html builders - requestUrl = docUrlRoot + docName + docFileSuffix; - linkUrl = docName + docLinkSuffix; - } - const params = new URLSearchParams(); - params.set("highlight", [...highlightTerms].join(" ")); - let linkEl = listItem.appendChild(document.createElement("a")); - linkEl.href = linkUrl + "?" + params.toString() + anchor; - linkEl.innerHTML = title; - if (descr) - listItem.appendChild(document.createElement("span")).innerText = - " (" + descr + ")"; - else if (showSearchSummary) - fetch(requestUrl) - .then((responseData) => responseData.text()) - .then((data) => { - if (data) - listItem.appendChild( - Search.makeSearchSummary(data, searchTerms, highlightTerms) - ); - }); - Search.output.appendChild(listItem); -}; -const _finishSearch = (resultCount) => { - Search.stopPulse(); - Search.title.innerText = _("Search Results"); - if (!resultCount) - Search.status.innerText = Documentation.gettext( - "Your search did not match any documents. Please make sure that all words are spelled correctly and that you've selected enough categories." - ); - else - Search.status.innerText = _( - `Search finished, found ${resultCount} page(s) matching the search query.` - ); -}; -const _displayNextItem = ( - results, - resultCount, - highlightTerms, - searchTerms -) => { - // results left, load the summary and display it - // this is intended to be dynamic (don't sub resultsCount) - if (results.length) { - _displayItem(results.pop(), highlightTerms, searchTerms); - setTimeout( - () => _displayNextItem(results, resultCount, highlightTerms, searchTerms), - 5 - ); +if (!splitQuery) { + function splitQuery(query) { + return query.split(/\s+/); } - // search finished, update title and status message - else _finishSearch(resultCount); -}; - -/** - * Default splitQuery function. Can be overridden in ``sphinx.search`` with a - * custom function per language. - * - * The regular expression works by splitting the string on consecutive characters - * that are not Unicode letters, numbers, underscores, or emoji characters. - * This is the same as ``\W+`` in Python, preserving the surrogate pair area. - */ -if (typeof splitQuery === "undefined") { - var splitQuery = (query) => query - .split(/[^\p{Letter}\p{Number}_\p{Emoji_Presentation}]+/gu) - .filter(term => term) // remove remaining empty strings } /** * Search Module */ -const Search = { - _index: null, - _queued_query: null, - _pulse_status: -1, - - htmlToText: (htmlString) => { - const htmlElement = document - .createRange() - .createContextualFragment(htmlString); - _removeChildren(htmlElement.querySelectorAll(".headerlink")); - const docContent = htmlElement.querySelector('[role="main"]'); - if (docContent !== undefined) return docContent.textContent; - console.warn( - "Content block not found. Sphinx search tries to obtain it via '[role=main]'. Could you check your theme or template." - ); - return ""; +var Search = { + + _index : null, + _queued_query : null, + _pulse_status : -1, + + htmlToText : function(htmlString) { + var virtualDocument = document.implementation.createHTMLDocument('virtual'); + var htmlElement = $(htmlString, virtualDocument); + htmlElement.find('.headerlink').remove(); + docContent = htmlElement.find('[role=main]')[0]; + if(docContent === undefined) { + console.warn("Content block not found. Sphinx search tries to obtain it " + + "via '[role=main]'. Could you check your theme or template."); + return ""; + } + return docContent.textContent || docContent.innerText; }, - init: () => { - const query = new URLSearchParams(window.location.search).get("q"); - document - .querySelectorAll('input[name="q"]') - .forEach((el) => (el.value = query)); - if (query) Search.performSearch(query); + init : function() { + var params = $.getQueryParameters(); + if (params.q) { + var query = params.q[0]; + $('input[name="q"]')[0].value = query; + this.performSearch(query); + } }, - loadIndex: (url) => - (document.body.appendChild(document.createElement("script")).src = url), + loadIndex : function(url) { + $.ajax({type: "GET", url: url, data: null, + dataType: "script", cache: true, + complete: function(jqxhr, textstatus) { + if (textstatus != "success") { + document.getElementById("searchindexloader").src = url; + } + }}); + }, - setIndex: (index) => { - Search._index = index; - if (Search._queued_query !== null) { - const query = Search._queued_query; - Search._queued_query = null; - Search.query(query); + setIndex : function(index) { + var q; + this._index = index; + if ((q = this._queued_query) !== null) { + this._queued_query = null; + Search.query(q); } }, - hasIndex: () => Search._index !== null, - - deferQuery: (query) => (Search._queued_query = query), + hasIndex : function() { + return this._index !== null; + }, - stopPulse: () => (Search._pulse_status = -1), + deferQuery : function(query) { + this._queued_query = query; + }, - startPulse: () => { - if (Search._pulse_status >= 0) return; + stopPulse : function() { + this._pulse_status = 0; + }, - const pulse = () => { + startPulse : function() { + if (this._pulse_status >= 0) + return; + function pulse() { + var i; Search._pulse_status = (Search._pulse_status + 1) % 4; - Search.dots.innerText = ".".repeat(Search._pulse_status); - if (Search._pulse_status >= 0) window.setTimeout(pulse, 500); - }; + var dotString = ''; + for (i = 0; i < Search._pulse_status; i++) + dotString += '.'; + Search.dots.text(dotString); + if (Search._pulse_status > -1) + window.setTimeout(pulse, 500); + } pulse(); }, /** * perform a search for something (or wait until index is loaded) */ - performSearch: (query) => { + performSearch : function(query) { // create the required interface elements - const searchText = document.createElement("h2"); - searchText.textContent = _("Searching"); - const searchSummary = document.createElement("p"); - searchSummary.classList.add("search-summary"); - searchSummary.innerText = ""; - const searchList = document.createElement("ul"); - searchList.classList.add("search"); - - const out = document.getElementById("search-results"); - Search.title = out.appendChild(searchText); - Search.dots = Search.title.appendChild(document.createElement("span")); - Search.status = out.appendChild(searchSummary); - Search.output = out.appendChild(searchList); - - const searchProgress = document.getElementById("search-progress"); - // Some themes don't use the search progress node - if (searchProgress) { - searchProgress.innerText = _("Preparing search..."); - } - Search.startPulse(); + this.out = $('#search-results'); + this.title = $('<h2>' + _('Searching') + '</h2>').appendTo(this.out); + this.dots = $('<span></span>').appendTo(this.title); + this.status = $('<p class="search-summary"> </p>').appendTo(this.out); + this.output = $('<ul class="search"/>').appendTo(this.out); + + $('#search-progress').text(_('Preparing search...')); + this.startPulse(); // index already loaded, the browser was quick! - if (Search.hasIndex()) Search.query(query); - else Search.deferQuery(query); + if (this.hasIndex()) + this.query(query); + else + this.deferQuery(query); }, /** * execute search (requires search index to be loaded) */ - query: (query) => { - // stem the search terms and add them to the correct list - const stemmer = new Stemmer(); - const searchTerms = new Set(); - const excludedTerms = new Set(); - const highlightTerms = new Set(); - const objectTerms = new Set(splitQuery(query.toLowerCase().trim())); - splitQuery(query.trim()).forEach((queryTerm) => { - const queryTermLower = queryTerm.toLowerCase(); - - // maybe skip this "word" - // stopwords array is from language_data.js - if ( - stopwords.indexOf(queryTermLower) !== -1 || - queryTerm.match(/^\d+$/) - ) - return; + query : function(query) { + var i; + + // stem the searchterms and add them to the correct list + var stemmer = new Stemmer(); + var searchterms = []; + var excluded = []; + var hlterms = []; + var tmp = splitQuery(query); + var objectterms = []; + for (i = 0; i < tmp.length; i++) { + if (tmp[i] !== "") { + objectterms.push(tmp[i].toLowerCase()); + } + if ($u.indexOf(stopwords, tmp[i].toLowerCase()) != -1 || tmp[i] === "") { + // skip this "word" + continue; + } // stem the word - let word = stemmer.stemWord(queryTermLower); + var word = stemmer.stemWord(tmp[i].toLowerCase()); + var toAppend; // select the correct list - if (word[0] === "-") excludedTerms.add(word.substr(1)); + if (word[0] == '-') { + toAppend = excluded; + word = word.substr(1); + } else { - searchTerms.add(word); - highlightTerms.add(queryTermLower); + toAppend = searchterms; + hlterms.push(tmp[i].toLowerCase()); } - }); + // only add if not already in the list + if (!$u.contains(toAppend, word)) + toAppend.push(word); + } + var highlightstring = '?highlight=' + $.urlencode(hlterms.join(" ")); - // console.debug("SEARCH: searching for:"); - // console.info("required: ", [...searchTerms]); - // console.info("excluded: ", [...excludedTerms]); + // console.debug('SEARCH: searching for:'); + // console.info('required: ', searchterms); + // console.info('excluded: ', excluded); + + // prepare search + var terms = this._index.terms; + var titleterms = this._index.titleterms; - // array of [docname, title, anchor, descr, score, filename] - let results = []; - _removeChildren(document.getElementById("search-progress")); + // array of [filename, title, anchor, descr, score] + var results = []; + $('#search-progress').empty(); // lookup as object - objectTerms.forEach((term) => - results.push(...Search.performObjectSearch(term, objectTerms)) - ); + for (i = 0; i < objectterms.length; i++) { + var others = [].concat(objectterms.slice(0, i), + objectterms.slice(i+1, objectterms.length)); + results = results.concat(this.performObjectSearch(objectterms[i], others)); + } // lookup as search terms in fulltext - results.push(...Search.performTermsSearch(searchTerms, excludedTerms)); + results = results.concat(this.performTermsSearch(searchterms, excluded, terms, titleterms)); // let the scorer override scores with a custom scoring function - if (Scorer.score) results.forEach((item) => (item[4] = Scorer.score(item))); + if (Scorer.score) { + for (i = 0; i < results.length; i++) + results[i][4] = Scorer.score(results[i]); + } // now sort the results by score (in opposite order of appearance, since the // display function below uses pop() to retrieve items) and then // alphabetically - results.sort((a, b) => { - const leftScore = a[4]; - const rightScore = b[4]; - if (leftScore === rightScore) { + results.sort(function(a, b) { + var left = a[4]; + var right = b[4]; + if (left > right) { + return 1; + } else if (left < right) { + return -1; + } else { // same score: sort alphabetically - const leftTitle = a[1].toLowerCase(); - const rightTitle = b[1].toLowerCase(); - if (leftTitle === rightTitle) return 0; - return leftTitle > rightTitle ? -1 : 1; // inverted is intentional + left = a[1].toLowerCase(); + right = b[1].toLowerCase(); + return (left > right) ? -1 : ((left < right) ? 1 : 0); } - return leftScore > rightScore ? 1 : -1; }); - // remove duplicate search results - // note the reversing of results, so that in the case of duplicates, the highest-scoring entry is kept - let seen = new Set(); - results = results.reverse().reduce((acc, result) => { - let resultStr = result.slice(0, 4).concat([result[5]]).map(v => String(v)).join(','); - if (!seen.has(resultStr)) { - acc.push(result); - seen.add(resultStr); - } - return acc; - }, []); - - results = results.reverse(); - // for debugging //Search.lastresults = results.slice(); // a copy - // console.info("search results:", Search.lastresults); + //console.info('search results:', Search.lastresults); // print the results - _displayNextItem(results, results.length, highlightTerms, searchTerms); + var resultCount = results.length; + function displayNextItem() { + // results left, load the summary and display it + if (results.length) { + var item = results.pop(); + var listItem = $('<li></li>'); + var requestUrl = ""; + var linkUrl = ""; + if (DOCUMENTATION_OPTIONS.BUILDER === 'dirhtml') { + // dirhtml builder + var dirname = item[0] + '/'; + if (dirname.match(/\/index\/$/)) { + dirname = dirname.substring(0, dirname.length-6); + } else if (dirname == 'index/') { + dirname = ''; + } + requestUrl = DOCUMENTATION_OPTIONS.URL_ROOT + dirname; + linkUrl = requestUrl; + + } else { + // normal html builders + requestUrl = DOCUMENTATION_OPTIONS.URL_ROOT + item[0] + DOCUMENTATION_OPTIONS.FILE_SUFFIX; + linkUrl = item[0] + DOCUMENTATION_OPTIONS.LINK_SUFFIX; + } + listItem.append($('<a/>').attr('href', + linkUrl + + highlightstring + item[2]).html(item[1])); + if (item[3]) { + listItem.append($('<span> (' + item[3] + ')</span>')); + Search.output.append(listItem); + setTimeout(function() { + displayNextItem(); + }, 5); + } else if (DOCUMENTATION_OPTIONS.SHOW_SEARCH_SUMMARY) { + $.ajax({url: requestUrl, + dataType: "text", + complete: function(jqxhr, textstatus) { + var data = jqxhr.responseText; + if (data !== '' && data !== undefined) { + var summary = Search.makeSearchSummary(data, searchterms, hlterms); + if (summary) { + listItem.append(summary); + } + } + Search.output.append(listItem); + setTimeout(function() { + displayNextItem(); + }, 5); + }}); + } else { + // just display title + Search.output.append(listItem); + setTimeout(function() { + displayNextItem(); + }, 5); + } + } + // search finished, update title and status message + else { + Search.stopPulse(); + Search.title.text(_('Search Results')); + if (!resultCount) + Search.status.text(_('Your search did not match any documents. Please make sure that all words are spelled correctly and that you\'ve selected enough categories.')); + else + Search.status.text(_('Search finished, found %s page(s) matching the search query.').replace('%s', resultCount)); + Search.status.fadeIn(500); + } + } + displayNextItem(); }, /** * search for object names */ - performObjectSearch: (object, objectTerms) => { - const filenames = Search._index.filenames; - const docNames = Search._index.docnames; - const objects = Search._index.objects; - const objNames = Search._index.objnames; - const titles = Search._index.titles; - - const results = []; - - const objectSearchCallback = (prefix, match) => { - const name = match[4] - const fullname = (prefix ? prefix + "." : "") + name; - const fullnameLower = fullname.toLowerCase(); - if (fullnameLower.indexOf(object) < 0) return; - - let score = 0; - const parts = fullnameLower.split("."); - - // check for different match types: exact matches of full name or - // "last name" (i.e. last dotted part) - if (fullnameLower === object || parts.slice(-1)[0] === object) - score += Scorer.objNameMatch; - else if (parts.slice(-1)[0].indexOf(object) > -1) - score += Scorer.objPartialMatch; // matches in last name - - const objName = objNames[match[1]][2]; - const title = titles[match[0]]; - - // If more than one term searched for, we require other words to be - // found in the name/title/description - const otherTerms = new Set(objectTerms); - otherTerms.delete(object); - if (otherTerms.size > 0) { - const haystack = `${prefix} ${name} ${objName} ${title}`.toLowerCase(); - if ( - [...otherTerms].some((otherTerm) => haystack.indexOf(otherTerm) < 0) - ) - return; + performObjectSearch : function(object, otherterms) { + var filenames = this._index.filenames; + var docnames = this._index.docnames; + var objects = this._index.objects; + var objnames = this._index.objnames; + var titles = this._index.titles; + + var i; + var results = []; + + for (var prefix in objects) { + for (var iMatch = 0; iMatch != objects[prefix].length; ++iMatch) { + var match = objects[prefix][iMatch]; + var name = match[4]; + var fullname = (prefix ? prefix + '.' : '') + name; + var fullnameLower = fullname.toLowerCase() + if (fullnameLower.indexOf(object) > -1) { + var score = 0; + var parts = fullnameLower.split('.'); + // check for different match types: exact matches of full name or + // "last name" (i.e. last dotted part) + if (fullnameLower == object || parts[parts.length - 1] == object) { + score += Scorer.objNameMatch; + // matches in last name + } else if (parts[parts.length - 1].indexOf(object) > -1) { + score += Scorer.objPartialMatch; + } + var objname = objnames[match[1]][2]; + var title = titles[match[0]]; + // If more than one term searched for, we require other words to be + // found in the name/title/description + if (otherterms.length > 0) { + var haystack = (prefix + ' ' + name + ' ' + + objname + ' ' + title).toLowerCase(); + var allfound = true; + for (i = 0; i < otherterms.length; i++) { + if (haystack.indexOf(otherterms[i]) == -1) { + allfound = false; + break; + } + } + if (!allfound) { + continue; + } + } + var descr = objname + _(', in ') + title; + + var anchor = match[3]; + if (anchor === '') + anchor = fullname; + else if (anchor == '-') + anchor = objnames[match[1]][1] + '-' + fullname; + // add custom score for some objects according to scorer + if (Scorer.objPrio.hasOwnProperty(match[2])) { + score += Scorer.objPrio[match[2]]; + } else { + score += Scorer.objPrioDefault; + } + results.push([docnames[match[0]], fullname, '#'+anchor, descr, score, filenames[match[0]]]); + } } + } - let anchor = match[3]; - if (anchor === "") anchor = fullname; - else if (anchor === "-") anchor = objNames[match[1]][1] + "-" + fullname; - - const descr = objName + _(", in ") + title; - - // add custom score for some objects according to scorer - if (Scorer.objPrio.hasOwnProperty(match[2])) - score += Scorer.objPrio[match[2]]; - else score += Scorer.objPrioDefault; - - results.push([ - docNames[match[0]], - fullname, - "#" + anchor, - descr, - score, - filenames[match[0]], - ]); - }; - Object.keys(objects).forEach((prefix) => - objects[prefix].forEach((array) => - objectSearchCallback(prefix, array) - ) - ); return results; }, + /** + * See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions + */ + escapeRegExp : function(string) { + return string.replace(/[.*+\-?^${}()|[\]\\]/g, '\\$&'); // $& means the whole matched string + }, + /** * search for full-text terms in the index */ - performTermsSearch: (searchTerms, excludedTerms) => { - // prepare search - const terms = Search._index.terms; - const titleTerms = Search._index.titleterms; - const docNames = Search._index.docnames; - const filenames = Search._index.filenames; - const titles = Search._index.titles; + performTermsSearch : function(searchterms, excluded, terms, titleterms) { + var docnames = this._index.docnames; + var filenames = this._index.filenames; + var titles = this._index.titles; - const scoreMap = new Map(); - const fileMap = new Map(); + var i, j, file; + var fileMap = {}; + var scoreMap = {}; + var results = []; // perform the search on the required terms - searchTerms.forEach((word) => { - const files = []; - const arr = [ - { files: terms[word], score: Scorer.term }, - { files: titleTerms[word], score: Scorer.title }, + for (i = 0; i < searchterms.length; i++) { + var word = searchterms[i]; + var files = []; + var _o = [ + {files: terms[word], score: Scorer.term}, + {files: titleterms[word], score: Scorer.title} ]; // add support for partial matches if (word.length > 2) { - const escapedWord = _escapeRegExp(word); - Object.keys(terms).forEach((term) => { - if (term.match(escapedWord) && !terms[word]) - arr.push({ files: terms[term], score: Scorer.partialTerm }); - }); - Object.keys(titleTerms).forEach((term) => { - if (term.match(escapedWord) && !titleTerms[word]) - arr.push({ files: titleTerms[word], score: Scorer.partialTitle }); - }); + var word_regex = this.escapeRegExp(word); + for (var w in terms) { + if (w.match(word_regex) && !terms[word]) { + _o.push({files: terms[w], score: Scorer.partialTerm}) + } + } + for (var w in titleterms) { + if (w.match(word_regex) && !titleterms[word]) { + _o.push({files: titleterms[w], score: Scorer.partialTitle}) + } + } } // no match but word was a required one - if (arr.every((record) => record.files === undefined)) return; - + if ($u.every(_o, function(o){return o.files === undefined;})) { + break; + } // found search word in contents - arr.forEach((record) => { - if (record.files === undefined) return; - - let recordFiles = record.files; - if (recordFiles.length === undefined) recordFiles = [recordFiles]; - files.push(...recordFiles); - - // set score for the word in each file - recordFiles.forEach((file) => { - if (!scoreMap.has(file)) scoreMap.set(file, {}); - scoreMap.get(file)[word] = record.score; - }); + $u.each(_o, function(o) { + var _files = o.files; + if (_files === undefined) + return + + if (_files.length === undefined) + _files = [_files]; + files = files.concat(_files); + + // set score for the word in each file to Scorer.term + for (j = 0; j < _files.length; j++) { + file = _files[j]; + if (!(file in scoreMap)) + scoreMap[file] = {}; + scoreMap[file][word] = o.score; + } }); // create the mapping - files.forEach((file) => { - if (fileMap.has(file) && fileMap.get(file).indexOf(word) === -1) - fileMap.get(file).push(word); - else fileMap.set(file, [word]); - }); - }); + for (j = 0; j < files.length; j++) { + file = files[j]; + if (file in fileMap && fileMap[file].indexOf(word) === -1) + fileMap[file].push(word); + else + fileMap[file] = [word]; + } + } // now check if the files don't contain excluded terms - const results = []; - for (const [file, wordList] of fileMap) { - // check if all requirements are matched + for (file in fileMap) { + var valid = true; - // as search terms with length < 3 are discarded - const filteredTermCount = [...searchTerms].filter( - (term) => term.length > 2 - ).length; + // check if all requirements are matched + var filteredTermCount = // as search terms with length < 3 are discarded: ignore + searchterms.filter(function(term){return term.length > 2}).length if ( - wordList.length !== searchTerms.size && - wordList.length !== filteredTermCount - ) - continue; + fileMap[file].length != searchterms.length && + fileMap[file].length != filteredTermCount + ) continue; // ensure that none of the excluded terms is in the search result - if ( - [...excludedTerms].some( - (term) => - terms[term] === file || - titleTerms[term] === file || - (terms[term] || []).includes(file) || - (titleTerms[term] || []).includes(file) - ) - ) - break; + for (i = 0; i < excluded.length; i++) { + if (terms[excluded[i]] == file || + titleterms[excluded[i]] == file || + $u.contains(terms[excluded[i]] || [], file) || + $u.contains(titleterms[excluded[i]] || [], file)) { + valid = false; + break; + } + } - // select one (max) score for the file. - const score = Math.max(...wordList.map((w) => scoreMap.get(file)[w])); - // add result to the result list - results.push([ - docNames[file], - titles[file], - "", - null, - score, - filenames[file], - ]); + // if we have still a valid result we can add it to the result list + if (valid) { + // select one (max) score for the file. + // for better ranking, we should calculate ranking by using words statistics like basic tf-idf... + var score = $u.max($u.map(fileMap[file], function(w){return scoreMap[file][w]})); + results.push([docnames[file], titles[file], '', null, score, filenames[file]]); + } } return results; }, @@ -499,33 +492,34 @@ const Search = { /** * helper function to return a node containing the * search summary for a given text. keywords is a list - * of stemmed words, highlightWords is the list of normal, unstemmed + * of stemmed words, hlwords is the list of normal, unstemmed * words. the first one is used to find the occurrence, the * latter for highlighting it. */ - makeSearchSummary: (htmlText, keywords, highlightWords) => { - const text = Search.htmlToText(htmlText).toLowerCase(); - if (text === "") return null; - - const actualStartPosition = [...keywords] - .map((k) => text.indexOf(k.toLowerCase())) - .filter((i) => i > -1) - .slice(-1)[0]; - const startWithContext = Math.max(actualStartPosition - 120, 0); - - const top = startWithContext === 0 ? "" : "..."; - const tail = startWithContext + 240 < text.length ? "..." : ""; - - let summary = document.createElement("div"); - summary.classList.add("context"); - summary.innerText = top + text.substr(startWithContext, 240).trim() + tail; - - highlightWords.forEach((highlightWord) => - _highlightText(summary, highlightWord, "highlighted") - ); - - return summary; - }, + makeSearchSummary : function(htmlText, keywords, hlwords) { + var text = Search.htmlToText(htmlText); + if (text == "") { + return null; + } + var textLower = text.toLowerCase(); + var start = 0; + $.each(keywords, function() { + var i = textLower.indexOf(this.toLowerCase()); + if (i > -1) + start = i; + }); + start = Math.max(start - 120, 0); + var excerpt = ((start > 0) ? '...' : '') + + $.trim(text.substr(start, 240)) + + ((start + 240 - text.length) ? '...' : ''); + var rv = $('<p class="context"></p>').text(excerpt); + $.each(hlwords, function() { + rv = rv.highlightText(this, 'highlighted'); + }); + return rv; + } }; -_ready(Search.init); +$(document).ready(function() { + Search.init(); +}); diff --git a/docs/docs/install/Alveo_X11.html b/docs/docs/install/Alveo_X11.html index 4303cfa37..07cd63725 100644 --- a/docs/docs/install/Alveo_X11.html +++ b/docs/docs/install/Alveo_X11.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script> <script src="../../_static/jquery.js"></script> <script src="../../_static/underscore.js"></script> - <script src="../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../_static/doctools.js"></script> <script src="../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="x11-support-for-running-vitis-ai-docker-with-alveo"> -<h1>X11 Support for Running Vitis AI Docker with Alveo<a class="headerlink" href="#x11-support-for-running-vitis-ai-docker-with-alveo" title="Permalink to this heading">¶</a></h1> +<h1>X11 Support for Running Vitis AI Docker with Alveo<a class="headerlink" href="#x11-support-for-running-vitis-ai-docker-with-alveo" title="Permalink to this headline">¶</a></h1> <p>If you are running Vitis∣ AI docker with Alveo∣ card and want to use X11 support for graphics (for example, some demo applications in VART and Vitis AI Library for Alveo need to display images or video), add the following line into the <em>docker_run_params</em> variable definition in <code class="docutils literal notranslate"><span class="pre">docker_run.sh</span></code> script:</p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span>-e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -v $HOME/.Xauthority:/tmp/.Xauthority \ </pre></div> diff --git a/docs/docs/install/China_Ubuntu_servers.html b/docs/docs/install/China_Ubuntu_servers.html index 085e6066b..bc780ab06 100644 --- a/docs/docs/install/China_Ubuntu_servers.html +++ b/docs/docs/install/China_Ubuntu_servers.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script> <script src="../../_static/jquery.js"></script> <script src="../../_static/underscore.js"></script> - <script src="../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../_static/doctools.js"></script> <script src="../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="access-to-ubuntu-mirrors-from-within-china"> -<h1>Access to Ubuntu Mirrors from within China<a class="headerlink" href="#access-to-ubuntu-mirrors-from-within-china" title="Permalink to this heading">¶</a></h1> +<h1>Access to Ubuntu Mirrors from within China<a class="headerlink" href="#access-to-ubuntu-mirrors-from-within-china" title="Permalink to this headline">¶</a></h1> <p>Vitis™ AI Docker images leverage Ubuntu 20.04. In your Ubuntu installation, the file <strong>/etc/apt/sources.list</strong> specifies the default server location for Ubuntu packages. For example:</p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">deb</span> <span class="n">http</span><span class="p">:</span><span class="o">//</span><span class="n">us</span><span class="o">.</span><span class="n">archive</span><span class="o">.</span><span class="n">ubuntu</span><span class="o">.</span><span class="n">com</span><span class="o">/</span><span class="n">ubuntu</span><span class="o">/</span> <span class="n">focal</span> <span class="n">universe</span> </pre></div> diff --git a/docs/docs/install/Vitis AI 1.3.2 April 2021 Patch.html b/docs/docs/install/Vitis AI 1.3.2 April 2021 Patch.html index f0e8c16ee..e1e004f2c 100644 --- a/docs/docs/install/Vitis AI 1.3.2 April 2021 Patch.html +++ b/docs/docs/install/Vitis AI 1.3.2 April 2021 Patch.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script> <script src="../../_static/jquery.js"></script> <script src="../../_static/underscore.js"></script> - <script src="../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../_static/doctools.js"></script> <script src="../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../workflow.html">Overview</a></li> @@ -134,9 +138,9 @@ <div itemprop="articleBody"> <section id="april-2021-patch"> -<h1>April 2021 Patch<a class="headerlink" href="#april-2021-patch" title="Permalink to this heading">¶</a></h1> +<h1>April 2021 Patch<a class="headerlink" href="#april-2021-patch" title="Permalink to this headline">¶</a></h1> <section id="new-features-highlights"> -<h2>New Features/Highlights<a class="headerlink" href="#new-features-highlights" title="Permalink to this heading">¶</a></h2> +<h2>New Features/Highlights<a class="headerlink" href="#new-features-highlights" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p>Fixed a compiler bug about “XIR_REMOVE_OP_FAIL”</p></li> <li><p>Updated target description to support pool kernel=1 in DPUCZDX8G</p></li> @@ -149,7 +153,7 @@ <h2>New Features/Highlights<a class="headerlink" href="#new-features-highlights" </ul> </section> <section id="new-packages"> -<h2>New Packages<a class="headerlink" href="#new-packages" title="Permalink to this heading">¶</a></h2> +<h2>New Packages<a class="headerlink" href="#new-packages" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p><a class="reference external" href="https://www.xilinx.com/bin/public/openDownload?filename=unilog-1.3.2-h7b12538_35.tar.bz2">unilog-1.3.2-h7b12538_35.tar.bz2</a></p></li> <li><p><a class="reference external" href="https://www.xilinx.com/bin/public/openDownload?filename=target_factory-1.3.2-hf484d3e_35.tar.bz2">target_factory-1.3.2-hf484d3e_35.tar.bz2</a></p></li> @@ -161,7 +165,7 @@ <h2>New Packages<a class="headerlink" href="#new-packages" title="Permalink to t <li><p><a class="reference external" href="https://www.xilinx.com/bin/public/openDownload?filename=xnnc-1.3.2-py37_48.tar.bz2">xnnc-1.3.2-py37_48.tar.bz2</a></p></li> </ul> <section id="installation"> -<h3>Installation<a class="headerlink" href="#installation" title="Permalink to this heading">¶</a></h3> +<h3>Installation<a class="headerlink" href="#installation" title="Permalink to this headline">¶</a></h3> <p>Download the packages from the link above.</p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span>sudo env PATH=/opt/vitis_ai/conda/bin:$PATH CONDA_PREFIX=/opt/vitis_ai/conda/envs/YOUR_ENV_NAME conda install PATCH_PACKAGE.tar.bz2 </pre></div> diff --git a/docs/docs/install/Vitis AI 2.0 Feb 2022 Patch.html b/docs/docs/install/Vitis AI 2.0 Feb 2022 Patch.html index 59732526c..555f4b0ea 100644 --- a/docs/docs/install/Vitis AI 2.0 Feb 2022 Patch.html +++ b/docs/docs/install/Vitis AI 2.0 Feb 2022 Patch.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script> <script src="../../_static/jquery.js"></script> <script src="../../_static/underscore.js"></script> - <script src="../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../_static/doctools.js"></script> <script src="../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../workflow.html">Overview</a></li> @@ -134,9 +138,9 @@ <div itemprop="articleBody"> <section id="february-2022-patch"> -<h1>February 2022 Patch<a class="headerlink" href="#february-2022-patch" title="Permalink to this heading">¶</a></h1> +<h1>February 2022 Patch<a class="headerlink" href="#february-2022-patch" title="Permalink to this headline">¶</a></h1> <section id="new-features-highlights"> -<h2>New Features/Highlights<a class="headerlink" href="#new-features-highlights" title="Permalink to this heading">¶</a></h2> +<h2>New Features/Highlights<a class="headerlink" href="#new-features-highlights" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p>Fixed a compiler bug for pt_yolox_TT100K_640_640_73G_2.0 model</p></li> <li><p>Fixed a quantizer bug in QAT in tensorflow 1.15 models</p></li> @@ -145,7 +149,7 @@ <h2>New Features/Highlights<a class="headerlink" href="#new-features-highlights" </ul> </section> <section id="new-packages"> -<h2>New Packages<a class="headerlink" href="#new-packages" title="Permalink to this heading">¶</a></h2> +<h2>New Packages<a class="headerlink" href="#new-packages" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p><a class="reference external" href="https://www.xilinx.com/bin/public/openDownload?filename=unilog-2.0.1-hea4fdf2_32.tar.bz2">unilog-2.0.1-hea4fdf2_32.tar.bz2</a></p></li> <li><p><a class="reference external" href="https://www.xilinx.com/bin/public/openDownload?filename=target_factory-2.0.1-h680af44_32.tar.bz2">target_factory-2.0.1-h680af44_32.tar.bz2</a></p></li> @@ -165,7 +169,7 @@ <h2>New Packages<a class="headerlink" href="#new-packages" title="Permalink to t </ul> </section> <section id="installation"> -<h2>Installation<a class="headerlink" href="#installation" title="Permalink to this heading">¶</a></h2> +<h2>Installation<a class="headerlink" href="#installation" title="Permalink to this headline">¶</a></h2> <p>Download the packages from the link above. Apply the conda patch to the conda environment (Machine Learning framework) that you wish to update in this format</p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">sudo</span> <span class="n">conda</span> <span class="n">install</span> <span class="o">-</span><span class="n">n</span> <span class="o"><</span><span class="n">CONDA_ENVIRONMENT</span><span class="o">></span> <span class="o"><</span><span class="n">URL</span> <span class="ow">or</span> <span class="n">PATH</span> <span class="n">to</span> <span class="n">conda</span> <span class="n">package</span><span class="o">></span> diff --git a/docs/docs/install/Vitis AI 2.5 Aug 2022 Patch.html b/docs/docs/install/Vitis AI 2.5 Aug 2022 Patch.html index 4fcdce7fe..ca97306ee 100644 --- a/docs/docs/install/Vitis AI 2.5 Aug 2022 Patch.html +++ b/docs/docs/install/Vitis AI 2.5 Aug 2022 Patch.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script> <script src="../../_static/jquery.js"></script> <script src="../../_static/underscore.js"></script> - <script src="../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../_static/doctools.js"></script> <script src="../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../workflow.html">Overview</a></li> @@ -134,9 +138,9 @@ <div itemprop="articleBody"> <section id="august-2022-patch"> -<h1>August 2022 Patch<a class="headerlink" href="#august-2022-patch" title="Permalink to this heading">¶</a></h1> +<h1>August 2022 Patch<a class="headerlink" href="#august-2022-patch" title="Permalink to this headline">¶</a></h1> <section id="new-features-highlights"> -<h2>New Features/Highlights<a class="headerlink" href="#new-features-highlights" title="Permalink to this heading">¶</a></h2> +<h2>New Features/Highlights<a class="headerlink" href="#new-features-highlights" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p>Supported correlation 1d and correlation 2d operators with DPUCZDX8G and DPUCVDX8G</p></li> <li><p>Supported concatenate operator with multiple identical input tensors</p></li> @@ -144,7 +148,7 @@ <h2>New Features/Highlights<a class="headerlink" href="#new-features-highlights" </ul> </section> <section id="new-packages"> -<h2>New Packages<a class="headerlink" href="#new-packages" title="Permalink to this heading">¶</a></h2> +<h2>New Packages<a class="headerlink" href="#new-packages" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p><a class="reference external" href="https://www.xilinx.com/bin/public/openDownload?filename=target_factory-2.5.0-py36h680af44_202.tar.bz2">target_factory-2.5.0-py36h680af44_202.tar.bz2</a></p></li> <li><p><a class="reference external" href="https://www.xilinx.com/bin/public/openDownload?filename=target_factory-2.5.0-py37h680af44_202.tar.bz2">target_factory-2.5.0-py37h680af44_202.tar.bz2</a></p></li> @@ -157,7 +161,7 @@ <h2>New Packages<a class="headerlink" href="#new-packages" title="Permalink to t </ul> </section> <section id="installation"> -<h2>Installation<a class="headerlink" href="#installation" title="Permalink to this heading">¶</a></h2> +<h2>Installation<a class="headerlink" href="#installation" title="Permalink to this headline">¶</a></h2> <p>Download the packages from the link above. Apply the conda patch to the conda environment (Machine Learning framework) that you wish to update in this format.</p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">sudo</span> <span class="n">conda</span> <span class="n">install</span> <span class="o">-</span><span class="n">n</span> <span class="o"><</span><span class="n">CONDA_ENVIRONMENT</span><span class="o">></span> <span class="o"><</span><span class="n">URL</span> <span class="ow">or</span> <span class="n">PATH</span> <span class="n">to</span> <span class="n">conda</span> <span class="n">package</span><span class="o">></span> diff --git a/docs/docs/install/branching_tagging_strategy.html b/docs/docs/install/branching_tagging_strategy.html index 22c08d114..469ac3b67 100644 --- a/docs/docs/install/branching_tagging_strategy.html +++ b/docs/docs/install/branching_tagging_strategy.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script> <script src="../../_static/jquery.js"></script> <script src="../../_static/underscore.js"></script> - <script src="../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../_static/doctools.js"></script> <script src="../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../genindex.html" /> @@ -73,6 +72,11 @@ <li class="toctree-l1"><a class="reference internal" href="../quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../workflow.html">Overview</a></li> @@ -136,7 +140,7 @@ <div itemprop="articleBody"> <section id="branching-tagging-strategy"> -<h1>Branching / Tagging Strategy<a class="headerlink" href="#branching-tagging-strategy" title="Permalink to this heading">¶</a></h1> +<h1>Branching / Tagging Strategy<a class="headerlink" href="#branching-tagging-strategy" title="Permalink to this headline">¶</a></h1> <p>Each updated release of Vitis™ AI is pushed directly to <a class="reference external" href="https://github.com/Xilinx/Vitis-AI/tree/master">master</a> on the release day. In addition, at that time, a tag is created for the repository; for example, see the tag for <a class="reference external" href="https://github.com/Xilinx/Vitis-AI/tree/v3.0">v3.0</a>.</p> <p>Following the release, the tagged version remains static, and additional inter-version updates are pushed to the master branch. Thus, the master branch is always the latest release and will have the latest fixes and documentation. The branch associated with a specific release (which will be “master” during the lifecycle of that release) will become a branch at the time of the next release.</p> <p>Similarly, if you use a previous version of Vitis AI, the branch associated with that previous revision will contain updates to the tagged release for that same version. For instance, in the case of release 2.0, the <a class="reference external" href="https://github.com/Xilinx/Vitis-AI/tree/2.0">branch</a> contains updates that the <a class="reference external" href="https://github.com/Xilinx/Vitis-AI/tree/v2.0">tag</a> does not.</p> diff --git a/docs/docs/install/install.html b/docs/docs/install/install.html index 8d20a564b..c2a0d478f 100644 --- a/docs/docs/install/install.html +++ b/docs/docs/install/install.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script> <script src="../../_static/jquery.js"></script> <script src="../../_static/underscore.js"></script> - <script src="../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../_static/doctools.js"></script> <script src="../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../genindex.html" /> @@ -89,6 +88,11 @@ <li class="toctree-l1"><a class="reference internal" href="../quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../workflow.html">Overview</a></li> @@ -152,7 +156,7 @@ <div itemprop="articleBody"> <section id="host-installation-instructions"> -<h1>Host Installation Instructions<a class="headerlink" href="#host-installation-instructions" title="Permalink to this heading">¶</a></h1> +<h1>Host Installation Instructions<a class="headerlink" href="#host-installation-instructions" title="Permalink to this headline">¶</a></h1> <p>The purpose of this page is to provide the developer with guidance on the installation of Vitis™ AI tools on the development host PC. Instructions for installation of Vitis AI on the target are covered separately in the Quickstart tutorials.</p> <p>There are two primary options for installation:</p> <p><strong>[Option1]</strong> Directly leverage pre-built Docker containers available from Docker Hub: <a class="reference external" href="https://hub.docker.com/r/xilinx/">xilinx/vitis-ai</a>.</p> @@ -172,26 +176,26 @@ <h1>Host Installation Instructions<a class="headerlink" href="#host-installation </div> </div></blockquote> <section id="pre-requisites"> -<h2>Pre-requisites<a class="headerlink" href="#pre-requisites" title="Permalink to this heading">¶</a></h2> +<h2>Pre-requisites<a class="headerlink" href="#pre-requisites" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p>Confirm that your development machine meets the minimum <a class="reference internal" href="../reference/system_requirements.html"><span class="doc">Host System Requirements</span></a>.</p></li> <li><p>Confirm that you have at least <strong>100GB</strong> of free space in the target partition.</p></li> </ul> </section> <section id="preparing-for-the-installation"> -<h2>Preparing for the Installation<a class="headerlink" href="#preparing-for-the-installation" title="Permalink to this heading">¶</a></h2> +<h2>Preparing for the Installation<a class="headerlink" href="#preparing-for-the-installation" title="Permalink to this headline">¶</a></h2> <p>Refer to the relevant section (CPU-only, ROCm, CUDA) below to prepare your selected host for Docker installation.</p> <section id="cpu-only-host-initial-preparation"> -<h3>CPU-only Host Initial Preparation<a class="headerlink" href="#cpu-only-host-initial-preparation" title="Permalink to this heading">¶</a></h3> +<h3>CPU-only Host Initial Preparation<a class="headerlink" href="#cpu-only-host-initial-preparation" title="Permalink to this headline">¶</a></h3> <p>CPU hosts require no special preparation.</p> </section> <section id="rocm-gpu-host-initial-preparation"> -<h3>ROCm GPU Host Initial Preparation<a class="headerlink" href="#rocm-gpu-host-initial-preparation" title="Permalink to this heading">¶</a></h3> +<h3>ROCm GPU Host Initial Preparation<a class="headerlink" href="#rocm-gpu-host-initial-preparation" title="Permalink to this headline">¶</a></h3> <p>For ROCm hosts, developers need to install ROCm. Vitis AI 3.5 supports ROCm v5.5.</p> <p>The below steps describe the installation of ROCm for Ubuntu 20.04 hosts. If you are leveraging a different host operating systems, please refer to <a class="reference external" href="https://docs.amd.com/bundle/ROCm-Installation-Guide-v5.5/page/Introduction_to_ROCm_Installation_Guide_for_Linux.html">the ROCm Installation Guide</a> .</p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">sudo</span> <span class="n">apt</span><span class="o">-</span><span class="n">get</span> <span class="n">update</span> -<span class="n">wget</span> <span class="n">https</span><span class="p">:</span><span class="o">//</span><span class="n">repo</span><span class="o">.</span><span class="n">radeon</span><span class="o">.</span><span class="n">com</span><span class="o">/</span><span class="n">amdgpu</span><span class="o">-</span><span class="n">install</span><span class="o">/</span><span class="mf">5.5</span><span class="o">/</span><span class="n">ubuntu</span><span class="o">/</span><span class="n">focal</span><span class="o">/</span><span class="n">amdgpu</span><span class="o">-</span><span class="n">install_5</span><span class="mf">.5.50500</span><span class="o">-</span><span class="mi">1</span><span class="n">_all</span><span class="o">.</span><span class="n">deb</span> -<span class="n">sudo</span> <span class="n">apt</span><span class="o">-</span><span class="n">get</span> <span class="n">install</span> <span class="o">./</span><span class="n">amdgpu</span><span class="o">-</span><span class="n">install_5</span><span class="mf">.5.50500</span><span class="o">-</span><span class="mi">1</span><span class="n">_all</span><span class="o">.</span><span class="n">deb</span> +<span class="n">wget</span> <span class="n">https</span><span class="p">:</span><span class="o">//</span><span class="n">repo</span><span class="o">.</span><span class="n">radeon</span><span class="o">.</span><span class="n">com</span><span class="o">/</span><span class="n">amdgpu</span><span class="o">-</span><span class="n">install</span><span class="o">/</span><span class="mf">5.5</span><span class="o">/</span><span class="n">ubuntu</span><span class="o">/</span><span class="n">focal</span><span class="o">/</span><span class="n">amdgpu</span><span class="o">-</span><span class="n">install_5</span><span class="o">.</span><span class="mf">5.50500</span><span class="o">-</span><span class="mi">1</span><span class="n">_all</span><span class="o">.</span><span class="n">deb</span> +<span class="n">sudo</span> <span class="n">apt</span><span class="o">-</span><span class="n">get</span> <span class="n">install</span> <span class="o">./</span><span class="n">amdgpu</span><span class="o">-</span><span class="n">install_5</span><span class="o">.</span><span class="mf">5.50500</span><span class="o">-</span><span class="mi">1</span><span class="n">_all</span><span class="o">.</span><span class="n">deb</span> <span class="n">sudo</span> <span class="n">amdgpu</span><span class="o">-</span><span class="n">install</span> <span class="o">--</span><span class="n">usecase</span><span class="o">=</span><span class="n">hiplibsdk</span><span class="p">,</span><span class="n">rocm</span> </pre></div> </div> @@ -216,7 +220,7 @@ <h3>ROCm GPU Host Initial Preparation<a class="headerlink" href="#rocm-gpu-host- <p>You may also refer to the <a class="reference external" href="https://docs.amd.com/bundle/ROCm-Installation-Guide-v5.5/page/How_to_Install_ROCm.html">ROCm Docker installation documentation</a> for further details.</p> </section> <section id="cuda-gpu-host-initial-preparation"> -<h3>CUDA GPU Host Initial Preparation<a class="headerlink" href="#cuda-gpu-host-initial-preparation" title="Permalink to this heading">¶</a></h3> +<h3>CUDA GPU Host Initial Preparation<a class="headerlink" href="#cuda-gpu-host-initial-preparation" title="Permalink to this headline">¶</a></h3> <p>If you are leveraging a Vitis AI Docker Image with CUDA-capable GPU acceleration, you must install the NVIDIA Container Toolkit, which enables GPU support inside the Docker container. Please refer to the official NVIDIA <a class="reference external" href="https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html">documentation</a> for additional information.</p> <p>For Ubuntu distributions, NVIDIA driver and Container Toolkit installation can generally be accomplished as in the following example (use sudo for non-root users):</p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">apt</span> <span class="n">purge</span> <span class="n">nvidia</span><span class="o">*</span> <span class="n">libnvidia</span><span class="o">*</span> @@ -232,7 +236,7 @@ <h3>CUDA GPU Host Initial Preparation<a class="headerlink" href="#cuda-gpu-host- <p>The output should appear similar to the below, indicating the activation of the driver, and the successful installation of CUDA:</p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="o">/</span><span class="n">Thu</span> <span class="n">Dec</span> <span class="mi">8</span> <span class="mi">21</span><span class="p">:</span><span class="mi">39</span><span class="p">:</span><span class="mi">42</span> <span class="mi">2022</span> <span class="o">/+-----------------------------------------------------------------------------+</span> -<span class="o">/|</span> <span class="n">NVIDIA</span><span class="o">-</span><span class="n">SMI</span> <span class="mf">470.161.03</span> <span class="n">Driver</span> <span class="n">Version</span><span class="p">:</span> <span class="mf">470.161.03</span> <span class="n">CUDA</span> <span class="n">Version</span><span class="p">:</span> <span class="mf">11.4</span> <span class="o">|</span> +<span class="o">/|</span> <span class="n">NVIDIA</span><span class="o">-</span><span class="n">SMI</span> <span class="mf">470.161</span><span class="o">.</span><span class="mi">03</span> <span class="n">Driver</span> <span class="n">Version</span><span class="p">:</span> <span class="mf">470.161</span><span class="o">.</span><span class="mi">03</span> <span class="n">CUDA</span> <span class="n">Version</span><span class="p">:</span> <span class="mf">11.4</span> <span class="o">|</span> <span class="o">/|-------------------------------+----------------------+----------------------+</span> <span class="o">/|</span> <span class="n">GPU</span> <span class="n">Name</span> <span class="n">Persistence</span><span class="o">-</span><span class="n">M</span><span class="o">|</span> <span class="n">Bus</span><span class="o">-</span><span class="n">Id</span> <span class="n">Disp</span><span class="o">.</span><span class="n">A</span> <span class="o">|</span> <span class="n">Volatile</span> <span class="n">Uncorr</span><span class="o">.</span> <span class="n">ECC</span> <span class="o">|</span> <span class="o">/|</span> <span class="n">Fan</span> <span class="n">Temp</span> <span class="n">Perf</span> <span class="n">Pwr</span><span class="p">:</span><span class="n">Usage</span><span class="o">/</span><span class="n">Cap</span><span class="o">|</span> <span class="n">Memory</span><span class="o">-</span><span class="n">Usage</span> <span class="o">|</span> <span class="n">GPU</span><span class="o">-</span><span class="n">Util</span> <span class="n">Compute</span> <span class="n">M</span><span class="o">.</span> <span class="o">|</span> @@ -255,7 +259,7 @@ <h3>CUDA GPU Host Initial Preparation<a class="headerlink" href="#cuda-gpu-host- </section> </section> <section id="docker-install-and-verification"> -<h2>Docker Install and Verification<a class="headerlink" href="#docker-install-and-verification" title="Permalink to this heading">¶</a></h2> +<h2>Docker Install and Verification<a class="headerlink" href="#docker-install-and-verification" title="Permalink to this headline">¶</a></h2> <p>Once you are confident that your host has been prepared according to the above guidance refer to official Docker <a class="reference external" href="https://docs.docker.com/engine/install/">documentation</a> to install the Docker engine.</p> <blockquote> <div><div class="admonition important"> @@ -273,7 +277,7 @@ <h2>Docker Install and Verification<a class="headerlink" href="#docker-install-a </div> </section> <section id="clone-the-repository"> -<h2>Clone The Repository<a class="headerlink" href="#clone-the-repository" title="Permalink to this heading">¶</a></h2> +<h2>Clone The Repository<a class="headerlink" href="#clone-the-repository" title="Permalink to this headline">¶</a></h2> <p>If you have not already done so, you should now clone the Vitis AI repository to the host machine as follows:</p> <div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>git clone https://github.com/Xilinx/Vitis-AI <span class="nb">cd</span> Vitis-AI @@ -281,7 +285,7 @@ <h2>Clone The Repository<a class="headerlink" href="#clone-the-repository" title </div> </section> <section id="leverage-vitis-ai-containers"> -<h2>Leverage Vitis AI Containers<a class="headerlink" href="#leverage-vitis-ai-containers" title="Permalink to this heading">¶</a></h2> +<h2>Leverage Vitis AI Containers<a class="headerlink" href="#leverage-vitis-ai-containers" title="Permalink to this headline">¶</a></h2> <p>You are now ready to start working with the Vitis AI Docker container. At this stage you will choose whether you wish to use the pre-built container, or build the container from scripts.</p> <p>Starting with the Vitis AI 3.0 release, pre-built Docker containers are framework specific. Furthermore, we have extended support to include AMD ROCm enabled GPUs. Users thus now have three options for the host Docker:</p> @@ -292,13 +296,13 @@ <h2>Leverage Vitis AI Containers<a class="headerlink" href="#leverage-vitis-ai-c </ol> <p>CUDA-capable GPUs are not supported by pre-built containers, and thus the developer must <a class="reference internal" href="#build-docker-from-scripts"><span class="std std-ref">build the container from scripts</span></a>.</p> <section id="option-1-leverage-the-pre-built-docker"> -<h3>Option 1: Leverage the Pre-Built Docker<a class="headerlink" href="#option-1-leverage-the-pre-built-docker" title="Permalink to this heading">¶</a></h3> +<h3>Option 1: Leverage the Pre-Built Docker<a class="headerlink" href="#option-1-leverage-the-pre-built-docker" title="Permalink to this headline">¶</a></h3> <p>To download the most up-to-date version of the pre-built docker, you will need execute the appropriate command, using the following general format:</p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">docker</span> <span class="n">pull</span> <span class="n">xilinx</span><span class="o">/</span><span class="n">vitis</span><span class="o">-</span><span class="n">ai</span><span class="o">-<</span><span class="n">Framework</span><span class="o">>-<</span><span class="n">Arch</span><span class="o">></span><span class="p">:</span><span class="n">latest</span> </pre></div> </div> <p>Where <code class="docutils literal notranslate"><span class="pre"><Framework></span></code> and <code class="docutils literal notranslate"><span class="pre"><Arch></span></code> can be selected as in the table below:</p> -<table class="docutils align-default" id="id1"> +<table class="colwidths-given docutils align-default" id="id1"> <caption><span class="caption-text">Vitis AI Pre-built Container Options</span><a class="headerlink" href="#id1" title="Permalink to this table">¶</a></caption> <colgroup> <col style="width: 50%" /> @@ -354,7 +358,7 @@ <h3>Option 1: Leverage the Pre-Built Docker<a class="headerlink" href="#option-1 </div> </section> <section id="option-2-build-the-docker-container-from-xilinx-recipes"> -<span id="build-docker-from-scripts"></span><h3>Option 2: Build the Docker Container from Xilinx Recipes<a class="headerlink" href="#option-2-build-the-docker-container-from-xilinx-recipes" title="Permalink to this heading">¶</a></h3> +<span id="build-docker-from-scripts"></span><h3>Option 2: Build the Docker Container from Xilinx Recipes<a class="headerlink" href="#option-2-build-the-docker-container-from-xilinx-recipes" title="Permalink to this headline">¶</a></h3> <p>As of this release, a single unified docker build script is provided. This script enables developers to build a container for a specific framework. This single unified script supports CPU-only hosts, GPU-capable hosts, and AMD ROCm-capable hosts.</p> <p>In most cases, developers will want to leverage the GPU or ROCm-enabled Dockers as they provide support for accelerated quantization and pruning. For NVIDIA graphics cards that meet Vitis AI CUDA requirements (<a class="reference internal" href="../reference/system_requirements.html"><span class="doc">listed here</span></a>) you can leverage the <code class="docutils literal notranslate"><span class="pre">gpu</span></code> Docker.</p> <div class="admonition important"> @@ -370,7 +374,7 @@ <h3>Option 1: Leverage the Pre-Built Docker<a class="headerlink" href="#option-1 </div> <p>Here you will find the docker_build.sh script that will be used to build the container. Execute the script as follows: <code class="docutils literal notranslate"><span class="pre">./docker_build.sh</span> <span class="pre">-t</span> <span class="pre"><DOCKER_TYPE></span> <span class="pre">-f</span> <span class="pre"><FRAMEWORK></span></code></p> <p>The supported build options are:</p> -<table class="docutils align-default" id="id2"> +<table class="colwidths-given docutils align-default" id="id2"> <caption><span class="caption-text">Vitis AI Docker Container Build Options</span><a class="headerlink" href="#id2" title="Permalink to this table">¶</a></caption> <colgroup> <col style="width: 20%" /> @@ -441,13 +445,13 @@ <h3>Option 1: Leverage the Pre-Built Docker<a class="headerlink" href="#option-1 <p>The <code class="docutils literal notranslate"><span class="pre">docker_build</span></code> process may take several hours to complete. Assuming the build is successful, move on to the steps below. If the build was unsuccessful, inspect the log output for specifics. In many cases, a specific package could not be located, most likely due to remote server connectivity. Often, simply re-running the build script will result in success. In the event that you continue to run into problems, please reach out for support.</p> </div> <p>If the Docker has been enabled with CUDA-capable GPU support, do a final test to ensure that the GPU is visible by executing the following command:</p> -<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">docker</span> <span class="n">run</span> <span class="o">--</span><span class="n">gpus</span> <span class="nb">all</span> <span class="n">nvidia</span><span class="o">/</span><span class="n">cuda</span><span class="p">:</span><span class="mf">11.3.1</span><span class="o">-</span><span class="n">cudnn8</span><span class="o">-</span><span class="n">runtime</span><span class="o">-</span><span class="n">ubuntu20</span><span class="mf">.04</span> <span class="n">nvidia</span><span class="o">-</span><span class="n">smi</span> +<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">docker</span> <span class="n">run</span> <span class="o">--</span><span class="n">gpus</span> <span class="nb">all</span> <span class="n">nvidia</span><span class="o">/</span><span class="n">cuda</span><span class="p">:</span><span class="mf">11.3</span><span class="o">.</span><span class="mi">1</span><span class="o">-</span><span class="n">cudnn8</span><span class="o">-</span><span class="n">runtime</span><span class="o">-</span><span class="n">ubuntu20</span><span class="o">.</span><span class="mi">04</span> <span class="n">nvidia</span><span class="o">-</span><span class="n">smi</span> </pre></div> </div> <p>This should result in an output similar to the below:</p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="o">/</span><span class="n">Thu</span> <span class="n">Dec</span> <span class="mi">8</span> <span class="mi">21</span><span class="p">:</span><span class="mi">39</span><span class="p">:</span><span class="mi">42</span> <span class="mi">2022</span> <span class="o">/+-----------------------------------------------------------------------------+</span> -<span class="o">/|</span> <span class="n">NVIDIA</span><span class="o">-</span><span class="n">SMI</span> <span class="mf">470.161.03</span> <span class="n">Driver</span> <span class="n">Version</span><span class="p">:</span> <span class="mf">470.161.03</span> <span class="n">CUDA</span> <span class="n">Version</span><span class="p">:</span> <span class="mf">11.4</span> <span class="o">|</span> +<span class="o">/|</span> <span class="n">NVIDIA</span><span class="o">-</span><span class="n">SMI</span> <span class="mf">470.161</span><span class="o">.</span><span class="mi">03</span> <span class="n">Driver</span> <span class="n">Version</span><span class="p">:</span> <span class="mf">470.161</span><span class="o">.</span><span class="mi">03</span> <span class="n">CUDA</span> <span class="n">Version</span><span class="p">:</span> <span class="mf">11.4</span> <span class="o">|</span> <span class="o">/|-------------------------------+----------------------+----------------------+</span> <span class="o">/|</span> <span class="n">GPU</span> <span class="n">Name</span> <span class="n">Persistence</span><span class="o">-</span><span class="n">M</span><span class="o">|</span> <span class="n">Bus</span><span class="o">-</span><span class="n">Id</span> <span class="n">Disp</span><span class="o">.</span><span class="n">A</span> <span class="o">|</span> <span class="n">Volatile</span> <span class="n">Uncorr</span><span class="o">.</span> <span class="n">ECC</span> <span class="o">|</span> <span class="o">/|</span> <span class="n">Fan</span> <span class="n">Temp</span> <span class="n">Perf</span> <span class="n">Pwr</span><span class="p">:</span><span class="n">Usage</span><span class="o">/</span><span class="n">Cap</span><span class="o">|</span> <span class="n">Memory</span><span class="o">-</span><span class="n">Usage</span> <span class="o">|</span> <span class="n">GPU</span><span class="o">-</span><span class="n">Util</span> <span class="n">Compute</span> <span class="n">M</span><span class="o">.</span> <span class="o">|</span> diff --git a/docs/docs/install/install_docker.html b/docs/docs/install/install_docker.html index 62c2076f1..e756dbef6 100644 --- a/docs/docs/install/install_docker.html +++ b/docs/docs/install/install_docker.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script> <script src="../../_static/jquery.js"></script> <script src="../../_static/underscore.js"></script> - <script src="../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../_static/doctools.js"></script> <script src="../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="installing-docker"> -<h1>Installing Docker<a class="headerlink" href="#installing-docker" title="Permalink to this heading">¶</a></h1> +<h1>Installing Docker<a class="headerlink" href="#installing-docker" title="Permalink to this headline">¶</a></h1> <div class="admonition important"> <p class="admonition-title">Important</p> <p>In most cases, Developers will want to leverage the CUDA-capable or ROCm Dockers as they support accelerated quantization. Before installing Docker for CUDA-capable GPUs, ensure that you understand the NVIDIA driver, CUDA <a class="reference internal" href="../reference/system_requirements.html"><span class="doc">Host System Requirements</span></a> for Vitis AI.</p> @@ -144,7 +148,7 @@ <h1>Installing Docker<a class="headerlink" href="#installing-docker" title="Perm <p>For ROCm distributions, developers should reference <a class="reference external" href="https://github.com/RadeonOpenCompute/ROCm-docker/blob/master/quick-start.md">ROCm docker installation</a> for further details of docker installation.</p> </div> <section id="installing-nvidia-container-toolkit"> -<h2>Installing NVIDIA Container Toolkit<a class="headerlink" href="#installing-nvidia-container-toolkit" title="Permalink to this heading">¶</a></h2> +<h2>Installing NVIDIA Container Toolkit<a class="headerlink" href="#installing-nvidia-container-toolkit" title="Permalink to this headline">¶</a></h2> <p>If you are building the Vitis AI Docker Image with CUDA-capable GPU acceleration, you must install the NVIDIA Container Toolkit, which enables GPU support inside the Docker container. Please refer to the official NVIDIA <a class="reference external" href="https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html">documentation</a> for additional information.</p> <p>For Ubuntu distributions, NVIDIA driver and Container Toolkit installation can generally be accomplished as displayed in the following example (use sudo for non-root users):</p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">apt</span> <span class="n">purge</span> <span class="n">nvidia</span><span class="o">*</span> <span class="n">libnvidia</span><span class="o">*</span> @@ -160,7 +164,7 @@ <h2>Installing NVIDIA Container Toolkit<a class="headerlink" href="#installing-n <p>The output should appear similar to this:</p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="o">/</span><span class="n">Thu</span> <span class="n">Dec</span> <span class="mi">8</span> <span class="mi">21</span><span class="p">:</span><span class="mi">39</span><span class="p">:</span><span class="mi">42</span> <span class="mi">2022</span> <span class="o">/+-----------------------------------------------------------------------------+</span> -<span class="o">/|</span> <span class="n">NVIDIA</span><span class="o">-</span><span class="n">SMI</span> <span class="mf">470.161.03</span> <span class="n">Driver</span> <span class="n">Version</span><span class="p">:</span> <span class="mf">470.161.03</span> <span class="n">CUDA</span> <span class="n">Version</span><span class="p">:</span> <span class="mf">11.4</span> <span class="o">|</span> +<span class="o">/|</span> <span class="n">NVIDIA</span><span class="o">-</span><span class="n">SMI</span> <span class="mf">470.161</span><span class="o">.</span><span class="mi">03</span> <span class="n">Driver</span> <span class="n">Version</span><span class="p">:</span> <span class="mf">470.161</span><span class="o">.</span><span class="mi">03</span> <span class="n">CUDA</span> <span class="n">Version</span><span class="p">:</span> <span class="mf">11.4</span> <span class="o">|</span> <span class="o">/|-------------------------------+----------------------+----------------------+</span> <span class="o">/|</span> <span class="n">GPU</span> <span class="n">Name</span> <span class="n">Persistence</span><span class="o">-</span><span class="n">M</span><span class="o">|</span> <span class="n">Bus</span><span class="o">-</span><span class="n">Id</span> <span class="n">Disp</span><span class="o">.</span><span class="n">A</span> <span class="o">|</span> <span class="n">Volatile</span> <span class="n">Uncorr</span><span class="o">.</span> <span class="n">ECC</span> <span class="o">|</span> <span class="o">/|</span> <span class="n">Fan</span> <span class="n">Temp</span> <span class="n">Perf</span> <span class="n">Pwr</span><span class="p">:</span><span class="n">Usage</span><span class="o">/</span><span class="n">Cap</span><span class="o">|</span> <span class="n">Memory</span><span class="o">-</span><span class="n">Usage</span> <span class="o">|</span> <span class="n">GPU</span><span class="o">-</span><span class="n">Util</span> <span class="n">Compute</span> <span class="n">M</span><span class="o">.</span> <span class="o">|</span> @@ -182,7 +186,7 @@ <h2>Installing NVIDIA Container Toolkit<a class="headerlink" href="#installing-n <p>Refer <a class="reference external" href="https://docs.nvidia.com/datacenter/tesla/tesla-installation-notes/index.html">NVIDIA driver installation</a> for further details of driver installation.</p> </section> <section id="docker-install"> -<h2>Docker Install<a class="headerlink" href="#docker-install" title="Permalink to this heading">¶</a></h2> +<h2>Docker Install<a class="headerlink" href="#docker-install" title="Permalink to this headline">¶</a></h2> <p>Once you are confident that your system meets any pre-requisites for Vitis AI Docker CUDA or ROCm GPU support, refer to official Docker <a class="reference external" href="https://docs.docker.com/engine/install/">documentation</a> to install the Docker engine.</p> </section> </section> diff --git a/docs/docs/install/patch_instructions.html b/docs/docs/install/patch_instructions.html index 6f851a4db..98557a670 100644 --- a/docs/docs/install/patch_instructions.html +++ b/docs/docs/install/patch_instructions.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script> <script src="../../_static/jquery.js"></script> <script src="../../_static/underscore.js"></script> - <script src="../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../_static/doctools.js"></script> <script src="../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="installing-a-vitis-ai-patch"> -<h1>Installing a Vitis AI Patch<a class="headerlink" href="#installing-a-vitis-ai-patch" title="Permalink to this heading">¶</a></h1> +<h1>Installing a Vitis AI Patch<a class="headerlink" href="#installing-a-vitis-ai-patch" title="Permalink to this headline">¶</a></h1> <p>Most Vitis™ AI components consist of Anaconda packages. These packages are distributed as tarballs, for example <a class="reference external" href="https://www.xilinx.com/bin/public/openDownload?filename=unilog-1.3.2-h7b12538_35.tar.bz2">unilog-1.3.2-h7b12538_35.tar.bz2</a>.</p> <p>You can install the patches by starting the Vitis AI Docker container, and installing the package to a specific conda environment. For example patching the <code class="docutils literal notranslate"><span class="pre">unilog</span></code> package in the <code class="docutils literal notranslate"><span class="pre">vitis-ai-caffe</span></code> conda environment:</p> diff --git a/docs/docs/quickstart/v70.html b/docs/docs/quickstart/v70.html index 8672b426e..6ff85b02a 100644 --- a/docs/docs/quickstart/v70.html +++ b/docs/docs/quickstart/v70.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,12 +30,11 @@ <script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script> <script src="../../_static/jquery.js"></script> <script src="../../_static/underscore.js"></script> - <script src="../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../_static/doctools.js"></script> <script src="../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../genindex.html" /> <link rel="search" title="Search" href="../../search.html" /> - <link rel="next" title="Overview" href="../workflow.html" /> + <link rel="next" title="Vitis AI Model Zoo" href="../getting-started-model-zoo.html" /> <link rel="prev" title="Quick Start Guide for Versal™ AI Edge VEK280" href="vek280.html" /> </head> @@ -97,6 +96,11 @@ </ul> </li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../workflow.html">Overview</a></li> @@ -160,35 +164,35 @@ <div itemprop="articleBody"> <section id="quick-start-guide-for-alveo-v70"> -<h1>Quick Start Guide for Alveo V70<a class="headerlink" href="#quick-start-guide-for-alveo-v70" title="Permalink to this heading">¶</a></h1> +<h1>Quick Start Guide for Alveo V70<a class="headerlink" href="#quick-start-guide-for-alveo-v70" title="Permalink to this headline">¶</a></h1> <p>The AMD <strong>DPUCV2DX8G</strong> for the Alveo™ V70 is a configurable computation engine dedicated to convolutional neural networks. It supports a highly optimized instruction set, enabling the deployment of most convolutional neural networks. The following instructions will help you install the software and packages required to support V70.</p> -<a class="reference internal image-reference" href="../../_images/V70.PNG"><img alt="../../_images/V70.PNG" src="../../_images/V70.PNG" style="width: 1300px;" /></a> +<a class="reference internal image-reference" href="docs/reference/images/V70.PNG"><img alt="docs/reference/images/V70.PNG" src="docs/reference/images/V70.PNG" style="width: 1300px;" /></a> <section id="prerequisites"> -<h2>Prerequisites<a class="headerlink" href="#prerequisites" title="Permalink to this heading">¶</a></h2> +<h2>Prerequisites<a class="headerlink" href="#prerequisites" title="Permalink to this headline">¶</a></h2> <section id="system-requirements"> -<h3>System Requirements<a class="headerlink" href="#system-requirements" title="Permalink to this heading">¶</a></h3> +<h3>System Requirements<a class="headerlink" href="#system-requirements" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p>Confirm that your development machine meets the minimum <a class="reference internal" href="../reference/system_requirements.html"><span class="doc">Host System Requirements</span></a>.</p></li> <li><p>Confirm that you have at least <strong>100GB</strong> of free space in the target partition.</p></li> </ul> </section> <section id="applicable-targets"> -<h3>Applicable Targets<a class="headerlink" href="#applicable-targets" title="Permalink to this heading">¶</a></h3> +<h3>Applicable Targets<a class="headerlink" href="#applicable-targets" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p>This quickstart is applicable to the <a class="reference external" href="https://www.xilinx.com/applications/data-center/v70.html">V70</a></p></li> </ul> </section> </section> <section id="quickstart"> -<h2>Quickstart<a class="headerlink" href="#quickstart" title="Permalink to this heading">¶</a></h2> +<h2>Quickstart<a class="headerlink" href="#quickstart" title="Permalink to this headline">¶</a></h2> <section id="clone-the-vitis-ai-repository"> -<h3>Clone the Vitis AI Repository<a class="headerlink" href="#clone-the-vitis-ai-repository" title="Permalink to this heading">¶</a></h3> +<h3>Clone the Vitis AI Repository<a class="headerlink" href="#clone-the-vitis-ai-repository" title="Permalink to this headline">¶</a></h3> <div class="highlight-Bash notranslate"><div class="highlight"><pre><span></span><span class="o">[</span>Host<span class="o">]</span> $ git clone https://github.com/Xilinx/Vitis-AI </pre></div> </div> </section> <section id="alveo-v70-setup"> -<h3>Alveo V70 Setup<a class="headerlink" href="#alveo-v70-setup" title="Permalink to this heading">¶</a></h3> +<h3>Alveo V70 Setup<a class="headerlink" href="#alveo-v70-setup" title="Permalink to this headline">¶</a></h3> <p>A script is provided to drive the V70 card setup process.</p> <div class="admonition note"> <p class="admonition-title">Note</p> @@ -213,14 +217,14 @@ <h3>Alveo V70 Setup<a class="headerlink" href="#alveo-v70-setup" title="Permalin </div> </section> <section id="install-docker"> -<h3>Install Docker<a class="headerlink" href="#install-docker" title="Permalink to this heading">¶</a></h3> +<h3>Install Docker<a class="headerlink" href="#install-docker" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p>Make sure that the Docker engine is installed according to the official Docker <a class="reference external" href="https://docs.docker.com/engine/install/">documentation</a>.</p></li> <li><p>The Docker daemon always runs as the root user. Non-root users must be <a class="reference external" href="https://docs.docker.com/engine/install/linux-postinstall/">added</a> to the docker group. Do this now.</p></li> </ul> </section> <section id="verify-docker-installation"> -<h3>Verify Docker Installation<a class="headerlink" href="#verify-docker-installation" title="Permalink to this heading">¶</a></h3> +<h3>Verify Docker Installation<a class="headerlink" href="#verify-docker-installation" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p>Perform a quick and simple test of your Docker installation by executing the following command. This command will download a test image from Docker Hub and run it in a container. When the container runs successfully, it prints a “Hello World” message and exits.</p></li> </ul> @@ -235,7 +239,7 @@ <h3>Verify Docker Installation<a class="headerlink" href="#verify-docker-install </div> </section> <section id="pull-vitis-ai-docker"> -<h3>Pull Vitis AI Docker<a class="headerlink" href="#pull-vitis-ai-docker" title="Permalink to this heading">¶</a></h3> +<h3>Pull Vitis AI Docker<a class="headerlink" href="#pull-vitis-ai-docker" title="Permalink to this headline">¶</a></h3> <p>In order to simplify this quickstart tutorial, we will utilize the Vitis-AI PyTorch CPU Docker to assess pre-built Vitis-AI examples, and subsequently perform quantization and compilation of our own model. The CPU docker image is generic, does not require the user to build the container, and has no specific GPU enablement requirements. More advanced users can optionally skip this step and jump to the <a class="reference internal" href="../install/install.html"><span class="doc">Full Install Instructions</span></a> but we would recommend that new users start with this simpler first step. Pull and start the latest Vitis AI Docker using the following commands:</p> <div class="highlight-Bash notranslate"><div class="highlight"><pre><span></span><span class="o">[</span>Host<span class="o">]</span> $ docker pull xilinx/vitis-ai-pytorch-cpu:latest @@ -245,7 +249,7 @@ <h3>Pull Vitis AI Docker<a class="headerlink" href="#pull-vitis-ai-docker" title </div> </section> <section id="docker-container-environment-variable-setup"> -<h3>Docker Container Environment Variable Setup<a class="headerlink" href="#docker-container-environment-variable-setup" title="Permalink to this heading">¶</a></h3> +<h3>Docker Container Environment Variable Setup<a class="headerlink" href="#docker-container-environment-variable-setup" title="Permalink to this headline">¶</a></h3> <p>From inside the docker container, execute one of the following commands to set the required environment variables for the DPU. Note that the chosen xclbin file must be in the <code class="docutils literal notranslate"><span class="pre">/opt/xilinx/overlaybins</span></code> directory prior to execution. Select the xclbin that matches your chosen DPU configuration.</p> <div class="highlight-Bash notranslate"><div class="highlight"><pre><span></span><span class="o">[</span>Docker<span class="o">]</span> $ <span class="nb">source</span> /workspace/board_setup/v70/setup.sh DPUCV2DX8G_v70 </pre></div> @@ -256,7 +260,7 @@ <h3>Docker Container Environment Variable Setup<a class="headerlink" href="#dock </div> </section> <section id="vitis-ai-model-zoo"> -<h3>Vitis-AI Model Zoo<a class="headerlink" href="#vitis-ai-model-zoo" title="Permalink to this heading">¶</a></h3> +<h3>Vitis-AI Model Zoo<a class="headerlink" href="#vitis-ai-model-zoo" title="Permalink to this headline">¶</a></h3> <p>You can now select a model from the <a class="reference external" href="../workflow-model-zoo.html">Vitis AI Model Zoo</a>. Navigate to the <a class="reference external" href="https://github.com/Xilinx/Vitis-AI/tree/master/model_zoo/model-list">model-list subdirectory</a> and select the model that you wish to test. For each model, a YAML file provides key details of the model. In the YAML file there are separate hyperlinks to download the model for each supported target. Choose the correct link for your target platform and download the model.</p> <ul class="simple"> <li><p>Take the ResNet50 model as an example.</p></li> @@ -273,7 +277,7 @@ <h3>Vitis-AI Model Zoo<a class="headerlink" href="#vitis-ai-model-zoo" title="Pe </div> </section> <section id="run-the-vitis-ai-examples"> -<h3>Run the Vitis AI Examples<a class="headerlink" href="#run-the-vitis-ai-examples" title="Permalink to this heading">¶</a></h3> +<h3>Run the Vitis AI Examples<a class="headerlink" href="#run-the-vitis-ai-examples" title="Permalink to this headline">¶</a></h3> <ol class="arabic simple"> <li><p>Download <a class="reference external" href="https://www.xilinx.com/bin/public/openDownload?filename=vitis_ai_runtime_r3.5.0_image_video.tar.gz">vitis_ai_runtime_r3.5.0_image_video.tar.gz</a> to your host.</p></li> </ol> @@ -321,10 +325,10 @@ <h3>Run the Vitis AI Examples<a class="headerlink" href="#run-the-vitis-ai-examp </section> </section> <section id="pytorch-tutorial"> -<h2>PyTorch Tutorial<a class="headerlink" href="#pytorch-tutorial" title="Permalink to this heading">¶</a></h2> +<h2>PyTorch Tutorial<a class="headerlink" href="#pytorch-tutorial" title="Permalink to this headline">¶</a></h2> <p>This tutorial assumes that Vitis AI has been installed and that the board has been configured as explained in the installation instructions above. For additional information on the Vitis AI Quantizer, Optimizer, or Compiler, please refer to the Vitis AI User Guide.</p> <section id="quantizing-the-model"> -<h3>Quantizing the Model<a class="headerlink" href="#quantizing-the-model" title="Permalink to this heading">¶</a></h3> +<h3>Quantizing the Model<a class="headerlink" href="#quantizing-the-model" title="Permalink to this headline">¶</a></h3> <p>Quantization reduces the precision of network weights and activations to optimize memory usage and computational efficiency while maintaining acceptable levels of accuracy. Inference is computationally expensive and requires high memory bandwidths to satisfy the low-latency and high-throughput requirements of Edge applications. Quantization and channel pruning techniques are employed to address these issues while achieving high performance and high energy efficiency with little degradation in accuracy. The Vitis AI Quantizer takes a floating-point model as an input and performs pre-processing (folds batchnorms and removes nodes not required for inference), and finally quantizes the weights/biases and activations to the given bit width.</p> @@ -471,7 +475,7 @@ <h3>Quantizing the Model<a class="headerlink" href="#quantizing-the-model" title </div> </section> <section id="compile-the-model"> -<h3>Compile the Model<a class="headerlink" href="#compile-the-model" title="Permalink to this heading">¶</a></h3> +<h3>Compile the Model<a class="headerlink" href="#compile-the-model" title="Permalink to this headline">¶</a></h3> <p>The Vitis AI Compiler compiles the graph operators as a set of micro-coded instructions that are executed by the DPU. In this step, we will compile the ResNet18 model that we quantized in the previous step.</p> <ol class="arabic simple"> <li><p>The compiler takes the quantized <code class="docutils literal notranslate"><span class="pre">INT8.xmodel</span></code> and generates the deployable <code class="docutils literal notranslate"><span class="pre">DPU.xmodel</span></code> by running the command below. Note that you must modify the command to specify the appropriate <code class="docutils literal notranslate"><span class="pre">arch.json</span></code> file for your target. For V70 targets, these are located in the folder <code class="docutils literal notranslate"><span class="pre">/opt/vitis_ai/compiler/arch/DPUCV2DX8G</span></code> inside the Docker container.</p></li> @@ -512,7 +516,7 @@ <h3>Compile the Model<a class="headerlink" href="#compile-the-model" title="Perm </ul> </section> <section id="model-deployment"> -<h3>Model Deployment<a class="headerlink" href="#model-deployment" title="Permalink to this heading">¶</a></h3> +<h3>Model Deployment<a class="headerlink" href="#model-deployment" title="Permalink to this headline">¶</a></h3> <ol class="arabic simple"> <li><p>Copy the <code class="docutils literal notranslate"><span class="pre">resnet18_pt</span></code> folder into the <code class="docutils literal notranslate"><span class="pre">/usr/share/vitis_ai_library/models/</span></code> directory. This will locate your compiled model in the default Vitis AI Library example model directory, alongside the other Vitis AI example models. Our purpose in doing this is to simplify the commands that follow, in which we will execute the Vitis AI Library samples with our model.</p></li> </ol> @@ -573,7 +577,7 @@ <h3>Model Deployment<a class="headerlink" href="#model-deployment" title="Permal <footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer"> <a href="vek280.html" class="btn btn-neutral float-left" title="Quick Start Guide for Versal™ AI Edge VEK280" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a> - <a href="../workflow.html" class="btn btn-neutral float-right" title="Overview" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a> + <a href="../getting-started-model-zoo.html" class="btn btn-neutral float-right" title="Vitis AI Model Zoo" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a> </div> <hr/> diff --git a/docs/docs/quickstart/vek280.html b/docs/docs/quickstart/vek280.html index 941b35390..e7af5faa8 100644 --- a/docs/docs/quickstart/vek280.html +++ b/docs/docs/quickstart/vek280.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script> <script src="../../_static/jquery.js"></script> <script src="../../_static/underscore.js"></script> - <script src="../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../_static/doctools.js"></script> <script src="../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../genindex.html" /> @@ -98,6 +97,11 @@ </li> <li class="toctree-l1"><a class="reference internal" href="v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../workflow.html">Overview</a></li> @@ -161,26 +165,26 @@ <div itemprop="articleBody"> <section id="quick-start-guide-for-versal-trade-ai-edge-vek280"> -<h1>Quick Start Guide for Versal™ AI Edge VEK280<a class="headerlink" href="#quick-start-guide-for-versal-trade-ai-edge-vek280" title="Permalink to this heading">¶</a></h1> +<h1>Quick Start Guide for Versal™ AI Edge VEK280<a class="headerlink" href="#quick-start-guide-for-versal-trade-ai-edge-vek280" title="Permalink to this headline">¶</a></h1> <p>The AMD <strong>DPUCV2DX8G</strong> for Versal™ AI Edge is a configurable computation engine dedicated to convolutional neural networks. It supports a highly optimized instruction set, enabling the deployment of most convolutional neural networks. The following instructions will help you to install the software and packages required to support VEK280.</p> <a class="reference internal image-reference" href="../../_images/VEK280_Top_img.png"><img alt="../../_images/VEK280_Top_img.png" class="align-center" src="../../_images/VEK280_Top_img.png" style="width: 400px;" /></a> <section id="prerequisites"> -<h2>Prerequisites<a class="headerlink" href="#prerequisites" title="Permalink to this heading">¶</a></h2> +<h2>Prerequisites<a class="headerlink" href="#prerequisites" title="Permalink to this headline">¶</a></h2> <section id="host-requirements"> -<h3>Host Requirements<a class="headerlink" href="#host-requirements" title="Permalink to this heading">¶</a></h3> +<h3>Host Requirements<a class="headerlink" href="#host-requirements" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p>Confirm that your development machine meets the minimum <a class="reference internal" href="../reference/system_requirements.html"><span class="doc">Host System Requirements</span></a>.</p></li> <li><p>Confirm that you have at least <strong>100GB</strong> of free space in the target partition.</p></li> </ul> </section> <section id="applicable-targets"> -<h3>Applicable Targets<a class="headerlink" href="#applicable-targets" title="Permalink to this heading">¶</a></h3> +<h3>Applicable Targets<a class="headerlink" href="#applicable-targets" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p>This quickstart is applicable to the <a class="reference external" href="https://www.xilinx.com/vek280">VEK280</a></p></li> </ul> </section> <section id="wsl"> -<h3>WSL<a class="headerlink" href="#wsl" title="Permalink to this heading">¶</a></h3> +<h3>WSL<a class="headerlink" href="#wsl" title="Permalink to this headline">¶</a></h3> <p>This is an optional step intended to enable Windows users to evaluate Vitis™ AI.</p> <p>Although this is not a fully supported flow, in most cases users will be able to execute this basic tutorial on Windows. The Windows Subsystem for Linux (WSL) can be installed from the command line. Open a Powershell prompt as an Administrator and execute the following command:</p> <div class="highlight-Bash notranslate"><div class="highlight"><pre><span></span><span class="o">[</span>Powershell<span class="o">]</span> > wsl --install -d Ubuntu-20.04 @@ -197,15 +201,15 @@ <h3>WSL<a class="headerlink" href="#wsl" title="Permalink to this heading">¶</a </section> </section> <section id="quickstart"> -<h2>Quickstart<a class="headerlink" href="#quickstart" title="Permalink to this heading">¶</a></h2> +<h2>Quickstart<a class="headerlink" href="#quickstart" title="Permalink to this headline">¶</a></h2> <section id="clone-the-vitis-ai-repository"> -<h3>Clone the Vitis AI Repository<a class="headerlink" href="#clone-the-vitis-ai-repository" title="Permalink to this heading">¶</a></h3> +<h3>Clone the Vitis AI Repository<a class="headerlink" href="#clone-the-vitis-ai-repository" title="Permalink to this headline">¶</a></h3> <div class="highlight-Bash notranslate"><div class="highlight"><pre><span></span><span class="o">[</span>Host<span class="o">]</span> $ git clone https://github.com/Xilinx/Vitis-AI </pre></div> </div> </section> <section id="install-docker"> -<h3>Install Docker<a class="headerlink" href="#install-docker" title="Permalink to this heading">¶</a></h3> +<h3>Install Docker<a class="headerlink" href="#install-docker" title="Permalink to this headline">¶</a></h3> <div class="admonition note"> <p class="admonition-title">Note</p> <p>WSL users are advised to install Docker via <a class="reference external" href="https://docs.docker.com/desktop/wsl/">Docker desktop</a>. WSL users can optionally leverage Docker using the command line flow below, however it has been found that the docker daemon doesn’t start automatically in WSL. The instructions provided below may not work verbatim for WSL users.</p> @@ -216,7 +220,7 @@ <h3>Install Docker<a class="headerlink" href="#install-docker" title="Permalink </ul> </section> <section id="verify-docker-installation"> -<h3>Verify Docker Installation<a class="headerlink" href="#verify-docker-installation" title="Permalink to this heading">¶</a></h3> +<h3>Verify Docker Installation<a class="headerlink" href="#verify-docker-installation" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p>Perform a quick and simple test of your Docker installation by executing the following command. This command will download a test image from Docker Hub and run it in a container. When the container runs successfully, it prints a “Hello World” message and exits.</p></li> </ul> @@ -231,7 +235,7 @@ <h3>Verify Docker Installation<a class="headerlink" href="#verify-docker-install </div> </section> <section id="pull-vitis-ai-docker"> -<h3>Pull Vitis AI Docker<a class="headerlink" href="#pull-vitis-ai-docker" title="Permalink to this heading">¶</a></h3> +<h3>Pull Vitis AI Docker<a class="headerlink" href="#pull-vitis-ai-docker" title="Permalink to this headline">¶</a></h3> <p>In order to simplify this quickstart tutorial, we will utilize the Vitis-AI PyTorch CPU Docker to assess pre-built Vitis-AI examples, and subsequently perform quantization and compilation of our own model. It is generic, does not require the user to build the container, and has no specific GPU enablement requirements. More advanced users can optionally skip this step and jump to the <a class="reference internal" href="../install/install.html"><span class="doc">Full Install Instructions</span></a> but we would recommend that new users start with this simpler first step. Pull and start the latest Vitis AI Docker using the following commands:</p> <div class="highlight-Bash notranslate"><div class="highlight"><pre><span></span><span class="o">[</span>Host<span class="o">]</span> $ docker pull xilinx/vitis-ai-pytorch-cpu:latest @@ -239,7 +243,7 @@ <h3>Pull Vitis AI Docker<a class="headerlink" href="#pull-vitis-ai-docker" title </div> </section> <section id="setup-the-host"> -<h3>Setup the Host<a class="headerlink" href="#setup-the-host" title="Permalink to this heading">¶</a></h3> +<h3>Setup the Host<a class="headerlink" href="#setup-the-host" title="Permalink to this headline">¶</a></h3> <p>It will be useful to you later on to have the cross-compiler installed. This will allow you to compile target application code on your host machine inside Docker. Run the following commands to install the cross-compilation environment.</p> <div class="admonition note"> <p class="admonition-title">Note</p> @@ -277,7 +281,7 @@ <h3>Setup the Host<a class="headerlink" href="#setup-the-host" title="Permalink <p>If the compilation process does not report an error and the executable file <code class="docutils literal notranslate"><span class="pre">resnet50_pt</span></code> is generated, then the host environment is installed correctly. If an error is reported, double-check that you executed the <code class="docutils literal notranslate"><span class="pre">source</span> <span class="pre">~/petalinux....</span></code> command.</p> </section> <section id="setup-the-target"> -<h3>Setup the Target<a class="headerlink" href="#setup-the-target" title="Permalink to this heading">¶</a></h3> +<h3>Setup the Target<a class="headerlink" href="#setup-the-target" title="Permalink to this headline">¶</a></h3> <p>The Vitis AI Runtime packages, VART samples, Vitis-AI-Library samples, and models are built into the board image, enhancing the user experience. Therefore, the user need not install Vitis AI Runtime packages and model packages on the board separately.</p> <ol class="arabic simple"> <li><p>Make the target / host connections as shown in the images below. Plug in the power adapter, ethernet cable, an HDMI monitor (optional), and connect the USB-UART interface to the host. If one is available, connect a USB webcam to the target.</p></li> @@ -286,7 +290,7 @@ <h3>Setup the Target<a class="headerlink" href="#setup-the-target" title="Permal <p class="admonition-title">Note</p> <p>We recommend the Logitech BRIO for use with Vitis AI pre-built images. The Logitech BRIO is capable of streaming RAW video at higher resolutions than most low-cost webcams. When leveraging other low-cost webcams with the Vitis AI pre-built image, encoded video streams are actually decoded on the target’s ARM APU which can reduce inference performance.</p> </div> -<a class="reference internal image-reference" href="../../_images/vek280_setup.png"><img alt="../../_images/vek280_setup.png" src="../../_images/vek280_setup.png" style="width: 1300px;" /></a> +<a class="reference internal image-reference" href="docs/reference/images/vek280_setup.png"><img alt="docs/reference/images/vek280_setup.png" src="docs/reference/images/vek280_setup.png" style="width: 1300px;" /></a> <ul class="simple"> <li><p>Configure the Versal Boot Mode switch SW1 [1:4] to (ON,OFF,OFF,OFF).</p></li> </ul> @@ -348,7 +352,7 @@ <h3>Setup the Target<a class="headerlink" href="#setup-the-target" title="Permal </div> </section> <section id="vitis-ai-model-zoo"> -<h3>Vitis-AI Model Zoo<a class="headerlink" href="#vitis-ai-model-zoo" title="Permalink to this heading">¶</a></h3> +<h3>Vitis-AI Model Zoo<a class="headerlink" href="#vitis-ai-model-zoo" title="Permalink to this headline">¶</a></h3> <p>You can now select a model from the <a class="reference external" href="../workflow-model-zoo.html">Vitis AI Model Zoo</a>. Navigate to the <a class="reference external" href="https://github.com/Xilinx/Vitis-AI/tree/master/model_zoo/model-list">model-list subdirectory</a> and select the model that you wish to test. For each model, a YAML file provides key details of the model. In the YAML file there are separate hyperlinks to download the model for each supported target. Choose the correct link for your target platform and download the model.</p> <ol class="arabic simple"> <li><p>Take the ResNet50 model as an example.</p></li> @@ -372,7 +376,7 @@ <h3>Vitis-AI Model Zoo<a class="headerlink" href="#vitis-ai-model-zoo" title="Pe </div> </section> <section id="run-the-vitis-ai-examples"> -<span id="vek280-run-vitis-ai-examples"></span><h3>Run the Vitis AI Examples<a class="headerlink" href="#run-the-vitis-ai-examples" title="Permalink to this heading">¶</a></h3> +<span id="vek280-run-vitis-ai-examples"></span><h3>Run the Vitis AI Examples<a class="headerlink" href="#run-the-vitis-ai-examples" title="Permalink to this headline">¶</a></h3> <ol class="arabic simple"> <li><p>Download <a class="reference external" href="https://www.xilinx.com/bin/public/openDownload?filename=vitis_ai_runtime_r3.5.0_image_video.tar.gz">vitis_ai_runtime_r3.5.0_image_video.tar.gz</a> from host to the target using scp with the following command:</p></li> </ol> @@ -413,10 +417,10 @@ <h3>Vitis-AI Model Zoo<a class="headerlink" href="#vitis-ai-model-zoo" title="Pe </section> </section> <section id="pytorch-tutorial"> -<h2>PyTorch Tutorial<a class="headerlink" href="#pytorch-tutorial" title="Permalink to this heading">¶</a></h2> +<h2>PyTorch Tutorial<a class="headerlink" href="#pytorch-tutorial" title="Permalink to this headline">¶</a></h2> <p>This tutorial assumes that Vitis AI has been installed and that the board has been configured as explained in the installation instructions above. For additional information on the Vitis AI Quantizer, Optimizer, or Compiler, please refer to the Vitis AI User Guide.</p> <section id="quantizing-the-model"> -<h3>Quantizing the Model<a class="headerlink" href="#quantizing-the-model" title="Permalink to this heading">¶</a></h3> +<h3>Quantizing the Model<a class="headerlink" href="#quantizing-the-model" title="Permalink to this headline">¶</a></h3> <p>Quantization reduces the precision of network weights and activations to optimize memory usage and computational efficiency while maintaining acceptable levels of accuracy. Inference is computationally expensive and requires high memory bandwidths to satisfy the low-latency and high-throughput requirements of Edge applications. Quantization and channel pruning techniques are employed to address these issues while achieving high performance and high energy efficiency with little degradation in accuracy. The Vitis AI Quantizer takes a floating-point model as an input and performs pre-processing (folds batchnorms and removes nodes not required for inference), and finally quantizes the weights/biases and activations to the given bit width.</p> @@ -562,7 +566,7 @@ <h3>Quantizing the Model<a class="headerlink" href="#quantizing-the-model" title </div> </section> <section id="compile-the-model"> -<h3>Compile the Model<a class="headerlink" href="#compile-the-model" title="Permalink to this heading">¶</a></h3> +<h3>Compile the Model<a class="headerlink" href="#compile-the-model" title="Permalink to this headline">¶</a></h3> <p>The Vitis AI Compiler compiles the graph operators as a set of micro-coded instructions that are executed by the DPU. In this step, we will compile the ResNet18 model that we quantized in the previous step.</p> <ol class="arabic simple"> <li><p>The compiler takes the quantized <code class="docutils literal notranslate"><span class="pre">INT8.xmodel</span></code> and generates the deployable <code class="docutils literal notranslate"><span class="pre">DPU.xmodel</span></code> by running the command below. Note that you must modify the command to specify the appropriate <code class="docutils literal notranslate"><span class="pre">arch.json</span></code> file for your target. For MPSoC targets, these are located in the folder <code class="docutils literal notranslate"><span class="pre">/opt/vitis_ai/compiler/arch/DPUCZDX8G</span></code> inside the Docker container.</p></li> @@ -603,7 +607,7 @@ <h3>Compile the Model<a class="headerlink" href="#compile-the-model" title="Perm </ul> </section> <section id="model-deployment"> -<h3>Model Deployment<a class="headerlink" href="#model-deployment" title="Permalink to this heading">¶</a></h3> +<h3>Model Deployment<a class="headerlink" href="#model-deployment" title="Permalink to this headline">¶</a></h3> <ol class="arabic simple"> <li><p>Download the <code class="docutils literal notranslate"><span class="pre">resnet18_pt</span></code> folder from host to target using scp with the following command:</p></li> </ol> diff --git a/docs/docs/ref_design_docs/README_DPUCV2DX8G.html b/docs/docs/ref_design_docs/README_DPUCV2DX8G.html index faab24fce..8c73d3159 100644 --- a/docs/docs/ref_design_docs/README_DPUCV2DX8G.html +++ b/docs/docs/ref_design_docs/README_DPUCV2DX8G.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script> <script src="../../_static/jquery.js"></script> <script src="../../_static/underscore.js"></script> - <script src="../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../_static/doctools.js"></script> <script src="../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="vek280-dpucv2dx8g-reference-design"> -<h1>VEK280 DPUCV2DX8G Reference Design<a class="headerlink" href="#vek280-dpucv2dx8g-reference-design" title="Permalink to this heading">¶</a></h1> +<h1>VEK280 DPUCV2DX8G Reference Design<a class="headerlink" href="#vek280-dpucv2dx8g-reference-design" title="Permalink to this headline">¶</a></h1> <div class="admonition note"> <p class="admonition-title">Note</p> <p>Until the release of Versal™ AI Edge production speed files (currently targeted with release of Vivado 2023.2.1), PDI generation for Versal AI Edge will require an early enablement license that can be requested via the Versal AI Edge Errata Secure Site. Also, the reference design archive does include a pre-compiled AIE object <code class="docutils literal notranslate"><span class="pre">libadf.a</span></code> for this specific DPU configuration, however, if the user wishes to reconfigure and recompile the DPUCV2DX8G, access to an AIE-ML Compiler early enablement license is required and can be obtained from the AIE Compiler Early Access Lounge. Finally, the user will also want to have access to documentation such as the VEK280 schematics, user guide and BSPs which are provided in the VEK280 Early Access Lounge. Please contact your local AMD sales or FAE contact to request access.</p> @@ -146,7 +150,7 @@ <h1>VEK280 DPUCV2DX8G Reference Design<a class="headerlink" href="#vek280-dpucv2 <p>The reference design associated with this document <a class="reference external" href="https://www.xilinx.com/bin/public/openDownload?filename=DPUCV2DX8G_VAI_v3.5.tar.gz">is found here</a>.</p> <section id="table-of-contents"> -<h2>Table of Contents<a class="headerlink" href="#table-of-contents" title="Permalink to this heading">¶</a></h2> +<h2>Table of Contents<a class="headerlink" href="#table-of-contents" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p><a class="reference external" href="#1-revision-history">1 Revision History</a></p></li> <li><p><a class="reference external" href="#2-overview">2 Overview</a></p></li> @@ -193,14 +197,14 @@ <h2>Table of Contents<a class="headerlink" href="#table-of-contents" title="Perm </ul> </section> <section id="revision-history"> -<h2>1 Revision History<a class="headerlink" href="#revision-history" title="Permalink to this heading">¶</a></h2> +<h2>1 Revision History<a class="headerlink" href="#revision-history" title="Permalink to this headline">¶</a></h2> <p>Vitis AI 3.5 change log: - Update platform to B01 board with ES silicon, and support Vitis 2023.1. - Support multi-batch setting</p> <p>VitisAI 3.0 change log: - Initial early access version</p> </section> <hr class="docutils" /> <section id="overview"> -<h2>2 Overview<a class="headerlink" href="#overview" title="Permalink to this heading">¶</a></h2> +<h2>2 Overview<a class="headerlink" href="#overview" title="Permalink to this headline">¶</a></h2> <p>The Xilinx Versal Deep Learning Processing Unit (DPUCV2DX8G) is a computation engine optimized for convolutional neural networks. It includes a set of highly optimized instructions, and supports most @@ -216,9 +220,9 @@ <h2>2 Overview<a class="headerlink" href="#overview" title="Permalink to this he </ul> </section> <section id="software-tools-and-system-requirements"> -<h2>3 Software Tools and System Requirements<a class="headerlink" href="#software-tools-and-system-requirements" title="Permalink to this heading">¶</a></h2> +<h2>3 Software Tools and System Requirements<a class="headerlink" href="#software-tools-and-system-requirements" title="Permalink to this headline">¶</a></h2> <section id="hardware"> -<h3>3.1 Hardware<a class="headerlink" href="#hardware" title="Permalink to this heading">¶</a></h3> +<h3>3.1 Hardware<a class="headerlink" href="#hardware" title="Permalink to this headline">¶</a></h3> <p>Required:</p> <ul class="simple"> <li><p>Revision B01 VEK280 evaluation board</p></li> @@ -231,7 +235,7 @@ <h3>3.1 Hardware<a class="headerlink" href="#hardware" title="Permalink to this </div> </section> <section id="software"> -<h3>3.2 Software<a class="headerlink" href="#software" title="Permalink to this heading">¶</a></h3> +<h3>3.2 Software<a class="headerlink" href="#software" title="Permalink to this headline">¶</a></h3> <p>Required:</p> <ul class="simple"> <li><p>Vitis 2023.1</p></li> @@ -245,9 +249,9 @@ <h3>3.2 Software<a class="headerlink" href="#software" title="Permalink to this </section> </section> <section id="design-files"> -<h2>4 Design Files<a class="headerlink" href="#design-files" title="Permalink to this heading">¶</a></h2> +<h2>4 Design Files<a class="headerlink" href="#design-files" title="Permalink to this headline">¶</a></h2> <section id="design-components"> -<h3>4.1 Design Components<a class="headerlink" href="#design-components" title="Permalink to this heading">¶</a></h3> +<h3>4.1 Design Components<a class="headerlink" href="#design-components" title="Permalink to this headline">¶</a></h3> <p>The top-level directory structure shows the the major design components.</p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span>├── app ├── README.md @@ -273,9 +277,9 @@ <h3>4.1 Design Components<a class="headerlink" href="#design-components" title=" </section> <hr class="docutils" /> <section id="tutorials"> -<h2>5 Tutorials<a class="headerlink" href="#tutorials" title="Permalink to this heading">¶</a></h2> +<h2>5 Tutorials<a class="headerlink" href="#tutorials" title="Permalink to this headline">¶</a></h2> <section id="board-setup"> -<h3>5.1 Board Setup<a class="headerlink" href="#board-setup" title="Permalink to this heading">¶</a></h3> +<h3>5.1 Board Setup<a class="headerlink" href="#board-setup" title="Permalink to this headline">¶</a></h3> <p>Board jumper and switch settings:</p> <p>Configure the Versal Boot Mode switch SW1 to boot from SD Card:</p> <ul class="simple"> @@ -283,7 +287,7 @@ <h3>5.1 Board Setup<a class="headerlink" href="#board-setup" title="Permalink to </ul> </section> <section id="build-and-run-the-reference-design"> -<h3>5.2 Build and Run The Reference Design<a class="headerlink" href="#build-and-run-the-reference-design" title="Permalink to this heading">¶</a></h3> +<h3>5.2 Build and Run The Reference Design<a class="headerlink" href="#build-and-run-the-reference-design" title="Permalink to this headline">¶</a></h3> <p>The following tutorials assume that the <cite>$TRD_HOME</cite> environment variable is set as shown below.</p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="o">%</span> <span class="n">export</span> <span class="n">TRD_HOME</span> <span class="o">=<</span><span class="n">Vitis</span> <span class="n">AI</span> <span class="n">path</span><span class="o">>/</span><span class="n">reference_design</span><span class="o">/</span><span class="n">DPUCV2DX8G</span><span class="o">-</span><span class="n">TRD</span> @@ -306,7 +310,7 @@ <h3>5.2 Build and Run The Reference Design<a class="headerlink" href="#build-and </pre></div> </div> <section id="build-the-dpu"> -<h4>5.2.1 Build the DPU<a class="headerlink" href="#build-the-dpu" title="Permalink to this heading">¶</a></h4> +<h4>5.2.1 Build the DPU<a class="headerlink" href="#build-the-dpu" title="Permalink to this headline">¶</a></h4> <p>The default architecture of DPUCV2DX8G is C20B1 (<cite>CU_N=1</cite>, <cite>BATCH_SingleCU=1</cite>, 16 AIE-ML cores for Convolution, 4 AIE-ML cores for Non-Convolution), PL clock frequency is 300 MHz. This version of the @@ -338,7 +342,7 @@ <h4>5.2.1 Build the DPU<a class="headerlink" href="#build-the-dpu" title="Permal </div> </section> <section id="get-json-file"> -<h4>5.2.2 Get Json File<a class="headerlink" href="#get-json-file" title="Permalink to this heading">¶</a></h4> +<h4>5.2.2 Get Json File<a class="headerlink" href="#get-json-file" title="Permalink to this headline">¶</a></h4> <p>The <cite>arch.json</cite> file is an important file required by Vitis AI. It works together with the Vitis AI compiler to support model compilation with various DPUCV2DX8G configurations. The <cite>arch.json</cite> file will be @@ -350,7 +354,7 @@ <h4>5.2.2 Get Json File<a class="headerlink" href="#get-json-file" title="Permal </div> </section> <section id="run-resnet50-example"> -<h4>5.2.3 Run ResNet50 Example<a class="headerlink" href="#run-resnet50-example" title="Permalink to this heading">¶</a></h4> +<h4>5.2.3 Run ResNet50 Example<a class="headerlink" href="#run-resnet50-example" title="Permalink to this headline">¶</a></h4> <p>The reference design project has generated the matching model file in <cite>$TRD_HOME/app</cite> path, pre-configured with default settings. If the configuration of the DPUCV2DX8G is modified, the model needs to be @@ -385,7 +389,7 @@ <h4>5.2.3 Run ResNet50 Example<a class="headerlink" href="#run-resnet50-example" </section> </section> <section id="change-the-configuration"> -<h3>5.3 Change the Configuration<a class="headerlink" href="#change-the-configuration" title="Permalink to this heading">¶</a></h3> +<h3>5.3 Change the Configuration<a class="headerlink" href="#change-the-configuration" title="Permalink to this headline">¶</a></h3> <p>The DPUCV2DX8G IP provides some user-configurable parameters, refer to the document <a class="reference external" href="https://docs.xilinx.com/r/en-US/pg425-dpu">PG425</a>.</p> <p>In this reference design, user-configurable parameters are in the file <cite>$TRD_HOME/vitis_prj/xv2dpu_config.mk</cite>.</p> @@ -400,11 +404,15 @@ <h3>5.3 Change the Configuration<a class="headerlink" href="#change-the-configur </section> <hr class="docutils" /> <section id="instructions-for-changing-the-platform"> -<h2>6 Instructions for Changing the Platform<a class="headerlink" href="#instructions-for-changing-the-platform" title="Permalink to this heading">¶</a></h2> +<h2>6 Instructions for Changing the Platform<a class="headerlink" href="#instructions-for-changing-the-platform" title="Permalink to this headline">¶</a></h2> <section id="dpucv2dx8g-ports"> -<h3>6.1 DPUCV2DX8G Ports<a class="headerlink" href="#dpucv2dx8g-ports" title="Permalink to this heading">¶</a></h3> +<h3>6.1 DPUCV2DX8G Ports<a class="headerlink" href="#dpucv2dx8g-ports" title="Permalink to this headline">¶</a></h3> <p>The DPUCV2DX8G ports are listed as below.</p> <table class="docutils align-default"> +<colgroup> +<col style="width: 70%" /> +<col style="width: 30%" /> +</colgroup> <thead> <tr class="row-odd"><th class="head"><p>Ports</p></th> <th class="head"><p>Descriptions</p></th> @@ -486,7 +494,7 @@ <h3>6.1 DPUCV2DX8G Ports<a class="headerlink" href="#dpucv2dx8g-ports" title="Pe </ul> </section> <section id="changing-the-platform"> -<h3>6.2 Changing the Platform<a class="headerlink" href="#changing-the-platform" title="Permalink to this heading">¶</a></h3> +<h3>6.2 Changing the Platform<a class="headerlink" href="#changing-the-platform" title="Permalink to this headline">¶</a></h3> <p>Changing platform needs to modify 1 files: <cite>vitis_prj/Makefile</cite>.</p> <div class="admonition note"> <p class="admonition-title">Note</p> @@ -513,13 +521,13 @@ <h3>6.2 Changing the Platform<a class="headerlink" href="#changing-the-platform" </section> <hr class="docutils" /> <section id="instructions-for-adding-other-kernels"> -<h2>7 Instructions for Adding Other Kernels<a class="headerlink" href="#instructions-for-adding-other-kernels" title="Permalink to this heading">¶</a></h2> +<h2>7 Instructions for Adding Other Kernels<a class="headerlink" href="#instructions-for-adding-other-kernels" title="Permalink to this headline">¶</a></h2> <p>Vitis kernels developed for Versal devices, could be RTL kernel (only use PL resouces), AIE kernel (only uses AI Engine tiles), or kernel including both PL and AIE. The basic instructions for adding other kernels in this reference design are shown below.</p> <section id="rtl-kernel"> -<h3>7.1 RTL Kernel<a class="headerlink" href="#rtl-kernel" title="Permalink to this heading">¶</a></h3> +<h3>7.1 RTL Kernel<a class="headerlink" href="#rtl-kernel" title="Permalink to this headline">¶</a></h3> <p>Package the RTL kernel as XO file. Then modify 2 files: <cite>vitis_prj/Makefile</cite>, and <cite>vitis_prj/scripts/xv2dpu_aie_noc.py</cite>,</p> <ol class="arabic simple"> @@ -556,7 +564,7 @@ <h3>7.1 RTL Kernel<a class="headerlink" href="#rtl-kernel" title="Permalink to t </section> </section> <section id="known-issues"> -<h2>8 Known Issues<a class="headerlink" href="#known-issues" title="Permalink to this heading">¶</a></h2> +<h2>8 Known Issues<a class="headerlink" href="#known-issues" title="Permalink to this headline">¶</a></h2> <ol class="arabic simple"> <li><p>This reference design has updated to support rev-B ES vek280 board, if you want to use it on rev-A board, Ethernet will not work, however diff --git a/docs/docs/reference/additional_resources.html b/docs/docs/reference/additional_resources.html index ad484fd0b..c654b1529 100644 --- a/docs/docs/reference/additional_resources.html +++ b/docs/docs/reference/additional_resources.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script> <script src="../../_static/jquery.js"></script> <script src="../../_static/underscore.js"></script> - <script src="../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../_static/doctools.js"></script> <script src="../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../genindex.html" /> @@ -72,6 +71,11 @@ <li class="toctree-l1"><a class="reference internal" href="../quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../workflow.html">Overview</a></li> @@ -135,7 +139,7 @@ <div itemprop="articleBody"> <section id="technical-support"> -<span id="additional-resources"></span><h1>Technical Support<a class="headerlink" href="#technical-support" title="Permalink to this heading">¶</a></h1> +<span id="additional-resources"></span><h1>Technical Support<a class="headerlink" href="#technical-support" title="Permalink to this headline">¶</a></h1> <p>There are multiple avenues available to obtain technical support for Vitis™ AI:</p> <blockquote> <div><ul class="simple"> @@ -147,7 +151,7 @@ </div></blockquote> </section> <section id="id1"> -<h1>Additional Resources<a class="headerlink" href="#id1" title="Permalink to this heading">¶</a></h1> +<h1>Additional Resources<a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h1> <blockquote> <div><ul class="simple"> <li><p>Xilinx® Vitis AI Developer <a class="reference external" href="https://www.xilinx.com/developer/products/vitis-ai.html">Site</a></p></li> diff --git a/docs/docs/reference/docker_image_versions.html b/docs/docs/reference/docker_image_versions.html index dc7589ef4..50d6ce88e 100644 --- a/docs/docs/reference/docker_image_versions.html +++ b/docs/docs/reference/docker_image_versions.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script> <script src="../../_static/jquery.js"></script> <script src="../../_static/underscore.js"></script> - <script src="../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../_static/doctools.js"></script> <script src="../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../workflow.html">Overview</a></li> @@ -134,9 +138,15 @@ <div itemprop="articleBody"> <section id="docker-images"> -<h1>Docker Images<a class="headerlink" href="#docker-images" title="Permalink to this heading">¶</a></h1> +<h1>Docker Images<a class="headerlink" href="#docker-images" title="Permalink to this headline">¶</a></h1> <p>Previously released Vitis™ AI CPU Docker images are <a class="reference external" href="https://hub.docker.com/r/xilinx/vitis-ai-cpu/tags?page=1&ordering=last_updated">available from Docker Hub</a>. If you are using a previous version of Vitis AI, you need to use the corresponding Docker version. Here is an example of how you can retrieve an older release:</p> <table class="docutils align-default"> +<colgroup> +<col style="width: 5%" /> +<col style="width: 29%" /> +<col style="width: 44%" /> +<col style="width: 22%" /> +</colgroup> <thead> <tr class="row-odd"><th class="head"><p>Version</p></th> <th class="head"><p>Github Link</p></th> @@ -154,10 +164,14 @@ <h1>Docker Images<a class="headerlink" href="#docker-images" title="Permalink to </table> </section> <section id="docker-image-tags"> -<h1>Docker Image Tags<a class="headerlink" href="#docker-image-tags" title="Permalink to this heading">¶</a></h1> +<h1>Docker Image Tags<a class="headerlink" href="#docker-image-tags" title="Permalink to this headline">¶</a></h1> <p>There is a corresponding relationship between Vitis AI and the required docker image. If you are not using the latest release of Vitis AI, you need to fetch the docker image version associated with the older release. We recommend that you directly use the pre-built image on Docker Hub.</p> <p>The version correspondence between Vitis AI and the docker image is shown in the following table:</p> <table class="docutils align-default"> +<colgroup> +<col style="width: 26%" /> +<col style="width: 74%" /> +</colgroup> <thead> <tr class="row-odd"><th class="head"><p>Vitis AI Version</p></th> <th class="head"><p>Docker Image Tag</p></th> diff --git a/docs/docs/reference/release_notes.html b/docs/docs/reference/release_notes.html index 9a14b2904..fc2ebb08d 100644 --- a/docs/docs/reference/release_notes.html +++ b/docs/docs/reference/release_notes.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script> <script src="../../_static/jquery.js"></script> <script src="../../_static/underscore.js"></script> - <script src="../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../_static/doctools.js"></script> <script src="../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../genindex.html" /> @@ -97,6 +96,11 @@ <li class="toctree-l1"><a class="reference internal" href="../quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../workflow.html">Overview</a></li> @@ -160,13 +164,13 @@ <div itemprop="articleBody"> <section id="release-notes-3-5"> -<h1>Release Notes 3.5<a class="headerlink" href="#release-notes-3-5" title="Permalink to this heading">¶</a></h1> +<h1>Release Notes 3.5<a class="headerlink" href="#release-notes-3-5" title="Permalink to this headline">¶</a></h1> <section id="version-compatibility"> -<h2>Version Compatibility<a class="headerlink" href="#version-compatibility" title="Permalink to this heading">¶</a></h2> +<h2>Version Compatibility<a class="headerlink" href="#version-compatibility" title="Permalink to this headline">¶</a></h2> <p>Vitis™ AI v3.5 and the DPU IP released with the v3.5 branch of this repository are verified as compatible with Vitis, Vivado™, and PetaLinux version 2023.1. If you are using a previous release of Vitis AI, you should review the <a class="reference internal" href="version_compatibility.html#version-compatibility"><span class="std std-ref">version compatibility matrix</span></a> for that release.</p> </section> <section id="documentation-and-github-repository"> -<h2>Documentation and Github Repository<a class="headerlink" href="#documentation-and-github-repository" title="Permalink to this heading">¶</a></h2> +<h2>Documentation and Github Repository<a class="headerlink" href="#documentation-and-github-repository" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p>Merged UG1333 into UG1414</p></li> <li><p>Streamlined UG1414 to remove redundant content</p></li> @@ -177,14 +181,14 @@ <h2>Documentation and Github Repository<a class="headerlink" href="#documentatio </ul> </section> <section id="docker-containers-and-gpu-support"> -<h2>Docker Containers and GPU Support<a class="headerlink" href="#docker-containers-and-gpu-support" title="Permalink to this heading">¶</a></h2> +<h2>Docker Containers and GPU Support<a class="headerlink" href="#docker-containers-and-gpu-support" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p>Removed Anaconda dependency from TensorFlow 2 and PyTorch containers in order to address Anaconda commercial license requirements</p></li> <li><p>Updated Docker container to disable Ubuntu 18.04 support (which was available in Vitis AI but not officially supported). This was done to address <a class="reference external" href="https://nvd.nist.gov/vuln/detail/CVE-2021-3493">CVE-2021-3493</a>.</p></li> </ul> </section> <section id="model-zoo"> -<h2>Model Zoo<a class="headerlink" href="#model-zoo" title="Permalink to this heading">¶</a></h2> +<h2>Model Zoo<a class="headerlink" href="#model-zoo" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p>Added more classic models without modification such as YOLO series and 2D Unet</p></li> <li><p>Provided model info card for each model and Jupyter Notebook tutorials for new models</p></li> @@ -192,7 +196,7 @@ <h2>Model Zoo<a class="headerlink" href="#model-zoo" title="Permalink to this he </ul> </section> <section id="onnx-cnn-quantizer"> -<h2>ONNX CNN Quantizer<a class="headerlink" href="#onnx-cnn-quantizer" title="Permalink to this heading">¶</a></h2> +<h2>ONNX CNN Quantizer<a class="headerlink" href="#onnx-cnn-quantizer" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p>Initial release</p></li> <li><p>This is a new quantizer that supports the direct PTQ quantization of ONNX models for DPU. It is a plugin built for the ONNXRuntime native quantizer.</p></li> @@ -207,7 +211,7 @@ <h2>ONNX CNN Quantizer<a class="headerlink" href="#onnx-cnn-quantizer" title="Pe </ul> </section> <section id="pytorch-cnn-quantizer"> -<h2>PyTorch CNN Quantizer<a class="headerlink" href="#pytorch-cnn-quantizer" title="Permalink to this heading">¶</a></h2> +<h2>PyTorch CNN Quantizer<a class="headerlink" href="#pytorch-cnn-quantizer" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p>Support for Pytorch 1.13 and 2.0</p></li> <li><p>Support for mixed precision quantization, float32/float16/bfloat16/intx</p></li> @@ -222,7 +226,7 @@ <h2>PyTorch CNN Quantizer<a class="headerlink" href="#pytorch-cnn-quantizer" tit </ul> </section> <section id="tensorflow-2-cnn-quantizer"> -<h2>TensorFlow 2 CNN Quantizer<a class="headerlink" href="#tensorflow-2-cnn-quantizer" title="Permalink to this heading">¶</a></h2> +<h2>TensorFlow 2 CNN Quantizer<a class="headerlink" href="#tensorflow-2-cnn-quantizer" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p>Updated to support for Tensorflow 2.12 and Python 3.8.</p></li> <li><p>Support for quantizing subclass models.</p></li> @@ -241,7 +245,7 @@ <h2>TensorFlow 2 CNN Quantizer<a class="headerlink" href="#tensorflow-2-cnn-quan 3. Fixed a graph transformation bug when a TFOpLambda op has multiple inputs.</p> </section> <section id="tensorflow-1-cnn-quantizer"> -<h2>TensorFlow 1 CNN Quantizer<a class="headerlink" href="#tensorflow-1-cnn-quantizer" title="Permalink to this heading">¶</a></h2> +<h2>TensorFlow 1 CNN Quantizer<a class="headerlink" href="#tensorflow-1-cnn-quantizer" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p>Support for fast fine-tuning that improves PTQ accuracy.</p></li> <li><p>Support for folding Reshape and ResizeNearestNeighbor operators.</p></li> @@ -254,7 +258,7 @@ <h2>TensorFlow 1 CNN Quantizer<a class="headerlink" href="#tensorflow-1-cnn-quan 1. Fixed a bug where the AddV2 operation is misinterpreted as a BiasAdd.</p> </section> <section id="compiler"> -<h2>Compiler<a class="headerlink" href="#compiler" title="Permalink to this heading">¶</a></h2> +<h2>Compiler<a class="headerlink" href="#compiler" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p>New operators supported: Broadcast add/mul, Bilinear downsample, Trilinear downsample, Group conv2d, Strided-slice</p></li> <li><p>Performance improved on XV2DPU</p></li> @@ -263,7 +267,7 @@ <h2>Compiler<a class="headerlink" href="#compiler" title="Permalink to this head </ul> </section> <section id="pytorch-optimizer"> -<h2>PyTorch Optimizer<a class="headerlink" href="#pytorch-optimizer" title="Permalink to this heading">¶</a></h2> +<h2>PyTorch Optimizer<a class="headerlink" href="#pytorch-optimizer" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p>Removed requirement for license purchase</p></li> <li><p>Migrated to Github open-source</p></li> @@ -273,7 +277,7 @@ <h2>PyTorch Optimizer<a class="headerlink" href="#pytorch-optimizer" title="Perm </ul> </section> <section id="tensorflow-2-optimizer"> -<h2>TensorFlow 2 Optimizer<a class="headerlink" href="#tensorflow-2-optimizer" title="Permalink to this heading">¶</a></h2> +<h2>TensorFlow 2 Optimizer<a class="headerlink" href="#tensorflow-2-optimizer" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p>Removed requirement for license purchase</p></li> <li><p>Migrated to Github open-source</p></li> @@ -284,7 +288,7 @@ <h2>TensorFlow 2 Optimizer<a class="headerlink" href="#tensorflow-2-optimizer" t </ul> </section> <section id="runtime"> -<h2>Runtime<a class="headerlink" href="#runtime" title="Permalink to this heading">¶</a></h2> +<h2>Runtime<a class="headerlink" href="#runtime" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p>Supports Versal AI Edge VEK280 evaluation kit</p></li> <li><p>Buffer optimized for multi-batches to improve performance</p></li> @@ -292,7 +296,7 @@ <h2>Runtime<a class="headerlink" href="#runtime" title="Permalink to this headin </ul> </section> <section id="vitis-onnx-runtime-execution-provider-voe"> -<h2>Vitis ONNX Runtime Execution Provider (VOE)<a class="headerlink" href="#vitis-onnx-runtime-execution-provider-voe" title="Permalink to this heading">¶</a></h2> +<h2>Vitis ONNX Runtime Execution Provider (VOE)<a class="headerlink" href="#vitis-onnx-runtime-execution-provider-voe" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p>Support for ONNX Opset version 18, ONNX Runtime 1.16.0 and ONNX version 1.13</p></li> <li><p>Support for both C++ and Python APIs(Python version 3)</p></li> @@ -302,25 +306,25 @@ <h2>Vitis ONNX Runtime Execution Provider (VOE)<a class="headerlink" href="#viti </ul> </section> <section id="library"> -<h2>Library<a class="headerlink" href="#library" title="Permalink to this heading">¶</a></h2> +<h2>Library<a class="headerlink" href="#library" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p>Added three new model libraries and support for five additional models</p></li> </ul> </section> <section id="model-inspector"> -<h2>Model Inspector<a class="headerlink" href="#model-inspector" title="Permalink to this heading">¶</a></h2> +<h2>Model Inspector<a class="headerlink" href="#model-inspector" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p>Added support for DPUCV2DX8G</p></li> </ul> </section> <section id="profiler"> -<h2>Profiler<a class="headerlink" href="#profiler" title="Permalink to this heading">¶</a></h2> +<h2>Profiler<a class="headerlink" href="#profiler" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p>Added Profiler support for DPUCV2DX8G</p></li> </ul> </section> <section id="dpu-ip-versal-aie-ml-targets-dpucv2dx8g-versal-ai-edge-core"> -<h2>DPU IP - Versal AIE-ML Targets DPUCV2DX8G (Versal AI Edge / Core)<a class="headerlink" href="#dpu-ip-versal-aie-ml-targets-dpucv2dx8g-versal-ai-edge-core" title="Permalink to this heading">¶</a></h2> +<h2>DPU IP - Versal AIE-ML Targets DPUCV2DX8G (Versal AI Edge / Core)<a class="headerlink" href="#dpu-ip-versal-aie-ml-targets-dpucv2dx8g-versal-ai-edge-core" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p>General access release for the Versal AI Edge device VE2802, Versal AI Core device VC2802 and Alveo V70 card</p></li> <li><p>Configurable from C20B1 to C20B14</p></li> @@ -328,7 +332,7 @@ <h2>DPU IP - Versal AIE-ML Targets DPUCV2DX8G (Versal AI Edge / Core)<a class="h </ul> </section> <section id="dpu-ip-zynq-ultrascale-dpuczdx8g"> -<h2>DPU IP - Zynq Ultrascale+ DPUCZDX8G<a class="headerlink" href="#dpu-ip-zynq-ultrascale-dpuczdx8g" title="Permalink to this heading">¶</a></h2> +<h2>DPU IP - Zynq Ultrascale+ DPUCZDX8G<a class="headerlink" href="#dpu-ip-zynq-ultrascale-dpuczdx8g" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p>No DPU IP updates in 3.5 release</p></li> <li><p>No DPU reference design updates in 3.5 release</p></li> @@ -336,7 +340,7 @@ <h2>DPU IP - Zynq Ultrascale+ DPUCZDX8G<a class="headerlink" href="#dpu-ip-zynq- </ul> </section> <section id="dpu-ip-versal-aie-targets-dpucvdx8g"> -<h2>DPU IP - Versal AIE Targets DPUCVDX8G<a class="headerlink" href="#dpu-ip-versal-aie-targets-dpucvdx8g" title="Permalink to this heading">¶</a></h2> +<h2>DPU IP - Versal AIE Targets DPUCVDX8G<a class="headerlink" href="#dpu-ip-versal-aie-targets-dpucvdx8g" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p>No DPU IP updates in 3.5 release</p></li> <li><p>No DPU reference design updates in 3.5 release</p></li> @@ -344,7 +348,7 @@ <h2>DPU IP - Versal AIE Targets DPUCVDX8G<a class="headerlink" href="#dpu-ip-ver </ul> </section> <section id="dpu-ip-cnn-alveo-data-center-dpucvdx8h"> -<h2>DPU IP - CNN - Alveo Data Center DPUCVDX8H<a class="headerlink" href="#dpu-ip-cnn-alveo-data-center-dpucvdx8h" title="Permalink to this heading">¶</a></h2> +<h2>DPU IP - CNN - Alveo Data Center DPUCVDX8H<a class="headerlink" href="#dpu-ip-cnn-alveo-data-center-dpucvdx8h" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p>No DPU IP updates in 3.5 release</p></li> <li><p>No DPU reference design updates in 3.5 release</p></li> @@ -352,7 +356,7 @@ <h2>DPU IP - CNN - Alveo Data Center DPUCVDX8H<a class="headerlink" href="#dpu-i </ul> </section> <section id="wego"> -<h2>WeGO<a class="headerlink" href="#wego" title="Permalink to this heading">¶</a></h2> +<h2>WeGO<a class="headerlink" href="#wego" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p>Support for Alveo V70 DPU GA release.</p></li> <li><p>Support for PyTorch 1.13.1 and TensorFlow r2.12.</p></li> @@ -362,7 +366,7 @@ <h2>WeGO<a class="headerlink" href="#wego" title="Permalink to this heading">¶< </ul> </section> <section id="known-issues"> -<h2>Known Issues<a class="headerlink" href="#known-issues" title="Permalink to this heading">¶</a></h2> +<h2>Known Issues<a class="headerlink" href="#known-issues" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p>To be announced ASAP</p></li> </ul> diff --git a/docs/docs/reference/system_requirements.html b/docs/docs/reference/system_requirements.html index 834fb29cf..6adb38b13 100644 --- a/docs/docs/reference/system_requirements.html +++ b/docs/docs/reference/system_requirements.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script> <script src="../../_static/jquery.js"></script> <script src="../../_static/underscore.js"></script> - <script src="../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../_static/doctools.js"></script> <script src="../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../genindex.html" /> @@ -73,6 +72,11 @@ <li class="toctree-l1"><a class="reference internal" href="../quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../workflow.html">Overview</a></li> @@ -136,9 +140,13 @@ <div itemprop="articleBody"> <section id="vitis-ai-host-developer-machine-requirements"> -<h1>Vitis AI Host (Developer) Machine Requirements<a class="headerlink" href="#vitis-ai-host-developer-machine-requirements" title="Permalink to this heading">¶</a></h1> +<h1>Vitis AI Host (Developer) Machine Requirements<a class="headerlink" href="#vitis-ai-host-developer-machine-requirements" title="Permalink to this headline">¶</a></h1> <p>The following table lists Vitis™ AI developer workstation system requirements:</p> <table class="docutils align-default"> +<colgroup> +<col style="width: 49%" /> +<col style="width: 51%" /> +</colgroup> <thead> <tr class="row-odd"><th class="head"><p>Component</p></th> <th class="head"><p>Requirement</p></th> diff --git a/docs/docs/reference/thirdpartysource.html b/docs/docs/reference/thirdpartysource.html index 85d54a354..5159012c3 100644 --- a/docs/docs/reference/thirdpartysource.html +++ b/docs/docs/reference/thirdpartysource.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script> <script src="../../_static/jquery.js"></script> <script src="../../_static/underscore.js"></script> - <script src="../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../_static/doctools.js"></script> <script src="../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../workflow.html">Overview</a></li> @@ -134,9 +138,9 @@ <div itemprop="articleBody"> <section id="third-party-source"> -<h1>Third Party Source<a class="headerlink" href="#third-party-source" title="Permalink to this heading">¶</a></h1> +<h1>Third Party Source<a class="headerlink" href="#third-party-source" title="Permalink to this headline">¶</a></h1> <section id="ubuntu-packages"> -<h2>Ubuntu Packages<a class="headerlink" href="#ubuntu-packages" title="Permalink to this heading">¶</a></h2> +<h2>Ubuntu Packages<a class="headerlink" href="#ubuntu-packages" title="Permalink to this headline">¶</a></h2> <p>Following is a list of Ubuntu Apt packages used by Vitis™ AI:</p> <ol class="arabic simple"> <li><p>sudo</p></li> @@ -168,7 +172,7 @@ <h2>Ubuntu Packages<a class="headerlink" href="#ubuntu-packages" title="Permalin <p>If you cannot access the internet pages for Ubuntu’s main source code repositories and obtain the source code for the Ubuntu Linux OS and base packages in this distribution, then Xilinx® hereby offers (which offer is valid for as long as required by the applicable license; and we may charge you the cost thereof unless prohibited by the license) to provide you with a copy of such source code; and to accept such offer send a letter requesting such source code (please be specific by identifying the particular Xilinx Software you are inquiring about (name and version number), to: Xilinx, Inc., Legal Department, Attention: Software Compliance Officer, 2100 Logic Drive, San Jose, CA U.S.A. 95124.</p> </section> <section id="conda-packages"> -<h2>Conda Packages<a class="headerlink" href="#conda-packages" title="Permalink to this heading">¶</a></h2> +<h2>Conda Packages<a class="headerlink" href="#conda-packages" title="Permalink to this headline">¶</a></h2> <p>Following is a list of Conda packages used by Vitis AI:</p> <ol class="arabic simple"> <li><p>_libgcc_mutex</p></li> @@ -342,7 +346,7 @@ <h2>Conda Packages<a class="headerlink" href="#conda-packages" title="Permalink <p>If you cannot access the internet pages for Anaconda’s main source code repositories and obtain the source code for the Anaconda software packages in this distribution, then you may obtain the source code <a class="reference external" href="https://www.xilinx.com/products/design-tools/guest-resources.html">here</a>. Xilinx hereby offers (which offer is valid for as long as required by the applicable license; and we may charge you the cost thereof unless prohibited by the license) to provide you with a copy of such source code; and to accept such offer send a letter requesting such source code (please be specific by identifying the particular Xilinx Software you are inquiring about (name and version number), to: Xilinx, Inc., Legal Department, Attention: Software Compliance Officer, 2100 Logic Drive, San Jose, CA U.S.A. 95124.</p> </section> <section id="xrt"> -<h2>XRT<a class="headerlink" href="#xrt" title="Permalink to this heading">¶</a></h2> +<h2>XRT<a class="headerlink" href="#xrt" title="Permalink to this headline">¶</a></h2> <p>XRT userspace code includes software developed by the following (Apache 2.0)</p> <ul class="simple"> <li><p>Copyright (C) 2019 Samsung Semiconductor, Inc.</p></li> diff --git a/docs/docs/workflow-model-deployment.html b/docs/docs/workflow-model-deployment.html index 936b4ab90..8dfca6c3f 100644 --- a/docs/docs/workflow-model-deployment.html +++ b/docs/docs/workflow-model-deployment.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../" id="documentation_options" src="../_static/documentation_options.js"></script> <script src="../_static/jquery.js"></script> <script src="../_static/underscore.js"></script> - <script src="../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../_static/doctools.js"></script> <script src="../_static/js/theme.js"></script> <link rel="index" title="Index" href="../genindex.html" /> @@ -73,6 +72,11 @@ <li class="toctree-l1"><a class="reference internal" href="quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul class="current"> <li class="toctree-l1"><a class="reference internal" href="workflow.html">Overview</a></li> @@ -144,9 +148,9 @@ <div itemprop="articleBody"> <section id="deploying-a-model"> -<h1>Deploying a Model<a class="headerlink" href="#deploying-a-model" title="Permalink to this heading">¶</a></h1> +<h1>Deploying a Model<a class="headerlink" href="#deploying-a-model" title="Permalink to this headline">¶</a></h1> <section id="workflow-for-deploying-a-model"> -<h2>Workflow for Deploying a Model<a class="headerlink" href="#workflow-for-deploying-a-model" title="Permalink to this heading">¶</a></h2> +<h2>Workflow for Deploying a Model<a class="headerlink" href="#workflow-for-deploying-a-model" title="Permalink to this headline">¶</a></h2> <p>Once you have successfully quantized and compiled your model for a specific DPU, the next task is to deploy that model on the target. Follow these steps in this process:</p> <ol class="arabic simple"> <li><p>Test your model and application software on one of the AMD platforms for which a pre-built DPU image is provided. Ideally, this would be the platform and DPU that closely matches your final production deployment.</p></li> @@ -167,7 +171,7 @@ <h2>Workflow for Deploying a Model<a class="headerlink" href="#workflow-for-depl </div> </section> <section id="embedded-versus-data-center-workflows"> -<h2>Embedded versus Data Center Workflows<a class="headerlink" href="#embedded-versus-data-center-workflows" title="Permalink to this heading">¶</a></h2> +<h2>Embedded versus Data Center Workflows<a class="headerlink" href="#embedded-versus-data-center-workflows" title="Permalink to this headline">¶</a></h2> <p>The Vitis AI workflow is largely unified for Embedded and Data Center applications but diverges at the deployment stage. There are various reasons for this divergence, including the following:</p> <ul class="simple"> <li><p>Zynq™ Ultrascale+™, Kria™, and Versal™ SoC applications leverage the on-chip processor subsystem (APU) as the host control node for model deployment. Considering optimization and <a class="reference internal" href="#whole-application-acceleration"><span class="std std-ref">Whole Application Acceleration</span></a> of subgraphs deployed on the SoC APU is crucial.</p></li> @@ -178,7 +182,7 @@ <h2>Embedded versus Data Center Workflows<a class="headerlink" href="#embedded-v </ul> </section> <section id="vitis-ai-library"> -<span id="id1"></span><h2>Vitis AI Library<a class="headerlink" href="#vitis-ai-library" title="Permalink to this heading">¶</a></h2> +<span id="id1"></span><h2>Vitis AI Library<a class="headerlink" href="#vitis-ai-library" title="Permalink to this headline">¶</a></h2> <p>The Vitis AI Library provides you with a head-start on model deployment. While it is possible for developers to directly leverage the Vitis AI Runtime APIs to deploy a model on AMD platforms, it is often more beneficial to start with a ready-made example that incorporates the various elements of a typical application, including:</p> <ul class="simple"> <li><p>Simplified CPU-based pre and post-processing implementations.</p></li> @@ -198,7 +202,7 @@ <h2>Embedded versus Data Center Workflows<a class="headerlink" href="#embedded-v </ul> </section> <section id="vitis-ai-runtime"> -<span id="id2"></span><h2>Vitis AI Runtime<a class="headerlink" href="#vitis-ai-runtime" title="Permalink to this heading">¶</a></h2> +<span id="id2"></span><h2>Vitis AI Runtime<a class="headerlink" href="#vitis-ai-runtime" title="Permalink to this headline">¶</a></h2> <p>The Vitis AI Runtime (VART) is a set of API functions that support the integration of the DPU into software applications. VART provides a unified high-level runtime for both Data Center and Embedded targets. Key features of the Vitis AI Runtime API are:</p> <ul class="simple"> <li><p>Asynchronous submission of jobs to the DPU.</p></li> @@ -214,7 +218,7 @@ <h2>Embedded versus Data Center Workflows<a class="headerlink" href="#embedded-v </ul> </section> <section id="whole-application-acceleration"> -<span id="id3"></span><h2>Whole Application Acceleration<a class="headerlink" href="#whole-application-acceleration" title="Permalink to this heading">¶</a></h2> +<span id="id3"></span><h2>Whole Application Acceleration<a class="headerlink" href="#whole-application-acceleration" title="Permalink to this headline">¶</a></h2> <p>It is typical in machine learning applications to require some degree of pre-processing, such as illustrated in the following example:</p> <figure class="align-default" id="id6"> <a class="reference internal image-reference" href="../_images/waa_preprocess.PNG"><img alt="../_images/waa_preprocess.PNG" src="../_images/waa_preprocess.PNG" style="width: 1300px;" /></a> @@ -235,7 +239,7 @@ <h2>Embedded versus Data Center Workflows<a class="headerlink" href="#embedded-v SDK</a>, which, while not part of Vitis AI, offers many important features for developing end-to-end video analytics pipelines that employ multi-stage (cascaded) AI pipelines. VVAS also applies to designs that leverage video decoding, transcoding, RTSP streaming, and CMOS sensor interfaces. Another important differentiator of VVAS is that it directly enables software developers to leverage <a class="reference external" href="https://gstreamer.freedesktop.org/">GStreamer</a> commands to interact with the video pipeline.</p> </section> <section id="vitis-ai-profiler"> -<span id="id4"></span><h2>Vitis AI Profiler<a class="headerlink" href="#vitis-ai-profiler" title="Permalink to this heading">¶</a></h2> +<span id="id4"></span><h2>Vitis AI Profiler<a class="headerlink" href="#vitis-ai-profiler" title="Permalink to this headline">¶</a></h2> <p>The Vitis AI Profiler is a set of tools that enables you to profile and visualize AI applications based on VART. The Vitis AI Profiler is easy to use as it can be enabled post-deployment and requires no code changes. Specifically, the Vitis AI Profiler supports profiling and visualization of machine learning pipelines deployed on Embedded targets with the Vitis AI Runtime. In a typical machine learning pipeline we find neural network operations that can be accelerated on the DPU, as well as functions such as pre-processing or custom operators that are not supported by the DPU. These additional functions may be implemented as a C/C++ kernel or accelerated using Whole-Application Acceleration or customized RTL. Using the Vitis AI Profiler is critical for developers to optimize the entire inference pipeline iteratively. The Vitis AI Profiler lets the developer visualize and analyze the system and graph-level performance bottlenecks.</p> <p>The Vitis AI Profiler is a component of the Vitis AI toolchain installed in the VAI Docker. The Source code is not provided.</p> <ul class="simple"> diff --git a/docs/docs/workflow-model-development.html b/docs/docs/workflow-model-development.html index 5388e391a..2138612f5 100644 --- a/docs/docs/workflow-model-development.html +++ b/docs/docs/workflow-model-development.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../" id="documentation_options" src="../_static/documentation_options.js"></script> <script src="../_static/jquery.js"></script> <script src="../_static/underscore.js"></script> - <script src="../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../_static/doctools.js"></script> <script src="../_static/js/theme.js"></script> <link rel="index" title="Index" href="../genindex.html" /> @@ -73,6 +72,11 @@ <li class="toctree-l1"><a class="reference internal" href="quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul class="current"> <li class="toctree-l1"><a class="reference internal" href="workflow.html">Overview</a></li> @@ -159,9 +163,9 @@ <div itemprop="articleBody"> <section id="developing-a-model"> -<h1>Developing a Model<a class="headerlink" href="#developing-a-model" title="Permalink to this heading">¶</a></h1> +<h1>Developing a Model<a class="headerlink" href="#developing-a-model" title="Permalink to this headline">¶</a></h1> <section id="model-inspector"> -<span id="id1"></span><h2>Model Inspector<a class="headerlink" href="#model-inspector" title="Permalink to this heading">¶</a></h2> +<span id="id1"></span><h2>Model Inspector<a class="headerlink" href="#model-inspector" title="Permalink to this headline">¶</a></h2> <p>The Vitis AI quantizer and compiler are designed to parse and compile operators within a frozen FP32 graph for acceleration in hardware. However, novel neural network architectures, operators, and activation types are constantly being developed and optimized for prediction accuracy and performance. In this context, it is important to understand that while AMD strives to provide support for a wide variety of neural network architectures and provide these graphs for user reference, only some operators are supported for acceleration on the DPU. Furthermore, specific layer ordering requirements enable Vitis AI model deployment.</p> <p>In the early phases of development, it is highly recommended that the developer leverage the Vitis AI Model Inspector as an initial sanity check to confirm that the operators and sequence of operators in the graph is compatible with Vitis AI.</p> <figure class="align-default" id="id7"> @@ -176,7 +180,7 @@ <h1>Developing a Model<a class="headerlink" href="#developing-a-model" title="Pe <li><p>If your graph uses operators that are not natively supported by your specific DPU target, see the <a class="reference internal" href="#operator-support"><span class="std std-ref">Operator Support</span></a> section.</p></li> </ul> <section id="operator-support"> -<span id="id2"></span><h3>Operator Support<a class="headerlink" href="#operator-support" title="Permalink to this heading">¶</a></h3> +<span id="id2"></span><h3>Operator Support<a class="headerlink" href="#operator-support" title="Permalink to this headline">¶</a></h3> <p>Several paths are available to leverage an operator not supported for acceleration on the DPU, including C/C++ code or custom HLS or RTL kernels. However, these DIY paths pose specific challenges related to the partitioning of a trained model. For most developers, a workflow that supports automated partitioning is preferred.</p> <div class="admonition important"> <p class="admonition-title">Important</p> @@ -195,7 +199,7 @@ <h1>Developing a Model<a class="headerlink" href="#developing-a-model" title="Pe </section> </section> <section id="model-optimization"> -<span id="id3"></span><h2>Model Optimization<a class="headerlink" href="#model-optimization" title="Permalink to this heading">¶</a></h2> +<span id="id3"></span><h2>Model Optimization<a class="headerlink" href="#model-optimization" title="Permalink to this headline">¶</a></h2> <p>The Vitis AI Optimizer exploits the notion of sparsity to reduce the overall computational complexity for inference. Many deep neural network topologies employ significant levels of redundancy. This is particularly true when the network backbone is optimized for prediction accuracy with training datasets supporting many classes. In many cases, this redundancy can be reduced by “pruning” some of the operations out of the graph. There are two forms of pruning - channel (kernel) pruning and sparse pruning.</p> <div class="admonition important"> <p class="admonition-title">Important</p> @@ -217,17 +221,17 @@ <h1>Developing a Model<a class="headerlink" href="#developing-a-model" title="Pe <p>The Vitis AI Optimizer is a component of the Vitis AI toolchain, installed in the VAI Docker, and is also provided as <a class="reference external" href="https://github.com/Xilinx/Vitis-AI/tree/v3.5/src/vai_optimizer">open-source</a>.</p> <section id="channel-pruning"> -<h3>Channel Pruning<a class="headerlink" href="#channel-pruning" title="Permalink to this heading">¶</a></h3> +<h3>Channel Pruning<a class="headerlink" href="#channel-pruning" title="Permalink to this headline">¶</a></h3> <p>Current Vitis AI DPUs can take advantage of channel pruning to significantly reduce the computational cost for inference, often with little or no prediction accuracy loss. In contrast to sparse pruning, which requires that the computation of specific activations within a channel or layer be “skipped” at inference time, channel pruning requires no special hardware to address the problem of these “skipped” computations.</p> <p>The Vitis AI Optimizer is an optional component of the Vitis AI flow. In general it is possible to reduce the overall computational cost by a factor of more than 2x, and in some cases by a factor of 10x, with minimal losses in prediction accuracy. In many cases, there is actually an improvement in prediction accuracy during the first few iterations of pruning. While the fine-tuning step is in part responsible for this improvement, it is not the only explanation. Such accuracy improvements will not come as a surprise to developers who are familiar with the concept of overfitting, a phenomena that can occur when a large, deep, network is trained on a dataset that has a limited number of classes.</p> <p>Many pre-trained networks available in the AMD <a class="reference internal" href="workflow-model-zoo.html"><span class="doc">Model Zoo</span></a> are pruned using this technique.</p> </section> <section id="neural-architecture-search"> -<h3>Neural Architecture Search<a class="headerlink" href="#neural-architecture-search" title="Permalink to this heading">¶</a></h3> +<h3>Neural Architecture Search<a class="headerlink" href="#neural-architecture-search" title="Permalink to this headline">¶</a></h3> <p>In addition to channel pruning, a technique coined “Once-for-All” training is supported in Vitis AI. The concept of Neural Architecture Search (NAS) is that for any given inference task and dataset, there exist in the potential design space a number of network architectures that are both efficient and have high prediction scores. A developer often starts with a standard backbone familiar to them, such as ResNet50, and trains that network for the best accuracy. However, there are many cases when a network topology with a much lower computational cost may have offered similar or better performance. For the developer, the effort to train multiple networks with the same dataset (sometimes going so far as to make this a training hyperparameter) is not an efficient method to select the best network topology. “Once-for-All” addresses this challenge by employing a single training pass and novel selection techniques.</p> </section> <section id="nas-and-ai-optimizer-related-resources"> -<h3>NAS and AI Optimizer Related Resources<a class="headerlink" href="#nas-and-ai-optimizer-related-resources" title="Permalink to this heading">¶</a></h3> +<h3>NAS and AI Optimizer Related Resources<a class="headerlink" href="#nas-and-ai-optimizer-related-resources" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p>Sample scripts for channel pruning can be found in <a class="reference external" href="https://github.com/Xilinx/Vitis-AI/tree/v3.5/examples/vai_optimizer">examples</a></p></li> <li><p>For additional details on channel pruning leveraging the Vitis AI Optimizer, refer to <a class="reference external" href="https://docs.xilinx.com/access/sources/dita/map?isLatest=true&ft:locale=en-US&url=ug1333-ai-optimizer">Vitis AI Optimizer User Guide</a>.</p></li> @@ -238,12 +242,12 @@ <h3>NAS and AI Optimizer Related Resources<a class="headerlink" href="#nas-and-a </section> </section> <section id="model-quantization"> -<span id="id4"></span><h2>Model Quantization<a class="headerlink" href="#model-quantization" title="Permalink to this heading">¶</a></h2> +<span id="id4"></span><h2>Model Quantization<a class="headerlink" href="#model-quantization" title="Permalink to this headline">¶</a></h2> <p>Deployment of neural networks on AMD DPUs is made more efficient through the use of integer quantization to reduce the energy cost, memory footprint, and data path bandwidth required for inference.</p> <p>AMD general-purpose CNN-focused DPUs leverage INT8 (8-bit integer) quantization of a trained network. In many real-world datasets, the distribution of weights and activations at a given layer in the network typically spans a much narrower range than can be represented by a 32-bit floating point number. It is thus possible to accurately represent the distribution of weights and activations at a given layer as integer values by simply applying a scaling factor. The impact on prediction accuracy of INT8 quantization is typically low, often less than 1%. This is true in many applications in which the input data consists of images and video, point-cloud data, and input data from various sampled-data systems, including specific audio and RF applications.</p> <section id="quantization-process"> -<span id="id5"></span><h3>Quantization Process<a class="headerlink" href="#quantization-process" title="Permalink to this heading">¶</a></h3> +<span id="id5"></span><h3>Quantization Process<a class="headerlink" href="#quantization-process" title="Permalink to this headline">¶</a></h3> <p>The Vitis AI Quantizer, integrated as a component of either TensorFlow or PyTorch, performs a calibration step in which a subset of the original training data (typically 100-1000 samples, no labels required) is forward propagated through the network to analyze the distribution of the activations at each layer. The weights and activations are then quantized as 8-bit integer values. This process is referred to as Post-Training Quantization. Following quantization, the prediction accuracy of the network is re-tested using data from the validation set. If the accuracy is acceptable, the quantization process is complete.</p> <p>With certain network topologies, the developer may experience excessive accuracy loss. In these cases, a technique referred to as QAT (Quantization Aware Training) can be used with the source training data to execute several back propagation passes to optimize (fine-tune) the quantized weights.</p> <figure class="align-default" id="id10"> @@ -255,7 +259,7 @@ <h3>NAS and AI Optimizer Related Resources<a class="headerlink" href="#nas-and-a <p>The Vitis AI Quantizer is a component of the Vitis AI toolchain, installed in the VAI Docker, and is also provided as <a class="reference external" href="https://github.com/Xilinx/Vitis-AI/tree/v3.5/src/vai_quantizer">open-source</a>.</p> <section id="quantization-related-resources"> -<h4>Quantization Related Resources<a class="headerlink" href="#quantization-related-resources" title="Permalink to this heading">¶</a></h4> +<h4>Quantization Related Resources<a class="headerlink" href="#quantization-related-resources" title="Permalink to this headline">¶</a></h4> <ul class="simple"> <li><p>For additional details on the Vitis AI Quantizer, refer the “Quantizing the Model” chapter in the <a class="reference external" href="https://docs.xilinx.com/access/sources/dita/map?isLatest=true&ft:locale=en-US&url=ug1414-vitis-ai">Vitis AI User Guide</a>.</p></li> <li><p>TensorFlow 2.x examples are available <a class="reference external" href="https://github.com/Xilinx/Vitis-AI/tree/v3.5/examples/vai_quantizer/tensorflow2x">here</a></p></li> @@ -265,7 +269,7 @@ <h4>Quantization Related Resources<a class="headerlink" href="#quantization-rela </section> </section> <section id="model-compilation"> -<span id="id6"></span><h2>Model Compilation<a class="headerlink" href="#model-compilation" title="Permalink to this heading">¶</a></h2> +<span id="id6"></span><h2>Model Compilation<a class="headerlink" href="#model-compilation" title="Permalink to this headline">¶</a></h2> <p>Once the model has been quantized, the Vitis AI Compiler is used to construct an internal computation graph as an intermediate representation (IR). This internal graph consists of independent control and data flow representations. The compiler then performs multiple optimizations; for example, batch normalization operations are fused with convolution when the convolution operator precedes the normalization operator. As the DPU supports multiple dimensions of parallelism, efficient instruction scheduling is key to exploiting the inherent parallelism and potential for data reuse in the graph. The Vitis AI Compiler addresses such optimizations.</p> <p>The intermediate representation leveraged by Vitis AI is “XIR” (Xilinx Intermediate Representation). The XIR-based compiler takes the quantized TensorFlow or PyTorch model as input. First, the compiler transforms the input model into the XIR format. Most of the variations between different frameworks are eliminated at this stage. The compiler then applies optimizations to the graph and, as necessary, will partition it into several subgraphs based on whether the subgraph operators can be executed on the DPU. Architecture-aware optimizations are applied for each subgraph. For the DPU subgraph, the compiler generates the instruction stream. Finally, the optimized graph is serialized into a compiled .xmodel file.</p> <p>The compilation process leverages an additional input as a DPU arch.json file. This file communicates the target architecture to the compiler, hence, the capabilities of the specific DPU for which the graph will be compiled. The compiled model will not run on the target if the correct <code class="docutils literal notranslate"><span class="pre">arch.json</span></code> file is not used. Runtime errors will occur if the model is not compiled for the correct DPU architecture. The implication is that models compiled for a specific target DPU must be recompiled if they are to be deployed on a different DPU architecture.</p> @@ -283,7 +287,7 @@ <h4>Quantization Related Resources<a class="headerlink" href="#quantization-rela </figure> <p>The Vitis AI Compiler is a component of the Vitis AI toolchain, installed in the VAI Docker. The source code for the compiler is not provided.</p> <section id="compiler-related-resources"> -<h3>Compiler Related Resources<a class="headerlink" href="#compiler-related-resources" title="Permalink to this heading">¶</a></h3> +<h3>Compiler Related Resources<a class="headerlink" href="#compiler-related-resources" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p>For more information on Vitis AI Compiler and XIR refer to the “Compiling the Model” chapter in the <a class="reference external" href="https://docs.xilinx.com/access/sources/dita/map?isLatest=true&ft:locale=en-US&url=ug1414-vitis-ai">Vitis AI User Guide</a>.</p></li> <li><p>PyXIR, which supports TVM and ONNXRuntime integration is available as <a class="reference external" href="https://github.com/Xilinx/pyxir">open source</a>.</p></li> diff --git a/docs/docs/workflow-model-zoo.html b/docs/docs/workflow-model-zoo.html index a697e5a99..da85e9c92 100644 --- a/docs/docs/workflow-model-zoo.html +++ b/docs/docs/workflow-model-zoo.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../" id="documentation_options" src="../_static/documentation_options.js"></script> <script src="../_static/jquery.js"></script> <script src="../_static/underscore.js"></script> - <script src="../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../_static/doctools.js"></script> <script src="../_static/js/theme.js"></script> <link rel="index" title="Index" href="../genindex.html" /> @@ -73,6 +72,11 @@ <li class="toctree-l1"><a class="reference internal" href="quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul class="current"> <li class="toctree-l1"><a class="reference internal" href="workflow.html">Overview</a></li> @@ -154,14 +158,14 @@ <div itemprop="articleBody"> <section id="vitis-ai-model-zoo"> -<span id="workflow-model-zoo"></span><h1>Vitis AI Model Zoo<a class="headerlink" href="#vitis-ai-model-zoo" title="Permalink to this heading">¶</a></h1> +<span id="workflow-model-zoo"></span><h1>Vitis AI Model Zoo<a class="headerlink" href="#vitis-ai-model-zoo" title="Permalink to this headline">¶</a></h1> <p>The Vitis™ AI Model Zoo, incorporated into the Vitis AI repository, includes optimized deep learning models to speed up the deployment of deep learning inference on AMD platforms. These models cover different applications, including but not limited to ADAS/AD, medical, video surveillance, robotics, data center, and so on. You can get started with these free pre-trained models to enjoy the benefits of deep learning acceleration.</p> <section id="vitis-ai-copyleft-model-zoo"> -<h2>Vitis AI Copyleft Model Zoo<a class="headerlink" href="#vitis-ai-copyleft-model-zoo" title="Permalink to this heading">¶</a></h2> +<h2>Vitis AI Copyleft Model Zoo<a class="headerlink" href="#vitis-ai-copyleft-model-zoo" title="Permalink to this headline">¶</a></h2> <p>Many open-source models are released under reciprocal license terms which are not compatible with Apache 2.0. In order to faciliate the support of such models, and clearly distinguish the source license for each, we have created a separate Model Zoo repository. Users will find the training code for these models (for example, YOLOv7) in the <a class="reference external" href="https://github.com/Xilinx/Vitis-AI-Copyleft-Model-Zoo">Vitis AI Copyleft Model Zoo</a>. All other models are found in the primary Vitis AI repository.</p> </section> <section id="model-zoo-details-and-performance"> -<h2>Model Zoo Details and Performance<a class="headerlink" href="#model-zoo-details-and-performance" title="Permalink to this heading">¶</a></h2> +<h2>Model Zoo Details and Performance<a class="headerlink" href="#model-zoo-details-and-performance" title="Permalink to this headline">¶</a></h2> <p>All the models in the Model Zoo are deployed on AMD adaptable hardware with <a class="reference external" href="https://github.com/Xilinx/Vitis-AI">Vitis AI</a> and the <a class="reference external" href="https://github.com/Xilinx/Vitis-AI/tree/v3.5/examples/vai_library">Vitis AI Library</a>. The performance benchmark data includes end-to-end throughput and latency for each model, targeting various boards with varied DPU configurations.</p> <p>To make the job of using the Model Zoo a little easier, we have provided a downloadable spreadsheet and an online table that incorporates key data about the Model Zoo models. The spreadsheet and tables include comprehensive information about all models, including links to the original papers and datasets, source framework, input size, computational cost (GOPs), and float and quantized accuracy. <strong>You can download the spreadsheet</strong> <a class="reference download internal" download="" href="../_downloads/ff9554ff9ff6240811c20ede15113dbd/ModelZoo_Github.xlsx"><code class="xref download docutils literal notranslate"><span class="pre">here</span></code></a>.</p> <a href="reference/ModelZoo_Github_web.htm"><h4>Click here to view the Model Zoo Details & Performance table online.</h4></a><br><br><div class="admonition note"> @@ -178,10 +182,10 @@ <h2>Model Zoo Details and Performance<a class="headerlink" href="#model-zoo-deta </div> </section> <section id="model-file-nomenclature"> -<h2>Model File Nomenclature<a class="headerlink" href="#model-file-nomenclature" title="Permalink to this heading">¶</a></h2> +<h2>Model File Nomenclature<a class="headerlink" href="#model-file-nomenclature" title="Permalink to this headline">¶</a></h2> <p>When downloading and using models from the Model Zoo, it will be important to you to understand the nomenclature used for each file.</p> <section id="model-file-nomenclature-decoder"> -<h3>Model File Nomenclature Decoder<a class="headerlink" href="#model-file-nomenclature-decoder" title="Permalink to this heading">¶</a></h3> +<h3>Model File Nomenclature Decoder<a class="headerlink" href="#model-file-nomenclature-decoder" title="Permalink to this headline">¶</a></h3> <p>AMD Model Zoo file names assume the format: <cite>F_M_(D)_H_W_(P)_C_V</cite>, where:</p> <ul class="simple"> <li><p><cite>F</cite> specifies the training framework: <cite>tf</cite> is TensorFlow 1.x, <cite>tf2</cite> is TensorFlow 2.x, <cite>pt</cite> is PyTorch</p></li> @@ -197,14 +201,14 @@ <h3>Model File Nomenclature Decoder<a class="headerlink" href="#model-file-nomen </section> </section> <section id="model-download"> -<h2>Model Download<a class="headerlink" href="#model-download" title="Permalink to this heading">¶</a></h2> +<h2>Model Download<a class="headerlink" href="#model-download" title="Permalink to this headline">¶</a></h2> <div class="admonition note"> <p class="admonition-title">Note</p> <p>Each model is associated with a <cite>.yaml</cite> file encapsulating the download link and MD5 checksum for a tar.gz file. These YAML files are in the Vitis AI repository <code class="docutils literal notranslate"><span class="pre">/model_zoo/model-list</span></code>. There is a separate tar.gz file for each specific target platform. A simple way to download an individual model is to use the URLs provided in the .yaml file. This can be useful if you want to download and inspect the model outside a Python environment.</p> </div> <p>The download package includes the pre-compiled, pre-trained model, which you can leverage as a base reference (layer types, activation types, layer ordering) for your implementation or directly deploy that model on an AMD target.</p> <section id="automated-download-script"> -<h3>Automated Download Script<a class="headerlink" href="#automated-download-script" title="Permalink to this heading">¶</a></h3> +<h3>Automated Download Script<a class="headerlink" href="#automated-download-script" title="Permalink to this headline">¶</a></h3> <p>The Vitis AI Model Zoo repository provides a Python <code class="docutils literal notranslate"><span class="pre">/model_zoo/downloader.py</span></code> that quickly downloads specific models.</p> <div class="admonition note"> <p class="admonition-title">Note</p> @@ -223,15 +227,15 @@ <h3>Automated Download Script<a class="headerlink" href="#automated-download-scr <li><p>Select the desired target hardware platform for the version of the model you need.</p> <p>For example, after running downloader.py, input <code class="docutils literal notranslate"><span class="pre">tf</span> <span class="pre">resnet</span></code> and you will see a list of models that include the text <cite>resnet</cite>:</p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="mi">0</span><span class="p">:</span> <span class="nb">all</span> -<span class="mi">1</span><span class="p">:</span> <span class="n">tf_resnetv1_50_imagenet_224_224_6</span><span class="mf">.97</span><span class="n">G_3</span><span class="mf">.0</span> -<span class="mi">2</span><span class="p">:</span> <span class="n">tf_resnetv1_101_imagenet_224_224_14</span><span class="mf">.4</span><span class="n">G_3</span><span class="mf">.0</span> -<span class="mi">3</span><span class="p">:</span> <span class="n">tf_resnetv1_152_imagenet_224_224_21</span><span class="mf">.83</span><span class="n">G_3</span><span class="mf">.0</span> +<span class="mi">1</span><span class="p">:</span> <span class="n">tf_resnetv1_50_imagenet_224_224_6</span><span class="o">.</span><span class="mi">97</span><span class="n">G_3</span><span class="o">.</span><span class="mi">0</span> +<span class="mi">2</span><span class="p">:</span> <span class="n">tf_resnetv1_101_imagenet_224_224_14</span><span class="o">.</span><span class="mi">4</span><span class="n">G_3</span><span class="o">.</span><span class="mi">0</span> +<span class="mi">3</span><span class="p">:</span> <span class="n">tf_resnetv1_152_imagenet_224_224_21</span><span class="o">.</span><span class="mi">83</span><span class="n">G_3</span><span class="o">.</span><span class="mi">0</span> <span class="o">......</span> </pre></div> </div> <p>Proceed by entering one of the numbers from the list. As an example, if you input ‘1’ the script will list all options that match your selection:</p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="mi">0</span><span class="p">:</span> <span class="nb">all</span> -<span class="mi">1</span><span class="p">:</span> <span class="n">tf_resnetv1_50_imagenet_224_224_6</span><span class="mf">.97</span><span class="n">G_3</span><span class="mf">.0</span> <span class="n">GPU</span> +<span class="mi">1</span><span class="p">:</span> <span class="n">tf_resnetv1_50_imagenet_224_224_6</span><span class="o">.</span><span class="mi">97</span><span class="n">G_3</span><span class="o">.</span><span class="mi">0</span> <span class="n">GPU</span> <span class="mi">2</span><span class="p">:</span> <span class="n">resnet_v1_50_tf</span> <span class="n">ZCU102</span> <span class="o">&</span> <span class="n">ZCU104</span> <span class="o">&</span> <span class="n">KV260</span> <span class="mi">3</span><span class="p">:</span> <span class="n">resnet_v1_50_tf</span> <span class="n">VCK190</span> <span class="mi">4</span><span class="p">:</span> <span class="n">resnet_v1_50_tf</span> <span class="n">vck50006pe</span><span class="o">-</span><span class="n">DPUCVDX8H</span> @@ -245,10 +249,10 @@ <h3>Automated Download Script<a class="headerlink" href="#automated-download-scr </ol> </section> <section id="model-directory-structure"> -<h3>Model Directory Structure<a class="headerlink" href="#model-directory-structure" title="Permalink to this heading">¶</a></h3> +<h3>Model Directory Structure<a class="headerlink" href="#model-directory-structure" title="Permalink to this headline">¶</a></h3> <p>Once you have downloaded one or more models, you can extract the model archive into your selected workspace.</p> <section id="tensorflow-model-directory-structure"> -<h4>Tensorflow Model Directory Structure<a class="headerlink" href="#tensorflow-model-directory-structure" title="Permalink to this heading">¶</a></h4> +<h4>Tensorflow Model Directory Structure<a class="headerlink" href="#tensorflow-model-directory-structure" title="Permalink to this headline">¶</a></h4> <p>TensorFlow models have the following directory structure:</p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span>├── code # Contains test code that can execute the model on the target and showcase model performance. │ @@ -269,7 +273,7 @@ <h4>Tensorflow Model Directory Structure<a class="headerlink" href="#tensorflow- </div> </section> <section id="pytorch-model-directory-structure"> -<h4>Pytorch Model Directory Structure<a class="headerlink" href="#pytorch-model-directory-structure" title="Permalink to this heading">¶</a></h4> +<h4>Pytorch Model Directory Structure<a class="headerlink" href="#pytorch-model-directory-structure" title="Permalink to this headline">¶</a></h4> <p>PyTorch models have the following directory structure:</p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span>├── code # Contains test and training code. │ @@ -309,7 +313,7 @@ <h4>Pytorch Model Directory Structure<a class="headerlink" href="#pytorch-model- </section> </section> <section id="model-retraining"> -<h2>Model Retraining<a class="headerlink" href="#model-retraining" title="Permalink to this heading">¶</a></h2> +<h2>Model Retraining<a class="headerlink" href="#model-retraining" title="Permalink to this headline">¶</a></h2> <p>AMD provides the original floating point model and training scripts for each model in the Model Zoo. Review the <cite>.yaml</cite> file for your target model to locate the download link for the “GPU” model.</p> <p>Here is an example:</p> <blockquote> diff --git a/docs/docs/workflow-third-party.html b/docs/docs/workflow-third-party.html index 33d6d5a42..3ecb65587 100644 --- a/docs/docs/workflow-third-party.html +++ b/docs/docs/workflow-third-party.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../" id="documentation_options" src="../_static/documentation_options.js"></script> <script src="../_static/jquery.js"></script> <script src="../_static/underscore.js"></script> - <script src="../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../_static/doctools.js"></script> <script src="../_static/js/theme.js"></script> <link rel="index" title="Index" href="../genindex.html" /> @@ -73,6 +72,11 @@ <li class="toctree-l1"><a class="reference internal" href="quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="workflow.html">Overview</a></li> @@ -141,10 +145,10 @@ <div itemprop="articleBody"> <section id="third-party-inference-stack-integration"> -<h1>Third-party Inference Stack Integration<a class="headerlink" href="#third-party-inference-stack-integration" title="Permalink to this heading">¶</a></h1> +<h1>Third-party Inference Stack Integration<a class="headerlink" href="#third-party-inference-stack-integration" title="Permalink to this headline">¶</a></h1> <p>Vitis™ AI provides integration support for TVM, ONNX Runtime, and TensorFlow Lite workflows. The developers can leverage these workflows through the subfolders. A brief description of these workflows is as follows:</p> <section id="tvm"> -<h2>TVM<a class="headerlink" href="#tvm" title="Permalink to this heading">¶</a></h2> +<h2>TVM<a class="headerlink" href="#tvm" title="Permalink to this headline">¶</a></h2> <p><a class="reference external" href="https://tvm.apache.org/">TVM.ai</a> is an Apache Software Foundation project and inference stack that can parse machine learning models from almost any training framework. The model is converted to an intermediate representation (TVM relay), and the stack can then compile the model for various targets, including embedded SoCs, CPUs, GPUs, and x86 and x64 platforms. TVM incorporates an open-source programmable-logic accelerator, the VTA, created using the AMD HLS compiler. TVM supports partitioning a graph into several sub-graphs. These sub-graphs can be targeted to specific accelerators within the target platform (CPU, GPU, VTA, and so on) to enable heterogeneous acceleration.</p> <p>The VTA is not used for the published Vitis AI - TVM workflow, instead opting to integrate the DPU for offloading compiled subgraphs. Subgraphs that can be partitioned for execution on the DPU are quantized and compiled by the Vitis AI compiler for a specific DPU target. In contrast, the TVM compiler compiles the remaining subgraphs and operations for execution on LLVM.</p> <p>For additional details of Vitis AI - TVM integration, refer <a class="reference external" href="https://tvm.apache.org/docs/how_to/deploy/vitis_ai.html">here</a>.</p> @@ -156,7 +160,7 @@ <h2>TVM<a class="headerlink" href="#tvm" title="Permalink to this heading">¶</a </figure> </section> <section id="onnx-runtime"> -<h2>ONNX Runtime<a class="headerlink" href="#onnx-runtime" title="Permalink to this heading">¶</a></h2> +<h2>ONNX Runtime<a class="headerlink" href="#onnx-runtime" title="Permalink to this headline">¶</a></h2> <p><a class="reference external" href="https://onnxruntime.ai/">ONNX Runtime</a> was devised as a cross-platform inference deployment runtime for ONNX models. ONNX Runtime provides the benefit of runtime interpretation of models represented in the ONNX intermediate representation (IR) format.</p> <p>The <a class="reference external" href="https://onnxruntime.ai/docs/execution-providers/">ONNX Runtime Execution Provider</a> framework enables the integration of customized tensor accelerator cores from any “execution provider.” Such “execution providers” are typically tensor acceleration IP blocks integrated into an SoC by the semiconductor vendor. Specific subgraphs or operations within the ONNX graph can be offloaded to that core based on the advertised capabilities of that execution provider. The ability of a given accelerator to offload operations is presented as a listing of capabilities to the ONNX Runtime.</p> <p>Starting with the release of Vitis AI 3.0, we have enhanced Vitis AI support for the ONNX Runtime. The Vitis AI Quantizer can now be leveraged to export a quantized ONNX model to the runtime where subgraphs suitable for deployment on the DPU are compiled. Remaining subgraphs are then deployed by ONNX Runtime, leveraging the AMD Versal™ and Zynq™ UltraScale+™ MPSoC APUs, or the Ryzen™ AI AMD64 cores to deploy these subgraphs. The underlying software infrastructure is named VOE or “<strong>V</strong> itis AI <strong>O</strong> NNX Runtime <strong>E</strong> ngine”. Users should refer to the section “Programming with VOE” in <a class="reference internal" href="reference/release_documentation.html"><span class="doc">UG1414</span></a> for additional information on this powerful workflow.</p> @@ -169,7 +173,7 @@ <h2>ONNX Runtime<a class="headerlink" href="#onnx-runtime" title="Permalink to t <p>For Ryzen™ AI targets which leverage the AMD XDNA™ adaptable AI architecture, the Vitis AI Execution Provider is published <a class="reference external" href="https://onnxruntime.ai/docs/execution-providers/community-maintained/Vitis-AI-ExecutionProvider.html">here</a>.</p> </section> <section id="tensorflow-lite"> -<h2>TensorFlow Lite<a class="headerlink" href="#tensorflow-lite" title="Permalink to this heading">¶</a></h2> +<h2>TensorFlow Lite<a class="headerlink" href="#tensorflow-lite" title="Permalink to this headline">¶</a></h2> <p>TensorFlow Lite has been a preferred inference solution for TensorFlow users in the embedded space for many years. TensorFlow Lite provides support for embedded ARM processors, as well as NEON tensor acceleration. TensorFlow Lite provides the benefit of runtime interpretation of models trained in TensorFlow Lite, implying that no compilation is required to execute the model on target. This has made TensorFlow Lite a convenient solution for embedded and mobile MCU targets which did not incorporate purpose-built tensor acceleration cores.</p> <p>With the addition of <a class="reference external" href="https://www.tensorflow.org/lite/performance/delegates">TensorFlow Delegates</a>, it became possible for semiconductor vendors with purpose-built tensor accelerators to integrate support into the TensorFlow Lite framework. Certain operations can be offloaded (delegated) to these specialized accelerators, repositioning TensorFlow Lite runtime interpretation as a useful workflow in the high-performance space.</p> <p>Vitis AI Delegate support is integrated as an <a class="reference external" href="https://github.com/Xilinx/Vitis-AI/tree/v3.0/third_party/tflite">experimental flow</a> in recent releases.</p> diff --git a/docs/docs/workflow.html b/docs/docs/workflow.html index 955974dbe..d4b9ff69b 100644 --- a/docs/docs/workflow.html +++ b/docs/docs/workflow.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,13 +30,12 @@ <script data-url_root="../" id="documentation_options" src="../_static/documentation_options.js"></script> <script src="../_static/jquery.js"></script> <script src="../_static/underscore.js"></script> - <script src="../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../_static/doctools.js"></script> <script src="../_static/js/theme.js"></script> <link rel="index" title="Index" href="../genindex.html" /> <link rel="search" title="Search" href="../search.html" /> <link rel="next" title="DPU IP Details and System Integration" href="workflow-system-integration.html" /> - <link rel="prev" title="Quick Start Guide for Alveo V70" href="quickstart/v70.html" /> + <link rel="prev" title="SESR-S model" href="models/super_resolution/SESR_S.html" /> </head> <body class="wy-body-for-nav"> @@ -73,6 +72,11 @@ <li class="toctree-l1"><a class="reference internal" href="quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul class="current"> <li class="toctree-l1 current"><a class="current reference internal" href="#">Overview</a><ul> @@ -140,9 +144,9 @@ <div itemprop="articleBody"> <section id="overview"> -<h1>Overview<a class="headerlink" href="#overview" title="Permalink to this heading">¶</a></h1> +<h1>Overview<a class="headerlink" href="#overview" title="Permalink to this headline">¶</a></h1> <section id="first-steps"> -<h2>First Steps<a class="headerlink" href="#first-steps" title="Permalink to this heading">¶</a></h2> +<h2>First Steps<a class="headerlink" href="#first-steps" title="Permalink to this headline">¶</a></h2> <p>So, you are a new user wondering where to start. In general, there are two primary starting points. Most users will want to start by evaluating the toolchain and running a few examples. AMD recommends that all users start by downloading and running examples on a supported target platform, and then move on to installation and evaluation of the tools.</p> <p>The two workflows are as follows:</p> <figure class="align-default" id="id1"> @@ -160,9 +164,9 @@ <h2>First Steps<a class="headerlink" href="#first-steps" title="Permalink to thi <p>If you are not familiar with AMD’s Adaptable SoC offerings, you may need better understand the features and performance of AMD Adaptable SoCs before selecting a platform. Users can review Versal™, Zynq™ Ultrascale+™ and Alveo datasheets and documentation, as well as the DPU product guides. Also important is to review the <a class="reference internal" href="workflow-model-zoo.html"><span class="doc">Vitis AI Model Zoo</span></a> performance metrics which will allow you to contrast the relative performance of each target family. If required, users may also wish to consult with a local FAE or ML Specialist to determine the ideal target product family or device for a given application.</p> </section> <section id="supported-evaluation-targets"> -<h2>Supported Evaluation Targets<a class="headerlink" href="#supported-evaluation-targets" title="Permalink to this heading">¶</a></h2> +<h2>Supported Evaluation Targets<a class="headerlink" href="#supported-evaluation-targets" title="Permalink to this headline">¶</a></h2> <p>Vitis™ AI 3.5 supports the following targets for evaluation.</p> -<table class="docutils align-default"> +<table class="colwidths-given docutils align-default"> <colgroup> <col style="width: 30%" /> <col style="width: 70%" /> @@ -201,7 +205,7 @@ <h2>Supported Evaluation Targets<a class="headerlink" href="#supported-evaluatio <footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer"> - <a href="quickstart/v70.html" class="btn btn-neutral float-left" title="Quick Start Guide for Alveo V70" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a> + <a href="models/super_resolution/SESR_S.html" class="btn btn-neutral float-left" title="SESR-S model" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a> <a href="workflow-system-integration.html" class="btn btn-neutral float-right" title="DPU IP Details and System Integration" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a> </div> diff --git a/docs/doxygen/api/class/classvart_1_1_base_runner.html b/docs/doxygen/api/class/classvart_1_1_base_runner.html index afe3c51c4..ef88cdfc2 100644 --- a/docs/doxygen/api/class/classvart_1_1_base_runner.html +++ b/docs/doxygen/api/class/classvart_1_1_base_runner.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -73,6 +72,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -144,7 +148,7 @@ <div itemprop="articleBody"> <section id="class-vart-baserunner"> -<h1>Class vart::BaseRunner<a class="headerlink" href="#class-vart-baserunner" title="Permalink to this heading">¶</a></h1> +<h1>Class vart::BaseRunner<a class="headerlink" href="#class-vart-baserunner" title="Permalink to this headline">¶</a></h1> <dl class="cpp class"> <dt class="sig sig-object cpp" id="_CPPv4I00EN4vart10BaseRunnerE"> <span id="_CPPv3I00EN4vart10BaseRunnerE"></span><span id="_CPPv2I00EN4vart10BaseRunnerE"></span><span class="k"><span class="pre">template</span></span><span class="p"><span class="pre"><</span></span><span class="k"><span class="pre">typename</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">InputType</span></span></span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="k"><span class="pre">typename</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">OutputType</span></span></span><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><a class="reference internal" href="#_CPPv4I00EN4vart10BaseRunnerE" title="vart::BaseRunner::InputType"><span class="n"><span class="pre">InputType</span></span></a><span class="p"><span class="pre">></span></span><br /><span class="target" id="classvart_1_1_base_runner"></span><span class="k"><span class="pre">class</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">BaseRunner</span></span></span><a class="headerlink" href="#_CPPv4I00EN4vart10BaseRunnerE" title="Permalink to this definition">¶</a><br /></dt> @@ -156,13 +160,13 @@ <h1>Class vart::BaseRunner<a class="headerlink" href="#class-vart-baserunner" ti <span id="_CPPv3N4vart10BaseRunner13execute_asyncE9InputType10OutputType"></span><span id="_CPPv2N4vart10BaseRunner13execute_asyncE9InputType10OutputType"></span><span id="vart::BaseRunner::execute_async__InputType.OutputType"></span><span class="target" id="classvart_1_1_base_runner_1a3a6ebaa53c9250e3c739c3c407c1c20f"></span><span class="k"><span class="pre">virtual</span></span><span class="w"> </span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">pair</span></span><span class="p"><span class="pre"><</span></span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">uint32_t</span></span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="kt"><span class="pre">int</span></span><span class="p"><span class="pre">></span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">execute_async</span></span></span><span class="sig-paren">(</span><a class="reference internal" href="#_CPPv4I00EN4vart10BaseRunnerE" title="vart::BaseRunner::InputType"><span class="n"><span class="pre">InputType</span></span></a><span class="w"> </span><span class="n sig-param"><span class="pre">input</span></span>, <a class="reference internal" href="#_CPPv4I00EN4vart10BaseRunnerE" title="vart::BaseRunner::OutputType"><span class="n"><span class="pre">OutputType</span></span></a><span class="w"> </span><span class="n sig-param"><span class="pre">output</span></span><span class="sig-paren">)</span><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="m"><span class="pre">0</span></span><a class="headerlink" href="#_CPPv4N4vart10BaseRunner13execute_asyncE9InputType10OutputType" title="Permalink to this definition">¶</a><br /></dt> <dd><p><a class="reference internal" href="../python/execute__async_8py.html#namespaceexecute__async"><span class="std std-ref">execute_async</span></a></p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>input</strong> – inputs with a customized type</p></li> <li><p><strong>output</strong> – outputs with a customized type</p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>pair<jobid, status> status 0 for exit successfully, others for customized warnings or errors </p> </dd> </dl> @@ -174,13 +178,13 @@ <h1>Class vart::BaseRunner<a class="headerlink" href="#class-vart-baserunner" ti <dd><p>wait </p> <p>modes: 1. Blocking wait for specific ID. 2. Non-blocking wait for specific ID. 3. Blocking wait for any ID. 4. Non-blocking wait for any ID</p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>jobid</strong> – job id, neg for any id, others for specific job id</p></li> <li><p><strong>timeout</strong> – timeout, neg for block for ever, 0 for non-block, pos for block with a limitation(ms).</p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>status 0 for exit successfully, others for customized warnings or errors </p> </dd> </dl> diff --git a/docs/doxygen/api/class/classvart_1_1_runner.html b/docs/doxygen/api/class/classvart_1_1_runner.html index 6e5e6456c..65d7db462 100644 --- a/docs/doxygen/api/class/classvart_1_1_runner.html +++ b/docs/doxygen/api/class/classvart_1_1_runner.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -73,6 +72,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -144,7 +148,7 @@ <div itemprop="articleBody"> <section id="class-vart-runner"> -<h1>Class vart::Runner<a class="headerlink" href="#class-vart-runner" title="Permalink to this heading">¶</a></h1> +<h1>Class vart::Runner<a class="headerlink" href="#class-vart-runner" title="Permalink to this headline">¶</a></h1> <dl class="cpp class"> <dt class="sig sig-object cpp" id="_CPPv4N4vart6RunnerE"> <span id="_CPPv3N4vart6RunnerE"></span><span id="_CPPv2N4vart6RunnerE"></span><span id="vart::Runner"></span><span class="target" id="classvart_1_1_runner"></span><span class="k"><span class="pre">class</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">Runner</span></span></span><span class="w"> </span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="k"><span class="pre">public</span></span><span class="w"> </span><a class="reference internal" href="../file/runner_8hpp.html#_CPPv44vart" title="vart"><span class="n"><span class="pre">vart</span></span></a><span class="p"><span class="pre">::</span></span><a class="reference internal" href="classvart_1_1_base_runner.html#_CPPv4I00EN4vart10BaseRunnerE" title="vart::BaseRunner"><span class="n"><span class="pre">BaseRunner</span></span></a><span class="p"><span class="pre"><</span></span><span class="k"><span class="pre">const</span></span><span class="w"> </span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">vector</span></span><span class="p"><span class="pre"><</span></span><a class="reference internal" href="classvart_1_1_tensor_buffer.html#_CPPv4N4vart12TensorBufferE" title="vart::TensorBuffer"><span class="n"><span class="pre">TensorBuffer</span></span></a><span class="p"><span class="pre">*</span></span><span class="p"><span class="pre">></span></span><span class="p"><span class="pre">&</span></span><span class="p"><span class="pre">></span></span><a class="headerlink" href="#_CPPv4N4vart6RunnerE" title="Permalink to this definition">¶</a><br /></dt> @@ -197,13 +201,13 @@ <h1>Class vart::Runner<a class="headerlink" href="#class-vart-runner" title="Per <dd><p>Executes the runner. </p> <p>This is a blocking function.</p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>input</strong> – A vector of <a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a> create by all input tensors of runner.</p></li> <li><p><strong>output</strong> – A vector of <a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a> create by all output tensors of runner.</p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>pair<jobid, status> status 0 for exit successfully, others for customized warnings or errors </p> </dd> </dl> @@ -215,13 +219,13 @@ <h1>Class vart::Runner<a class="headerlink" href="#class-vart-runner" title="Per <dd><p>Waits for the end of DPU processing. </p> <p>modes: 1. Blocking wait for specific ID. 2. Non-blocking wait for specific ID. 3. Blocking wait for any ID. 4. Non-blocking wait for any ID</p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>jobid</strong> – job id, neg for any id, others for specific job id</p></li> <li><p><strong>timeout</strong> – timeout, neg for block for ever, 0 for non-block, pos for block with a limitation(ms).</p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>status 0 for exit successfully, others for customized warnings or errors </p> </dd> </dl> @@ -235,17 +239,17 @@ <h1>Class vart::Runner<a class="headerlink" href="#class-vart-runner" title="Per Sample code:</p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">auto</span> <span class="nb">format</span> <span class="o">=</span> <span class="n">runner</span><span class="o">-></span><span class="n">get_tensor_format</span><span class="p">();</span> <span class="n">switch</span> <span class="p">(</span><span class="nb">format</span><span class="p">)</span> <span class="p">{</span> - <span class="k">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">Runner</span><span class="p">::</span><span class="n">TensorFormat</span><span class="p">::</span><span class="n">NCHW</span><span class="p">:</span> + <span class="n">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">Runner</span><span class="p">::</span><span class="n">TensorFormat</span><span class="p">::</span><span class="n">NCHW</span><span class="p">:</span> <span class="o">//</span> <span class="n">do</span> <span class="n">something</span> <span class="k">break</span><span class="p">;</span> - <span class="k">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">Runner</span><span class="p">::</span><span class="n">TensorFormat</span><span class="p">::</span><span class="n">NHWC</span><span class="p">:</span> + <span class="n">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">Runner</span><span class="p">::</span><span class="n">TensorFormat</span><span class="p">::</span><span class="n">NHWC</span><span class="p">:</span> <span class="o">//</span> <span class="n">do</span> <span class="n">something</span> <span class="k">break</span><span class="p">;</span> <span class="p">}</span> </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>TensorFormat : NHWC / HCHW</p> </dd> </dl> @@ -266,7 +270,7 @@ <h1>Class vart::Runner<a class="headerlink" href="#class-vart-runner" title="Per </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>All input tensors. A vector of raw pointer to the input tensor.</p> </dd> </dl> @@ -287,7 +291,7 @@ <h1>Class vart::Runner<a class="headerlink" href="#class-vart-runner" title="Per </div> </p> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>All output tensors. A vector of raw pointer to the output tensor.</p> </dd> </dl> @@ -298,13 +302,13 @@ <h1>Class vart::Runner<a class="headerlink" href="#class-vart-runner" title="Per <span id="_CPPv3N4vart6Runner13execute_asyncE9InputType10OutputType"></span><span id="_CPPv2N4vart6Runner13execute_asyncE9InputType10OutputType"></span><span id="vart::Runner::execute_async__InputType.OutputType"></span><span class="target" id="classvart_1_1_base_runner_1a3a6ebaa53c9250e3c739c3c407c1c20f"></span><span class="k"><span class="pre">virtual</span></span><span class="w"> </span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">pair</span></span><span class="p"><span class="pre"><</span></span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">uint32_t</span></span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="kt"><span class="pre">int</span></span><span class="p"><span class="pre">></span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">execute_async</span></span></span><span class="sig-paren">(</span><span class="n"><span class="pre">InputType</span></span><span class="w"> </span><span class="n sig-param"><span class="pre">input</span></span>, <span class="n"><span class="pre">OutputType</span></span><span class="w"> </span><span class="n sig-param"><span class="pre">output</span></span><span class="sig-paren">)</span><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="m"><span class="pre">0</span></span><a class="headerlink" href="#_CPPv4N4vart6Runner13execute_asyncE9InputType10OutputType" title="Permalink to this definition">¶</a><br /></dt> <dd><p><a class="reference internal" href="../python/execute__async_8py.html#namespaceexecute__async"><span class="std std-ref">execute_async</span></a></p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>input</strong> – inputs with a customized type</p></li> <li><p><strong>output</strong> – outputs with a customized type</p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>pair<jobid, status> status 0 for exit successfully, others for customized warnings or errors </p> </dd> </dl> @@ -324,13 +328,13 @@ <h1>Class vart::Runner<a class="headerlink" href="#class-vart-runner" title="Per </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>subgraph</strong> – XIR Subgraph </p></li> <li><p><strong>mode</strong> – 1 mode supported: ‘run’ - DPU runner. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>An instance of DPU runner.</p> </dd> </dl> @@ -341,14 +345,14 @@ <h1>Class vart::Runner<a class="headerlink" href="#class-vart-runner" title="Per <span id="_CPPv3N4vart6Runner24create_runner_with_attrsEPKN3xir8SubgraphEPN3xir5AttrsE"></span><span id="_CPPv2N4vart6Runner24create_runner_with_attrsEPKN3xir8SubgraphEPN3xir5AttrsE"></span><span id="vart::Runner::create_runner_with_attrs__xir::SubgraphCP.xir::AttrsP"></span><span class="target" id="classvart_1_1_runner_1ad6ff892533067e379b0f7b4835b5f6f6"></span><span class="k"><span class="pre">static</span></span><span class="w"> </span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">unique_ptr</span></span><span class="p"><span class="pre"><</span></span><a class="reference internal" href="#_CPPv4N4vart6RunnerE" title="vart::Runner"><span class="n"><span class="pre">Runner</span></span></a><span class="p"><span class="pre">></span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">create_runner_with_attrs</span></span></span><span class="sig-paren">(</span><span class="k"><span class="pre">const</span></span><span class="w"> </span><a class="reference internal" href="../file/runner_8hpp.html#_CPPv43xir" title="xir"><span class="n"><span class="pre">xir</span></span></a><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">Subgraph</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n sig-param"><span class="pre">subgraph</span></span>, <a class="reference internal" href="../file/runner_8hpp.html#_CPPv43xir" title="xir"><span class="n"><span class="pre">xir</span></span></a><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">Attrs</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n sig-param"><span class="pre">attrs</span></span><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv4N4vart6Runner24create_runner_with_attrsEPKN3xir8SubgraphEPN3xir5AttrsE" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Factory function to create an instance of DPU runner by subgraph, and attrs. </p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>subgraph</strong> – XIR Subgraph</p></li> <li><p><strong>attrs</strong> – XIR attrs object, this object is shared among all runners on the same graph.</p></li> <li><p><strong>attrs["mode"], 1</strong> – mode supported: ‘run’ - DPU runner.</p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>An instance of DPU runner. </p> </dd> </dl> diff --git a/docs/doxygen/api/class/classvart_1_1_runner_ext.html b/docs/doxygen/api/class/classvart_1_1_runner_ext.html index 7be11b6f9..be84bf0bf 100644 --- a/docs/doxygen/api/class/classvart_1_1_runner_ext.html +++ b/docs/doxygen/api/class/classvart_1_1_runner_ext.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -73,6 +72,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -144,7 +148,7 @@ <div itemprop="articleBody"> <section id="class-vart-runnerext"> -<h1>Class vart::RunnerExt<a class="headerlink" href="#class-vart-runnerext" title="Permalink to this heading">¶</a></h1> +<h1>Class vart::RunnerExt<a class="headerlink" href="#class-vart-runnerext" title="Permalink to this headline">¶</a></h1> <dl class="cpp class"> <dt class="sig sig-object cpp" id="_CPPv4N4vart9RunnerExtE"> <span id="_CPPv3N4vart9RunnerExtE"></span><span id="_CPPv2N4vart9RunnerExtE"></span><span id="vart::RunnerExt"></span><span class="target" id="classvart_1_1_runner_ext"></span><span class="k"><span class="pre">class</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">RunnerExt</span></span></span><span class="w"> </span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="k"><span class="pre">public</span></span><span class="w"> </span><a class="reference internal" href="classvart_1_1_runner.html#_CPPv4N4vart6RunnerE" title="vart::Runner"><span class="n"><span class="pre">Runner</span></span></a><a class="headerlink" href="#_CPPv4N4vart9RunnerExtE" title="Permalink to this definition">¶</a><br /></dt> @@ -164,7 +168,7 @@ <h1>Class vart::RunnerExt<a class="headerlink" href="#class-vart-runnerext" titl </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>All input TensorBuffers. A vector of raw pointer to the input <a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a>.</p> </dd> </dl> @@ -184,7 +188,7 @@ <h1>Class vart::RunnerExt<a class="headerlink" href="#class-vart-runnerext" titl </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>All output TensorBuffers. A vector of raw pointer to the output <a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a>.</p> </dd> </dl> @@ -196,13 +200,13 @@ <h1>Class vart::RunnerExt<a class="headerlink" href="#class-vart-runnerext" titl <dd><p>Executes the runner. </p> <p>This is a blocking function.</p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>input</strong> – A vector of <a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a> create by all input tensors of runner.</p></li> <li><p><strong>output</strong> – A vector of <a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a> create by all output tensors of runner.</p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>pair<jobid, status> status 0 for exit successfully, others for customized warnings or errors </p> </dd> </dl> @@ -213,13 +217,13 @@ <h1>Class vart::RunnerExt<a class="headerlink" href="#class-vart-runnerext" titl <span id="_CPPv3N4vart9RunnerExt13execute_asyncE9InputType10OutputType"></span><span id="_CPPv2N4vart9RunnerExt13execute_asyncE9InputType10OutputType"></span><span id="vart::RunnerExt::execute_async__InputType.OutputType"></span><span class="target" id="classvart_1_1_base_runner_1a3a6ebaa53c9250e3c739c3c407c1c20f"></span><span class="k"><span class="pre">virtual</span></span><span class="w"> </span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">pair</span></span><span class="p"><span class="pre"><</span></span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">uint32_t</span></span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="kt"><span class="pre">int</span></span><span class="p"><span class="pre">></span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">execute_async</span></span></span><span class="sig-paren">(</span><span class="n"><span class="pre">InputType</span></span><span class="w"> </span><span class="n sig-param"><span class="pre">input</span></span>, <span class="n"><span class="pre">OutputType</span></span><span class="w"> </span><span class="n sig-param"><span class="pre">output</span></span><span class="sig-paren">)</span><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="m"><span class="pre">0</span></span><a class="headerlink" href="#_CPPv4N4vart9RunnerExt13execute_asyncE9InputType10OutputType" title="Permalink to this definition">¶</a><br /></dt> <dd><p><a class="reference internal" href="../python/execute__async_8py.html#namespaceexecute__async"><span class="std std-ref">execute_async</span></a></p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>input</strong> – inputs with a customized type</p></li> <li><p><strong>output</strong> – outputs with a customized type</p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>pair<jobid, status> status 0 for exit successfully, others for customized warnings or errors </p> </dd> </dl> @@ -231,13 +235,13 @@ <h1>Class vart::RunnerExt<a class="headerlink" href="#class-vart-runnerext" titl <dd><p>Waits for the end of DPU processing. </p> <p>modes: 1. Blocking wait for specific ID. 2. Non-blocking wait for specific ID. 3. Blocking wait for any ID. 4. Non-blocking wait for any ID</p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>jobid</strong> – job id, neg for any id, others for specific job id</p></li> <li><p><strong>timeout</strong> – timeout, neg for block for ever, 0 for non-block, pos for block with a limitation(ms).</p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>status 0 for exit successfully, others for customized warnings or errors </p> </dd> </dl> @@ -251,17 +255,17 @@ <h1>Class vart::RunnerExt<a class="headerlink" href="#class-vart-runnerext" titl Sample code:</p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">auto</span> <span class="nb">format</span> <span class="o">=</span> <span class="n">runner</span><span class="o">-></span><span class="n">get_tensor_format</span><span class="p">();</span> <span class="n">switch</span> <span class="p">(</span><span class="nb">format</span><span class="p">)</span> <span class="p">{</span> - <span class="k">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">Runner</span><span class="p">::</span><span class="n">TensorFormat</span><span class="p">::</span><span class="n">NCHW</span><span class="p">:</span> + <span class="n">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">Runner</span><span class="p">::</span><span class="n">TensorFormat</span><span class="p">::</span><span class="n">NCHW</span><span class="p">:</span> <span class="o">//</span> <span class="n">do</span> <span class="n">something</span> <span class="k">break</span><span class="p">;</span> - <span class="k">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">Runner</span><span class="p">::</span><span class="n">TensorFormat</span><span class="p">::</span><span class="n">NHWC</span><span class="p">:</span> + <span class="n">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">Runner</span><span class="p">::</span><span class="n">TensorFormat</span><span class="p">::</span><span class="n">NHWC</span><span class="p">:</span> <span class="o">//</span> <span class="n">do</span> <span class="n">something</span> <span class="k">break</span><span class="p">;</span> <span class="p">}</span> </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>TensorFormat : NHWC / HCHW</p> </dd> </dl> @@ -282,7 +286,7 @@ <h1>Class vart::RunnerExt<a class="headerlink" href="#class-vart-runnerext" titl </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>All input tensors. A vector of raw pointer to the input tensor.</p> </dd> </dl> @@ -303,7 +307,7 @@ <h1>Class vart::RunnerExt<a class="headerlink" href="#class-vart-runnerext" titl </div> </p> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>All output tensors. A vector of raw pointer to the output tensor.</p> </dd> </dl> @@ -317,13 +321,13 @@ <h1>Class vart::RunnerExt<a class="headerlink" href="#class-vart-runnerext" titl <span id="_CPPv3N4vart9RunnerExt13create_runnerEPKN3xir8SubgraphEPN3xir5AttrsE"></span><span id="_CPPv2N4vart9RunnerExt13create_runnerEPKN3xir8SubgraphEPN3xir5AttrsE"></span><span id="vart::RunnerExt::create_runner__xir::SubgraphCP.xir::AttrsP"></span><span class="target" id="classvart_1_1_runner_ext_1a2d06613bafd66a3db2cbdbf8b30cada8"></span><span class="k"><span class="pre">static</span></span><span class="w"> </span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">unique_ptr</span></span><span class="p"><span class="pre"><</span></span><a class="reference internal" href="#_CPPv4N4vart9RunnerExtE" title="vart::RunnerExt"><span class="n"><span class="pre">RunnerExt</span></span></a><span class="p"><span class="pre">></span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">create_runner</span></span></span><span class="sig-paren">(</span><span class="k"><span class="pre">const</span></span><span class="w"> </span><a class="reference internal" href="../file/runner_8hpp.html#_CPPv43xir" title="xir"><span class="n"><span class="pre">xir</span></span></a><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">Subgraph</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n sig-param"><span class="pre">subgraph</span></span>, <a class="reference internal" href="../file/runner_8hpp.html#_CPPv43xir" title="xir"><span class="n"><span class="pre">xir</span></span></a><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">Attrs</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n sig-param"><span class="pre">attrs</span></span><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv4N4vart9RunnerExt13create_runnerEPKN3xir8SubgraphEPN3xir5AttrsE" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Factory fucntion to create an instance of runner by subgraph and attrs. </p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>subgraph</strong> – XIR Subgraph </p></li> <li><p><strong>attrs</strong> – XIR attrs object, this object is shared among all runners on the same graph. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>An instance of runner. </p> </dd> </dl> @@ -340,13 +344,13 @@ <h1>Class vart::RunnerExt<a class="headerlink" href="#class-vart-runnerext" titl </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>subgraph</strong> – XIR Subgraph </p></li> <li><p><strong>mode</strong> – 1 mode supported: ‘run’ - DPU runner. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>An instance of DPU runner.</p> </dd> </dl> @@ -357,14 +361,14 @@ <h1>Class vart::RunnerExt<a class="headerlink" href="#class-vart-runnerext" titl <span id="_CPPv3N4vart9RunnerExt24create_runner_with_attrsEPKN3xir8SubgraphEPN3xir5AttrsE"></span><span id="_CPPv2N4vart9RunnerExt24create_runner_with_attrsEPKN3xir8SubgraphEPN3xir5AttrsE"></span><span id="vart::RunnerExt::create_runner_with_attrs__xir::SubgraphCP.xir::AttrsP"></span><span class="target" id="classvart_1_1_runner_1ad6ff892533067e379b0f7b4835b5f6f6"></span><span class="k"><span class="pre">static</span></span><span class="w"> </span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">unique_ptr</span></span><span class="p"><span class="pre"><</span></span><a class="reference internal" href="classvart_1_1_runner.html#_CPPv4N4vart6RunnerE" title="vart::Runner"><span class="n"><span class="pre">Runner</span></span></a><span class="p"><span class="pre">></span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">create_runner_with_attrs</span></span></span><span class="sig-paren">(</span><span class="k"><span class="pre">const</span></span><span class="w"> </span><a class="reference internal" href="../file/runner_8hpp.html#_CPPv43xir" title="xir"><span class="n"><span class="pre">xir</span></span></a><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">Subgraph</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n sig-param"><span class="pre">subgraph</span></span>, <a class="reference internal" href="../file/runner_8hpp.html#_CPPv43xir" title="xir"><span class="n"><span class="pre">xir</span></span></a><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">Attrs</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n sig-param"><span class="pre">attrs</span></span><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv4N4vart9RunnerExt24create_runner_with_attrsEPKN3xir8SubgraphEPN3xir5AttrsE" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Factory function to create an instance of DPU runner by subgraph, and attrs. </p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>subgraph</strong> – XIR Subgraph</p></li> <li><p><strong>attrs</strong> – XIR attrs object, this object is shared among all runners on the same graph.</p></li> <li><p><strong>attrs["mode"], 1</strong> – mode supported: ‘run’ - DPU runner.</p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>An instance of DPU runner. </p> </dd> </dl> diff --git a/docs/doxygen/api/class/classvart_1_1_tensor_buffer.html b/docs/doxygen/api/class/classvart_1_1_tensor_buffer.html index 1868c579a..ae448b4b7 100644 --- a/docs/doxygen/api/class/classvart_1_1_tensor_buffer.html +++ b/docs/doxygen/api/class/classvart_1_1_tensor_buffer.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -73,6 +72,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -144,7 +148,7 @@ <div itemprop="articleBody"> <section id="class-vart-tensorbuffer"> -<h1>Class vart::TensorBuffer<a class="headerlink" href="#class-vart-tensorbuffer" title="Permalink to this heading">¶</a></h1> +<h1>Class vart::TensorBuffer<a class="headerlink" href="#class-vart-tensorbuffer" title="Permalink to this headline">¶</a></h1> <dl class="cpp class"> <dt class="sig sig-object cpp" id="_CPPv4N4vart12TensorBufferE"> <span id="_CPPv3N4vart12TensorBufferE"></span><span id="_CPPv2N4vart12TensorBufferE"></span><span id="vart::TensorBuffer"></span><span class="target" id="classvart_1_1_tensor_buffer"></span><span class="k"><span class="pre">class</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">TensorBuffer</span></span></span><a class="headerlink" href="#_CPPv4N4vart12TensorBufferE" title="Permalink to this definition">¶</a><br /></dt> @@ -163,10 +167,10 @@ <h1>Class vart::TensorBuffer<a class="headerlink" href="#class-vart-tensorbuffer </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><p><strong>idx</strong> – The index of the data to be accessed, its dimension same as the tensor shape. </p> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>A pair of the data address of the index and the size of the data available for use in byte unit.</p> </dd> </dl> @@ -180,10 +184,10 @@ <h1>Class vart::TensorBuffer<a class="headerlink" href="#class-vart-tensorbuffer Sample code: </p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">vart</span><span class="p">::</span><span class="n">TensorBuffer</span><span class="o">*</span> <span class="n">tb</span><span class="p">;</span> <span class="n">switch</span> <span class="p">(</span><span class="n">tb</span><span class="o">-></span><span class="n">get_location</span><span class="p">())</span> <span class="p">{</span> - <span class="k">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">TensorBuffer</span><span class="p">::</span><span class="n">location_t</span><span class="p">::</span><span class="n">HOST_VIRT</span><span class="p">:</span> + <span class="n">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">TensorBuffer</span><span class="p">::</span><span class="n">location_t</span><span class="p">::</span><span class="n">HOST_VIRT</span><span class="p">:</span> <span class="o">//</span> <span class="n">do</span> <span class="n">nothing</span> <span class="k">break</span><span class="p">;</span> - <span class="k">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">TensorBuffer</span><span class="p">::</span><span class="n">location_t</span><span class="p">::</span><span class="n">HOST_PHY</span><span class="p">:</span> + <span class="n">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">TensorBuffer</span><span class="p">::</span><span class="n">location_t</span><span class="p">::</span><span class="n">HOST_PHY</span><span class="p">:</span> <span class="o">//</span> <span class="n">do</span> <span class="n">nothing</span> <span class="k">break</span><span class="p">;</span> <span class="n">default</span><span class="p">:</span> @@ -193,7 +197,7 @@ <h1>Class vart::TensorBuffer<a class="headerlink" href="#class-vart-tensorbuffer </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>the tensor buffer location, a location_t enum type value: HOST_VIRT/HOST_PHY/DEVICE_*.</p> </dd> </dl> @@ -210,10 +214,10 @@ <h1>Class vart::TensorBuffer<a class="headerlink" href="#class-vart-tensorbuffer </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><p><strong>idx</strong> – The index of the data to be accessed, its dimension same to the tensor shape. </p> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>A pair of the data physical address of the index and the size of the data available for use in byte unit.</p> </dd> </dl> @@ -232,13 +236,13 @@ <h1>Class vart::TensorBuffer<a class="headerlink" href="#class-vart-tensorbuffer </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>offset</strong> – The start offset address. </p></li> <li><p><strong>size</strong> – The data size. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>void</p> </dd> </dl> @@ -257,13 +261,13 @@ <h1>Class vart::TensorBuffer<a class="headerlink" href="#class-vart-tensorbuffer </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>offset</strong> – The start offset address. </p></li> <li><p><strong>size</strong> – The data size. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>void</p> </dd> </dl> @@ -274,7 +278,7 @@ <h1>Class vart::TensorBuffer<a class="headerlink" href="#class-vart-tensorbuffer <span id="_CPPv3N4vart12TensorBuffer14copy_from_hostE6size_tPKv6size_t6size_t"></span><span id="_CPPv2N4vart12TensorBuffer14copy_from_hostE6size_tPKv6size_t6size_t"></span><span id="vart::TensorBuffer::copy_from_host__s.voidCP.s.s"></span><span class="target" id="classvart_1_1_tensor_buffer_1a781dbc662ce87afedf825aebf94eb2ba"></span><span class="k"><span class="pre">virtual</span></span><span class="w"> </span><span class="kt"><span class="pre">void</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">copy_from_host</span></span></span><span class="sig-paren">(</span><span class="n"><span class="pre">size_t</span></span><span class="w"> </span><span class="n sig-param"><span class="pre">batch_idx</span></span>, <span class="k"><span class="pre">const</span></span><span class="w"> </span><span class="kt"><span class="pre">void</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n sig-param"><span class="pre">buf</span></span>, <span class="n"><span class="pre">size_t</span></span><span class="w"> </span><span class="n sig-param"><span class="pre">size</span></span>, <span class="n"><span class="pre">size_t</span></span><span class="w"> </span><span class="n sig-param"><span class="pre">offset</span></span><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv4N4vart12TensorBuffer14copy_from_hostE6size_tPKv6size_t6size_t" title="Permalink to this definition">¶</a><br /></dt> <dd><p>copy data from source buffer. </p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>batch_idx</strong> – the batch index. </p></li> <li><p><strong>buf</strong> – source buffer start address. </p></li> @@ -282,7 +286,7 @@ <h1>Class vart::TensorBuffer<a class="headerlink" href="#class-vart-tensorbuffer <li><p><strong>offset</strong> – the start offset to be copied. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>void </p> </dd> </dl> @@ -304,7 +308,7 @@ <h1>Class vart::TensorBuffer<a class="headerlink" href="#class-vart-tensorbuffer </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>batch_idx</strong> – the batch index. </p></li> <li><p><strong>buf</strong> – destination buffer start address. </p></li> @@ -312,7 +316,7 @@ <h1>Class vart::TensorBuffer<a class="headerlink" href="#class-vart-tensorbuffer <li><p><strong>offset</strong> – the start offset to be copied. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>void</p> </dd> </dl> @@ -323,7 +327,7 @@ <h1>Class vart::TensorBuffer<a class="headerlink" href="#class-vart-tensorbuffer <span id="_CPPv3NK4vart12TensorBuffer10get_tensorEv"></span><span id="_CPPv2NK4vart12TensorBuffer10get_tensorEv"></span><span id="vart::TensorBuffer::get_tensorC"></span><span class="target" id="classvart_1_1_tensor_buffer_1a3c53b20e0e7b58a4c5d18baa10a3f0b6"></span><span class="k"><span class="pre">const</span></span><span class="w"> </span><a class="reference internal" href="../file/runner_8hpp.html#_CPPv43xir" title="xir"><span class="n"><span class="pre">xir</span></span></a><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">Tensor</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="sig-name descname"><span class="n"><span class="pre">get_tensor</span></span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><span class="w"> </span><span class="k"><span class="pre">const</span></span><a class="headerlink" href="#_CPPv4NK4vart12TensorBuffer10get_tensorEv" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Get tensor of <a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a>. </p> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>A pointer to the tensor. </p> </dd> </dl> @@ -356,13 +360,13 @@ <h1>Class vart::TensorBuffer<a class="headerlink" href="#class-vart-tensorbuffer </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>tb_from</strong> – the source <a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a>. </p></li> <li><p><strong>tb_to</strong> – the destination <a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a>. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>void</p> </dd> </dl> @@ -398,14 +402,14 @@ <h1>Class vart::TensorBuffer<a class="headerlink" href="#class-vart-tensorbuffer </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>tensor</strong> – XIR tensor pointer </p></li> <li><p><strong>batch_addr</strong> – Array which contains device physical address for each batch </p></li> <li><p><strong>addr_arrsize</strong> – The array size of batch_addr </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>Unique pointer of created tensor buffer.</p> </dd> </dl> diff --git a/docs/doxygen/api/class/classvart_1_1_tensor_buffer_ext.html b/docs/doxygen/api/class/classvart_1_1_tensor_buffer_ext.html index 52e41daf4..213c9980d 100644 --- a/docs/doxygen/api/class/classvart_1_1_tensor_buffer_ext.html +++ b/docs/doxygen/api/class/classvart_1_1_tensor_buffer_ext.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -73,6 +72,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -144,7 +148,7 @@ <div itemprop="articleBody"> <section id="class-vart-tensorbufferext"> -<h1>Class vart::TensorBufferExt<a class="headerlink" href="#class-vart-tensorbufferext" title="Permalink to this heading">¶</a></h1> +<h1>Class vart::TensorBufferExt<a class="headerlink" href="#class-vart-tensorbufferext" title="Permalink to this headline">¶</a></h1> <dl class="cpp class"> <dt class="sig sig-object cpp" id="_CPPv4N4vart15TensorBufferExtE"> <span id="_CPPv3N4vart15TensorBufferExtE"></span><span id="_CPPv2N4vart15TensorBufferExtE"></span><span id="vart::TensorBufferExt"></span><span class="target" id="classvart_1_1_tensor_buffer_ext"></span><span class="k"><span class="pre">class</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">TensorBufferExt</span></span></span><span class="w"> </span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="k"><span class="pre">public</span></span><span class="w"> </span><a class="reference internal" href="classvart_1_1_tensor_buffer.html#_CPPv4N4vart12TensorBufferE" title="vart::TensorBuffer"><span class="n"><span class="pre">TensorBuffer</span></span></a><a class="headerlink" href="#_CPPv4N4vart15TensorBufferExtE" title="Permalink to this definition">¶</a><br /></dt> @@ -167,10 +171,10 @@ <h1>Class vart::TensorBufferExt<a class="headerlink" href="#class-vart-tensorbuf </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><p><strong>idx</strong> – The index of the data to be accessed, its dimension same as the tensor shape. </p> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>A pair of the data address of the index and the size of the data available for use in byte unit.</p> </dd> </dl> @@ -184,10 +188,10 @@ <h1>Class vart::TensorBufferExt<a class="headerlink" href="#class-vart-tensorbuf Sample code: </p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">vart</span><span class="p">::</span><span class="n">TensorBuffer</span><span class="o">*</span> <span class="n">tb</span><span class="p">;</span> <span class="n">switch</span> <span class="p">(</span><span class="n">tb</span><span class="o">-></span><span class="n">get_location</span><span class="p">())</span> <span class="p">{</span> - <span class="k">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">TensorBuffer</span><span class="p">::</span><span class="n">location_t</span><span class="p">::</span><span class="n">HOST_VIRT</span><span class="p">:</span> + <span class="n">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">TensorBuffer</span><span class="p">::</span><span class="n">location_t</span><span class="p">::</span><span class="n">HOST_VIRT</span><span class="p">:</span> <span class="o">//</span> <span class="n">do</span> <span class="n">nothing</span> <span class="k">break</span><span class="p">;</span> - <span class="k">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">TensorBuffer</span><span class="p">::</span><span class="n">location_t</span><span class="p">::</span><span class="n">HOST_PHY</span><span class="p">:</span> + <span class="n">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">TensorBuffer</span><span class="p">::</span><span class="n">location_t</span><span class="p">::</span><span class="n">HOST_PHY</span><span class="p">:</span> <span class="o">//</span> <span class="n">do</span> <span class="n">nothing</span> <span class="k">break</span><span class="p">;</span> <span class="n">default</span><span class="p">:</span> @@ -197,7 +201,7 @@ <h1>Class vart::TensorBufferExt<a class="headerlink" href="#class-vart-tensorbuf </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>the tensor buffer location, a location_t enum type value: HOST_VIRT/HOST_PHY/DEVICE_*.</p> </dd> </dl> @@ -214,10 +218,10 @@ <h1>Class vart::TensorBufferExt<a class="headerlink" href="#class-vart-tensorbuf </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><p><strong>idx</strong> – The index of the data to be accessed, its dimension same to the tensor shape. </p> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>A pair of the data physical address of the index and the size of the data available for use in byte unit.</p> </dd> </dl> @@ -236,13 +240,13 @@ <h1>Class vart::TensorBufferExt<a class="headerlink" href="#class-vart-tensorbuf </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>offset</strong> – The start offset address. </p></li> <li><p><strong>size</strong> – The data size. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>void</p> </dd> </dl> @@ -261,13 +265,13 @@ <h1>Class vart::TensorBufferExt<a class="headerlink" href="#class-vart-tensorbuf </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>offset</strong> – The start offset address. </p></li> <li><p><strong>size</strong> – The data size. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>void</p> </dd> </dl> @@ -278,7 +282,7 @@ <h1>Class vart::TensorBufferExt<a class="headerlink" href="#class-vart-tensorbuf <span id="_CPPv3N4vart15TensorBufferExt14copy_from_hostE6size_tPKv6size_t6size_t"></span><span id="_CPPv2N4vart15TensorBufferExt14copy_from_hostE6size_tPKv6size_t6size_t"></span><span id="vart::TensorBufferExt::copy_from_host__s.voidCP.s.s"></span><span class="target" id="classvart_1_1_tensor_buffer_1a781dbc662ce87afedf825aebf94eb2ba"></span><span class="k"><span class="pre">virtual</span></span><span class="w"> </span><span class="kt"><span class="pre">void</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">copy_from_host</span></span></span><span class="sig-paren">(</span><span class="n"><span class="pre">size_t</span></span><span class="w"> </span><span class="n sig-param"><span class="pre">batch_idx</span></span>, <span class="k"><span class="pre">const</span></span><span class="w"> </span><span class="kt"><span class="pre">void</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n sig-param"><span class="pre">buf</span></span>, <span class="n"><span class="pre">size_t</span></span><span class="w"> </span><span class="n sig-param"><span class="pre">size</span></span>, <span class="n"><span class="pre">size_t</span></span><span class="w"> </span><span class="n sig-param"><span class="pre">offset</span></span><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv4N4vart15TensorBufferExt14copy_from_hostE6size_tPKv6size_t6size_t" title="Permalink to this definition">¶</a><br /></dt> <dd><p>copy data from source buffer. </p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>batch_idx</strong> – the batch index. </p></li> <li><p><strong>buf</strong> – source buffer start address. </p></li> @@ -286,7 +290,7 @@ <h1>Class vart::TensorBufferExt<a class="headerlink" href="#class-vart-tensorbuf <li><p><strong>offset</strong> – the start offset to be copied. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>void </p> </dd> </dl> @@ -308,7 +312,7 @@ <h1>Class vart::TensorBufferExt<a class="headerlink" href="#class-vart-tensorbuf </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>batch_idx</strong> – the batch index. </p></li> <li><p><strong>buf</strong> – destination buffer start address. </p></li> @@ -316,7 +320,7 @@ <h1>Class vart::TensorBufferExt<a class="headerlink" href="#class-vart-tensorbuf <li><p><strong>offset</strong> – the start offset to be copied. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>void</p> </dd> </dl> @@ -327,7 +331,7 @@ <h1>Class vart::TensorBufferExt<a class="headerlink" href="#class-vart-tensorbuf <span id="_CPPv3NK4vart15TensorBufferExt10get_tensorEv"></span><span id="_CPPv2NK4vart15TensorBufferExt10get_tensorEv"></span><span id="vart::TensorBufferExt::get_tensorC"></span><span class="target" id="classvart_1_1_tensor_buffer_1a3c53b20e0e7b58a4c5d18baa10a3f0b6"></span><span class="k"><span class="pre">const</span></span><span class="w"> </span><a class="reference internal" href="../file/runner_8hpp.html#_CPPv43xir" title="xir"><span class="n"><span class="pre">xir</span></span></a><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">Tensor</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="sig-name descname"><span class="n"><span class="pre">get_tensor</span></span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><span class="w"> </span><span class="k"><span class="pre">const</span></span><a class="headerlink" href="#_CPPv4NK4vart15TensorBufferExt10get_tensorEv" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Get tensor of <a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a>. </p> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>A pointer to the tensor. </p> </dd> </dl> @@ -354,13 +358,13 @@ <h1>Class vart::TensorBufferExt<a class="headerlink" href="#class-vart-tensorbuf </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>tb_from</strong> – the source <a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a>. </p></li> <li><p><strong>tb_to</strong> – the destination <a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a>. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>void</p> </dd> </dl> @@ -396,14 +400,14 @@ <h1>Class vart::TensorBufferExt<a class="headerlink" href="#class-vart-tensorbuf </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>tensor</strong> – XIR tensor pointer </p></li> <li><p><strong>batch_addr</strong> – Array which contains device physical address for each batch </p></li> <li><p><strong>addr_arrsize</strong> – The array size of batch_addr </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>Unique pointer of created tensor buffer.</p> </dd> </dl> diff --git a/docs/doxygen/api/classlist.html b/docs/doxygen/api/classlist.html index 056870aa2..137818616 100644 --- a/docs/doxygen/api/classlist.html +++ b/docs/doxygen/api/classlist.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script> <script src="../../_static/jquery.js"></script> <script src="../../_static/underscore.js"></script> - <script src="../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../_static/doctools.js"></script> <script src="../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../genindex.html" /> @@ -73,6 +72,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../docs/workflow.html">Overview</a></li> @@ -143,7 +147,7 @@ <div itemprop="articleBody"> <section id="c-api-class"> -<h1>C++ API Class<a class="headerlink" href="#c-api-class" title="Permalink to this heading">¶</a></h1> +<h1>C++ API Class<a class="headerlink" href="#c-api-class" title="Permalink to this headline">¶</a></h1> <div class="toctree-wrapper compound"> <ul> <li class="toctree-l1"><a class="reference internal" href="class/classvart_1_1_base_runner.html">Class vart::BaseRunner</a></li> diff --git a/docs/doxygen/api/file/create__graph__runner_8py.html b/docs/doxygen/api/file/create__graph__runner_8py.html index c2222d9dc..2b95545f3 100644 --- a/docs/doxygen/api/file/create__graph__runner_8py.html +++ b/docs/doxygen/api/file/create__graph__runner_8py.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="create-graph-runner"> -<h1>create_graph_runner<a class="headerlink" href="#create-graph-runner" title="Permalink to this heading">¶</a></h1> +<h1>create_graph_runner<a class="headerlink" href="#create-graph-runner" title="Permalink to this headline">¶</a></h1> <div class="breathe-sectiondef docutils container"> <p class="breathe-sectiondef-title rubric" id="breathe-section-title-functions">Functions</p> <dl class="py function"> @@ -162,10 +166,10 @@ <h1>create_graph_runner<a class="headerlink" href="#create-graph-runner" title=" </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><p><strong>graph</strong> – xir.Graph, XIR Graph runners on the same graph. </p> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>vart.RunnerExt. An instance of runner.</p> </dd> </dl> diff --git a/docs/doxygen/api/file/create__runner_8py.html b/docs/doxygen/api/file/create__runner_8py.html index 7a7347c50..aede7fa20 100644 --- a/docs/doxygen/api/file/create__runner_8py.html +++ b/docs/doxygen/api/file/create__runner_8py.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="create-runner"> -<h1>create_runner<a class="headerlink" href="#create-runner" title="Permalink to this heading">¶</a></h1> +<h1>create_runner<a class="headerlink" href="#create-runner" title="Permalink to this headline">¶</a></h1> <div class="breathe-sectiondef docutils container"> <p class="breathe-sectiondef-title rubric" id="breathe-section-title-functions">Functions</p> <dl class="py function"> @@ -154,13 +158,13 @@ <h1>create_runner<a class="headerlink" href="#create-runner" title="Permalink to </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>subgraph</strong> – : xir.Subgraph, XIR Subgraph </p></li> <li><p><strong>mode</strong> – 1 mode supported: ‘run’ - DPU runner. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p><a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_runner"><span class="std std-ref">vart.Runner</span></a>, an instance of DPU runner.</p> </dd> </dl> diff --git a/docs/doxygen/api/file/execute__async_8py.html b/docs/doxygen/api/file/execute__async_8py.html index ea385cb6d..df7d6dd90 100644 --- a/docs/doxygen/api/file/execute__async_8py.html +++ b/docs/doxygen/api/file/execute__async_8py.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="execute-async-py"> -<h1>execute_async.py<a class="headerlink" href="#execute-async-py" title="Permalink to this heading">¶</a></h1> +<h1>execute_async.py<a class="headerlink" href="#execute-async-py" title="Permalink to this headline">¶</a></h1> <div class="breathe-sectiondef docutils container"> <p class="breathe-sectiondef-title rubric" id="breathe-section-title-functions">Functions</p> <dl class="py function"> @@ -149,13 +153,13 @@ <h1>execute_async.py<a class="headerlink" href="#execute-async-py" title="Permal <dd><p>Executes the runner. </p> <p>This is a blocking function.</p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>inputs</strong> – : List[<a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">vart.TensorBuffer</span></a>], A list of <a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">vart.TensorBuffer</span></a> containing the input data for inference.</p></li> <li><p><strong>outputs</strong> – : List[<a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">vart.TensorBuffer</span></a>], A list of <a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">vart.TensorBuffer</span></a> which will be filled with output data.</p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>tuple[jobid, status] status 0 for exit successfully, others for customized warnings or errors. </p> </dd> </dl> diff --git a/docs/doxygen/api/file/get__input__tensors_8py.html b/docs/doxygen/api/file/get__input__tensors_8py.html index 61f647e85..c330eb514 100644 --- a/docs/doxygen/api/file/get__input__tensors_8py.html +++ b/docs/doxygen/api/file/get__input__tensors_8py.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="get-input-tensors"> -<h1>get_input_tensors<a class="headerlink" href="#get-input-tensors" title="Permalink to this heading">¶</a></h1> +<h1>get_input_tensors<a class="headerlink" href="#get-input-tensors" title="Permalink to this headline">¶</a></h1> <div class="breathe-sectiondef docutils container"> <p class="breathe-sectiondef-title rubric" id="breathe-section-title-functions">Functions</p> <dl class="py function"> @@ -162,7 +166,7 @@ <h1>get_input_tensors<a class="headerlink" href="#get-input-tensors" title="Perm </div> <p>Note that the dimensions (.dim) of an input tensor are in the form NHWC (batchsize, height,width,channels). </p> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>List[xir.Tensor]. A list of DPU runner inputs, each of which have type xir.Tensor.</p> </dd> </dl> diff --git a/docs/doxygen/api/file/get__inputs_8py.html b/docs/doxygen/api/file/get__inputs_8py.html index 4c6caebe4..e31619fea 100644 --- a/docs/doxygen/api/file/get__inputs_8py.html +++ b/docs/doxygen/api/file/get__inputs_8py.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="get-inputs"> -<h1>get_inputs<a class="headerlink" href="#get-inputs" title="Permalink to this heading">¶</a></h1> +<h1>get_inputs<a class="headerlink" href="#get-inputs" title="Permalink to this headline">¶</a></h1> <div class="breathe-sectiondef docutils container"> <p class="breathe-sectiondef-title rubric" id="breathe-section-title-functions">Functions</p> <dl class="py function"> @@ -154,7 +158,7 @@ <h1>get_inputs<a class="headerlink" href="#get-inputs" title="Permalink to this </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>: List[<a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">vart.TensorBuffer</span></a>]. All input tensors. A vector of raw pointer to the input tensor.</p> </dd> </dl> diff --git a/docs/doxygen/api/file/get__output__tensors_8py.html b/docs/doxygen/api/file/get__output__tensors_8py.html index 2b6b3b018..f577038de 100644 --- a/docs/doxygen/api/file/get__output__tensors_8py.html +++ b/docs/doxygen/api/file/get__output__tensors_8py.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="get-output-tensors"> -<h1>get_output_tensors<a class="headerlink" href="#get-output-tensors" title="Permalink to this heading">¶</a></h1> +<h1>get_output_tensors<a class="headerlink" href="#get-output-tensors" title="Permalink to this headline">¶</a></h1> <div class="breathe-sectiondef docutils container"> <p class="breathe-sectiondef-title rubric" id="breathe-section-title-functions">Functions</p> <dl class="py function"> @@ -154,7 +158,7 @@ <h1>get_output_tensors<a class="headerlink" href="#get-output-tensors" title="Pe </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>List[xir.Tensor], all output tensors. A vector of raw pointer to the output tensor.</p> </dd> </dl> diff --git a/docs/doxygen/api/file/get__outputs_8py.html b/docs/doxygen/api/file/get__outputs_8py.html index 651fd3e9d..ab6e87f67 100644 --- a/docs/doxygen/api/file/get__outputs_8py.html +++ b/docs/doxygen/api/file/get__outputs_8py.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="get-outputs"> -<h1>get_outputs<a class="headerlink" href="#get-outputs" title="Permalink to this heading">¶</a></h1> +<h1>get_outputs<a class="headerlink" href="#get-outputs" title="Permalink to this headline">¶</a></h1> <div class="breathe-sectiondef docutils container"> <p class="breathe-sectiondef-title rubric" id="breathe-section-title-functions">Functions</p> <dl class="py function"> @@ -154,7 +158,7 @@ <h1>get_outputs<a class="headerlink" href="#get-outputs" title="Permalink to thi </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>List[<a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">vart.TensorBuffer</span></a>]. All output tensors. A vector of raw pointer to the output tensor.</p> </dd> </dl> diff --git a/docs/doxygen/api/file/runner_8hpp.html b/docs/doxygen/api/file/runner_8hpp.html index a8b6b35da..02523c130 100644 --- a/docs/doxygen/api/file/runner_8hpp.html +++ b/docs/doxygen/api/file/runner_8hpp.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="file-runner-hpp"> -<h1>File runner.hpp<a class="headerlink" href="#file-runner-hpp" title="Permalink to this heading">¶</a></h1> +<h1>File runner.hpp<a class="headerlink" href="#file-runner-hpp" title="Permalink to this headline">¶</a></h1> <dl class="cpp type"> <dt class="sig sig-object cpp" id="_CPPv43xir"> <span id="_CPPv33xir"></span><span id="_CPPv23xir"></span><span id="xir"></span><span class="target" id="namespacexir"></span><span class="k"><span class="pre">namespace</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">xir</span></span></span><a class="headerlink" href="#_CPPv43xir" title="Permalink to this definition">¶</a><br /></dt> @@ -159,13 +163,13 @@ <h1>File runner.hpp<a class="headerlink" href="#file-runner-hpp" title="Permalin <span id="_CPPv3N4vart10BaseRunner13execute_asyncE9InputType10OutputType"></span><span id="_CPPv2N4vart10BaseRunner13execute_asyncE9InputType10OutputType"></span><span id="vart::BaseRunner::execute_async__InputType.OutputType"></span><span class="target" id="classvart_1_1_base_runner_1a3a6ebaa53c9250e3c739c3c407c1c20f"></span><span class="k"><span class="pre">virtual</span></span><span class="w"> </span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">pair</span></span><span class="p"><span class="pre"><</span></span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">uint32_t</span></span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="kt"><span class="pre">int</span></span><span class="p"><span class="pre">></span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">execute_async</span></span></span><span class="sig-paren">(</span><a class="reference internal" href="../class/classvart_1_1_base_runner.html#_CPPv4I00EN4vart10BaseRunnerE" title="vart::BaseRunner::InputType"><span class="n"><span class="pre">InputType</span></span></a><span class="w"> </span><span class="n sig-param"><span class="pre">input</span></span>, <a class="reference internal" href="../class/classvart_1_1_base_runner.html#_CPPv4I00EN4vart10BaseRunnerE" title="vart::BaseRunner::OutputType"><span class="n"><span class="pre">OutputType</span></span></a><span class="w"> </span><span class="n sig-param"><span class="pre">output</span></span><span class="sig-paren">)</span><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="m"><span class="pre">0</span></span><br /></dt> <dd><p><a class="reference internal" href="../python/execute__async_8py.html#namespaceexecute__async"><span class="std std-ref">execute_async</span></a></p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>input</strong> – inputs with a customized type</p></li> <li><p><strong>output</strong> – outputs with a customized type</p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>pair<jobid, status> status 0 for exit successfully, others for customized warnings or errors </p> </dd> </dl> @@ -177,13 +181,13 @@ <h1>File runner.hpp<a class="headerlink" href="#file-runner-hpp" title="Permalin <dd><p>wait </p> <p>modes: 1. Blocking wait for specific ID. 2. Non-blocking wait for specific ID. 3. Blocking wait for any ID. 4. Non-blocking wait for any ID</p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>jobid</strong> – job id, neg for any id, others for specific job id</p></li> <li><p><strong>timeout</strong> – timeout, neg for block for ever, 0 for non-block, pos for block with a limitation(ms).</p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>status 0 for exit successfully, others for customized warnings or errors </p> </dd> </dl> @@ -332,13 +336,13 @@ <h1>File runner.hpp<a class="headerlink" href="#file-runner-hpp" title="Permalin <dd><p>Executes the runner. </p> <p>This is a blocking function.</p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>input</strong> – A vector of <a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a> create by all input tensors of runner.</p></li> <li><p><strong>output</strong> – A vector of <a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a> create by all output tensors of runner.</p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>pair<jobid, status> status 0 for exit successfully, others for customized warnings or errors </p> </dd> </dl> @@ -350,13 +354,13 @@ <h1>File runner.hpp<a class="headerlink" href="#file-runner-hpp" title="Permalin <dd><p>Waits for the end of DPU processing. </p> <p>modes: 1. Blocking wait for specific ID. 2. Non-blocking wait for specific ID. 3. Blocking wait for any ID. 4. Non-blocking wait for any ID</p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>jobid</strong> – job id, neg for any id, others for specific job id</p></li> <li><p><strong>timeout</strong> – timeout, neg for block for ever, 0 for non-block, pos for block with a limitation(ms).</p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>status 0 for exit successfully, others for customized warnings or errors </p> </dd> </dl> @@ -370,17 +374,17 @@ <h1>File runner.hpp<a class="headerlink" href="#file-runner-hpp" title="Permalin Sample code:</p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">auto</span> <span class="nb">format</span> <span class="o">=</span> <span class="n">runner</span><span class="o">-></span><span class="n">get_tensor_format</span><span class="p">();</span> <span class="n">switch</span> <span class="p">(</span><span class="nb">format</span><span class="p">)</span> <span class="p">{</span> - <span class="k">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">Runner</span><span class="p">::</span><span class="n">TensorFormat</span><span class="p">::</span><span class="n">NCHW</span><span class="p">:</span> + <span class="n">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">Runner</span><span class="p">::</span><span class="n">TensorFormat</span><span class="p">::</span><span class="n">NCHW</span><span class="p">:</span> <span class="o">//</span> <span class="n">do</span> <span class="n">something</span> <span class="k">break</span><span class="p">;</span> - <span class="k">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">Runner</span><span class="p">::</span><span class="n">TensorFormat</span><span class="p">::</span><span class="n">NHWC</span><span class="p">:</span> + <span class="n">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">Runner</span><span class="p">::</span><span class="n">TensorFormat</span><span class="p">::</span><span class="n">NHWC</span><span class="p">:</span> <span class="o">//</span> <span class="n">do</span> <span class="n">something</span> <span class="k">break</span><span class="p">;</span> <span class="p">}</span> </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>TensorFormat : NHWC / HCHW</p> </dd> </dl> @@ -401,7 +405,7 @@ <h1>File runner.hpp<a class="headerlink" href="#file-runner-hpp" title="Permalin </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>All input tensors. A vector of raw pointer to the input tensor.</p> </dd> </dl> @@ -422,7 +426,7 @@ <h1>File runner.hpp<a class="headerlink" href="#file-runner-hpp" title="Permalin </div> </p> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>All output tensors. A vector of raw pointer to the output tensor.</p> </dd> </dl> @@ -433,13 +437,13 @@ <h1>File runner.hpp<a class="headerlink" href="#file-runner-hpp" title="Permalin <span id="_CPPv3N4vart6Runner13execute_asyncE9InputType10OutputType"></span><span id="_CPPv2N4vart6Runner13execute_asyncE9InputType10OutputType"></span><span id="vart::Runner::execute_async__InputType.OutputType"></span><span class="target" id="classvart_1_1_base_runner_1a3a6ebaa53c9250e3c739c3c407c1c20f"></span><span class="k"><span class="pre">virtual</span></span><span class="w"> </span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">pair</span></span><span class="p"><span class="pre"><</span></span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">uint32_t</span></span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="kt"><span class="pre">int</span></span><span class="p"><span class="pre">></span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">execute_async</span></span></span><span class="sig-paren">(</span><span class="n"><span class="pre">InputType</span></span><span class="w"> </span><span class="n sig-param"><span class="pre">input</span></span>, <span class="n"><span class="pre">OutputType</span></span><span class="w"> </span><span class="n sig-param"><span class="pre">output</span></span><span class="sig-paren">)</span><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="m"><span class="pre">0</span></span><br /></dt> <dd><p><a class="reference internal" href="../python/execute__async_8py.html#namespaceexecute__async"><span class="std std-ref">execute_async</span></a></p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>input</strong> – inputs with a customized type</p></li> <li><p><strong>output</strong> – outputs with a customized type</p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>pair<jobid, status> status 0 for exit successfully, others for customized warnings or errors </p> </dd> </dl> @@ -459,13 +463,13 @@ <h1>File runner.hpp<a class="headerlink" href="#file-runner-hpp" title="Permalin </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>subgraph</strong> – XIR Subgraph </p></li> <li><p><strong>mode</strong> – 1 mode supported: ‘run’ - DPU runner. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>An instance of DPU runner.</p> </dd> </dl> @@ -476,14 +480,14 @@ <h1>File runner.hpp<a class="headerlink" href="#file-runner-hpp" title="Permalin <span id="_CPPv3N4vart6Runner24create_runner_with_attrsEPKN3xir8SubgraphEPN3xir5AttrsE"></span><span id="_CPPv2N4vart6Runner24create_runner_with_attrsEPKN3xir8SubgraphEPN3xir5AttrsE"></span><span id="vart::Runner::create_runner_with_attrs__xir::SubgraphCP.xir::AttrsP"></span><span class="target" id="classvart_1_1_runner_1ad6ff892533067e379b0f7b4835b5f6f6"></span><span class="k"><span class="pre">static</span></span><span class="w"> </span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">unique_ptr</span></span><span class="p"><span class="pre"><</span></span><a class="reference internal" href="../class/classvart_1_1_runner.html#_CPPv4N4vart6RunnerE" title="vart::Runner"><span class="n"><span class="pre">Runner</span></span></a><span class="p"><span class="pre">></span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">create_runner_with_attrs</span></span></span><span class="sig-paren">(</span><span class="k"><span class="pre">const</span></span><span class="w"> </span><a class="reference internal" href="#_CPPv43xir" title="xir"><span class="n"><span class="pre">xir</span></span></a><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">Subgraph</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n sig-param"><span class="pre">subgraph</span></span>, <a class="reference internal" href="#_CPPv43xir" title="xir"><span class="n"><span class="pre">xir</span></span></a><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">Attrs</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n sig-param"><span class="pre">attrs</span></span><span class="sig-paren">)</span><br /></dt> <dd><p>Factory function to create an instance of DPU runner by subgraph, and attrs. </p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>subgraph</strong> – XIR Subgraph</p></li> <li><p><strong>attrs</strong> – XIR attrs object, this object is shared among all runners on the same graph.</p></li> <li><p><strong>attrs["mode"], 1</strong> – mode supported: ‘run’ - DPU runner.</p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>An instance of DPU runner. </p> </dd> </dl> @@ -491,7 +495,7 @@ <h1>File runner.hpp<a class="headerlink" href="#file-runner-hpp" title="Permalin <dl class="cpp function"> <dt class="sig sig-object cpp" id="_CPPv4N4vart6Runner13create_runnerERKNSt6stringE"> -<span id="_CPPv3N4vart6Runner13create_runnerERKNSt6stringE"></span><span id="_CPPv2N4vart6Runner13create_runnerERKNSt6stringE"></span><span id="vart::Runner::create_runner__ssCR"></span><span class="target" id="classvart_1_1_runner_1a8c7560df8d7d56a34d0460237c0b1402"></span><span class="k"><span class="pre">static</span></span><span class="w"> </span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">vector</span></span><span class="p"><span class="pre"><</span></span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">unique_ptr</span></span><span class="p"><span class="pre"><</span></span><a class="reference internal" href="../class/classvart_1_1_runner.html#_CPPv4N4vart6RunnerE" title="vart::Runner"><span class="n"><span class="pre">Runner</span></span></a><span class="p"><span class="pre">></span></span><span class="p"><span class="pre">></span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">create_runner</span></span></span><span class="sig-paren">(</span><span class="k"><span class="pre">const</span></span><span class="w"> </span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">string</span></span><span class="w"> </span><span class="p"><span class="pre">&</span></span><span class="n sig-param"><span class="pre">model_directory</span></span><span class="sig-paren">)</span><br /></dt> +<span id="_CPPv3N4vart6Runner13create_runnerERKNSt6stringE"></span><span id="_CPPv2N4vart6Runner13create_runnerERKNSt6stringE"></span><span id="vart::Runner::create_runner__ssCR"></span><span class="target" id="classvart_1_1_runner_1a8c7560df8d7d56a34d0460237c0b1402"></span><span class="k"><span class="pre">static</span></span><span class="w"> </span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">vector</span></span><span class="p"><span class="pre"><</span></span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">unique_ptr</span></span><span class="p"><span class="pre"><</span></span><a class="reference internal" href="../class/classvart_1_1_runner.html#_CPPv4N4vart6RunnerE" title="vart::Runner"><span class="n"><span class="pre">Runner</span></span></a><span class="p"><span class="pre">></span></span><span class="p"><span class="pre">></span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">create_runner</span></span></span><span class="sig-paren">(</span><span class="k"><span class="pre">const</span></span><span class="w"> </span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">string</span></span><span class="w"> </span><span class="p"><span class="pre">&</span></span><span class="n sig-param"><span class="pre">model_directory</span></span><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv4N4vart6Runner13create_runnerERKNSt6stringE" title="Permalink to this definition">¶</a><br /></dt> <dd></dd></dl> </div> diff --git a/docs/doxygen/api/file/runner__example_8py.html b/docs/doxygen/api/file/runner__example_8py.html index 440ca14f4..d629d241c 100644 --- a/docs/doxygen/api/file/runner__example_8py.html +++ b/docs/doxygen/api/file/runner__example_8py.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="runner-example"> -<h1>runner_example<a class="headerlink" href="#runner-example" title="Permalink to this heading">¶</a></h1> +<h1>runner_example<a class="headerlink" href="#runner-example" title="Permalink to this headline">¶</a></h1> <dl class="py class"> <dt class="sig sig-object py" id="runner_example"> <span class="target" id="namespacerunner__example"></span><em class="property"><span class="pre">module</span> </em><span class="sig-name descname"><span class="pre">runner_example</span></span><a class="headerlink" href="#runner_example" title="Permalink to this definition">¶</a></dt> diff --git a/docs/doxygen/api/file/runner__ext_8hpp.html b/docs/doxygen/api/file/runner__ext_8hpp.html index 7d118bb0f..3527b29c1 100644 --- a/docs/doxygen/api/file/runner__ext_8hpp.html +++ b/docs/doxygen/api/file/runner__ext_8hpp.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="runner-ext"> -<h1>runner_ext<a class="headerlink" href="#runner-ext" title="Permalink to this heading">¶</a></h1> +<h1>runner_ext<a class="headerlink" href="#runner-ext" title="Permalink to this headline">¶</a></h1> <div class="breathe-sectiondef docutils container"> <p class="breathe-sectiondef-title rubric" id="breathe-section-title-functions">Functions</p> <dl class="cpp function"> @@ -223,7 +227,7 @@ <h1>runner_ext<a class="headerlink" href="#runner-ext" title="Permalink to this </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>All input TensorBuffers. A vector of raw pointer to the input <a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a>.</p> </dd> </dl> @@ -243,7 +247,7 @@ <h1>runner_ext<a class="headerlink" href="#runner-ext" title="Permalink to this </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>All output TensorBuffers. A vector of raw pointer to the output <a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a>.</p> </dd> </dl> @@ -257,13 +261,13 @@ <h1>runner_ext<a class="headerlink" href="#runner-ext" title="Permalink to this <span id="_CPPv3N4vart9RunnerExt13create_runnerEPKN3xir8SubgraphEPN3xir5AttrsE"></span><span id="_CPPv2N4vart9RunnerExt13create_runnerEPKN3xir8SubgraphEPN3xir5AttrsE"></span><span id="vart::RunnerExt::create_runner__xir::SubgraphCP.xir::AttrsP"></span><span class="target" id="classvart_1_1_runner_ext_1a2d06613bafd66a3db2cbdbf8b30cada8"></span><span class="k"><span class="pre">static</span></span><span class="w"> </span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">unique_ptr</span></span><span class="p"><span class="pre"><</span></span><a class="reference internal" href="../class/classvart_1_1_runner_ext.html#_CPPv4N4vart9RunnerExtE" title="vart::RunnerExt"><span class="n"><span class="pre">RunnerExt</span></span></a><span class="p"><span class="pre">></span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">create_runner</span></span></span><span class="sig-paren">(</span><span class="k"><span class="pre">const</span></span><span class="w"> </span><a class="reference internal" href="runner_8hpp.html#_CPPv43xir" title="xir"><span class="n"><span class="pre">xir</span></span></a><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">Subgraph</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n sig-param"><span class="pre">subgraph</span></span>, <a class="reference internal" href="runner_8hpp.html#_CPPv43xir" title="xir"><span class="n"><span class="pre">xir</span></span></a><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">Attrs</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n sig-param"><span class="pre">attrs</span></span><span class="sig-paren">)</span><br /></dt> <dd><p>Factory fucntion to create an instance of runner by subgraph and attrs. </p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>subgraph</strong> – XIR Subgraph </p></li> <li><p><strong>attrs</strong> – XIR attrs object, this object is shared among all runners on the same graph. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>An instance of runner. </p> </dd> </dl> diff --git a/docs/doxygen/api/file/runnerext__example_8py.html b/docs/doxygen/api/file/runnerext__example_8py.html index 3f1e5db47..f8f965c2e 100644 --- a/docs/doxygen/api/file/runnerext__example_8py.html +++ b/docs/doxygen/api/file/runnerext__example_8py.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="runnerext-example"> -<h1>runnerext_example<a class="headerlink" href="#runnerext-example" title="Permalink to this heading">¶</a></h1> +<h1>runnerext_example<a class="headerlink" href="#runnerext-example" title="Permalink to this headline">¶</a></h1> <dl class="py class"> <dt class="sig sig-object py" id="runnerext_example"> <span class="target" id="namespacerunnerext__example"></span><em class="property"><span class="pre">module</span> </em><span class="sig-name descname"><span class="pre">runnerext_example</span></span><a class="headerlink" href="#runnerext_example" title="Permalink to this definition">¶</a></dt> diff --git a/docs/doxygen/api/file/tensor__buffer_8hpp.html b/docs/doxygen/api/file/tensor__buffer_8hpp.html index 844e19e49..b0ad5cd06 100644 --- a/docs/doxygen/api/file/tensor__buffer_8hpp.html +++ b/docs/doxygen/api/file/tensor__buffer_8hpp.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="file-tensor-buffer-hpp"> -<h1>File tensor_buffer.hpp<a class="headerlink" href="#file-tensor-buffer-hpp" title="Permalink to this heading">¶</a></h1> +<h1>File tensor_buffer.hpp<a class="headerlink" href="#file-tensor-buffer-hpp" title="Permalink to this headline">¶</a></h1> <dl class="cpp type"> <dt class="sig sig-object cpp" id="_CPPv43xir"> <span id="_CPPv33xir"></span><span id="_CPPv23xir"></span><span id="xir"></span><span class="target" id="namespacexir"></span><span class="k"><span class="pre">namespace</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">xir</span></span></span><br /></dt> @@ -244,10 +248,10 @@ <h1>File tensor_buffer.hpp<a class="headerlink" href="#file-tensor-buffer-hpp" t </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><p><strong>idx</strong> – The index of the data to be accessed, its dimension same as the tensor shape. </p> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>A pair of the data address of the index and the size of the data available for use in byte unit.</p> </dd> </dl> @@ -261,10 +265,10 @@ <h1>File tensor_buffer.hpp<a class="headerlink" href="#file-tensor-buffer-hpp" t Sample code: </p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">vart</span><span class="p">::</span><span class="n">TensorBuffer</span><span class="o">*</span> <span class="n">tb</span><span class="p">;</span> <span class="n">switch</span> <span class="p">(</span><span class="n">tb</span><span class="o">-></span><span class="n">get_location</span><span class="p">())</span> <span class="p">{</span> - <span class="k">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">TensorBuffer</span><span class="p">::</span><span class="n">location_t</span><span class="p">::</span><span class="n">HOST_VIRT</span><span class="p">:</span> + <span class="n">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">TensorBuffer</span><span class="p">::</span><span class="n">location_t</span><span class="p">::</span><span class="n">HOST_VIRT</span><span class="p">:</span> <span class="o">//</span> <span class="n">do</span> <span class="n">nothing</span> <span class="k">break</span><span class="p">;</span> - <span class="k">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">TensorBuffer</span><span class="p">::</span><span class="n">location_t</span><span class="p">::</span><span class="n">HOST_PHY</span><span class="p">:</span> + <span class="n">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">TensorBuffer</span><span class="p">::</span><span class="n">location_t</span><span class="p">::</span><span class="n">HOST_PHY</span><span class="p">:</span> <span class="o">//</span> <span class="n">do</span> <span class="n">nothing</span> <span class="k">break</span><span class="p">;</span> <span class="n">default</span><span class="p">:</span> @@ -274,7 +278,7 @@ <h1>File tensor_buffer.hpp<a class="headerlink" href="#file-tensor-buffer-hpp" t </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>the tensor buffer location, a location_t enum type value: HOST_VIRT/HOST_PHY/DEVICE_*.</p> </dd> </dl> @@ -291,10 +295,10 @@ <h1>File tensor_buffer.hpp<a class="headerlink" href="#file-tensor-buffer-hpp" t </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><p><strong>idx</strong> – The index of the data to be accessed, its dimension same to the tensor shape. </p> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>A pair of the data physical address of the index and the size of the data available for use in byte unit.</p> </dd> </dl> @@ -313,13 +317,13 @@ <h1>File tensor_buffer.hpp<a class="headerlink" href="#file-tensor-buffer-hpp" t </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>offset</strong> – The start offset address. </p></li> <li><p><strong>size</strong> – The data size. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>void</p> </dd> </dl> @@ -338,13 +342,13 @@ <h1>File tensor_buffer.hpp<a class="headerlink" href="#file-tensor-buffer-hpp" t </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>offset</strong> – The start offset address. </p></li> <li><p><strong>size</strong> – The data size. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>void</p> </dd> </dl> @@ -355,7 +359,7 @@ <h1>File tensor_buffer.hpp<a class="headerlink" href="#file-tensor-buffer-hpp" t <span id="_CPPv3N4vart12TensorBuffer14copy_from_hostE6size_tPKv6size_t6size_t"></span><span id="_CPPv2N4vart12TensorBuffer14copy_from_hostE6size_tPKv6size_t6size_t"></span><span id="vart::TensorBuffer::copy_from_host__s.voidCP.s.s"></span><span class="target" id="classvart_1_1_tensor_buffer_1a781dbc662ce87afedf825aebf94eb2ba"></span><span class="k"><span class="pre">virtual</span></span><span class="w"> </span><span class="kt"><span class="pre">void</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">copy_from_host</span></span></span><span class="sig-paren">(</span><span class="n"><span class="pre">size_t</span></span><span class="w"> </span><span class="n sig-param"><span class="pre">batch_idx</span></span>, <span class="k"><span class="pre">const</span></span><span class="w"> </span><span class="kt"><span class="pre">void</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n sig-param"><span class="pre">buf</span></span>, <span class="n"><span class="pre">size_t</span></span><span class="w"> </span><span class="n sig-param"><span class="pre">size</span></span>, <span class="n"><span class="pre">size_t</span></span><span class="w"> </span><span class="n sig-param"><span class="pre">offset</span></span><span class="sig-paren">)</span><br /></dt> <dd><p>copy data from source buffer. </p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>batch_idx</strong> – the batch index. </p></li> <li><p><strong>buf</strong> – source buffer start address. </p></li> @@ -363,7 +367,7 @@ <h1>File tensor_buffer.hpp<a class="headerlink" href="#file-tensor-buffer-hpp" t <li><p><strong>offset</strong> – the start offset to be copied. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>void </p> </dd> </dl> @@ -385,7 +389,7 @@ <h1>File tensor_buffer.hpp<a class="headerlink" href="#file-tensor-buffer-hpp" t </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>batch_idx</strong> – the batch index. </p></li> <li><p><strong>buf</strong> – destination buffer start address. </p></li> @@ -393,7 +397,7 @@ <h1>File tensor_buffer.hpp<a class="headerlink" href="#file-tensor-buffer-hpp" t <li><p><strong>offset</strong> – the start offset to be copied. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>void</p> </dd> </dl> @@ -404,7 +408,7 @@ <h1>File tensor_buffer.hpp<a class="headerlink" href="#file-tensor-buffer-hpp" t <span id="_CPPv3NK4vart12TensorBuffer10get_tensorEv"></span><span id="_CPPv2NK4vart12TensorBuffer10get_tensorEv"></span><span id="vart::TensorBuffer::get_tensorC"></span><span class="target" id="classvart_1_1_tensor_buffer_1a3c53b20e0e7b58a4c5d18baa10a3f0b6"></span><span class="k"><span class="pre">const</span></span><span class="w"> </span><a class="reference internal" href="runner_8hpp.html#_CPPv43xir" title="xir"><span class="n"><span class="pre">xir</span></span></a><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">Tensor</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="sig-name descname"><span class="n"><span class="pre">get_tensor</span></span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><span class="w"> </span><span class="k"><span class="pre">const</span></span><br /></dt> <dd><p>Get tensor of <a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a>. </p> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>A pointer to the tensor. </p> </dd> </dl> @@ -437,13 +441,13 @@ <h1>File tensor_buffer.hpp<a class="headerlink" href="#file-tensor-buffer-hpp" t </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>tb_from</strong> – the source <a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a>. </p></li> <li><p><strong>tb_to</strong> – the destination <a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a>. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>void</p> </dd> </dl> @@ -479,14 +483,14 @@ <h1>File tensor_buffer.hpp<a class="headerlink" href="#file-tensor-buffer-hpp" t </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>tensor</strong> – XIR tensor pointer </p></li> <li><p><strong>batch_addr</strong> – Array which contains device physical address for each batch </p></li> <li><p><strong>addr_arrsize</strong> – The array size of batch_addr </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>Unique pointer of created tensor buffer.</p> </dd> </dl> @@ -601,10 +605,10 @@ <h1>File tensor_buffer.hpp<a class="headerlink" href="#file-tensor-buffer-hpp" t </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><p><strong>idx</strong> – The index of the data to be accessed, its dimension same as the tensor shape. </p> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>A pair of the data address of the index and the size of the data available for use in byte unit.</p> </dd> </dl> @@ -618,10 +622,10 @@ <h1>File tensor_buffer.hpp<a class="headerlink" href="#file-tensor-buffer-hpp" t Sample code: </p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">vart</span><span class="p">::</span><span class="n">TensorBuffer</span><span class="o">*</span> <span class="n">tb</span><span class="p">;</span> <span class="n">switch</span> <span class="p">(</span><span class="n">tb</span><span class="o">-></span><span class="n">get_location</span><span class="p">())</span> <span class="p">{</span> - <span class="k">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">TensorBuffer</span><span class="p">::</span><span class="n">location_t</span><span class="p">::</span><span class="n">HOST_VIRT</span><span class="p">:</span> + <span class="n">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">TensorBuffer</span><span class="p">::</span><span class="n">location_t</span><span class="p">::</span><span class="n">HOST_VIRT</span><span class="p">:</span> <span class="o">//</span> <span class="n">do</span> <span class="n">nothing</span> <span class="k">break</span><span class="p">;</span> - <span class="k">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">TensorBuffer</span><span class="p">::</span><span class="n">location_t</span><span class="p">::</span><span class="n">HOST_PHY</span><span class="p">:</span> + <span class="n">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">TensorBuffer</span><span class="p">::</span><span class="n">location_t</span><span class="p">::</span><span class="n">HOST_PHY</span><span class="p">:</span> <span class="o">//</span> <span class="n">do</span> <span class="n">nothing</span> <span class="k">break</span><span class="p">;</span> <span class="n">default</span><span class="p">:</span> @@ -631,7 +635,7 @@ <h1>File tensor_buffer.hpp<a class="headerlink" href="#file-tensor-buffer-hpp" t </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>the tensor buffer location, a location_t enum type value: HOST_VIRT/HOST_PHY/DEVICE_*.</p> </dd> </dl> @@ -648,10 +652,10 @@ <h1>File tensor_buffer.hpp<a class="headerlink" href="#file-tensor-buffer-hpp" t </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><p><strong>idx</strong> – The index of the data to be accessed, its dimension same to the tensor shape. </p> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>A pair of the data physical address of the index and the size of the data available for use in byte unit.</p> </dd> </dl> @@ -670,13 +674,13 @@ <h1>File tensor_buffer.hpp<a class="headerlink" href="#file-tensor-buffer-hpp" t </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>offset</strong> – The start offset address. </p></li> <li><p><strong>size</strong> – The data size. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>void</p> </dd> </dl> @@ -695,13 +699,13 @@ <h1>File tensor_buffer.hpp<a class="headerlink" href="#file-tensor-buffer-hpp" t </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>offset</strong> – The start offset address. </p></li> <li><p><strong>size</strong> – The data size. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>void</p> </dd> </dl> @@ -712,7 +716,7 @@ <h1>File tensor_buffer.hpp<a class="headerlink" href="#file-tensor-buffer-hpp" t <span id="_CPPv3N4vart15TensorBufferExt14copy_from_hostE6size_tPKv6size_t6size_t"></span><span id="_CPPv2N4vart15TensorBufferExt14copy_from_hostE6size_tPKv6size_t6size_t"></span><span id="vart::TensorBufferExt::copy_from_host__s.voidCP.s.s"></span><span class="target" id="classvart_1_1_tensor_buffer_1a781dbc662ce87afedf825aebf94eb2ba"></span><span class="k"><span class="pre">virtual</span></span><span class="w"> </span><span class="kt"><span class="pre">void</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">copy_from_host</span></span></span><span class="sig-paren">(</span><span class="n"><span class="pre">size_t</span></span><span class="w"> </span><span class="n sig-param"><span class="pre">batch_idx</span></span>, <span class="k"><span class="pre">const</span></span><span class="w"> </span><span class="kt"><span class="pre">void</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n sig-param"><span class="pre">buf</span></span>, <span class="n"><span class="pre">size_t</span></span><span class="w"> </span><span class="n sig-param"><span class="pre">size</span></span>, <span class="n"><span class="pre">size_t</span></span><span class="w"> </span><span class="n sig-param"><span class="pre">offset</span></span><span class="sig-paren">)</span><br /></dt> <dd><p>copy data from source buffer. </p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>batch_idx</strong> – the batch index. </p></li> <li><p><strong>buf</strong> – source buffer start address. </p></li> @@ -720,7 +724,7 @@ <h1>File tensor_buffer.hpp<a class="headerlink" href="#file-tensor-buffer-hpp" t <li><p><strong>offset</strong> – the start offset to be copied. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>void </p> </dd> </dl> @@ -742,7 +746,7 @@ <h1>File tensor_buffer.hpp<a class="headerlink" href="#file-tensor-buffer-hpp" t </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>batch_idx</strong> – the batch index. </p></li> <li><p><strong>buf</strong> – destination buffer start address. </p></li> @@ -750,7 +754,7 @@ <h1>File tensor_buffer.hpp<a class="headerlink" href="#file-tensor-buffer-hpp" t <li><p><strong>offset</strong> – the start offset to be copied. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>void</p> </dd> </dl> @@ -761,7 +765,7 @@ <h1>File tensor_buffer.hpp<a class="headerlink" href="#file-tensor-buffer-hpp" t <span id="_CPPv3NK4vart15TensorBufferExt10get_tensorEv"></span><span id="_CPPv2NK4vart15TensorBufferExt10get_tensorEv"></span><span id="vart::TensorBufferExt::get_tensorC"></span><span class="target" id="classvart_1_1_tensor_buffer_1a3c53b20e0e7b58a4c5d18baa10a3f0b6"></span><span class="k"><span class="pre">const</span></span><span class="w"> </span><a class="reference internal" href="runner_8hpp.html#_CPPv43xir" title="xir"><span class="n"><span class="pre">xir</span></span></a><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">Tensor</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="sig-name descname"><span class="n"><span class="pre">get_tensor</span></span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><span class="w"> </span><span class="k"><span class="pre">const</span></span><br /></dt> <dd><p>Get tensor of <a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a>. </p> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>A pointer to the tensor. </p> </dd> </dl> @@ -788,13 +792,13 @@ <h1>File tensor_buffer.hpp<a class="headerlink" href="#file-tensor-buffer-hpp" t </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>tb_from</strong> – the source <a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a>. </p></li> <li><p><strong>tb_to</strong> – the destination <a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a>. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>void</p> </dd> </dl> @@ -830,14 +834,14 @@ <h1>File tensor_buffer.hpp<a class="headerlink" href="#file-tensor-buffer-hpp" t </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>tensor</strong> – XIR tensor pointer </p></li> <li><p><strong>batch_addr</strong> – Array which contains device physical address for each batch </p></li> <li><p><strong>addr_arrsize</strong> – The array size of batch_addr </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>Unique pointer of created tensor buffer.</p> </dd> </dl> diff --git a/docs/doxygen/api/file/wait_8py.html b/docs/doxygen/api/file/wait_8py.html index 271ec5f84..303d02e5a 100644 --- a/docs/doxygen/api/file/wait_8py.html +++ b/docs/doxygen/api/file/wait_8py.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="wait"> -<h1>wait<a class="headerlink" href="#wait" title="Permalink to this heading">¶</a></h1> +<h1>wait<a class="headerlink" href="#wait" title="Permalink to this headline">¶</a></h1> <div class="breathe-sectiondef docutils container"> <p class="breathe-sectiondef-title rubric" id="breathe-section-title-functions">Functions</p> <dl class="py function"> @@ -155,10 +159,10 @@ <h1>wait<a class="headerlink" href="#wait" title="Permalink to this heading">¶< </ol> </p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><p><strong>jobid_time</strong> – tuple[uint32_t, int], [job id, time], jobid: neg for any id, others for specific job id. time: not used here</p> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>status 0 for exit successfully, others for customized warnings or errors </p> </dd> </dl> diff --git a/docs/doxygen/api/filelist.html b/docs/doxygen/api/filelist.html index 862fec390..a4380e98c 100644 --- a/docs/doxygen/api/filelist.html +++ b/docs/doxygen/api/filelist.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script> <script src="../../_static/jquery.js"></script> <script src="../../_static/underscore.js"></script> - <script src="../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../_static/doctools.js"></script> <script src="../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../docs/workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="file-list"> -<h1>File list<a class="headerlink" href="#file-list" title="Permalink to this heading">¶</a></h1> +<h1>File list<a class="headerlink" href="#file-list" title="Permalink to this headline">¶</a></h1> <div class="toctree-wrapper compound"> <ul> <li class="toctree-l1"><a class="reference internal" href="file/create__graph__runner_8py.html">create_graph_runner</a></li> diff --git a/docs/doxygen/api/namespace/namespacecreate__graph__runner.html b/docs/doxygen/api/namespace/namespacecreate__graph__runner.html index 6bd7be8fb..1b3a76a68 100644 --- a/docs/doxygen/api/namespace/namespacecreate__graph__runner.html +++ b/docs/doxygen/api/namespace/namespacecreate__graph__runner.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="namespace-create-graph-runner"> -<h1>Namespace create_graph_runner<a class="headerlink" href="#namespace-create-graph-runner" title="Permalink to this heading">¶</a></h1> +<h1>Namespace create_graph_runner<a class="headerlink" href="#namespace-create-graph-runner" title="Permalink to this headline">¶</a></h1> <dl class="py class"> <dt class="sig sig-object py" id="create_graph_runner"> <span class="target" id="namespacecreate__graph__runner"></span><em class="property"><span class="pre">module</span> </em><span class="sig-name descname"><span class="pre">create_graph_runner</span></span><a class="headerlink" href="#create_graph_runner" title="Permalink to this definition">¶</a></dt> @@ -154,10 +158,10 @@ <h1>Namespace create_graph_runner<a class="headerlink" href="#namespace-create-g </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><p><strong>graph</strong> – xir.Graph, XIR Graph runners on the same graph. </p> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>vart.RunnerExt. An instance of runner.</p> </dd> </dl> diff --git a/docs/doxygen/api/namespace/namespacecreate__runner.html b/docs/doxygen/api/namespace/namespacecreate__runner.html index 02520bb16..e48e5fb91 100644 --- a/docs/doxygen/api/namespace/namespacecreate__runner.html +++ b/docs/doxygen/api/namespace/namespacecreate__runner.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="namespace-create-runner"> -<h1>Namespace create_runner<a class="headerlink" href="#namespace-create-runner" title="Permalink to this heading">¶</a></h1> +<h1>Namespace create_runner<a class="headerlink" href="#namespace-create-runner" title="Permalink to this headline">¶</a></h1> <dl class="py class"> <dt class="sig sig-object py" id="create_runner"> <span class="target" id="namespacecreate__runner"></span><em class="property"><span class="pre">module</span> </em><span class="sig-name descname"><span class="pre">create_runner</span></span><a class="headerlink" href="#create_runner" title="Permalink to this definition">¶</a></dt> @@ -146,13 +150,13 @@ <h1>Namespace create_runner<a class="headerlink" href="#namespace-create-runner" </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>subgraph</strong> – : xir.Subgraph, XIR Subgraph </p></li> <li><p><strong>mode</strong> – 1 mode supported: ‘run’ - DPU runner. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p><a class="reference internal" href="namespacevart.html#classvart_1_1_runner"><span class="std std-ref">vart.Runner</span></a>, an instance of DPU runner.</p> </dd> </dl> diff --git a/docs/doxygen/api/namespace/namespaceexecute__async.html b/docs/doxygen/api/namespace/namespaceexecute__async.html index 53b178def..d9aa788c2 100644 --- a/docs/doxygen/api/namespace/namespaceexecute__async.html +++ b/docs/doxygen/api/namespace/namespaceexecute__async.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -134,20 +138,20 @@ <div itemprop="articleBody"> <section id="namespace-execute-async"> -<h1>Namespace execute_async<a class="headerlink" href="#namespace-execute-async" title="Permalink to this heading">¶</a></h1> +<h1>Namespace execute_async<a class="headerlink" href="#namespace-execute-async" title="Permalink to this headline">¶</a></h1> <dl class="py class"> <dt class="sig sig-object py" id="execute_async"> <span class="target" id="namespaceexecute__async"></span><em class="property"><span class="pre">module</span> </em><span class="sig-name descname"><span class="pre">execute_async</span></span><a class="headerlink" href="#execute_async" title="Permalink to this definition">¶</a></dt> <dd><p>Executes the runner. </p> <p>This is a blocking function.</p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>inputs</strong> – : List[<a class="reference internal" href="namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">vart.TensorBuffer</span></a>], A list of <a class="reference internal" href="namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">vart.TensorBuffer</span></a> containing the input data for inference.</p></li> <li><p><strong>outputs</strong> – : List[<a class="reference internal" href="namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">vart.TensorBuffer</span></a>], A list of <a class="reference internal" href="namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">vart.TensorBuffer</span></a> which will be filled with output data.</p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>tuple[jobid, status] status 0 for exit successfully, others for customized warnings or errors. </p> </dd> </dl> diff --git a/docs/doxygen/api/namespace/namespaceget__input__tensors.html b/docs/doxygen/api/namespace/namespaceget__input__tensors.html index e6ea1c463..c7ffe3eb3 100644 --- a/docs/doxygen/api/namespace/namespaceget__input__tensors.html +++ b/docs/doxygen/api/namespace/namespaceget__input__tensors.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="namespace-get-input-tensors"> -<h1>Namespace get_input_tensors<a class="headerlink" href="#namespace-get-input-tensors" title="Permalink to this heading">¶</a></h1> +<h1>Namespace get_input_tensors<a class="headerlink" href="#namespace-get-input-tensors" title="Permalink to this headline">¶</a></h1> <dl class="py class"> <dt class="sig sig-object py" id="get_input_tensors"> <span class="target" id="namespaceget__input__tensors"></span><em class="property"><span class="pre">module</span> </em><span class="sig-name descname"><span class="pre">get_input_tensors</span></span><a class="headerlink" href="#get_input_tensors" title="Permalink to this definition">¶</a></dt> @@ -154,7 +158,7 @@ <h1>Namespace get_input_tensors<a class="headerlink" href="#namespace-get-input- </div> <p>Note that the dimensions (.dim) of an input tensor are in the form NHWC (batchsize, height,width,channels). </p> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>List[xir.Tensor]. A list of DPU runner inputs, each of which have type xir.Tensor.</p> </dd> </dl> diff --git a/docs/doxygen/api/namespace/namespaceget__inputs.html b/docs/doxygen/api/namespace/namespaceget__inputs.html index d2db68744..79c1b3ae2 100644 --- a/docs/doxygen/api/namespace/namespaceget__inputs.html +++ b/docs/doxygen/api/namespace/namespaceget__inputs.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="namespace-get-inputs"> -<h1>Namespace get_inputs<a class="headerlink" href="#namespace-get-inputs" title="Permalink to this heading">¶</a></h1> +<h1>Namespace get_inputs<a class="headerlink" href="#namespace-get-inputs" title="Permalink to this headline">¶</a></h1> <dl class="py class"> <dt class="sig sig-object py" id="get_inputs"> <span class="target" id="namespaceget__inputs"></span><em class="property"><span class="pre">module</span> </em><span class="sig-name descname"><span class="pre">get_inputs</span></span><a class="headerlink" href="#get_inputs" title="Permalink to this definition">¶</a></dt> @@ -146,7 +150,7 @@ <h1>Namespace get_inputs<a class="headerlink" href="#namespace-get-inputs" title </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>: List[<a class="reference internal" href="namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">vart.TensorBuffer</span></a>]. All input tensors. A vector of raw pointer to the input tensor.</p> </dd> </dl> diff --git a/docs/doxygen/api/namespace/namespaceget__output__tensors.html b/docs/doxygen/api/namespace/namespaceget__output__tensors.html index 8f0c8f2e1..1b902e47e 100644 --- a/docs/doxygen/api/namespace/namespaceget__output__tensors.html +++ b/docs/doxygen/api/namespace/namespaceget__output__tensors.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="namespace-get-output-tensors"> -<h1>Namespace get_output_tensors<a class="headerlink" href="#namespace-get-output-tensors" title="Permalink to this heading">¶</a></h1> +<h1>Namespace get_output_tensors<a class="headerlink" href="#namespace-get-output-tensors" title="Permalink to this headline">¶</a></h1> <dl class="py class"> <dt class="sig sig-object py" id="get_output_tensors"> <span class="target" id="namespaceget__output__tensors"></span><em class="property"><span class="pre">module</span> </em><span class="sig-name descname"><span class="pre">get_output_tensors</span></span><a class="headerlink" href="#get_output_tensors" title="Permalink to this definition">¶</a></dt> @@ -146,7 +150,7 @@ <h1>Namespace get_output_tensors<a class="headerlink" href="#namespace-get-outpu </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>List[xir.Tensor], all output tensors. A vector of raw pointer to the output tensor.</p> </dd> </dl> diff --git a/docs/doxygen/api/namespace/namespaceget__outputs.html b/docs/doxygen/api/namespace/namespaceget__outputs.html index fb83d4e65..19d29b3e7 100644 --- a/docs/doxygen/api/namespace/namespaceget__outputs.html +++ b/docs/doxygen/api/namespace/namespaceget__outputs.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="namespace-get-outputs"> -<h1>Namespace get_outputs<a class="headerlink" href="#namespace-get-outputs" title="Permalink to this heading">¶</a></h1> +<h1>Namespace get_outputs<a class="headerlink" href="#namespace-get-outputs" title="Permalink to this headline">¶</a></h1> <dl class="py class"> <dt class="sig sig-object py" id="get_outputs"> <span class="target" id="namespaceget__outputs"></span><em class="property"><span class="pre">module</span> </em><span class="sig-name descname"><span class="pre">get_outputs</span></span><a class="headerlink" href="#get_outputs" title="Permalink to this definition">¶</a></dt> @@ -146,7 +150,7 @@ <h1>Namespace get_outputs<a class="headerlink" href="#namespace-get-outputs" tit </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>List[<a class="reference internal" href="namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">vart.TensorBuffer</span></a>]. All output tensors. A vector of raw pointer to the output tensor.</p> </dd> </dl> diff --git a/docs/doxygen/api/namespace/namespacerunner__example.html b/docs/doxygen/api/namespace/namespacerunner__example.html index 4e53b825a..50e667293 100644 --- a/docs/doxygen/api/namespace/namespacerunner__example.html +++ b/docs/doxygen/api/namespace/namespacerunner__example.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="namespace-runner-example"> -<h1>Namespace runner_example<a class="headerlink" href="#namespace-runner-example" title="Permalink to this heading">¶</a></h1> +<h1>Namespace runner_example<a class="headerlink" href="#namespace-runner-example" title="Permalink to this headline">¶</a></h1> <dl class="py class"> <dt class="sig sig-object py" id="runner_example"> <span class="target" id="namespacerunner__example"></span><em class="property"><span class="pre">module</span> </em><span class="sig-name descname"><span class="pre">runner_example</span></span><a class="headerlink" href="#runner_example" title="Permalink to this definition">¶</a></dt> diff --git a/docs/doxygen/api/namespace/namespacerunnerext__example.html b/docs/doxygen/api/namespace/namespacerunnerext__example.html index 53ec0a668..e165c4070 100644 --- a/docs/doxygen/api/namespace/namespacerunnerext__example.html +++ b/docs/doxygen/api/namespace/namespacerunnerext__example.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="namespace-runnerext-example"> -<h1>Namespace runnerext_example<a class="headerlink" href="#namespace-runnerext-example" title="Permalink to this heading">¶</a></h1> +<h1>Namespace runnerext_example<a class="headerlink" href="#namespace-runnerext-example" title="Permalink to this headline">¶</a></h1> <dl class="py class"> <dt class="sig sig-object py" id="runnerext_example"> <span class="target" id="namespacerunnerext__example"></span><em class="property"><span class="pre">module</span> </em><span class="sig-name descname"><span class="pre">runnerext_example</span></span><a class="headerlink" href="#runnerext_example" title="Permalink to this definition">¶</a></dt> diff --git a/docs/doxygen/api/namespace/namespacevart.html b/docs/doxygen/api/namespace/namespacevart.html index 6bc855328..5c97e0080 100644 --- a/docs/doxygen/api/namespace/namespacevart.html +++ b/docs/doxygen/api/namespace/namespacevart.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="namespace-vart"> -<h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink to this heading">¶</a></h1> +<h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink to this headline">¶</a></h1> <dl class="cpp type"> <dt class="sig sig-object cpp" id="_CPPv44vart"> <span id="_CPPv34vart"></span><span id="_CPPv24vart"></span><span id="vart"></span><span class="target" id="namespacevart"></span><span class="k"><span class="pre">namespace</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">vart</span></span></span><br /></dt> @@ -172,13 +176,13 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink <span id="_CPPv3N4vart10BaseRunner13execute_asyncE9InputType10OutputType"></span><span id="_CPPv2N4vart10BaseRunner13execute_asyncE9InputType10OutputType"></span><span id="vart::BaseRunner::execute_async__InputType.OutputType"></span><span class="target" id="classvart_1_1_base_runner_1a3a6ebaa53c9250e3c739c3c407c1c20f"></span><span class="k"><span class="pre">virtual</span></span><span class="w"> </span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">pair</span></span><span class="p"><span class="pre"><</span></span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">uint32_t</span></span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="kt"><span class="pre">int</span></span><span class="p"><span class="pre">></span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">execute_async</span></span></span><span class="sig-paren">(</span><a class="reference internal" href="../class/classvart_1_1_base_runner.html#_CPPv4I00EN4vart10BaseRunnerE" title="vart::BaseRunner::InputType"><span class="n"><span class="pre">InputType</span></span></a><span class="w"> </span><span class="n sig-param"><span class="pre">input</span></span>, <a class="reference internal" href="../class/classvart_1_1_base_runner.html#_CPPv4I00EN4vart10BaseRunnerE" title="vart::BaseRunner::OutputType"><span class="n"><span class="pre">OutputType</span></span></a><span class="w"> </span><span class="n sig-param"><span class="pre">output</span></span><span class="sig-paren">)</span><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="m"><span class="pre">0</span></span><br /></dt> <dd><p><a class="reference internal" href="../python/execute__async_8py.html#namespaceexecute__async"><span class="std std-ref">execute_async</span></a></p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>input</strong> – inputs with a customized type</p></li> <li><p><strong>output</strong> – outputs with a customized type</p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>pair<jobid, status> status 0 for exit successfully, others for customized warnings or errors </p> </dd> </dl> @@ -190,13 +194,13 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink <dd><p>wait </p> <p>modes: 1. Blocking wait for specific ID. 2. Non-blocking wait for specific ID. 3. Blocking wait for any ID. 4. Non-blocking wait for any ID</p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>jobid</strong> – job id, neg for any id, others for specific job id</p></li> <li><p><strong>timeout</strong> – timeout, neg for block for ever, 0 for non-block, pos for block with a limitation(ms).</p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>status 0 for exit successfully, others for customized warnings or errors </p> </dd> </dl> @@ -270,13 +274,13 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink <dd><p>Executes the runner. </p> <p>This is a blocking function.</p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>input</strong> – A vector of <a class="reference internal" href="#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a> create by all input tensors of runner.</p></li> <li><p><strong>output</strong> – A vector of <a class="reference internal" href="#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a> create by all output tensors of runner.</p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>pair<jobid, status> status 0 for exit successfully, others for customized warnings or errors </p> </dd> </dl> @@ -288,13 +292,13 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink <dd><p>Waits for the end of DPU processing. </p> <p>modes: 1. Blocking wait for specific ID. 2. Non-blocking wait for specific ID. 3. Blocking wait for any ID. 4. Non-blocking wait for any ID</p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>jobid</strong> – job id, neg for any id, others for specific job id</p></li> <li><p><strong>timeout</strong> – timeout, neg for block for ever, 0 for non-block, pos for block with a limitation(ms).</p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>status 0 for exit successfully, others for customized warnings or errors </p> </dd> </dl> @@ -308,17 +312,17 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink Sample code:</p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">auto</span> <span class="nb">format</span> <span class="o">=</span> <span class="n">runner</span><span class="o">-></span><span class="n">get_tensor_format</span><span class="p">();</span> <span class="n">switch</span> <span class="p">(</span><span class="nb">format</span><span class="p">)</span> <span class="p">{</span> - <span class="k">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">Runner</span><span class="p">::</span><span class="n">TensorFormat</span><span class="p">::</span><span class="n">NCHW</span><span class="p">:</span> + <span class="n">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">Runner</span><span class="p">::</span><span class="n">TensorFormat</span><span class="p">::</span><span class="n">NCHW</span><span class="p">:</span> <span class="o">//</span> <span class="n">do</span> <span class="n">something</span> <span class="k">break</span><span class="p">;</span> - <span class="k">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">Runner</span><span class="p">::</span><span class="n">TensorFormat</span><span class="p">::</span><span class="n">NHWC</span><span class="p">:</span> + <span class="n">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">Runner</span><span class="p">::</span><span class="n">TensorFormat</span><span class="p">::</span><span class="n">NHWC</span><span class="p">:</span> <span class="o">//</span> <span class="n">do</span> <span class="n">something</span> <span class="k">break</span><span class="p">;</span> <span class="p">}</span> </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>TensorFormat : NHWC / HCHW</p> </dd> </dl> @@ -339,7 +343,7 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>All input tensors. A vector of raw pointer to the input tensor.</p> </dd> </dl> @@ -360,7 +364,7 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink </div> </p> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>All output tensors. A vector of raw pointer to the output tensor.</p> </dd> </dl> @@ -371,13 +375,13 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink <span id="_CPPv3N4vart6Runner13execute_asyncE9InputType10OutputType"></span><span id="_CPPv2N4vart6Runner13execute_asyncE9InputType10OutputType"></span><span id="vart::Runner::execute_async__InputType.OutputType"></span><span class="target" id="classvart_1_1_base_runner_1a3a6ebaa53c9250e3c739c3c407c1c20f"></span><span class="k"><span class="pre">virtual</span></span><span class="w"> </span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">pair</span></span><span class="p"><span class="pre"><</span></span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">uint32_t</span></span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="kt"><span class="pre">int</span></span><span class="p"><span class="pre">></span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">execute_async</span></span></span><span class="sig-paren">(</span><span class="n"><span class="pre">InputType</span></span><span class="w"> </span><span class="n sig-param"><span class="pre">input</span></span>, <span class="n"><span class="pre">OutputType</span></span><span class="w"> </span><span class="n sig-param"><span class="pre">output</span></span><span class="sig-paren">)</span><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="m"><span class="pre">0</span></span><br /></dt> <dd><p><a class="reference internal" href="../python/execute__async_8py.html#namespaceexecute__async"><span class="std std-ref">execute_async</span></a></p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>input</strong> – inputs with a customized type</p></li> <li><p><strong>output</strong> – outputs with a customized type</p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>pair<jobid, status> status 0 for exit successfully, others for customized warnings or errors </p> </dd> </dl> @@ -397,13 +401,13 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>subgraph</strong> – XIR Subgraph </p></li> <li><p><strong>mode</strong> – 1 mode supported: ‘run’ - DPU runner. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>An instance of DPU runner.</p> </dd> </dl> @@ -414,14 +418,14 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink <span id="_CPPv3N4vart6Runner24create_runner_with_attrsEPKN3xir8SubgraphEPN3xir5AttrsE"></span><span id="_CPPv2N4vart6Runner24create_runner_with_attrsEPKN3xir8SubgraphEPN3xir5AttrsE"></span><span id="vart::Runner::create_runner_with_attrs__xir::SubgraphCP.xir::AttrsP"></span><span class="target" id="classvart_1_1_runner_1ad6ff892533067e379b0f7b4835b5f6f6"></span><span class="k"><span class="pre">static</span></span><span class="w"> </span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">unique_ptr</span></span><span class="p"><span class="pre"><</span></span><a class="reference internal" href="../class/classvart_1_1_runner.html#_CPPv4N4vart6RunnerE" title="vart::Runner"><span class="n"><span class="pre">Runner</span></span></a><span class="p"><span class="pre">></span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">create_runner_with_attrs</span></span></span><span class="sig-paren">(</span><span class="k"><span class="pre">const</span></span><span class="w"> </span><a class="reference internal" href="../file/runner_8hpp.html#_CPPv43xir" title="xir"><span class="n"><span class="pre">xir</span></span></a><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">Subgraph</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n sig-param"><span class="pre">subgraph</span></span>, <a class="reference internal" href="../file/runner_8hpp.html#_CPPv43xir" title="xir"><span class="n"><span class="pre">xir</span></span></a><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">Attrs</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n sig-param"><span class="pre">attrs</span></span><span class="sig-paren">)</span><br /></dt> <dd><p>Factory function to create an instance of DPU runner by subgraph, and attrs. </p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>subgraph</strong> – XIR Subgraph</p></li> <li><p><strong>attrs</strong> – XIR attrs object, this object is shared among all runners on the same graph.</p></li> <li><p><strong>attrs["mode"], 1</strong> – mode supported: ‘run’ - DPU runner.</p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>An instance of DPU runner. </p> </dd> </dl> @@ -449,7 +453,7 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>All input TensorBuffers. A vector of raw pointer to the input <a class="reference internal" href="#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a>.</p> </dd> </dl> @@ -469,7 +473,7 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>All output TensorBuffers. A vector of raw pointer to the output <a class="reference internal" href="#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a>.</p> </dd> </dl> @@ -481,13 +485,13 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink <dd><p>Executes the runner. </p> <p>This is a blocking function.</p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>input</strong> – A vector of <a class="reference internal" href="#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a> create by all input tensors of runner.</p></li> <li><p><strong>output</strong> – A vector of <a class="reference internal" href="#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a> create by all output tensors of runner.</p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>pair<jobid, status> status 0 for exit successfully, others for customized warnings or errors </p> </dd> </dl> @@ -498,13 +502,13 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink <span id="_CPPv3N4vart9RunnerExt13execute_asyncE9InputType10OutputType"></span><span id="_CPPv2N4vart9RunnerExt13execute_asyncE9InputType10OutputType"></span><span id="vart::RunnerExt::execute_async__InputType.OutputType"></span><span class="target" id="classvart_1_1_base_runner_1a3a6ebaa53c9250e3c739c3c407c1c20f"></span><span class="k"><span class="pre">virtual</span></span><span class="w"> </span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">pair</span></span><span class="p"><span class="pre"><</span></span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">uint32_t</span></span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="kt"><span class="pre">int</span></span><span class="p"><span class="pre">></span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">execute_async</span></span></span><span class="sig-paren">(</span><span class="n"><span class="pre">InputType</span></span><span class="w"> </span><span class="n sig-param"><span class="pre">input</span></span>, <span class="n"><span class="pre">OutputType</span></span><span class="w"> </span><span class="n sig-param"><span class="pre">output</span></span><span class="sig-paren">)</span><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="m"><span class="pre">0</span></span><br /></dt> <dd><p><a class="reference internal" href="../python/execute__async_8py.html#namespaceexecute__async"><span class="std std-ref">execute_async</span></a></p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>input</strong> – inputs with a customized type</p></li> <li><p><strong>output</strong> – outputs with a customized type</p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>pair<jobid, status> status 0 for exit successfully, others for customized warnings or errors </p> </dd> </dl> @@ -516,13 +520,13 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink <dd><p>Waits for the end of DPU processing. </p> <p>modes: 1. Blocking wait for specific ID. 2. Non-blocking wait for specific ID. 3. Blocking wait for any ID. 4. Non-blocking wait for any ID</p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>jobid</strong> – job id, neg for any id, others for specific job id</p></li> <li><p><strong>timeout</strong> – timeout, neg for block for ever, 0 for non-block, pos for block with a limitation(ms).</p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>status 0 for exit successfully, others for customized warnings or errors </p> </dd> </dl> @@ -536,17 +540,17 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink Sample code:</p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">auto</span> <span class="nb">format</span> <span class="o">=</span> <span class="n">runner</span><span class="o">-></span><span class="n">get_tensor_format</span><span class="p">();</span> <span class="n">switch</span> <span class="p">(</span><span class="nb">format</span><span class="p">)</span> <span class="p">{</span> - <span class="k">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">Runner</span><span class="p">::</span><span class="n">TensorFormat</span><span class="p">::</span><span class="n">NCHW</span><span class="p">:</span> + <span class="n">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">Runner</span><span class="p">::</span><span class="n">TensorFormat</span><span class="p">::</span><span class="n">NCHW</span><span class="p">:</span> <span class="o">//</span> <span class="n">do</span> <span class="n">something</span> <span class="k">break</span><span class="p">;</span> - <span class="k">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">Runner</span><span class="p">::</span><span class="n">TensorFormat</span><span class="p">::</span><span class="n">NHWC</span><span class="p">:</span> + <span class="n">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">Runner</span><span class="p">::</span><span class="n">TensorFormat</span><span class="p">::</span><span class="n">NHWC</span><span class="p">:</span> <span class="o">//</span> <span class="n">do</span> <span class="n">something</span> <span class="k">break</span><span class="p">;</span> <span class="p">}</span> </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>TensorFormat : NHWC / HCHW</p> </dd> </dl> @@ -567,7 +571,7 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>All input tensors. A vector of raw pointer to the input tensor.</p> </dd> </dl> @@ -588,7 +592,7 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink </div> </p> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>All output tensors. A vector of raw pointer to the output tensor.</p> </dd> </dl> @@ -602,13 +606,13 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink <span id="_CPPv3N4vart9RunnerExt13create_runnerEPKN3xir8SubgraphEPN3xir5AttrsE"></span><span id="_CPPv2N4vart9RunnerExt13create_runnerEPKN3xir8SubgraphEPN3xir5AttrsE"></span><span id="vart::RunnerExt::create_runner__xir::SubgraphCP.xir::AttrsP"></span><span class="target" id="classvart_1_1_runner_ext_1a2d06613bafd66a3db2cbdbf8b30cada8"></span><span class="k"><span class="pre">static</span></span><span class="w"> </span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">unique_ptr</span></span><span class="p"><span class="pre"><</span></span><a class="reference internal" href="../class/classvart_1_1_runner_ext.html#_CPPv4N4vart9RunnerExtE" title="vart::RunnerExt"><span class="n"><span class="pre">RunnerExt</span></span></a><span class="p"><span class="pre">></span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">create_runner</span></span></span><span class="sig-paren">(</span><span class="k"><span class="pre">const</span></span><span class="w"> </span><a class="reference internal" href="../file/runner_8hpp.html#_CPPv43xir" title="xir"><span class="n"><span class="pre">xir</span></span></a><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">Subgraph</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n sig-param"><span class="pre">subgraph</span></span>, <a class="reference internal" href="../file/runner_8hpp.html#_CPPv43xir" title="xir"><span class="n"><span class="pre">xir</span></span></a><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">Attrs</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n sig-param"><span class="pre">attrs</span></span><span class="sig-paren">)</span><br /></dt> <dd><p>Factory fucntion to create an instance of runner by subgraph and attrs. </p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>subgraph</strong> – XIR Subgraph </p></li> <li><p><strong>attrs</strong> – XIR attrs object, this object is shared among all runners on the same graph. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>An instance of runner. </p> </dd> </dl> @@ -625,13 +629,13 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>subgraph</strong> – XIR Subgraph </p></li> <li><p><strong>mode</strong> – 1 mode supported: ‘run’ - DPU runner. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>An instance of DPU runner.</p> </dd> </dl> @@ -642,14 +646,14 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink <span id="_CPPv3N4vart9RunnerExt24create_runner_with_attrsEPKN3xir8SubgraphEPN3xir5AttrsE"></span><span id="_CPPv2N4vart9RunnerExt24create_runner_with_attrsEPKN3xir8SubgraphEPN3xir5AttrsE"></span><span id="vart::RunnerExt::create_runner_with_attrs__xir::SubgraphCP.xir::AttrsP"></span><span class="target" id="classvart_1_1_runner_1ad6ff892533067e379b0f7b4835b5f6f6"></span><span class="k"><span class="pre">static</span></span><span class="w"> </span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">unique_ptr</span></span><span class="p"><span class="pre"><</span></span><a class="reference internal" href="../class/classvart_1_1_runner.html#_CPPv4N4vart6RunnerE" title="vart::Runner"><span class="n"><span class="pre">Runner</span></span></a><span class="p"><span class="pre">></span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">create_runner_with_attrs</span></span></span><span class="sig-paren">(</span><span class="k"><span class="pre">const</span></span><span class="w"> </span><a class="reference internal" href="../file/runner_8hpp.html#_CPPv43xir" title="xir"><span class="n"><span class="pre">xir</span></span></a><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">Subgraph</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n sig-param"><span class="pre">subgraph</span></span>, <a class="reference internal" href="../file/runner_8hpp.html#_CPPv43xir" title="xir"><span class="n"><span class="pre">xir</span></span></a><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">Attrs</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n sig-param"><span class="pre">attrs</span></span><span class="sig-paren">)</span><br /></dt> <dd><p>Factory function to create an instance of DPU runner by subgraph, and attrs. </p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>subgraph</strong> – XIR Subgraph</p></li> <li><p><strong>attrs</strong> – XIR attrs object, this object is shared among all runners on the same graph.</p></li> <li><p><strong>attrs["mode"], 1</strong> – mode supported: ‘run’ - DPU runner.</p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>An instance of DPU runner. </p> </dd> </dl> @@ -678,10 +682,10 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><p><strong>idx</strong> – The index of the data to be accessed, its dimension same as the tensor shape. </p> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>A pair of the data address of the index and the size of the data available for use in byte unit.</p> </dd> </dl> @@ -695,10 +699,10 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink Sample code: </p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">vart</span><span class="p">::</span><span class="n">TensorBuffer</span><span class="o">*</span> <span class="n">tb</span><span class="p">;</span> <span class="n">switch</span> <span class="p">(</span><span class="n">tb</span><span class="o">-></span><span class="n">get_location</span><span class="p">())</span> <span class="p">{</span> - <span class="k">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">TensorBuffer</span><span class="p">::</span><span class="n">location_t</span><span class="p">::</span><span class="n">HOST_VIRT</span><span class="p">:</span> + <span class="n">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">TensorBuffer</span><span class="p">::</span><span class="n">location_t</span><span class="p">::</span><span class="n">HOST_VIRT</span><span class="p">:</span> <span class="o">//</span> <span class="n">do</span> <span class="n">nothing</span> <span class="k">break</span><span class="p">;</span> - <span class="k">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">TensorBuffer</span><span class="p">::</span><span class="n">location_t</span><span class="p">::</span><span class="n">HOST_PHY</span><span class="p">:</span> + <span class="n">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">TensorBuffer</span><span class="p">::</span><span class="n">location_t</span><span class="p">::</span><span class="n">HOST_PHY</span><span class="p">:</span> <span class="o">//</span> <span class="n">do</span> <span class="n">nothing</span> <span class="k">break</span><span class="p">;</span> <span class="n">default</span><span class="p">:</span> @@ -708,7 +712,7 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>the tensor buffer location, a location_t enum type value: HOST_VIRT/HOST_PHY/DEVICE_*.</p> </dd> </dl> @@ -725,10 +729,10 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><p><strong>idx</strong> – The index of the data to be accessed, its dimension same to the tensor shape. </p> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>A pair of the data physical address of the index and the size of the data available for use in byte unit.</p> </dd> </dl> @@ -747,13 +751,13 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>offset</strong> – The start offset address. </p></li> <li><p><strong>size</strong> – The data size. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>void</p> </dd> </dl> @@ -772,13 +776,13 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>offset</strong> – The start offset address. </p></li> <li><p><strong>size</strong> – The data size. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>void</p> </dd> </dl> @@ -789,7 +793,7 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink <span id="_CPPv3N4vart12TensorBuffer14copy_from_hostE6size_tPKv6size_t6size_t"></span><span id="_CPPv2N4vart12TensorBuffer14copy_from_hostE6size_tPKv6size_t6size_t"></span><span id="vart::TensorBuffer::copy_from_host__s.voidCP.s.s"></span><span class="target" id="classvart_1_1_tensor_buffer_1a781dbc662ce87afedf825aebf94eb2ba"></span><span class="k"><span class="pre">virtual</span></span><span class="w"> </span><span class="kt"><span class="pre">void</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">copy_from_host</span></span></span><span class="sig-paren">(</span><span class="n"><span class="pre">size_t</span></span><span class="w"> </span><span class="n sig-param"><span class="pre">batch_idx</span></span>, <span class="k"><span class="pre">const</span></span><span class="w"> </span><span class="kt"><span class="pre">void</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n sig-param"><span class="pre">buf</span></span>, <span class="n"><span class="pre">size_t</span></span><span class="w"> </span><span class="n sig-param"><span class="pre">size</span></span>, <span class="n"><span class="pre">size_t</span></span><span class="w"> </span><span class="n sig-param"><span class="pre">offset</span></span><span class="sig-paren">)</span><br /></dt> <dd><p>copy data from source buffer. </p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>batch_idx</strong> – the batch index. </p></li> <li><p><strong>buf</strong> – source buffer start address. </p></li> @@ -797,7 +801,7 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink <li><p><strong>offset</strong> – the start offset to be copied. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>void </p> </dd> </dl> @@ -819,7 +823,7 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>batch_idx</strong> – the batch index. </p></li> <li><p><strong>buf</strong> – destination buffer start address. </p></li> @@ -827,7 +831,7 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink <li><p><strong>offset</strong> – the start offset to be copied. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>void</p> </dd> </dl> @@ -838,7 +842,7 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink <span id="_CPPv3NK4vart12TensorBuffer10get_tensorEv"></span><span id="_CPPv2NK4vart12TensorBuffer10get_tensorEv"></span><span id="vart::TensorBuffer::get_tensorC"></span><span class="target" id="classvart_1_1_tensor_buffer_1a3c53b20e0e7b58a4c5d18baa10a3f0b6"></span><span class="k"><span class="pre">const</span></span><span class="w"> </span><a class="reference internal" href="../file/runner_8hpp.html#_CPPv43xir" title="xir"><span class="n"><span class="pre">xir</span></span></a><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">Tensor</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="sig-name descname"><span class="n"><span class="pre">get_tensor</span></span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><span class="w"> </span><span class="k"><span class="pre">const</span></span><br /></dt> <dd><p>Get tensor of <a class="reference internal" href="#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a>. </p> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>A pointer to the tensor. </p> </dd> </dl> @@ -871,13 +875,13 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>tb_from</strong> – the source <a class="reference internal" href="#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a>. </p></li> <li><p><strong>tb_to</strong> – the destination <a class="reference internal" href="#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a>. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>void</p> </dd> </dl> @@ -913,14 +917,14 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>tensor</strong> – XIR tensor pointer </p></li> <li><p><strong>batch_addr</strong> – Array which contains device physical address for each batch </p></li> <li><p><strong>addr_arrsize</strong> – The array size of batch_addr </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>Unique pointer of created tensor buffer.</p> </dd> </dl> @@ -951,10 +955,10 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><p><strong>idx</strong> – The index of the data to be accessed, its dimension same as the tensor shape. </p> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>A pair of the data address of the index and the size of the data available for use in byte unit.</p> </dd> </dl> @@ -968,10 +972,10 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink Sample code: </p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">vart</span><span class="p">::</span><span class="n">TensorBuffer</span><span class="o">*</span> <span class="n">tb</span><span class="p">;</span> <span class="n">switch</span> <span class="p">(</span><span class="n">tb</span><span class="o">-></span><span class="n">get_location</span><span class="p">())</span> <span class="p">{</span> - <span class="k">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">TensorBuffer</span><span class="p">::</span><span class="n">location_t</span><span class="p">::</span><span class="n">HOST_VIRT</span><span class="p">:</span> + <span class="n">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">TensorBuffer</span><span class="p">::</span><span class="n">location_t</span><span class="p">::</span><span class="n">HOST_VIRT</span><span class="p">:</span> <span class="o">//</span> <span class="n">do</span> <span class="n">nothing</span> <span class="k">break</span><span class="p">;</span> - <span class="k">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">TensorBuffer</span><span class="p">::</span><span class="n">location_t</span><span class="p">::</span><span class="n">HOST_PHY</span><span class="p">:</span> + <span class="n">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">TensorBuffer</span><span class="p">::</span><span class="n">location_t</span><span class="p">::</span><span class="n">HOST_PHY</span><span class="p">:</span> <span class="o">//</span> <span class="n">do</span> <span class="n">nothing</span> <span class="k">break</span><span class="p">;</span> <span class="n">default</span><span class="p">:</span> @@ -981,7 +985,7 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>the tensor buffer location, a location_t enum type value: HOST_VIRT/HOST_PHY/DEVICE_*.</p> </dd> </dl> @@ -998,10 +1002,10 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><p><strong>idx</strong> – The index of the data to be accessed, its dimension same to the tensor shape. </p> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>A pair of the data physical address of the index and the size of the data available for use in byte unit.</p> </dd> </dl> @@ -1020,13 +1024,13 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>offset</strong> – The start offset address. </p></li> <li><p><strong>size</strong> – The data size. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>void</p> </dd> </dl> @@ -1045,13 +1049,13 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>offset</strong> – The start offset address. </p></li> <li><p><strong>size</strong> – The data size. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>void</p> </dd> </dl> @@ -1062,7 +1066,7 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink <span id="_CPPv3N4vart15TensorBufferExt14copy_from_hostE6size_tPKv6size_t6size_t"></span><span id="_CPPv2N4vart15TensorBufferExt14copy_from_hostE6size_tPKv6size_t6size_t"></span><span id="vart::TensorBufferExt::copy_from_host__s.voidCP.s.s"></span><span class="target" id="classvart_1_1_tensor_buffer_1a781dbc662ce87afedf825aebf94eb2ba"></span><span class="k"><span class="pre">virtual</span></span><span class="w"> </span><span class="kt"><span class="pre">void</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">copy_from_host</span></span></span><span class="sig-paren">(</span><span class="n"><span class="pre">size_t</span></span><span class="w"> </span><span class="n sig-param"><span class="pre">batch_idx</span></span>, <span class="k"><span class="pre">const</span></span><span class="w"> </span><span class="kt"><span class="pre">void</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n sig-param"><span class="pre">buf</span></span>, <span class="n"><span class="pre">size_t</span></span><span class="w"> </span><span class="n sig-param"><span class="pre">size</span></span>, <span class="n"><span class="pre">size_t</span></span><span class="w"> </span><span class="n sig-param"><span class="pre">offset</span></span><span class="sig-paren">)</span><br /></dt> <dd><p>copy data from source buffer. </p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>batch_idx</strong> – the batch index. </p></li> <li><p><strong>buf</strong> – source buffer start address. </p></li> @@ -1070,7 +1074,7 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink <li><p><strong>offset</strong> – the start offset to be copied. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>void </p> </dd> </dl> @@ -1092,7 +1096,7 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>batch_idx</strong> – the batch index. </p></li> <li><p><strong>buf</strong> – destination buffer start address. </p></li> @@ -1100,7 +1104,7 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink <li><p><strong>offset</strong> – the start offset to be copied. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>void</p> </dd> </dl> @@ -1111,7 +1115,7 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink <span id="_CPPv3NK4vart15TensorBufferExt10get_tensorEv"></span><span id="_CPPv2NK4vart15TensorBufferExt10get_tensorEv"></span><span id="vart::TensorBufferExt::get_tensorC"></span><span class="target" id="classvart_1_1_tensor_buffer_1a3c53b20e0e7b58a4c5d18baa10a3f0b6"></span><span class="k"><span class="pre">const</span></span><span class="w"> </span><a class="reference internal" href="../file/runner_8hpp.html#_CPPv43xir" title="xir"><span class="n"><span class="pre">xir</span></span></a><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">Tensor</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="sig-name descname"><span class="n"><span class="pre">get_tensor</span></span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><span class="w"> </span><span class="k"><span class="pre">const</span></span><br /></dt> <dd><p>Get tensor of <a class="reference internal" href="#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a>. </p> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>A pointer to the tensor. </p> </dd> </dl> @@ -1138,13 +1142,13 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>tb_from</strong> – the source <a class="reference internal" href="#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a>. </p></li> <li><p><strong>tb_to</strong> – the destination <a class="reference internal" href="#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a>. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>void</p> </dd> </dl> @@ -1180,14 +1184,14 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>tensor</strong> – XIR tensor pointer </p></li> <li><p><strong>batch_addr</strong> – Array which contains device physical address for each batch </p></li> <li><p><strong>addr_arrsize</strong> – The array size of batch_addr </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>Unique pointer of created tensor buffer.</p> </dd> </dl> diff --git a/docs/doxygen/api/namespace/namespacewait.html b/docs/doxygen/api/namespace/namespacewait.html index b6503ceef..5de2f5734 100644 --- a/docs/doxygen/api/namespace/namespacewait.html +++ b/docs/doxygen/api/namespace/namespacewait.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="namespace-wait"> -<h1>Namespace wait<a class="headerlink" href="#namespace-wait" title="Permalink to this heading">¶</a></h1> +<h1>Namespace wait<a class="headerlink" href="#namespace-wait" title="Permalink to this headline">¶</a></h1> <dl class="py class"> <dt class="sig sig-object py" id="wait"> <span class="target" id="namespacewait"></span><em class="property"><span class="pre">module</span> </em><span class="sig-name descname"><span class="pre">wait</span></span><a class="headerlink" href="#wait" title="Permalink to this definition">¶</a></dt> @@ -147,10 +151,10 @@ <h1>Namespace wait<a class="headerlink" href="#namespace-wait" title="Permalink </ol> </p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><p><strong>jobid_time</strong> – tuple[uint32_t, int], [job id, time], jobid: neg for any id, others for specific job id. time: not used here</p> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>status 0 for exit successfully, others for customized warnings or errors </p> </dd> </dl> diff --git a/docs/doxygen/api/namespace/namespacexir.html b/docs/doxygen/api/namespace/namespacexir.html index 518c5fd9e..fa6135834 100644 --- a/docs/doxygen/api/namespace/namespacexir.html +++ b/docs/doxygen/api/namespace/namespacexir.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="namespace-xir"> -<h1>Namespace xir<a class="headerlink" href="#namespace-xir" title="Permalink to this heading">¶</a></h1> +<h1>Namespace xir<a class="headerlink" href="#namespace-xir" title="Permalink to this headline">¶</a></h1> <dl class="cpp type"> <dt class="sig sig-object cpp" id="_CPPv43xir"> <span id="_CPPv33xir"></span><span id="_CPPv23xir"></span><span id="xir"></span><span class="target" id="namespacexir"></span><span class="k"><span class="pre">namespace</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">xir</span></span></span><br /></dt> diff --git a/docs/doxygen/api/namespacelist.html b/docs/doxygen/api/namespacelist.html index 300739da1..d26094577 100644 --- a/docs/doxygen/api/namespacelist.html +++ b/docs/doxygen/api/namespacelist.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script> <script src="../../_static/jquery.js"></script> <script src="../../_static/underscore.js"></script> - <script src="../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../_static/doctools.js"></script> <script src="../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../docs/workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="namespace-list"> -<h1>Namespace list<a class="headerlink" href="#namespace-list" title="Permalink to this heading">¶</a></h1> +<h1>Namespace list<a class="headerlink" href="#namespace-list" title="Permalink to this headline">¶</a></h1> <div class="toctree-wrapper compound"> <ul> <li class="toctree-l1"><a class="reference internal" href="namespace/namespacecreate__graph__runner.html">Namespace create_graph_runner</a></li> diff --git a/docs/doxygen/api/python/create__graph__runner_8py.html b/docs/doxygen/api/python/create__graph__runner_8py.html index 191779bb0..28d8d7541 100644 --- a/docs/doxygen/api/python/create__graph__runner_8py.html +++ b/docs/doxygen/api/python/create__graph__runner_8py.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -73,6 +72,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -149,7 +153,7 @@ <div itemprop="articleBody"> <section id="file-create-graph-runner-py"> -<h1>File create_graph_runner.py<a class="headerlink" href="#file-create-graph-runner-py" title="Permalink to this heading">¶</a></h1> +<h1>File create_graph_runner.py<a class="headerlink" href="#file-create-graph-runner-py" title="Permalink to this headline">¶</a></h1> <div class="breathe-sectiondef docutils container"> <p class="breathe-sectiondef-title rubric" id="breathe-section-title-functions">Functions</p> <dl class="py function"> @@ -177,10 +181,10 @@ <h1>File create_graph_runner.py<a class="headerlink" href="#file-create-graph-ru </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><p><strong>graph</strong> – xir.Graph, XIR Graph runners on the same graph. </p> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>vart.RunnerExt. An instance of runner.</p> </dd> </dl> diff --git a/docs/doxygen/api/python/create__runner_8py.html b/docs/doxygen/api/python/create__runner_8py.html index 2703d18e3..c58ef07e2 100644 --- a/docs/doxygen/api/python/create__runner_8py.html +++ b/docs/doxygen/api/python/create__runner_8py.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -73,6 +72,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -149,7 +153,7 @@ <div itemprop="articleBody"> <section id="file-create-runner-py"> -<h1>File create_runner.py<a class="headerlink" href="#file-create-runner-py" title="Permalink to this heading">¶</a></h1> +<h1>File create_runner.py<a class="headerlink" href="#file-create-runner-py" title="Permalink to this headline">¶</a></h1> <div class="breathe-sectiondef docutils container"> <p class="breathe-sectiondef-title rubric" id="breathe-section-title-functions">Functions</p> <dl class="py function"> @@ -169,13 +173,13 @@ <h1>File create_runner.py<a class="headerlink" href="#file-create-runner-py" tit </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>subgraph</strong> – : xir.Subgraph, XIR Subgraph </p></li> <li><p><strong>mode</strong> – 1 mode supported: ‘run’ - DPU runner. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p><a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_runner"><span class="std std-ref">vart.Runner</span></a>, an instance of DPU runner.</p> </dd> </dl> diff --git a/docs/doxygen/api/python/execute__async_8py.html b/docs/doxygen/api/python/execute__async_8py.html index 10bd3ce62..c85187643 100644 --- a/docs/doxygen/api/python/execute__async_8py.html +++ b/docs/doxygen/api/python/execute__async_8py.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -73,6 +72,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -149,7 +153,7 @@ <div itemprop="articleBody"> <section id="file-execute-async-py"> -<h1>File execute_async.py<a class="headerlink" href="#file-execute-async-py" title="Permalink to this heading">¶</a></h1> +<h1>File execute_async.py<a class="headerlink" href="#file-execute-async-py" title="Permalink to this headline">¶</a></h1> <div class="breathe-sectiondef docutils container"> <p class="breathe-sectiondef-title rubric" id="breathe-section-title-functions">Functions</p> <dl class="py function"> @@ -164,13 +168,13 @@ <h1>File execute_async.py<a class="headerlink" href="#file-execute-async-py" tit <dd><p>Executes the runner. </p> <p>This is a blocking function.</p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>inputs</strong> – : List[<a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">vart.TensorBuffer</span></a>], A list of <a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">vart.TensorBuffer</span></a> containing the input data for inference.</p></li> <li><p><strong>outputs</strong> – : List[<a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">vart.TensorBuffer</span></a>], A list of <a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">vart.TensorBuffer</span></a> which will be filled with output data.</p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>tuple[jobid, status] status 0 for exit successfully, others for customized warnings or errors. </p> </dd> </dl> diff --git a/docs/doxygen/api/python/get__input__tensors_8py.html b/docs/doxygen/api/python/get__input__tensors_8py.html index d452bbea3..c2a48b1b5 100644 --- a/docs/doxygen/api/python/get__input__tensors_8py.html +++ b/docs/doxygen/api/python/get__input__tensors_8py.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -73,6 +72,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -149,7 +153,7 @@ <div itemprop="articleBody"> <section id="file-get-input-tensors-py"> -<h1>File get_input_tensors.py<a class="headerlink" href="#file-get-input-tensors-py" title="Permalink to this heading">¶</a></h1> +<h1>File get_input_tensors.py<a class="headerlink" href="#file-get-input-tensors-py" title="Permalink to this headline">¶</a></h1> <div class="breathe-sectiondef docutils container"> <p class="breathe-sectiondef-title rubric" id="breathe-section-title-functions">Functions</p> <dl class="py function"> @@ -177,7 +181,7 @@ <h1>File get_input_tensors.py<a class="headerlink" href="#file-get-input-tensors </div> <p>Note that the dimensions (.dim) of an input tensor are in the form NHWC (batchsize, height,width,channels). </p> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>List[xir.Tensor]. A list of DPU runner inputs, each of which have type xir.Tensor.</p> </dd> </dl> diff --git a/docs/doxygen/api/python/get__inputs_8py.html b/docs/doxygen/api/python/get__inputs_8py.html index 64d0427a3..c6d81ad03 100644 --- a/docs/doxygen/api/python/get__inputs_8py.html +++ b/docs/doxygen/api/python/get__inputs_8py.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -73,6 +72,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -149,7 +153,7 @@ <div itemprop="articleBody"> <section id="file-get-inputs-py"> -<h1>File get_inputs.py<a class="headerlink" href="#file-get-inputs-py" title="Permalink to this heading">¶</a></h1> +<h1>File get_inputs.py<a class="headerlink" href="#file-get-inputs-py" title="Permalink to this headline">¶</a></h1> <div class="breathe-sectiondef docutils container"> <p class="breathe-sectiondef-title rubric" id="breathe-section-title-functions">Functions</p> <dl class="py function"> @@ -169,7 +173,7 @@ <h1>File get_inputs.py<a class="headerlink" href="#file-get-inputs-py" title="Pe </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>: List[<a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">vart.TensorBuffer</span></a>]. All input tensors. A vector of raw pointer to the input tensor.</p> </dd> </dl> diff --git a/docs/doxygen/api/python/get__output__tensors_8py.html b/docs/doxygen/api/python/get__output__tensors_8py.html index 7ca685949..592db3780 100644 --- a/docs/doxygen/api/python/get__output__tensors_8py.html +++ b/docs/doxygen/api/python/get__output__tensors_8py.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -73,6 +72,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -149,7 +153,7 @@ <div itemprop="articleBody"> <section id="file-get-output-tensors-py"> -<h1>File get_output_tensors.py<a class="headerlink" href="#file-get-output-tensors-py" title="Permalink to this heading">¶</a></h1> +<h1>File get_output_tensors.py<a class="headerlink" href="#file-get-output-tensors-py" title="Permalink to this headline">¶</a></h1> <div class="breathe-sectiondef docutils container"> <p class="breathe-sectiondef-title rubric" id="breathe-section-title-functions">Functions</p> <dl class="py function"> @@ -169,7 +173,7 @@ <h1>File get_output_tensors.py<a class="headerlink" href="#file-get-output-tenso </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>List[xir.Tensor], all output tensors. A vector of raw pointer to the output tensor.</p> </dd> </dl> diff --git a/docs/doxygen/api/python/get__outputs_8py.html b/docs/doxygen/api/python/get__outputs_8py.html index 8dad378fa..24d3f55ec 100644 --- a/docs/doxygen/api/python/get__outputs_8py.html +++ b/docs/doxygen/api/python/get__outputs_8py.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -73,6 +72,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -149,7 +153,7 @@ <div itemprop="articleBody"> <section id="file-get-outputs-py"> -<h1>File get_outputs.py<a class="headerlink" href="#file-get-outputs-py" title="Permalink to this heading">¶</a></h1> +<h1>File get_outputs.py<a class="headerlink" href="#file-get-outputs-py" title="Permalink to this headline">¶</a></h1> <div class="breathe-sectiondef docutils container"> <p class="breathe-sectiondef-title rubric" id="breathe-section-title-functions">Functions</p> <dl class="py function"> @@ -169,7 +173,7 @@ <h1>File get_outputs.py<a class="headerlink" href="#file-get-outputs-py" title=" </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>List[<a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">vart.TensorBuffer</span></a>]. All output tensors. A vector of raw pointer to the output tensor.</p> </dd> </dl> diff --git a/docs/doxygen/api/python/runner__example_8py.html b/docs/doxygen/api/python/runner__example_8py.html index e009be53f..b524b86a7 100644 --- a/docs/doxygen/api/python/runner__example_8py.html +++ b/docs/doxygen/api/python/runner__example_8py.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -73,6 +72,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -149,7 +153,7 @@ <div itemprop="articleBody"> <section id="file-runner-example-py"> -<h1>File runner_example.py<a class="headerlink" href="#file-runner-example-py" title="Permalink to this heading">¶</a></h1> +<h1>File runner_example.py<a class="headerlink" href="#file-runner-example-py" title="Permalink to this headline">¶</a></h1> <dl class="py class"> <dt class="sig sig-object py" id="runner_example"> <span class="target" id="namespacerunner__example"></span><em class="property"><span class="pre">module</span> </em><span class="sig-name descname"><span class="pre">runner_example</span></span><a class="headerlink" href="#runner_example" title="Permalink to this definition">¶</a></dt> diff --git a/docs/doxygen/api/python/runnerext__example_8py.html b/docs/doxygen/api/python/runnerext__example_8py.html index 15c48f3b1..1456fd5f2 100644 --- a/docs/doxygen/api/python/runnerext__example_8py.html +++ b/docs/doxygen/api/python/runnerext__example_8py.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -73,6 +72,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -149,7 +153,7 @@ <div itemprop="articleBody"> <section id="file-runnerext-example-py"> -<h1>File runnerext_example.py<a class="headerlink" href="#file-runnerext-example-py" title="Permalink to this heading">¶</a></h1> +<h1>File runnerext_example.py<a class="headerlink" href="#file-runnerext-example-py" title="Permalink to this headline">¶</a></h1> <dl class="py class"> <dt class="sig sig-object py" id="runnerext_example"> <span class="target" id="namespacerunnerext__example"></span><em class="property"><span class="pre">module</span> </em><span class="sig-name descname"><span class="pre">runnerext_example</span></span><a class="headerlink" href="#runnerext_example" title="Permalink to this definition">¶</a></dt> diff --git a/docs/doxygen/api/python/wait_8py.html b/docs/doxygen/api/python/wait_8py.html index 0a7af3f2c..e0ac5b2ce 100644 --- a/docs/doxygen/api/python/wait_8py.html +++ b/docs/doxygen/api/python/wait_8py.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -73,6 +72,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -149,7 +153,7 @@ <div itemprop="articleBody"> <section id="file-wait-py"> -<h1>File wait.py<a class="headerlink" href="#file-wait-py" title="Permalink to this heading">¶</a></h1> +<h1>File wait.py<a class="headerlink" href="#file-wait-py" title="Permalink to this headline">¶</a></h1> <div class="breathe-sectiondef docutils container"> <p class="breathe-sectiondef-title rubric" id="breathe-section-title-functions">Functions</p> <dl class="py function"> @@ -170,10 +174,10 @@ <h1>File wait.py<a class="headerlink" href="#file-wait-py" title="Permalink to t </ol> </p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><p><strong>jobid_time</strong> – tuple[uint32_t, int], [job id, time], jobid: neg for any id, others for specific job id. time: not used here</p> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>status 0 for exit successfully, others for customized warnings or errors </p> </dd> </dl> diff --git a/docs/doxygen/api/pythonlist.html b/docs/doxygen/api/pythonlist.html index d4347238b..969c55b69 100644 --- a/docs/doxygen/api/pythonlist.html +++ b/docs/doxygen/api/pythonlist.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script> <script src="../../_static/jquery.js"></script> <script src="../../_static/underscore.js"></script> - <script src="../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../_static/doctools.js"></script> <script src="../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../genindex.html" /> @@ -73,6 +72,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../docs/workflow.html">Overview</a></li> @@ -148,7 +152,7 @@ <div itemprop="articleBody"> <section id="python-apis"> -<h1>Python APIs<a class="headerlink" href="#python-apis" title="Permalink to this heading">¶</a></h1> +<h1>Python APIs<a class="headerlink" href="#python-apis" title="Permalink to this headline">¶</a></h1> <div class="toctree-wrapper compound"> <ul> <li class="toctree-l1"><a class="reference internal" href="python/create__graph__runner_8py.html">create_graph_runner</a></li> diff --git a/docs/doxygen/api/struct/structvart_1_1_dpu_meta.html b/docs/doxygen/api/struct/structvart_1_1_dpu_meta.html index 9d7056075..c3ef8b858 100644 --- a/docs/doxygen/api/struct/structvart_1_1_dpu_meta.html +++ b/docs/doxygen/api/struct/structvart_1_1_dpu_meta.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="struct-vart-dpumeta"> -<h1>Struct vart::DpuMeta<a class="headerlink" href="#struct-vart-dpumeta" title="Permalink to this heading">¶</a></h1> +<h1>Struct vart::DpuMeta<a class="headerlink" href="#struct-vart-dpumeta" title="Permalink to this headline">¶</a></h1> <dl class="cpp struct"> <dt class="sig sig-object cpp" id="_CPPv4N4vart7DpuMetaE"> <span id="_CPPv3N4vart7DpuMetaE"></span><span id="_CPPv2N4vart7DpuMetaE"></span><span id="vart::DpuMeta"></span><span class="target" id="structvart_1_1_dpu_meta"></span><span class="k"><span class="pre">struct</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">DpuMeta</span></span></span><span class="w"> </span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="k"><span class="pre">public</span></span><span class="w"> </span><a class="reference internal" href="../file/runner_8hpp.html#_CPPv4N4vart4MetaE" title="vart::Meta"><span class="n"><span class="pre">Meta</span></span></a><br /></dt> diff --git a/docs/doxygen/api/struct/structvart_1_1_meta.html b/docs/doxygen/api/struct/structvart_1_1_meta.html index 6f44c3fb9..60cbd4076 100644 --- a/docs/doxygen/api/struct/structvart_1_1_meta.html +++ b/docs/doxygen/api/struct/structvart_1_1_meta.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="struct-vart-meta"> -<h1>Struct vart::Meta<a class="headerlink" href="#struct-vart-meta" title="Permalink to this heading">¶</a></h1> +<h1>Struct vart::Meta<a class="headerlink" href="#struct-vart-meta" title="Permalink to this headline">¶</a></h1> <dl class="cpp struct"> <dt class="sig sig-object cpp" id="_CPPv4N4vart4MetaE"> <span id="_CPPv3N4vart4MetaE"></span><span id="_CPPv2N4vart4MetaE"></span><span id="vart::Meta"></span><span class="target" id="structvart_1_1_meta"></span><span class="k"><span class="pre">struct</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">Meta</span></span></span><br /></dt> diff --git a/docs/doxygen/api/struct/structvart_1_1_xcl_bo.html b/docs/doxygen/api/struct/structvart_1_1_xcl_bo.html index 776c8e31a..db051b3b0 100644 --- a/docs/doxygen/api/struct/structvart_1_1_xcl_bo.html +++ b/docs/doxygen/api/struct/structvart_1_1_xcl_bo.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="struct-vart-xclbo"> -<h1>Struct vart::XclBo<a class="headerlink" href="#struct-vart-xclbo" title="Permalink to this heading">¶</a></h1> +<h1>Struct vart::XclBo<a class="headerlink" href="#struct-vart-xclbo" title="Permalink to this headline">¶</a></h1> <dl class="cpp struct"> <dt class="sig sig-object cpp" id="_CPPv4N4vart5XclBoE"> <span id="_CPPv3N4vart5XclBoE"></span><span id="_CPPv2N4vart5XclBoE"></span><span id="vart::XclBo"></span><span class="target" id="structvart_1_1_xcl_bo"></span><span class="k"><span class="pre">struct</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">XclBo</span></span></span><br /></dt> diff --git a/docs/doxygen/api/structlist.html b/docs/doxygen/api/structlist.html index 785c00918..7c780e911 100644 --- a/docs/doxygen/api/structlist.html +++ b/docs/doxygen/api/structlist.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script> <script src="../../_static/jquery.js"></script> <script src="../../_static/underscore.js"></script> - <script src="../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../_static/doctools.js"></script> <script src="../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../docs/workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="struct-list"> -<h1>Struct list<a class="headerlink" href="#struct-list" title="Permalink to this heading">¶</a></h1> +<h1>Struct list<a class="headerlink" href="#struct-list" title="Permalink to this headline">¶</a></h1> <div class="toctree-wrapper compound"> <ul> <li class="toctree-l1"><a class="reference internal" href="struct/structvart_1_1_dpu_meta.html">Struct vart::DpuMeta</a></li> diff --git a/docs/genindex.html b/docs/genindex.html index 167157a5a..6e57b00e0 100644 --- a/docs/genindex.html +++ b/docs/genindex.html @@ -29,7 +29,6 @@ <script data-url_root="./" id="documentation_options" src="_static/documentation_options.js"></script> <script src="_static/jquery.js"></script> <script src="_static/underscore.js"></script> - <script src="_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="_static/doctools.js"></script> <script src="_static/js/theme.js"></script> <link rel="index" title="Index" href="#" /> @@ -70,6 +69,11 @@ <li class="toctree-l1"><a class="reference internal" href="docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="docs/workflow.html">Overview</a></li> diff --git a/docs/index.html b/docs/index.html index d674c8a61..2a0c39a00 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="./" id="documentation_options" src="_static/documentation_options.js"></script> <script src="_static/jquery.js"></script> <script src="_static/underscore.js"></script> - <script src="_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="_static/doctools.js"></script> <script src="_static/js/theme.js"></script> <link rel="index" title="Index" href="genindex.html" /> @@ -72,6 +71,11 @@ <li class="toctree-l1"><a class="reference internal" href="docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="docs/workflow.html">Overview</a></li> @@ -135,10 +139,10 @@ <div itemprop="articleBody"> <section id="vitis-ai"> -<h1>Vitis AI<a class="headerlink" href="#vitis-ai" title="Permalink to this heading">¶</a></h1> +<h1>Vitis AI<a class="headerlink" href="#vitis-ai" title="Permalink to this headline">¶</a></h1> <p>AMD Vitis™ AI is an integrated development environment that can be leveraged to accelerate AI inference on AMD platforms. This toolchain provides optimized IP, tools, libraries, models, as well as resources, such as example designs and tutorials that aid the user throughout the development process. It is designed with high efficiency and ease-of-use in mind, unleashing the full potential of AI acceleration on AMD Adaptable SoCs and Alveo Data Center accelerator cards.</p> <figure class="align-default" id="id1"> -<a class="reference internal image-reference" href="_images/VAI_IDE.png"><img alt="_images/VAI_IDE.png" src="_images/VAI_IDE.png" style="width: 1300px;" /></a> +<a class="reference internal image-reference" href="docs/reference/images/VAI_IDE.png"><img alt="docs/reference/images/VAI_IDE.png" src="docs/reference/images/VAI_IDE.png" style="width: 1300px;" /></a> <figcaption> <p><span class="caption-text">Vitis AI Integrated Development Environment Block Diagram</span><a class="headerlink" href="#id1" title="Permalink to this image">¶</a></p> </figcaption> @@ -157,41 +161,41 @@ <h1>Vitis AI<a class="headerlink" href="#vitis-ai" title="Permalink to this head </ul> </section> <section id="vitis-ai-key-components"> -<h1>Vitis AI Key Components<a class="headerlink" href="#vitis-ai-key-components" title="Permalink to this heading">¶</a></h1> +<h1>Vitis AI Key Components<a class="headerlink" href="#vitis-ai-key-components" title="Permalink to this headline">¶</a></h1> <section id="deep-learning-processor-unit"> -<h2>Deep-Learning Processor Unit<a class="headerlink" href="#deep-learning-processor-unit" title="Permalink to this heading">¶</a></h2> +<h2>Deep-Learning Processor Unit<a class="headerlink" href="#deep-learning-processor-unit" title="Permalink to this headline">¶</a></h2> <p>The <a class="reference internal" href="docs/workflow-system-integration.html#workflow-dpu"><span class="std std-ref">Deep-learning Processor Unit (DPU)</span></a> is a programmable engine optimized for deep neural networks. The DPU implements an efficient tensor-level instruction set designed to support and accelerate various popular convolutional neural networks, such as VGG, ResNet, GoogLeNet, YOLO, SSD, and MobileNet, among others.</p> <p>The DPU supports on AMD Zynq™ UltraScale+™ MPSoCs, the Kria™ KV260, Versal™ and Alveo cards. It scales to meet the requirements of many diverse applications in terms of throughput, latency, scalability, and power.</p> <p>AMD provides pre-built platforms integrating the DPU engine for both edge and data-center cards. These pre-built platforms allow data-scientists to start developping and testing their models without any need for HW development expertise.</p> <p>For embedded applications, the DPU needs to be integrated in a custom platform along with the other programmable logic functions going in the FPGA or adaptive SoC device. HW designers can <a class="reference internal" href="docs/workflow-system-integration.html#integrating-the-dpu"><span class="std std-ref">integrate the DPU in a custom platform</span></a> using either the Vitis flow or the Vivado™ Design Suite.</p> </section> <section id="model-development"> -<h2>Model Development<a class="headerlink" href="#model-development" title="Permalink to this heading">¶</a></h2> +<h2>Model Development<a class="headerlink" href="#model-development" title="Permalink to this headline">¶</a></h2> <section id="vitis-ai-model-zoo"> -<h3>Vitis AI Model Zoo<a class="headerlink" href="#vitis-ai-model-zoo" title="Permalink to this heading">¶</a></h3> +<h3>Vitis AI Model Zoo<a class="headerlink" href="#vitis-ai-model-zoo" title="Permalink to this headline">¶</a></h3> <p>The <a class="reference internal" href="docs/workflow-model-zoo.html#workflow-model-zoo"><span class="std std-ref">Vitis AI Model Zoo</span></a> includes optimized deep learning models to speed up the deployment of deep learning inference on adaptable AMD platforms. These models cover different applications, including ADAS/AD, video surveillance, robotics, and data center. You can get started with these pre-trained models to enjoy the benefits of deep learning acceleration.</p> </section> <section id="vitis-ai-model-inspector"> -<h3>Vitis AI Model Inspector<a class="headerlink" href="#vitis-ai-model-inspector" title="Permalink to this heading">¶</a></h3> +<h3>Vitis AI Model Inspector<a class="headerlink" href="#vitis-ai-model-inspector" title="Permalink to this headline">¶</a></h3> <p>The <a class="reference internal" href="docs/workflow-model-development.html#model-inspector"><span class="std std-ref">Vitis AI Model Inspector</span></a> is used to perform initial sanity checks to confirm that the operators and sequence of operators in the graph is compatible with Vitis AI. Novel neural network architectures, operators, and activation types are constantly being developed and optimized for prediction accuracy and performance. Vitis AI provides mechanisms to leverage operators that are not natively supported by your specific DPU target.</p> </section> <section id="vitis-ai-optimizer"> -<h3>Vitis AI Optimizer<a class="headerlink" href="#vitis-ai-optimizer" title="Permalink to this heading">¶</a></h3> +<h3>Vitis AI Optimizer<a class="headerlink" href="#vitis-ai-optimizer" title="Permalink to this headline">¶</a></h3> <p>The <a class="reference internal" href="docs/workflow-model-development.html#model-optimization"><span class="std std-ref">Vitis AI Optimizer</span></a> exploits the notion of sparsity to reduce the overall computational complexity for inference by 5x to 50x with minimal accuracy degradation. Many deep neural network topologies employ significant levels of redundancy. This is particularly true when the network backbone is optimized for prediction accuracy with training datasets supporting many classes. In many cases, this redundancy can be reduced by “pruning” some of the operations out of the graph.</p> </section> <section id="vitis-ai-quantizer"> -<h3>Vitis AI Quantizer<a class="headerlink" href="#vitis-ai-quantizer" title="Permalink to this heading">¶</a></h3> +<h3>Vitis AI Quantizer<a class="headerlink" href="#vitis-ai-quantizer" title="Permalink to this headline">¶</a></h3> <p>The <a class="reference internal" href="docs/workflow-model-development.html#model-quantization"><span class="std std-ref">Vitis AI Quantizer</span></a>, integrated as a component of either TensorFlow or PyTorch, converts 32-bit floating-point weights and activations to fixed-point integers like INT8 to reduce the computing complexity without losing prediction accuracy. The fixed-point network model requires less memory bandwidth and provides faster speed and higher power efficiency than the floating-point model.</p> </section> <section id="vitis-ai-compiler"> -<h3>Vitis AI Compiler<a class="headerlink" href="#vitis-ai-compiler" title="Permalink to this heading">¶</a></h3> +<h3>Vitis AI Compiler<a class="headerlink" href="#vitis-ai-compiler" title="Permalink to this headline">¶</a></h3> <p>The <a class="reference internal" href="docs/workflow-model-development.html#model-compilation"><span class="std std-ref">Vitis AI Compiler</span></a> maps the AI quantized model to a highly-efficient instruction set and dataflow model. The compiler performs multiple optimizations; for example, batch normalization operations are fused with convolution when the convolution operator precedes the normalization operator. As the DPU supports multiple dimensions of parallelism, efficient instruction scheduling is key to exploiting the inherent parallelism and potential for data reuse in the graph. The Vitis AI Compiler addresses such optimizations.</p> </section> </section> <section id="model-deployment"> -<h2>Model Deployment<a class="headerlink" href="#model-deployment" title="Permalink to this heading">¶</a></h2> +<h2>Model Deployment<a class="headerlink" href="#model-deployment" title="Permalink to this headline">¶</a></h2> <section id="vitis-ai-runtime"> -<h3>Vitis AI Runtime<a class="headerlink" href="#vitis-ai-runtime" title="Permalink to this heading">¶</a></h3> +<h3>Vitis AI Runtime<a class="headerlink" href="#vitis-ai-runtime" title="Permalink to this headline">¶</a></h3> <p>The <a class="reference internal" href="docs/workflow-model-deployment.html#vitis-ai-runtime"><span class="std std-ref">Vitis AI Runtime</span></a> (VART) is a set of low-level API functions that support the integration of the DPU into software applications. VART is built on top of the Xilinx Runtime (XRT) amd provides a unified high-level runtime for both Data Center and Embedded targets. Key features of the Vitis AI Runtime API include:</p> <ul class="simple"> <li><p>Asynchronous submission of jobs to the DPU.</p></li> @@ -201,7 +205,7 @@ <h3>Vitis AI Runtime<a class="headerlink" href="#vitis-ai-runtime" title="Permal </ul> </section> <section id="vitis-ai-library"> -<h3>Vitis AI Library<a class="headerlink" href="#vitis-ai-library" title="Permalink to this heading">¶</a></h3> +<h3>Vitis AI Library<a class="headerlink" href="#vitis-ai-library" title="Permalink to this headline">¶</a></h3> <p>The <a class="reference internal" href="docs/workflow-model-deployment.html#vitis-ai-library"><span class="std std-ref">Vitis AI Library</span></a> is a set of high-level libraries and APIs built on top of the Vitis AI Runtime (VART). The higher-level APIs included in the Vitis AI Library give developers a head-start on model deployment. While it is possible for developers to directly leverage the Vitis AI Runtime APIs to deploy a model on AMD platforms, it is often more beneficial to start with a ready-made example that incorporates the various elements of a typical application, including:</p> <ul class="simple"> <li><p>Simplified CPU-based pre and post-processing implementations.</p></li> @@ -209,7 +213,7 @@ <h3>Vitis AI Library<a class="headerlink" href="#vitis-ai-library" title="Permal </ul> </section> <section id="vitis-ai-profiler"> -<h3>Vitis AI Profiler<a class="headerlink" href="#vitis-ai-profiler" title="Permalink to this heading">¶</a></h3> +<h3>Vitis AI Profiler<a class="headerlink" href="#vitis-ai-profiler" title="Permalink to this headline">¶</a></h3> <p>The <a class="reference internal" href="docs/workflow-model-deployment.html#vitis-ai-profiler"><span class="std std-ref">Vitis AI Profiler</span></a> profiles and visualizes AI applications to find bottlenecks and allocates computing resources among different devices. It is easy to use and requires no code changes. It can trace function calls and run time, and also collect hardware information, including CPU, DPU, and memory utilization.</p> <div class="toctree-wrapper compound"> </div> @@ -225,6 +229,8 @@ <h3>Vitis AI Profiler<a class="headerlink" href="#vitis-ai-profiler" title="Perm </div> <div class="toctree-wrapper compound"> </div> +<div class="toctree-wrapper compound"> +</div> </section> </section> </section> diff --git a/docs/search.html b/docs/search.html index f44b32571..6d850f146 100644 --- a/docs/search.html +++ b/docs/search.html @@ -30,7 +30,6 @@ <script data-url_root="./" id="documentation_options" src="_static/documentation_options.js"></script> <script src="_static/jquery.js"></script> <script src="_static/underscore.js"></script> - <script src="_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="_static/doctools.js"></script> <script src="_static/js/theme.js"></script> <script src="_static/searchtools.js"></script> @@ -73,6 +72,11 @@ <li class="toctree-l1"><a class="reference internal" href="docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="docs/workflow.html">Overview</a></li> diff --git a/docsrc/Makefile b/docsrc/Makefile index 72c2f8b03..47891c6e9 100644 --- a/docsrc/Makefile +++ b/docsrc/Makefile @@ -7,6 +7,7 @@ SPHINXOPTS ?= SPHINXBUILD ?= sphinx-build SOURCEDIR = source BUILDDIR = build +BUILD_MODEL_CARDS = bash ./build_model_cards.sh # Put it first so that "make" without argument is like "make help". help: @@ -15,6 +16,7 @@ help: .PHONY: help Makefile github: + @$(BUILD_MODEL_CARDS) @make clean @make html @cp -a build/html/. ../docs @@ -23,4 +25,5 @@ github: # Catch-all target: route all unknown targets to Sphinx using the new # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). %: Makefile + @$(BUILD_MODEL_CARDS) @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) diff --git a/docsrc/build/doctrees/docs/install/Alveo_X11.doctree b/docsrc/build/doctrees/docs/install/Alveo_X11.doctree index df8ae3507..6b794af87 100644 Binary files a/docsrc/build/doctrees/docs/install/Alveo_X11.doctree and b/docsrc/build/doctrees/docs/install/Alveo_X11.doctree differ diff --git a/docsrc/build/doctrees/docs/install/China_Ubuntu_servers.doctree b/docsrc/build/doctrees/docs/install/China_Ubuntu_servers.doctree index f4cf0f91b..6994b3b31 100644 Binary files a/docsrc/build/doctrees/docs/install/China_Ubuntu_servers.doctree and b/docsrc/build/doctrees/docs/install/China_Ubuntu_servers.doctree differ diff --git a/docsrc/build/doctrees/docs/install/Vitis AI 1.3.2 April 2021 Patch.doctree b/docsrc/build/doctrees/docs/install/Vitis AI 1.3.2 April 2021 Patch.doctree index 37672980a..6f2c80f04 100644 Binary files a/docsrc/build/doctrees/docs/install/Vitis AI 1.3.2 April 2021 Patch.doctree and b/docsrc/build/doctrees/docs/install/Vitis AI 1.3.2 April 2021 Patch.doctree differ diff --git a/docsrc/build/doctrees/docs/install/Vitis AI 2.0 Feb 2022 Patch.doctree b/docsrc/build/doctrees/docs/install/Vitis AI 2.0 Feb 2022 Patch.doctree index c7c71891b..aa01391d2 100644 Binary files a/docsrc/build/doctrees/docs/install/Vitis AI 2.0 Feb 2022 Patch.doctree and b/docsrc/build/doctrees/docs/install/Vitis AI 2.0 Feb 2022 Patch.doctree differ diff --git a/docsrc/build/doctrees/docs/install/Vitis AI 2.5 Aug 2022 Patch.doctree b/docsrc/build/doctrees/docs/install/Vitis AI 2.5 Aug 2022 Patch.doctree index e260aafc2..5b8d00d71 100644 Binary files a/docsrc/build/doctrees/docs/install/Vitis AI 2.5 Aug 2022 Patch.doctree and b/docsrc/build/doctrees/docs/install/Vitis AI 2.5 Aug 2022 Patch.doctree differ diff --git a/docsrc/build/doctrees/docs/install/branching_tagging_strategy.doctree b/docsrc/build/doctrees/docs/install/branching_tagging_strategy.doctree index 0155a3257..565c78a8a 100644 Binary files a/docsrc/build/doctrees/docs/install/branching_tagging_strategy.doctree and b/docsrc/build/doctrees/docs/install/branching_tagging_strategy.doctree differ diff --git a/docsrc/build/doctrees/docs/install/install.doctree b/docsrc/build/doctrees/docs/install/install.doctree index 92f765ec8..cf58f9023 100644 Binary files a/docsrc/build/doctrees/docs/install/install.doctree and b/docsrc/build/doctrees/docs/install/install.doctree differ diff --git a/docsrc/build/doctrees/docs/install/install_docker.doctree b/docsrc/build/doctrees/docs/install/install_docker.doctree index b36d8cd41..a1b8d71ec 100644 Binary files a/docsrc/build/doctrees/docs/install/install_docker.doctree and b/docsrc/build/doctrees/docs/install/install_docker.doctree differ diff --git a/docsrc/build/doctrees/docs/install/patch_instructions.doctree b/docsrc/build/doctrees/docs/install/patch_instructions.doctree index d72d8a619..21fbf2d83 100644 Binary files a/docsrc/build/doctrees/docs/install/patch_instructions.doctree and b/docsrc/build/doctrees/docs/install/patch_instructions.doctree differ diff --git a/docsrc/build/doctrees/docs/reference/additional_resources.doctree b/docsrc/build/doctrees/docs/reference/additional_resources.doctree index 58af6b44f..b1a41e5cd 100644 Binary files a/docsrc/build/doctrees/docs/reference/additional_resources.doctree and b/docsrc/build/doctrees/docs/reference/additional_resources.doctree differ diff --git a/docsrc/build/doctrees/docs/reference/docker_image_versions.doctree b/docsrc/build/doctrees/docs/reference/docker_image_versions.doctree index 3b08e596e..a7e32cf38 100644 Binary files a/docsrc/build/doctrees/docs/reference/docker_image_versions.doctree and b/docsrc/build/doctrees/docs/reference/docker_image_versions.doctree differ diff --git a/docsrc/build/doctrees/docs/reference/release_notes.doctree b/docsrc/build/doctrees/docs/reference/release_notes.doctree index 6d4a634b9..c7e74d4fd 100644 Binary files a/docsrc/build/doctrees/docs/reference/release_notes.doctree and b/docsrc/build/doctrees/docs/reference/release_notes.doctree differ diff --git a/docsrc/build/doctrees/docs/reference/system_requirements.doctree b/docsrc/build/doctrees/docs/reference/system_requirements.doctree index 602bb5427..d76eef84c 100644 Binary files a/docsrc/build/doctrees/docs/reference/system_requirements.doctree and b/docsrc/build/doctrees/docs/reference/system_requirements.doctree differ diff --git a/docsrc/build/doctrees/docs/reference/thirdpartysource.doctree b/docsrc/build/doctrees/docs/reference/thirdpartysource.doctree index 4391ecc57..1028ab3a5 100644 Binary files a/docsrc/build/doctrees/docs/reference/thirdpartysource.doctree and b/docsrc/build/doctrees/docs/reference/thirdpartysource.doctree differ diff --git a/docsrc/build/doctrees/docs/workflow-model-development.doctree b/docsrc/build/doctrees/docs/workflow-model-development.doctree index e898feb13..26a9ad7d1 100644 Binary files a/docsrc/build/doctrees/docs/workflow-model-development.doctree and b/docsrc/build/doctrees/docs/workflow-model-development.doctree differ diff --git a/docsrc/build/doctrees/docs/workflow-model-zoo.doctree b/docsrc/build/doctrees/docs/workflow-model-zoo.doctree index 72b9edd13..603438c9b 100644 Binary files a/docsrc/build/doctrees/docs/workflow-model-zoo.doctree and b/docsrc/build/doctrees/docs/workflow-model-zoo.doctree differ diff --git a/docsrc/build/doctrees/docs/workflow-third-party.doctree b/docsrc/build/doctrees/docs/workflow-third-party.doctree index 1111eed1c..ce89f9e28 100644 Binary files a/docsrc/build/doctrees/docs/workflow-third-party.doctree and b/docsrc/build/doctrees/docs/workflow-third-party.doctree differ diff --git a/docsrc/build/doctrees/docs/workflow.doctree b/docsrc/build/doctrees/docs/workflow.doctree index ece77122e..739fb084c 100644 Binary files a/docsrc/build/doctrees/docs/workflow.doctree and b/docsrc/build/doctrees/docs/workflow.doctree differ diff --git a/docsrc/build/doctrees/doxygen/api/class/classvart_1_1_base_runner.doctree b/docsrc/build/doctrees/doxygen/api/class/classvart_1_1_base_runner.doctree index 0c4be6be0..fd96a6ebb 100644 Binary files a/docsrc/build/doctrees/doxygen/api/class/classvart_1_1_base_runner.doctree and b/docsrc/build/doctrees/doxygen/api/class/classvart_1_1_base_runner.doctree differ diff --git a/docsrc/build/doctrees/doxygen/api/class/classvart_1_1_runner.doctree b/docsrc/build/doctrees/doxygen/api/class/classvart_1_1_runner.doctree index e23e180d5..8ce0a7398 100644 Binary files a/docsrc/build/doctrees/doxygen/api/class/classvart_1_1_runner.doctree and b/docsrc/build/doctrees/doxygen/api/class/classvart_1_1_runner.doctree differ diff --git a/docsrc/build/doctrees/doxygen/api/class/classvart_1_1_runner_ext.doctree b/docsrc/build/doctrees/doxygen/api/class/classvart_1_1_runner_ext.doctree index 08e5cdb98..adc2988eb 100644 Binary files a/docsrc/build/doctrees/doxygen/api/class/classvart_1_1_runner_ext.doctree and b/docsrc/build/doctrees/doxygen/api/class/classvart_1_1_runner_ext.doctree differ diff --git a/docsrc/build/doctrees/doxygen/api/class/classvart_1_1_tensor_buffer.doctree b/docsrc/build/doctrees/doxygen/api/class/classvart_1_1_tensor_buffer.doctree index 307988e24..90a728b7b 100644 Binary files a/docsrc/build/doctrees/doxygen/api/class/classvart_1_1_tensor_buffer.doctree and b/docsrc/build/doctrees/doxygen/api/class/classvart_1_1_tensor_buffer.doctree differ diff --git a/docsrc/build/doctrees/doxygen/api/class/classvart_1_1_tensor_buffer_ext.doctree b/docsrc/build/doctrees/doxygen/api/class/classvart_1_1_tensor_buffer_ext.doctree index 10fbbd312..ebb50679a 100644 Binary files a/docsrc/build/doctrees/doxygen/api/class/classvart_1_1_tensor_buffer_ext.doctree and b/docsrc/build/doctrees/doxygen/api/class/classvart_1_1_tensor_buffer_ext.doctree differ diff --git a/docsrc/build/doctrees/doxygen/api/classlist.doctree b/docsrc/build/doctrees/doxygen/api/classlist.doctree index 7a572f747..5cb7fbadf 100644 Binary files a/docsrc/build/doctrees/doxygen/api/classlist.doctree and b/docsrc/build/doctrees/doxygen/api/classlist.doctree differ diff --git a/docsrc/build/doctrees/doxygen/api/file/create__graph__runner_8py.doctree b/docsrc/build/doctrees/doxygen/api/file/create__graph__runner_8py.doctree index 8e26a7804..3a0477184 100644 Binary files a/docsrc/build/doctrees/doxygen/api/file/create__graph__runner_8py.doctree and b/docsrc/build/doctrees/doxygen/api/file/create__graph__runner_8py.doctree differ diff --git a/docsrc/build/doctrees/doxygen/api/file/create__runner_8py.doctree b/docsrc/build/doctrees/doxygen/api/file/create__runner_8py.doctree index cab8990b5..7635d8022 100644 Binary files a/docsrc/build/doctrees/doxygen/api/file/create__runner_8py.doctree and b/docsrc/build/doctrees/doxygen/api/file/create__runner_8py.doctree differ diff --git a/docsrc/build/doctrees/doxygen/api/file/execute__async_8py.doctree b/docsrc/build/doctrees/doxygen/api/file/execute__async_8py.doctree index a61ab1fa4..7917e7a84 100644 Binary files a/docsrc/build/doctrees/doxygen/api/file/execute__async_8py.doctree and b/docsrc/build/doctrees/doxygen/api/file/execute__async_8py.doctree differ diff --git a/docsrc/build/doctrees/doxygen/api/file/get__input__tensors_8py.doctree b/docsrc/build/doctrees/doxygen/api/file/get__input__tensors_8py.doctree index 731e50932..6789a37d4 100644 Binary files a/docsrc/build/doctrees/doxygen/api/file/get__input__tensors_8py.doctree and b/docsrc/build/doctrees/doxygen/api/file/get__input__tensors_8py.doctree differ diff --git a/docsrc/build/doctrees/doxygen/api/file/get__inputs_8py.doctree b/docsrc/build/doctrees/doxygen/api/file/get__inputs_8py.doctree index 7a86d191f..f09d5ba45 100644 Binary files a/docsrc/build/doctrees/doxygen/api/file/get__inputs_8py.doctree and b/docsrc/build/doctrees/doxygen/api/file/get__inputs_8py.doctree differ diff --git a/docsrc/build/doctrees/doxygen/api/file/get__output__tensors_8py.doctree b/docsrc/build/doctrees/doxygen/api/file/get__output__tensors_8py.doctree index ab782f41d..44e65b362 100644 Binary files a/docsrc/build/doctrees/doxygen/api/file/get__output__tensors_8py.doctree and b/docsrc/build/doctrees/doxygen/api/file/get__output__tensors_8py.doctree differ diff --git a/docsrc/build/doctrees/doxygen/api/file/get__outputs_8py.doctree b/docsrc/build/doctrees/doxygen/api/file/get__outputs_8py.doctree index 7b3562293..36bc995f0 100644 Binary files a/docsrc/build/doctrees/doxygen/api/file/get__outputs_8py.doctree and b/docsrc/build/doctrees/doxygen/api/file/get__outputs_8py.doctree differ diff --git a/docsrc/build/doctrees/doxygen/api/file/runner_8hpp.doctree b/docsrc/build/doctrees/doxygen/api/file/runner_8hpp.doctree index 607ac27cc..b31f09733 100644 Binary files a/docsrc/build/doctrees/doxygen/api/file/runner_8hpp.doctree and b/docsrc/build/doctrees/doxygen/api/file/runner_8hpp.doctree differ diff --git a/docsrc/build/doctrees/doxygen/api/file/runner__example_8py.doctree b/docsrc/build/doctrees/doxygen/api/file/runner__example_8py.doctree index b6c21141c..54928d004 100644 Binary files a/docsrc/build/doctrees/doxygen/api/file/runner__example_8py.doctree and b/docsrc/build/doctrees/doxygen/api/file/runner__example_8py.doctree differ diff --git a/docsrc/build/doctrees/doxygen/api/file/runner__ext_8hpp.doctree b/docsrc/build/doctrees/doxygen/api/file/runner__ext_8hpp.doctree index a7f65f1f9..208cddb33 100644 Binary files a/docsrc/build/doctrees/doxygen/api/file/runner__ext_8hpp.doctree and b/docsrc/build/doctrees/doxygen/api/file/runner__ext_8hpp.doctree differ diff --git a/docsrc/build/doctrees/doxygen/api/file/runnerext__example_8py.doctree b/docsrc/build/doctrees/doxygen/api/file/runnerext__example_8py.doctree index c3bc0bdd0..65e2086bc 100644 Binary files a/docsrc/build/doctrees/doxygen/api/file/runnerext__example_8py.doctree and b/docsrc/build/doctrees/doxygen/api/file/runnerext__example_8py.doctree differ diff --git a/docsrc/build/doctrees/doxygen/api/file/tensor__buffer_8hpp.doctree b/docsrc/build/doctrees/doxygen/api/file/tensor__buffer_8hpp.doctree index ffc77277c..e7ebb81bb 100644 Binary files a/docsrc/build/doctrees/doxygen/api/file/tensor__buffer_8hpp.doctree and b/docsrc/build/doctrees/doxygen/api/file/tensor__buffer_8hpp.doctree differ diff --git a/docsrc/build/doctrees/doxygen/api/file/wait_8py.doctree b/docsrc/build/doctrees/doxygen/api/file/wait_8py.doctree index 5b6c2fd74..f0b047f35 100644 Binary files a/docsrc/build/doctrees/doxygen/api/file/wait_8py.doctree and b/docsrc/build/doctrees/doxygen/api/file/wait_8py.doctree differ diff --git a/docsrc/build/doctrees/doxygen/api/filelist.doctree b/docsrc/build/doctrees/doxygen/api/filelist.doctree index 046136dbd..8cf6bccc3 100644 Binary files a/docsrc/build/doctrees/doxygen/api/filelist.doctree and b/docsrc/build/doctrees/doxygen/api/filelist.doctree differ diff --git a/docsrc/build/doctrees/doxygen/api/namespace/namespacecreate__graph__runner.doctree b/docsrc/build/doctrees/doxygen/api/namespace/namespacecreate__graph__runner.doctree index a3ec90d36..e73e9f2e8 100644 Binary files a/docsrc/build/doctrees/doxygen/api/namespace/namespacecreate__graph__runner.doctree and b/docsrc/build/doctrees/doxygen/api/namespace/namespacecreate__graph__runner.doctree differ diff --git a/docsrc/build/doctrees/doxygen/api/namespace/namespacecreate__runner.doctree b/docsrc/build/doctrees/doxygen/api/namespace/namespacecreate__runner.doctree index 2d5b7da21..cd005af38 100644 Binary files a/docsrc/build/doctrees/doxygen/api/namespace/namespacecreate__runner.doctree and b/docsrc/build/doctrees/doxygen/api/namespace/namespacecreate__runner.doctree differ diff --git a/docsrc/build/doctrees/doxygen/api/namespace/namespaceexecute__async.doctree b/docsrc/build/doctrees/doxygen/api/namespace/namespaceexecute__async.doctree index 7626788c1..d59420af3 100644 Binary files a/docsrc/build/doctrees/doxygen/api/namespace/namespaceexecute__async.doctree and b/docsrc/build/doctrees/doxygen/api/namespace/namespaceexecute__async.doctree differ diff --git a/docsrc/build/doctrees/doxygen/api/namespace/namespaceget__input__tensors.doctree b/docsrc/build/doctrees/doxygen/api/namespace/namespaceget__input__tensors.doctree index e4e392463..55923ce5a 100644 Binary files a/docsrc/build/doctrees/doxygen/api/namespace/namespaceget__input__tensors.doctree and b/docsrc/build/doctrees/doxygen/api/namespace/namespaceget__input__tensors.doctree differ diff --git a/docsrc/build/doctrees/doxygen/api/namespace/namespaceget__inputs.doctree b/docsrc/build/doctrees/doxygen/api/namespace/namespaceget__inputs.doctree index e30165f4e..db95333c9 100644 Binary files a/docsrc/build/doctrees/doxygen/api/namespace/namespaceget__inputs.doctree and b/docsrc/build/doctrees/doxygen/api/namespace/namespaceget__inputs.doctree differ diff --git a/docsrc/build/doctrees/doxygen/api/namespace/namespaceget__output__tensors.doctree b/docsrc/build/doctrees/doxygen/api/namespace/namespaceget__output__tensors.doctree index 074cff101..78ba470c4 100644 Binary files a/docsrc/build/doctrees/doxygen/api/namespace/namespaceget__output__tensors.doctree and b/docsrc/build/doctrees/doxygen/api/namespace/namespaceget__output__tensors.doctree differ diff --git a/docsrc/build/doctrees/doxygen/api/namespace/namespaceget__outputs.doctree b/docsrc/build/doctrees/doxygen/api/namespace/namespaceget__outputs.doctree index 7d497bfa2..7be7be2be 100644 Binary files a/docsrc/build/doctrees/doxygen/api/namespace/namespaceget__outputs.doctree and b/docsrc/build/doctrees/doxygen/api/namespace/namespaceget__outputs.doctree differ diff --git a/docsrc/build/doctrees/doxygen/api/namespace/namespacerunner__example.doctree b/docsrc/build/doctrees/doxygen/api/namespace/namespacerunner__example.doctree index a71bc46b9..cd8fbb549 100644 Binary files a/docsrc/build/doctrees/doxygen/api/namespace/namespacerunner__example.doctree and b/docsrc/build/doctrees/doxygen/api/namespace/namespacerunner__example.doctree differ diff --git a/docsrc/build/doctrees/doxygen/api/namespace/namespacerunnerext__example.doctree b/docsrc/build/doctrees/doxygen/api/namespace/namespacerunnerext__example.doctree index 3f36fae07..46c713688 100644 Binary files a/docsrc/build/doctrees/doxygen/api/namespace/namespacerunnerext__example.doctree and b/docsrc/build/doctrees/doxygen/api/namespace/namespacerunnerext__example.doctree differ diff --git a/docsrc/build/doctrees/doxygen/api/namespace/namespacevart.doctree b/docsrc/build/doctrees/doxygen/api/namespace/namespacevart.doctree index 7f1c8f713..d4d6e09f8 100644 Binary files a/docsrc/build/doctrees/doxygen/api/namespace/namespacevart.doctree and b/docsrc/build/doctrees/doxygen/api/namespace/namespacevart.doctree differ diff --git a/docsrc/build/doctrees/doxygen/api/namespace/namespacewait.doctree b/docsrc/build/doctrees/doxygen/api/namespace/namespacewait.doctree index 3276d8bcd..4548077cb 100644 Binary files a/docsrc/build/doctrees/doxygen/api/namespace/namespacewait.doctree and b/docsrc/build/doctrees/doxygen/api/namespace/namespacewait.doctree differ diff --git a/docsrc/build/doctrees/doxygen/api/namespace/namespacexir.doctree b/docsrc/build/doctrees/doxygen/api/namespace/namespacexir.doctree index 481037d01..f1ce83e46 100644 Binary files a/docsrc/build/doctrees/doxygen/api/namespace/namespacexir.doctree and b/docsrc/build/doctrees/doxygen/api/namespace/namespacexir.doctree differ diff --git a/docsrc/build/doctrees/doxygen/api/namespacelist.doctree b/docsrc/build/doctrees/doxygen/api/namespacelist.doctree index 85223a415..cf1735ef1 100644 Binary files a/docsrc/build/doctrees/doxygen/api/namespacelist.doctree and b/docsrc/build/doctrees/doxygen/api/namespacelist.doctree differ diff --git a/docsrc/build/doctrees/doxygen/api/python/create__graph__runner_8py.doctree b/docsrc/build/doctrees/doxygen/api/python/create__graph__runner_8py.doctree index ebc196678..627a44f3d 100644 Binary files a/docsrc/build/doctrees/doxygen/api/python/create__graph__runner_8py.doctree and b/docsrc/build/doctrees/doxygen/api/python/create__graph__runner_8py.doctree differ diff --git a/docsrc/build/doctrees/doxygen/api/python/create__runner_8py.doctree b/docsrc/build/doctrees/doxygen/api/python/create__runner_8py.doctree index 601199551..06eb93e4e 100644 Binary files a/docsrc/build/doctrees/doxygen/api/python/create__runner_8py.doctree and b/docsrc/build/doctrees/doxygen/api/python/create__runner_8py.doctree differ diff --git a/docsrc/build/doctrees/doxygen/api/python/execute__async_8py.doctree b/docsrc/build/doctrees/doxygen/api/python/execute__async_8py.doctree index e46010ff9..de459c7d6 100644 Binary files a/docsrc/build/doctrees/doxygen/api/python/execute__async_8py.doctree and b/docsrc/build/doctrees/doxygen/api/python/execute__async_8py.doctree differ diff --git a/docsrc/build/doctrees/doxygen/api/python/get__input__tensors_8py.doctree b/docsrc/build/doctrees/doxygen/api/python/get__input__tensors_8py.doctree index 2851bac78..d1c659270 100644 Binary files a/docsrc/build/doctrees/doxygen/api/python/get__input__tensors_8py.doctree and b/docsrc/build/doctrees/doxygen/api/python/get__input__tensors_8py.doctree differ diff --git a/docsrc/build/doctrees/doxygen/api/python/get__inputs_8py.doctree b/docsrc/build/doctrees/doxygen/api/python/get__inputs_8py.doctree index 866d40b60..a1cd44b8d 100644 Binary files a/docsrc/build/doctrees/doxygen/api/python/get__inputs_8py.doctree and b/docsrc/build/doctrees/doxygen/api/python/get__inputs_8py.doctree differ diff --git a/docsrc/build/doctrees/doxygen/api/python/get__output__tensors_8py.doctree b/docsrc/build/doctrees/doxygen/api/python/get__output__tensors_8py.doctree index f8919a111..6be33684f 100644 Binary files a/docsrc/build/doctrees/doxygen/api/python/get__output__tensors_8py.doctree and b/docsrc/build/doctrees/doxygen/api/python/get__output__tensors_8py.doctree differ diff --git a/docsrc/build/doctrees/doxygen/api/python/get__outputs_8py.doctree b/docsrc/build/doctrees/doxygen/api/python/get__outputs_8py.doctree index 1f421ff84..581b4bdde 100644 Binary files a/docsrc/build/doctrees/doxygen/api/python/get__outputs_8py.doctree and b/docsrc/build/doctrees/doxygen/api/python/get__outputs_8py.doctree differ diff --git a/docsrc/build/doctrees/doxygen/api/python/runner__example_8py.doctree b/docsrc/build/doctrees/doxygen/api/python/runner__example_8py.doctree index 4fd0d690d..cfb583a95 100644 Binary files a/docsrc/build/doctrees/doxygen/api/python/runner__example_8py.doctree and b/docsrc/build/doctrees/doxygen/api/python/runner__example_8py.doctree differ diff --git a/docsrc/build/doctrees/doxygen/api/python/runnerext__example_8py.doctree b/docsrc/build/doctrees/doxygen/api/python/runnerext__example_8py.doctree index 19841a794..588853d3f 100644 Binary files a/docsrc/build/doctrees/doxygen/api/python/runnerext__example_8py.doctree and b/docsrc/build/doctrees/doxygen/api/python/runnerext__example_8py.doctree differ diff --git a/docsrc/build/doctrees/doxygen/api/python/wait_8py.doctree b/docsrc/build/doctrees/doxygen/api/python/wait_8py.doctree index 953c69be7..2449ef199 100644 Binary files a/docsrc/build/doctrees/doxygen/api/python/wait_8py.doctree and b/docsrc/build/doctrees/doxygen/api/python/wait_8py.doctree differ diff --git a/docsrc/build/doctrees/doxygen/api/pythonlist.doctree b/docsrc/build/doctrees/doxygen/api/pythonlist.doctree index cecec9c5d..f04d24ba1 100644 Binary files a/docsrc/build/doctrees/doxygen/api/pythonlist.doctree and b/docsrc/build/doctrees/doxygen/api/pythonlist.doctree differ diff --git a/docsrc/build/doctrees/doxygen/api/struct/structvart_1_1_dpu_meta.doctree b/docsrc/build/doctrees/doxygen/api/struct/structvart_1_1_dpu_meta.doctree index 8fdfcf65e..5025783ff 100644 Binary files a/docsrc/build/doctrees/doxygen/api/struct/structvart_1_1_dpu_meta.doctree and b/docsrc/build/doctrees/doxygen/api/struct/structvart_1_1_dpu_meta.doctree differ diff --git a/docsrc/build/doctrees/doxygen/api/struct/structvart_1_1_meta.doctree b/docsrc/build/doctrees/doxygen/api/struct/structvart_1_1_meta.doctree index aea21a869..8f00b7dc5 100644 Binary files a/docsrc/build/doctrees/doxygen/api/struct/structvart_1_1_meta.doctree and b/docsrc/build/doctrees/doxygen/api/struct/structvart_1_1_meta.doctree differ diff --git a/docsrc/build/doctrees/doxygen/api/struct/structvart_1_1_xcl_bo.doctree b/docsrc/build/doctrees/doxygen/api/struct/structvart_1_1_xcl_bo.doctree index 7ed22ca35..a3b41db1b 100644 Binary files a/docsrc/build/doctrees/doxygen/api/struct/structvart_1_1_xcl_bo.doctree and b/docsrc/build/doctrees/doxygen/api/struct/structvart_1_1_xcl_bo.doctree differ diff --git a/docsrc/build/doctrees/doxygen/api/structlist.doctree b/docsrc/build/doctrees/doxygen/api/structlist.doctree index ae10cfad3..aa4dff770 100644 Binary files a/docsrc/build/doctrees/doxygen/api/structlist.doctree and b/docsrc/build/doctrees/doxygen/api/structlist.doctree differ diff --git a/docsrc/build/html/404.html b/docsrc/build/html/404.html deleted file mode 100644 index a79f21976..000000000 --- a/docsrc/build/html/404.html +++ /dev/null @@ -1,13 +0,0 @@ -<!DOCTYPE html> -<html class="writer-html5" lang="en" > -<body class="wy-body-for-nav"> - -<h1>Oops! You have encountered a Vitis AI Github.IO 404 Error</h1> -<p>Please accept our sincerest apologies. Apparently we have made a mistake somewhere.</p> -<p>Please send us an email regarding this issue using the link below. In the body of your email, please provide the source page and if possible, a screenshot of the specific link that you clicked on that resulted in this 404 error. We will endeavour to correct this issue as soon as possible.</p> -<a href="mailto:amd_ai_mkt@amd.com?subject=Vitis-AI-Github.IO-404-Error Report!&body=Hello, I would like to report a Vitis AI Github.IO 404 error. Here is the source page or documentation that that resulted in the 404 error. If it was possible to do so, I have included a screenshot of the source page or document, and have highlighted the source link:">Click here to email us the details of this 404 error</a></section> - - - -</body> -</html> \ No newline at end of file diff --git a/docsrc/build/html/_images/V70.PNG b/docsrc/build/html/_images/V70.PNG deleted file mode 100644 index a0ab884ed..000000000 Binary files a/docsrc/build/html/_images/V70.PNG and /dev/null differ diff --git a/docsrc/build/html/_images/VAI_IDE.png b/docsrc/build/html/_images/VAI_IDE.png deleted file mode 100644 index 69914daad..000000000 Binary files a/docsrc/build/html/_images/VAI_IDE.png and /dev/null differ diff --git a/docsrc/build/html/_images/vek280_setup.png b/docsrc/build/html/_images/vek280_setup.png deleted file mode 100644 index d24a24395..000000000 Binary files a/docsrc/build/html/_images/vek280_setup.png and /dev/null differ diff --git a/docsrc/build/html/_static/_sphinx_javascript_frameworks_compat.js b/docsrc/build/html/_static/_sphinx_javascript_frameworks_compat.js deleted file mode 100644 index 8549469dc..000000000 --- a/docsrc/build/html/_static/_sphinx_javascript_frameworks_compat.js +++ /dev/null @@ -1,134 +0,0 @@ -/* - * _sphinx_javascript_frameworks_compat.js - * ~~~~~~~~~~ - * - * Compatability shim for jQuery and underscores.js. - * - * WILL BE REMOVED IN Sphinx 6.0 - * xref RemovedInSphinx60Warning - * - */ - -/** - * select a different prefix for underscore - */ -$u = _.noConflict(); - - -/** - * small helper function to urldecode strings - * - * See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/decodeURIComponent#Decoding_query_parameters_from_a_URL - */ -jQuery.urldecode = function(x) { - if (!x) { - return x - } - return decodeURIComponent(x.replace(/\+/g, ' ')); -}; - -/** - * small helper function to urlencode strings - */ -jQuery.urlencode = encodeURIComponent; - -/** - * This function returns the parsed url parameters of the - * current request. Multiple values per key are supported, - * it will always return arrays of strings for the value parts. - */ -jQuery.getQueryParameters = function(s) { - if (typeof s === 'undefined') - s = document.location.search; - var parts = s.substr(s.indexOf('?') + 1).split('&'); - var result = {}; - for (var i = 0; i < parts.length; i++) { - var tmp = parts[i].split('=', 2); - var key = jQuery.urldecode(tmp[0]); - var value = jQuery.urldecode(tmp[1]); - if (key in result) - result[key].push(value); - else - result[key] = [value]; - } - return result; -}; - -/** - * highlight a given string on a jquery object by wrapping it in - * span elements with the given class name. - */ -jQuery.fn.highlightText = function(text, className) { - function highlight(node, addItems) { - if (node.nodeType === 3) { - var val = node.nodeValue; - var pos = val.toLowerCase().indexOf(text); - if (pos >= 0 && - !jQuery(node.parentNode).hasClass(className) && - !jQuery(node.parentNode).hasClass("nohighlight")) { - var span; - var isInSVG = jQuery(node).closest("body, svg, foreignObject").is("svg"); - if (isInSVG) { - span = document.createElementNS("http://www.w3.org/2000/svg", "tspan"); - } else { - span = document.createElement("span"); - span.className = className; - } - span.appendChild(document.createTextNode(val.substr(pos, text.length))); - node.parentNode.insertBefore(span, node.parentNode.insertBefore( - document.createTextNode(val.substr(pos + text.length)), - node.nextSibling)); - node.nodeValue = val.substr(0, pos); - if (isInSVG) { - var rect = document.createElementNS("http://www.w3.org/2000/svg", "rect"); - var bbox = node.parentElement.getBBox(); - rect.x.baseVal.value = bbox.x; - rect.y.baseVal.value = bbox.y; - rect.width.baseVal.value = bbox.width; - rect.height.baseVal.value = bbox.height; - rect.setAttribute('class', className); - addItems.push({ - "parent": node.parentNode, - "target": rect}); - } - } - } - else if (!jQuery(node).is("button, select, textarea")) { - jQuery.each(node.childNodes, function() { - highlight(this, addItems); - }); - } - } - var addItems = []; - var result = this.each(function() { - highlight(this, addItems); - }); - for (var i = 0; i < addItems.length; ++i) { - jQuery(addItems[i].parent).before(addItems[i].target); - } - return result; -}; - -/* - * backward compatibility for jQuery.browser - * This will be supported until firefox bug is fixed. - */ -if (!jQuery.browser) { - jQuery.uaMatch = function(ua) { - ua = ua.toLowerCase(); - - var match = /(chrome)[ \/]([\w.]+)/.exec(ua) || - /(webkit)[ \/]([\w.]+)/.exec(ua) || - /(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua) || - /(msie) ([\w.]+)/.exec(ua) || - ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua) || - []; - - return { - browser: match[ 1 ] || "", - version: match[ 2 ] || "0" - }; - }; - jQuery.browser = {}; - jQuery.browser[jQuery.uaMatch(navigator.userAgent).browser] = true; -} diff --git a/docsrc/build/html/_static/basic.css b/docsrc/build/html/_static/basic.css index 088967717..bf18350b6 100644 --- a/docsrc/build/html/_static/basic.css +++ b/docsrc/build/html/_static/basic.css @@ -222,7 +222,7 @@ table.modindextable td { /* -- general body styles --------------------------------------------------- */ div.body { - min-width: 360px; + min-width: 450px; max-width: 800px; } @@ -237,6 +237,16 @@ a.headerlink { visibility: hidden; } +a.brackets:before, +span.brackets > a:before{ + content: "["; +} + +a.brackets:after, +span.brackets > a:after { + content: "]"; +} + h1:hover > a.headerlink, h2:hover > a.headerlink, h3:hover > a.headerlink, @@ -324,16 +334,12 @@ aside.sidebar { p.sidebar-title { font-weight: bold; } -nav.contents, -aside.topic, div.admonition, div.topic, blockquote { clear: left; } /* -- topics ---------------------------------------------------------------- */ -nav.contents, -aside.topic, div.topic { border: 1px solid #ccc; @@ -373,9 +379,6 @@ div.body p.centered { div.sidebar > :last-child, aside.sidebar > :last-child, -nav.contents > :last-child, -aside.topic > :last-child, - div.topic > :last-child, div.admonition > :last-child { margin-bottom: 0; @@ -383,9 +386,6 @@ div.admonition > :last-child { div.sidebar::after, aside.sidebar::after, -nav.contents::after, -aside.topic::after, - div.topic::after, div.admonition::after, blockquote::after { @@ -428,6 +428,10 @@ table.docutils td, table.docutils th { border-bottom: 1px solid #aaa; } +table.footnote td, table.footnote th { + border: 0 !important; +} + th { text-align: left; padding-right: 5px; @@ -611,7 +615,6 @@ ul.simple p { margin-bottom: 0; } -/* Docutils 0.17 and older (footnotes & citations) */ dl.footnote > dt, dl.citation > dt { float: left; @@ -629,33 +632,6 @@ dl.citation > dd:after { clear: both; } -/* Docutils 0.18+ (footnotes & citations) */ -aside.footnote > span, -div.citation > span { - float: left; -} -aside.footnote > span:last-of-type, -div.citation > span:last-of-type { - padding-right: 0.5em; -} -aside.footnote > p { - margin-left: 2em; -} -div.citation > p { - margin-left: 4em; -} -aside.footnote > p:last-of-type, -div.citation > p:last-of-type { - margin-bottom: 0em; -} -aside.footnote > p:last-of-type:after, -div.citation > p:last-of-type:after { - content: ""; - clear: both; -} - -/* Footnotes & citations ends */ - dl.field-list { display: grid; grid-template-columns: fit-content(30%) auto; diff --git a/docsrc/build/html/_static/doctools.js b/docsrc/build/html/_static/doctools.js index c3db08d1c..e1bfd708b 100644 --- a/docsrc/build/html/_static/doctools.js +++ b/docsrc/build/html/_static/doctools.js @@ -2,263 +2,357 @@ * doctools.js * ~~~~~~~~~~~ * - * Base JavaScript utilities for all Sphinx HTML documentation. + * Sphinx JavaScript utilities for all documentation. * * :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS. * :license: BSD, see LICENSE for details. * */ -"use strict"; -const _ready = (callback) => { - if (document.readyState !== "loading") { - callback(); - } else { - document.addEventListener("DOMContentLoaded", callback); +/** + * select a different prefix for underscore + */ +$u = _.noConflict(); + +/** + * make the code below compatible with browsers without + * an installed firebug like debugger +if (!window.console || !console.firebug) { + var names = ["log", "debug", "info", "warn", "error", "assert", "dir", + "dirxml", "group", "groupEnd", "time", "timeEnd", "count", "trace", + "profile", "profileEnd"]; + window.console = {}; + for (var i = 0; i < names.length; ++i) + window.console[names[i]] = function() {}; +} + */ + +/** + * small helper function to urldecode strings + * + * See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/decodeURIComponent#Decoding_query_parameters_from_a_URL + */ +jQuery.urldecode = function(x) { + if (!x) { + return x } + return decodeURIComponent(x.replace(/\+/g, ' ')); }; /** - * highlight a given string on a node by wrapping it in - * span elements with the given class name. + * small helper function to urlencode strings */ -const _highlight = (node, addItems, text, className) => { - if (node.nodeType === Node.TEXT_NODE) { - const val = node.nodeValue; - const parent = node.parentNode; - const pos = val.toLowerCase().indexOf(text); - if ( - pos >= 0 && - !parent.classList.contains(className) && - !parent.classList.contains("nohighlight") - ) { - let span; +jQuery.urlencode = encodeURIComponent; - const closestNode = parent.closest("body, svg, foreignObject"); - const isInSVG = closestNode && closestNode.matches("svg"); - if (isInSVG) { - span = document.createElementNS("http://www.w3.org/2000/svg", "tspan"); - } else { - span = document.createElement("span"); - span.classList.add(className); - } +/** + * This function returns the parsed url parameters of the + * current request. Multiple values per key are supported, + * it will always return arrays of strings for the value parts. + */ +jQuery.getQueryParameters = function(s) { + if (typeof s === 'undefined') + s = document.location.search; + var parts = s.substr(s.indexOf('?') + 1).split('&'); + var result = {}; + for (var i = 0; i < parts.length; i++) { + var tmp = parts[i].split('=', 2); + var key = jQuery.urldecode(tmp[0]); + var value = jQuery.urldecode(tmp[1]); + if (key in result) + result[key].push(value); + else + result[key] = [value]; + } + return result; +}; - span.appendChild(document.createTextNode(val.substr(pos, text.length))); - parent.insertBefore( - span, - parent.insertBefore( +/** + * highlight a given string on a jquery object by wrapping it in + * span elements with the given class name. + */ +jQuery.fn.highlightText = function(text, className) { + function highlight(node, addItems) { + if (node.nodeType === 3) { + var val = node.nodeValue; + var pos = val.toLowerCase().indexOf(text); + if (pos >= 0 && + !jQuery(node.parentNode).hasClass(className) && + !jQuery(node.parentNode).hasClass("nohighlight")) { + var span; + var isInSVG = jQuery(node).closest("body, svg, foreignObject").is("svg"); + if (isInSVG) { + span = document.createElementNS("http://www.w3.org/2000/svg", "tspan"); + } else { + span = document.createElement("span"); + span.className = className; + } + span.appendChild(document.createTextNode(val.substr(pos, text.length))); + node.parentNode.insertBefore(span, node.parentNode.insertBefore( document.createTextNode(val.substr(pos + text.length)), - node.nextSibling - ) - ); - node.nodeValue = val.substr(0, pos); - - if (isInSVG) { - const rect = document.createElementNS( - "http://www.w3.org/2000/svg", - "rect" - ); - const bbox = parent.getBBox(); - rect.x.baseVal.value = bbox.x; - rect.y.baseVal.value = bbox.y; - rect.width.baseVal.value = bbox.width; - rect.height.baseVal.value = bbox.height; - rect.setAttribute("class", className); - addItems.push({ parent: parent, target: rect }); + node.nextSibling)); + node.nodeValue = val.substr(0, pos); + if (isInSVG) { + var rect = document.createElementNS("http://www.w3.org/2000/svg", "rect"); + var bbox = node.parentElement.getBBox(); + rect.x.baseVal.value = bbox.x; + rect.y.baseVal.value = bbox.y; + rect.width.baseVal.value = bbox.width; + rect.height.baseVal.value = bbox.height; + rect.setAttribute('class', className); + addItems.push({ + "parent": node.parentNode, + "target": rect}); + } } } - } else if (node.matches && !node.matches("button, select, textarea")) { - node.childNodes.forEach((el) => _highlight(el, addItems, text, className)); + else if (!jQuery(node).is("button, select, textarea")) { + jQuery.each(node.childNodes, function() { + highlight(this, addItems); + }); + } } -}; -const _highlightText = (thisNode, text, className) => { - let addItems = []; - _highlight(thisNode, addItems, text, className); - addItems.forEach((obj) => - obj.parent.insertAdjacentElement("beforebegin", obj.target) - ); + var addItems = []; + var result = this.each(function() { + highlight(this, addItems); + }); + for (var i = 0; i < addItems.length; ++i) { + jQuery(addItems[i].parent).before(addItems[i].target); + } + return result; }; +/* + * backward compatibility for jQuery.browser + * This will be supported until firefox bug is fixed. + */ +if (!jQuery.browser) { + jQuery.uaMatch = function(ua) { + ua = ua.toLowerCase(); + + var match = /(chrome)[ \/]([\w.]+)/.exec(ua) || + /(webkit)[ \/]([\w.]+)/.exec(ua) || + /(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua) || + /(msie) ([\w.]+)/.exec(ua) || + ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua) || + []; + + return { + browser: match[ 1 ] || "", + version: match[ 2 ] || "0" + }; + }; + jQuery.browser = {}; + jQuery.browser[jQuery.uaMatch(navigator.userAgent).browser] = true; +} + /** * Small JavaScript module for the documentation. */ -const Documentation = { - init: () => { - Documentation.highlightSearchWords(); - Documentation.initDomainIndexTable(); - Documentation.initOnKeyListeners(); +var Documentation = { + + init : function() { + this.fixFirefoxAnchorBug(); + this.highlightSearchWords(); + this.initIndexTable(); + this.initOnKeyListeners(); }, /** * i18n support */ - TRANSLATIONS: {}, - PLURAL_EXPR: (n) => (n === 1 ? 0 : 1), - LOCALE: "unknown", + TRANSLATIONS : {}, + PLURAL_EXPR : function(n) { return n === 1 ? 0 : 1; }, + LOCALE : 'unknown', // gettext and ngettext don't access this so that the functions // can safely bound to a different name (_ = Documentation.gettext) - gettext: (string) => { - const translated = Documentation.TRANSLATIONS[string]; - switch (typeof translated) { - case "undefined": - return string; // no translation - case "string": - return translated; // translation exists - default: - return translated[0]; // (singular, plural) translation tuple exists - } + gettext : function(string) { + var translated = Documentation.TRANSLATIONS[string]; + if (typeof translated === 'undefined') + return string; + return (typeof translated === 'string') ? translated : translated[0]; }, - ngettext: (singular, plural, n) => { - const translated = Documentation.TRANSLATIONS[singular]; - if (typeof translated !== "undefined") - return translated[Documentation.PLURAL_EXPR(n)]; - return n === 1 ? singular : plural; + ngettext : function(singular, plural, n) { + var translated = Documentation.TRANSLATIONS[singular]; + if (typeof translated === 'undefined') + return (n == 1) ? singular : plural; + return translated[Documentation.PLURALEXPR(n)]; }, - addTranslations: (catalog) => { - Object.assign(Documentation.TRANSLATIONS, catalog.messages); - Documentation.PLURAL_EXPR = new Function( - "n", - `return (${catalog.plural_expr})` - ); - Documentation.LOCALE = catalog.locale; + addTranslations : function(catalog) { + for (var key in catalog.messages) + this.TRANSLATIONS[key] = catalog.messages[key]; + this.PLURAL_EXPR = new Function('n', 'return +(' + catalog.plural_expr + ')'); + this.LOCALE = catalog.locale; }, /** - * highlight the search words provided in the url in the text + * add context elements like header anchor links */ - highlightSearchWords: () => { - const highlight = - new URLSearchParams(window.location.search).get("highlight") || ""; - const terms = highlight.toLowerCase().split(/\s+/).filter(x => x); - if (terms.length === 0) return; // nothing to do + addContextElements : function() { + $('div[id] > :header:first').each(function() { + $('<a class="headerlink">\u00B6</a>'). + attr('href', '#' + this.id). + attr('title', _('Permalink to this headline')). + appendTo(this); + }); + $('dt[id]').each(function() { + $('<a class="headerlink">\u00B6</a>'). + attr('href', '#' + this.id). + attr('title', _('Permalink to this definition')). + appendTo(this); + }); + }, - // There should never be more than one element matching "div.body" - const divBody = document.querySelectorAll("div.body"); - const body = divBody.length ? divBody[0] : document.querySelector("body"); - window.setTimeout(() => { - terms.forEach((term) => _highlightText(body, term, "highlighted")); - }, 10); + /** + * workaround a firefox stupidity + * see: https://bugzilla.mozilla.org/show_bug.cgi?id=645075 + */ + fixFirefoxAnchorBug : function() { + if (document.location.hash && $.browser.mozilla) + window.setTimeout(function() { + document.location.href += ''; + }, 10); + }, - const searchBox = document.getElementById("searchbox"); - if (searchBox === null) return; - searchBox.appendChild( - document - .createRange() - .createContextualFragment( - '<p class="highlight-link">' + - '<a href="javascript:Documentation.hideSearchWords()">' + - Documentation.gettext("Hide Search Matches") + - "</a></p>" - ) - ); + /** + * highlight the search words provided in the url in the text + */ + highlightSearchWords : function() { + var params = $.getQueryParameters(); + var terms = (params.highlight) ? params.highlight[0].split(/\s+/) : []; + if (terms.length) { + var body = $('div.body'); + if (!body.length) { + body = $('body'); + } + window.setTimeout(function() { + $.each(terms, function() { + body.highlightText(this.toLowerCase(), 'highlighted'); + }); + }, 10); + $('<p class="highlight-link"><a href="javascript:Documentation.' + + 'hideSearchWords()">' + _('Hide Search Matches') + '</a></p>') + .appendTo($('#searchbox')); + } }, /** - * helper function to hide the search marks again + * init the domain index toggle buttons */ - hideSearchWords: () => { - document - .querySelectorAll("#searchbox .highlight-link") - .forEach((el) => el.remove()); - document - .querySelectorAll("span.highlighted") - .forEach((el) => el.classList.remove("highlighted")); - const url = new URL(window.location); - url.searchParams.delete("highlight"); - window.history.replaceState({}, "", url); + initIndexTable : function() { + var togglers = $('img.toggler').click(function() { + var src = $(this).attr('src'); + var idnum = $(this).attr('id').substr(7); + $('tr.cg-' + idnum).toggle(); + if (src.substr(-9) === 'minus.png') + $(this).attr('src', src.substr(0, src.length-9) + 'plus.png'); + else + $(this).attr('src', src.substr(0, src.length-8) + 'minus.png'); + }).css('display', ''); + if (DOCUMENTATION_OPTIONS.COLLAPSE_INDEX) { + togglers.click(); + } }, /** + * helper function to hide the search marks again + */ + hideSearchWords : function() { + $('#searchbox .highlight-link').fadeOut(300); + $('span.highlighted').removeClass('highlighted'); + var url = new URL(window.location); + url.searchParams.delete('highlight'); + window.history.replaceState({}, '', url); + }, + + /** * helper function to focus on search bar */ - focusSearchBar: () => { - document.querySelectorAll("input[name=q]")[0]?.focus(); + focusSearchBar : function() { + $('input[name=q]').first().focus(); }, /** - * Initialise the domain index toggle buttons + * make the url absolute */ - initDomainIndexTable: () => { - const toggler = (el) => { - const idNumber = el.id.substr(7); - const toggledRows = document.querySelectorAll(`tr.cg-${idNumber}`); - if (el.src.substr(-9) === "minus.png") { - el.src = `${el.src.substr(0, el.src.length - 9)}plus.png`; - toggledRows.forEach((el) => (el.style.display = "none")); - } else { - el.src = `${el.src.substr(0, el.src.length - 8)}minus.png`; - toggledRows.forEach((el) => (el.style.display = "")); - } - }; + makeURL : function(relativeURL) { + return DOCUMENTATION_OPTIONS.URL_ROOT + '/' + relativeURL; + }, - const togglerElements = document.querySelectorAll("img.toggler"); - togglerElements.forEach((el) => - el.addEventListener("click", (event) => toggler(event.currentTarget)) - ); - togglerElements.forEach((el) => (el.style.display = "")); - if (DOCUMENTATION_OPTIONS.COLLAPSE_INDEX) togglerElements.forEach(toggler); + /** + * get the current relative url + */ + getCurrentURL : function() { + var path = document.location.pathname; + var parts = path.split(/\//); + $.each(DOCUMENTATION_OPTIONS.URL_ROOT.split(/\//), function() { + if (this === '..') + parts.pop(); + }); + var url = parts.join('/'); + return path.substring(url.lastIndexOf('/') + 1, path.length - 1); }, - initOnKeyListeners: () => { + initOnKeyListeners: function() { // only install a listener if it is really needed - if ( - !DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS && - !DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS - ) - return; + if (!DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS && + !DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS) + return; - const blacklistedElements = new Set([ - "TEXTAREA", - "INPUT", - "SELECT", - "BUTTON", - ]); - document.addEventListener("keydown", (event) => { - if (blacklistedElements.has(document.activeElement.tagName)) return; // bail for input elements - if (event.altKey || event.ctrlKey || event.metaKey) return; // bail with special keys + $(document).keydown(function(event) { + var activeElementType = document.activeElement.tagName; + // don't navigate when in search box, textarea, dropdown or button + if (activeElementType !== 'TEXTAREA' && activeElementType !== 'INPUT' && activeElementType !== 'SELECT' + && activeElementType !== 'BUTTON') { + if (event.altKey || event.ctrlKey || event.metaKey) + return; - if (!event.shiftKey) { - switch (event.key) { - case "ArrowLeft": - if (!DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS) break; - - const prevLink = document.querySelector('link[rel="prev"]'); - if (prevLink && prevLink.href) { - window.location.href = prevLink.href; - event.preventDefault(); - } - break; - case "ArrowRight": - if (!DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS) break; - - const nextLink = document.querySelector('link[rel="next"]'); - if (nextLink && nextLink.href) { - window.location.href = nextLink.href; - event.preventDefault(); - } - break; - case "Escape": - if (!DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS) break; - Documentation.hideSearchWords(); - event.preventDefault(); + if (!event.shiftKey) { + switch (event.key) { + case 'ArrowLeft': + if (!DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS) + break; + var prevHref = $('link[rel="prev"]').prop('href'); + if (prevHref) { + window.location.href = prevHref; + return false; + } + break; + case 'ArrowRight': + if (!DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS) + break; + var nextHref = $('link[rel="next"]').prop('href'); + if (nextHref) { + window.location.href = nextHref; + return false; + } + break; + case 'Escape': + if (!DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS) + break; + Documentation.hideSearchWords(); + return false; + } } - } - // some keyboard layouts may need Shift to get / - switch (event.key) { - case "/": - if (!DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS) break; - Documentation.focusSearchBar(); - event.preventDefault(); + // some keyboard layouts may need Shift to get / + switch (event.key) { + case '/': + if (!DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS) + break; + Documentation.focusSearchBar(); + return false; + } } }); - }, + } }; // quick alias for translations -const _ = Documentation.gettext; +_ = Documentation.gettext; -_ready(Documentation.init); +$(document).ready(function() { + Documentation.init(); +}); diff --git a/docsrc/build/html/_static/documentation_options.js b/docsrc/build/html/_static/documentation_options.js index abc007187..6a0ac12eb 100644 --- a/docsrc/build/html/_static/documentation_options.js +++ b/docsrc/build/html/_static/documentation_options.js @@ -1,7 +1,7 @@ var DOCUMENTATION_OPTIONS = { URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'), VERSION: '3.5', - LANGUAGE: 'en', + LANGUAGE: 'None', COLLAPSE_INDEX: false, BUILDER: 'html', FILE_SUFFIX: '.html', @@ -10,5 +10,5 @@ var DOCUMENTATION_OPTIONS = { SOURCELINK_SUFFIX: '.txt', NAVIGATION_WITH_KEYS: false, SHOW_SEARCH_SUMMARY: true, - ENABLE_SEARCH_SHORTCUTS: false, + ENABLE_SEARCH_SHORTCUTS: true, }; \ No newline at end of file diff --git a/docsrc/build/html/_static/jquery-3.6.0.js b/docsrc/build/html/_static/jquery-3.6.0.js deleted file mode 100644 index fc6c299b7..000000000 --- a/docsrc/build/html/_static/jquery-3.6.0.js +++ /dev/null @@ -1,10881 +0,0 @@ -/*! - * jQuery JavaScript Library v3.6.0 - * https://jquery.com/ - * - * Includes Sizzle.js - * https://sizzlejs.com/ - * - * Copyright OpenJS Foundation and other contributors - * Released under the MIT license - * https://jquery.org/license - * - * Date: 2021-03-02T17:08Z - */ -( function( global, factory ) { - - "use strict"; - - if ( typeof module === "object" && typeof module.exports === "object" ) { - - // For CommonJS and CommonJS-like environments where a proper `window` - // is present, execute the factory and get jQuery. - // For environments that do not have a `window` with a `document` - // (such as Node.js), expose a factory as module.exports. - // This accentuates the need for the creation of a real `window`. - // e.g. var jQuery = require("jquery")(window); - // See ticket #14549 for more info. - module.exports = global.document ? - factory( global, true ) : - function( w ) { - if ( !w.document ) { - throw new Error( "jQuery requires a window with a document" ); - } - return factory( w ); - }; - } else { - factory( global ); - } - -// Pass this if window is not defined yet -} )( typeof window !== "undefined" ? window : this, function( window, noGlobal ) { - -// Edge <= 12 - 13+, Firefox <=18 - 45+, IE 10 - 11, Safari 5.1 - 9+, iOS 6 - 9.1 -// throw exceptions when non-strict code (e.g., ASP.NET 4.5) accesses strict mode -// arguments.callee.caller (trac-13335). But as of jQuery 3.0 (2016), strict mode should be common -// enough that all such attempts are guarded in a try block. -"use strict"; - -var arr = []; - -var getProto = Object.getPrototypeOf; - -var slice = arr.slice; - -var flat = arr.flat ? function( array ) { - return arr.flat.call( array ); -} : function( array ) { - return arr.concat.apply( [], array ); -}; - - -var push = arr.push; - -var indexOf = arr.indexOf; - -var class2type = {}; - -var toString = class2type.toString; - -var hasOwn = class2type.hasOwnProperty; - -var fnToString = hasOwn.toString; - -var ObjectFunctionString = fnToString.call( Object ); - -var support = {}; - -var isFunction = function isFunction( obj ) { - - // Support: Chrome <=57, Firefox <=52 - // In some browsers, typeof returns "function" for HTML <object> elements - // (i.e., `typeof document.createElement( "object" ) === "function"`). - // We don't want to classify *any* DOM node as a function. - // Support: QtWeb <=3.8.5, WebKit <=534.34, wkhtmltopdf tool <=0.12.5 - // Plus for old WebKit, typeof returns "function" for HTML collections - // (e.g., `typeof document.getElementsByTagName("div") === "function"`). (gh-4756) - return typeof obj === "function" && typeof obj.nodeType !== "number" && - typeof obj.item !== "function"; - }; - - -var isWindow = function isWindow( obj ) { - return obj != null && obj === obj.window; - }; - - -var document = window.document; - - - - var preservedScriptAttributes = { - type: true, - src: true, - nonce: true, - noModule: true - }; - - function DOMEval( code, node, doc ) { - doc = doc || document; - - var i, val, - script = doc.createElement( "script" ); - - script.text = code; - if ( node ) { - for ( i in preservedScriptAttributes ) { - - // Support: Firefox 64+, Edge 18+ - // Some browsers don't support the "nonce" property on scripts. - // On the other hand, just using `getAttribute` is not enough as - // the `nonce` attribute is reset to an empty string whenever it - // becomes browsing-context connected. - // See https://github.com/whatwg/html/issues/2369 - // See https://html.spec.whatwg.org/#nonce-attributes - // The `node.getAttribute` check was added for the sake of - // `jQuery.globalEval` so that it can fake a nonce-containing node - // via an object. - val = node[ i ] || node.getAttribute && node.getAttribute( i ); - if ( val ) { - script.setAttribute( i, val ); - } - } - } - doc.head.appendChild( script ).parentNode.removeChild( script ); - } - - -function toType( obj ) { - if ( obj == null ) { - return obj + ""; - } - - // Support: Android <=2.3 only (functionish RegExp) - return typeof obj === "object" || typeof obj === "function" ? - class2type[ toString.call( obj ) ] || "object" : - typeof obj; -} -/* global Symbol */ -// Defining this global in .eslintrc.json would create a danger of using the global -// unguarded in another place, it seems safer to define global only for this module - - - -var - version = "3.6.0", - - // Define a local copy of jQuery - jQuery = function( selector, context ) { - - // The jQuery object is actually just the init constructor 'enhanced' - // Need init if jQuery is called (just allow error to be thrown if not included) - return new jQuery.fn.init( selector, context ); - }; - -jQuery.fn = jQuery.prototype = { - - // The current version of jQuery being used - jquery: version, - - constructor: jQuery, - - // The default length of a jQuery object is 0 - length: 0, - - toArray: function() { - return slice.call( this ); - }, - - // Get the Nth element in the matched element set OR - // Get the whole matched element set as a clean array - get: function( num ) { - - // Return all the elements in a clean array - if ( num == null ) { - return slice.call( this ); - } - - // Return just the one element from the set - return num < 0 ? this[ num + this.length ] : this[ num ]; - }, - - // Take an array of elements and push it onto the stack - // (returning the new matched element set) - pushStack: function( elems ) { - - // Build a new jQuery matched element set - var ret = jQuery.merge( this.constructor(), elems ); - - // Add the old object onto the stack (as a reference) - ret.prevObject = this; - - // Return the newly-formed element set - return ret; - }, - - // Execute a callback for every element in the matched set. - each: function( callback ) { - return jQuery.each( this, callback ); - }, - - map: function( callback ) { - return this.pushStack( jQuery.map( this, function( elem, i ) { - return callback.call( elem, i, elem ); - } ) ); - }, - - slice: function() { - return this.pushStack( slice.apply( this, arguments ) ); - }, - - first: function() { - return this.eq( 0 ); - }, - - last: function() { - return this.eq( -1 ); - }, - - even: function() { - return this.pushStack( jQuery.grep( this, function( _elem, i ) { - return ( i + 1 ) % 2; - } ) ); - }, - - odd: function() { - return this.pushStack( jQuery.grep( this, function( _elem, i ) { - return i % 2; - } ) ); - }, - - eq: function( i ) { - var len = this.length, - j = +i + ( i < 0 ? len : 0 ); - return this.pushStack( j >= 0 && j < len ? [ this[ j ] ] : [] ); - }, - - end: function() { - return this.prevObject || this.constructor(); - }, - - // For internal use only. - // Behaves like an Array's method, not like a jQuery method. - push: push, - sort: arr.sort, - splice: arr.splice -}; - -jQuery.extend = jQuery.fn.extend = function() { - var options, name, src, copy, copyIsArray, clone, - target = arguments[ 0 ] || {}, - i = 1, - length = arguments.length, - deep = false; - - // Handle a deep copy situation - if ( typeof target === "boolean" ) { - deep = target; - - // Skip the boolean and the target - target = arguments[ i ] || {}; - i++; - } - - // Handle case when target is a string or something (possible in deep copy) - if ( typeof target !== "object" && !isFunction( target ) ) { - target = {}; - } - - // Extend jQuery itself if only one argument is passed - if ( i === length ) { - target = this; - i--; - } - - for ( ; i < length; i++ ) { - - // Only deal with non-null/undefined values - if ( ( options = arguments[ i ] ) != null ) { - - // Extend the base object - for ( name in options ) { - copy = options[ name ]; - - // Prevent Object.prototype pollution - // Prevent never-ending loop - if ( name === "__proto__" || target === copy ) { - continue; - } - - // Recurse if we're merging plain objects or arrays - if ( deep && copy && ( jQuery.isPlainObject( copy ) || - ( copyIsArray = Array.isArray( copy ) ) ) ) { - src = target[ name ]; - - // Ensure proper type for the source value - if ( copyIsArray && !Array.isArray( src ) ) { - clone = []; - } else if ( !copyIsArray && !jQuery.isPlainObject( src ) ) { - clone = {}; - } else { - clone = src; - } - copyIsArray = false; - - // Never move original objects, clone them - target[ name ] = jQuery.extend( deep, clone, copy ); - - // Don't bring in undefined values - } else if ( copy !== undefined ) { - target[ name ] = copy; - } - } - } - } - - // Return the modified object - return target; -}; - -jQuery.extend( { - - // Unique for each copy of jQuery on the page - expando: "jQuery" + ( version + Math.random() ).replace( /\D/g, "" ), - - // Assume jQuery is ready without the ready module - isReady: true, - - error: function( msg ) { - throw new Error( msg ); - }, - - noop: function() {}, - - isPlainObject: function( obj ) { - var proto, Ctor; - - // Detect obvious negatives - // Use toString instead of jQuery.type to catch host objects - if ( !obj || toString.call( obj ) !== "[object Object]" ) { - return false; - } - - proto = getProto( obj ); - - // Objects with no prototype (e.g., `Object.create( null )`) are plain - if ( !proto ) { - return true; - } - - // Objects with prototype are plain iff they were constructed by a global Object function - Ctor = hasOwn.call( proto, "constructor" ) && proto.constructor; - return typeof Ctor === "function" && fnToString.call( Ctor ) === ObjectFunctionString; - }, - - isEmptyObject: function( obj ) { - var name; - - for ( name in obj ) { - return false; - } - return true; - }, - - // Evaluates a script in a provided context; falls back to the global one - // if not specified. - globalEval: function( code, options, doc ) { - DOMEval( code, { nonce: options && options.nonce }, doc ); - }, - - each: function( obj, callback ) { - var length, i = 0; - - if ( isArrayLike( obj ) ) { - length = obj.length; - for ( ; i < length; i++ ) { - if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) { - break; - } - } - } else { - for ( i in obj ) { - if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) { - break; - } - } - } - - return obj; - }, - - // results is for internal usage only - makeArray: function( arr, results ) { - var ret = results || []; - - if ( arr != null ) { - if ( isArrayLike( Object( arr ) ) ) { - jQuery.merge( ret, - typeof arr === "string" ? - [ arr ] : arr - ); - } else { - push.call( ret, arr ); - } - } - - return ret; - }, - - inArray: function( elem, arr, i ) { - return arr == null ? -1 : indexOf.call( arr, elem, i ); - }, - - // Support: Android <=4.0 only, PhantomJS 1 only - // push.apply(_, arraylike) throws on ancient WebKit - merge: function( first, second ) { - var len = +second.length, - j = 0, - i = first.length; - - for ( ; j < len; j++ ) { - first[ i++ ] = second[ j ]; - } - - first.length = i; - - return first; - }, - - grep: function( elems, callback, invert ) { - var callbackInverse, - matches = [], - i = 0, - length = elems.length, - callbackExpect = !invert; - - // Go through the array, only saving the items - // that pass the validator function - for ( ; i < length; i++ ) { - callbackInverse = !callback( elems[ i ], i ); - if ( callbackInverse !== callbackExpect ) { - matches.push( elems[ i ] ); - } - } - - return matches; - }, - - // arg is for internal usage only - map: function( elems, callback, arg ) { - var length, value, - i = 0, - ret = []; - - // Go through the array, translating each of the items to their new values - if ( isArrayLike( elems ) ) { - length = elems.length; - for ( ; i < length; i++ ) { - value = callback( elems[ i ], i, arg ); - - if ( value != null ) { - ret.push( value ); - } - } - - // Go through every key on the object, - } else { - for ( i in elems ) { - value = callback( elems[ i ], i, arg ); - - if ( value != null ) { - ret.push( value ); - } - } - } - - // Flatten any nested arrays - return flat( ret ); - }, - - // A global GUID counter for objects - guid: 1, - - // jQuery.support is not used in Core but other projects attach their - // properties to it so it needs to exist. - support: support -} ); - -if ( typeof Symbol === "function" ) { - jQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ]; -} - -// Populate the class2type map -jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ), - function( _i, name ) { - class2type[ "[object " + name + "]" ] = name.toLowerCase(); - } ); - -function isArrayLike( obj ) { - - // Support: real iOS 8.2 only (not reproducible in simulator) - // `in` check used to prevent JIT error (gh-2145) - // hasOwn isn't used here due to false negatives - // regarding Nodelist length in IE - var length = !!obj && "length" in obj && obj.length, - type = toType( obj ); - - if ( isFunction( obj ) || isWindow( obj ) ) { - return false; - } - - return type === "array" || length === 0 || - typeof length === "number" && length > 0 && ( length - 1 ) in obj; -} -var Sizzle = -/*! - * Sizzle CSS Selector Engine v2.3.6 - * https://sizzlejs.com/ - * - * Copyright JS Foundation and other contributors - * Released under the MIT license - * https://js.foundation/ - * - * Date: 2021-02-16 - */ -( function( window ) { -var i, - support, - Expr, - getText, - isXML, - tokenize, - compile, - select, - outermostContext, - sortInput, - hasDuplicate, - - // Local document vars - setDocument, - document, - docElem, - documentIsHTML, - rbuggyQSA, - rbuggyMatches, - matches, - contains, - - // Instance-specific data - expando = "sizzle" + 1 * new Date(), - preferredDoc = window.document, - dirruns = 0, - done = 0, - classCache = createCache(), - tokenCache = createCache(), - compilerCache = createCache(), - nonnativeSelectorCache = createCache(), - sortOrder = function( a, b ) { - if ( a === b ) { - hasDuplicate = true; - } - return 0; - }, - - // Instance methods - hasOwn = ( {} ).hasOwnProperty, - arr = [], - pop = arr.pop, - pushNative = arr.push, - push = arr.push, - slice = arr.slice, - - // Use a stripped-down indexOf as it's faster than native - // https://jsperf.com/thor-indexof-vs-for/5 - indexOf = function( list, elem ) { - var i = 0, - len = list.length; - for ( ; i < len; i++ ) { - if ( list[ i ] === elem ) { - return i; - } - } - return -1; - }, - - booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|" + - "ismap|loop|multiple|open|readonly|required|scoped", - - // Regular expressions - - // http://www.w3.org/TR/css3-selectors/#whitespace - whitespace = "[\\x20\\t\\r\\n\\f]", - - // https://www.w3.org/TR/css-syntax-3/#ident-token-diagram - identifier = "(?:\\\\[\\da-fA-F]{1,6}" + whitespace + - "?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+", - - // Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors - attributes = "\\[" + whitespace + "*(" + identifier + ")(?:" + whitespace + - - // Operator (capture 2) - "*([*^$|!~]?=)" + whitespace + - - // "Attribute values must be CSS identifiers [capture 5] - // or strings [capture 3 or capture 4]" - "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + identifier + "))|)" + - whitespace + "*\\]", - - pseudos = ":(" + identifier + ")(?:\\((" + - - // To reduce the number of selectors needing tokenize in the preFilter, prefer arguments: - // 1. quoted (capture 3; capture 4 or capture 5) - "('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|" + - - // 2. simple (capture 6) - "((?:\\\\.|[^\\\\()[\\]]|" + attributes + ")*)|" + - - // 3. anything else (capture 2) - ".*" + - ")\\)|)", - - // Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter - rwhitespace = new RegExp( whitespace + "+", "g" ), - rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + - whitespace + "+$", "g" ), - - rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ), - rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + - "*" ), - rdescend = new RegExp( whitespace + "|>" ), - - rpseudo = new RegExp( pseudos ), - ridentifier = new RegExp( "^" + identifier + "$" ), - - matchExpr = { - "ID": new RegExp( "^#(" + identifier + ")" ), - "CLASS": new RegExp( "^\\.(" + identifier + ")" ), - "TAG": new RegExp( "^(" + identifier + "|[*])" ), - "ATTR": new RegExp( "^" + attributes ), - "PSEUDO": new RegExp( "^" + pseudos ), - "CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + - whitespace + "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + - whitespace + "*(\\d+)|))" + whitespace + "*\\)|)", "i" ), - "bool": new RegExp( "^(?:" + booleans + ")$", "i" ), - - // For use in libraries implementing .is() - // We use this for POS matching in `select` - "needsContext": new RegExp( "^" + whitespace + - "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + whitespace + - "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" ) - }, - - rhtml = /HTML$/i, - rinputs = /^(?:input|select|textarea|button)$/i, - rheader = /^h\d$/i, - - rnative = /^[^{]+\{\s*\[native \w/, - - // Easily-parseable/retrievable ID or TAG or CLASS selectors - rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, - - rsibling = /[+~]/, - - // CSS escapes - // http://www.w3.org/TR/CSS21/syndata.html#escaped-characters - runescape = new RegExp( "\\\\[\\da-fA-F]{1,6}" + whitespace + "?|\\\\([^\\r\\n\\f])", "g" ), - funescape = function( escape, nonHex ) { - var high = "0x" + escape.slice( 1 ) - 0x10000; - - return nonHex ? - - // Strip the backslash prefix from a non-hex escape sequence - nonHex : - - // Replace a hexadecimal escape sequence with the encoded Unicode code point - // Support: IE <=11+ - // For values outside the Basic Multilingual Plane (BMP), manually construct a - // surrogate pair - high < 0 ? - String.fromCharCode( high + 0x10000 ) : - String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 ); - }, - - // CSS string/identifier serialization - // https://drafts.csswg.org/cssom/#common-serializing-idioms - rcssescape = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g, - fcssescape = function( ch, asCodePoint ) { - if ( asCodePoint ) { - - // U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER - if ( ch === "\0" ) { - return "\uFFFD"; - } - - // Control characters and (dependent upon position) numbers get escaped as code points - return ch.slice( 0, -1 ) + "\\" + - ch.charCodeAt( ch.length - 1 ).toString( 16 ) + " "; - } - - // Other potentially-special ASCII characters get backslash-escaped - return "\\" + ch; - }, - - // Used for iframes - // See setDocument() - // Removing the function wrapper causes a "Permission Denied" - // error in IE - unloadHandler = function() { - setDocument(); - }, - - inDisabledFieldset = addCombinator( - function( elem ) { - return elem.disabled === true && elem.nodeName.toLowerCase() === "fieldset"; - }, - { dir: "parentNode", next: "legend" } - ); - -// Optimize for push.apply( _, NodeList ) -try { - push.apply( - ( arr = slice.call( preferredDoc.childNodes ) ), - preferredDoc.childNodes - ); - - // Support: Android<4.0 - // Detect silently failing push.apply - // eslint-disable-next-line no-unused-expressions - arr[ preferredDoc.childNodes.length ].nodeType; -} catch ( e ) { - push = { apply: arr.length ? - - // Leverage slice if possible - function( target, els ) { - pushNative.apply( target, slice.call( els ) ); - } : - - // Support: IE<9 - // Otherwise append directly - function( target, els ) { - var j = target.length, - i = 0; - - // Can't trust NodeList.length - while ( ( target[ j++ ] = els[ i++ ] ) ) {} - target.length = j - 1; - } - }; -} - -function Sizzle( selector, context, results, seed ) { - var m, i, elem, nid, match, groups, newSelector, - newContext = context && context.ownerDocument, - - // nodeType defaults to 9, since context defaults to document - nodeType = context ? context.nodeType : 9; - - results = results || []; - - // Return early from calls with invalid selector or context - if ( typeof selector !== "string" || !selector || - nodeType !== 1 && nodeType !== 9 && nodeType !== 11 ) { - - return results; - } - - // Try to shortcut find operations (as opposed to filters) in HTML documents - if ( !seed ) { - setDocument( context ); - context = context || document; - - if ( documentIsHTML ) { - - // If the selector is sufficiently simple, try using a "get*By*" DOM method - // (excepting DocumentFragment context, where the methods don't exist) - if ( nodeType !== 11 && ( match = rquickExpr.exec( selector ) ) ) { - - // ID selector - if ( ( m = match[ 1 ] ) ) { - - // Document context - if ( nodeType === 9 ) { - if ( ( elem = context.getElementById( m ) ) ) { - - // Support: IE, Opera, Webkit - // TODO: identify versions - // getElementById can match elements by name instead of ID - if ( elem.id === m ) { - results.push( elem ); - return results; - } - } else { - return results; - } - - // Element context - } else { - - // Support: IE, Opera, Webkit - // TODO: identify versions - // getElementById can match elements by name instead of ID - if ( newContext && ( elem = newContext.getElementById( m ) ) && - contains( context, elem ) && - elem.id === m ) { - - results.push( elem ); - return results; - } - } - - // Type selector - } else if ( match[ 2 ] ) { - push.apply( results, context.getElementsByTagName( selector ) ); - return results; - - // Class selector - } else if ( ( m = match[ 3 ] ) && support.getElementsByClassName && - context.getElementsByClassName ) { - - push.apply( results, context.getElementsByClassName( m ) ); - return results; - } - } - - // Take advantage of querySelectorAll - if ( support.qsa && - !nonnativeSelectorCache[ selector + " " ] && - ( !rbuggyQSA || !rbuggyQSA.test( selector ) ) && - - // Support: IE 8 only - // Exclude object elements - ( nodeType !== 1 || context.nodeName.toLowerCase() !== "object" ) ) { - - newSelector = selector; - newContext = context; - - // qSA considers elements outside a scoping root when evaluating child or - // descendant combinators, which is not what we want. - // In such cases, we work around the behavior by prefixing every selector in the - // list with an ID selector referencing the scope context. - // The technique has to be used as well when a leading combinator is used - // as such selectors are not recognized by querySelectorAll. - // Thanks to Andrew Dupont for this technique. - if ( nodeType === 1 && - ( rdescend.test( selector ) || rcombinators.test( selector ) ) ) { - - // Expand context for sibling selectors - newContext = rsibling.test( selector ) && testContext( context.parentNode ) || - context; - - // We can use :scope instead of the ID hack if the browser - // supports it & if we're not changing the context. - if ( newContext !== context || !support.scope ) { - - // Capture the context ID, setting it first if necessary - if ( ( nid = context.getAttribute( "id" ) ) ) { - nid = nid.replace( rcssescape, fcssescape ); - } else { - context.setAttribute( "id", ( nid = expando ) ); - } - } - - // Prefix every selector in the list - groups = tokenize( selector ); - i = groups.length; - while ( i-- ) { - groups[ i ] = ( nid ? "#" + nid : ":scope" ) + " " + - toSelector( groups[ i ] ); - } - newSelector = groups.join( "," ); - } - - try { - push.apply( results, - newContext.querySelectorAll( newSelector ) - ); - return results; - } catch ( qsaError ) { - nonnativeSelectorCache( selector, true ); - } finally { - if ( nid === expando ) { - context.removeAttribute( "id" ); - } - } - } - } - } - - // All others - return select( selector.replace( rtrim, "$1" ), context, results, seed ); -} - -/** - * Create key-value caches of limited size - * @returns {function(string, object)} Returns the Object data after storing it on itself with - * property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength) - * deleting the oldest entry - */ -function createCache() { - var keys = []; - - function cache( key, value ) { - - // Use (key + " ") to avoid collision with native prototype properties (see Issue #157) - if ( keys.push( key + " " ) > Expr.cacheLength ) { - - // Only keep the most recent entries - delete cache[ keys.shift() ]; - } - return ( cache[ key + " " ] = value ); - } - return cache; -} - -/** - * Mark a function for special use by Sizzle - * @param {Function} fn The function to mark - */ -function markFunction( fn ) { - fn[ expando ] = true; - return fn; -} - -/** - * Support testing using an element - * @param {Function} fn Passed the created element and returns a boolean result - */ -function assert( fn ) { - var el = document.createElement( "fieldset" ); - - try { - return !!fn( el ); - } catch ( e ) { - return false; - } finally { - - // Remove from its parent by default - if ( el.parentNode ) { - el.parentNode.removeChild( el ); - } - - // release memory in IE - el = null; - } -} - -/** - * Adds the same handler for all of the specified attrs - * @param {String} attrs Pipe-separated list of attributes - * @param {Function} handler The method that will be applied - */ -function addHandle( attrs, handler ) { - var arr = attrs.split( "|" ), - i = arr.length; - - while ( i-- ) { - Expr.attrHandle[ arr[ i ] ] = handler; - } -} - -/** - * Checks document order of two siblings - * @param {Element} a - * @param {Element} b - * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b - */ -function siblingCheck( a, b ) { - var cur = b && a, - diff = cur && a.nodeType === 1 && b.nodeType === 1 && - a.sourceIndex - b.sourceIndex; - - // Use IE sourceIndex if available on both nodes - if ( diff ) { - return diff; - } - - // Check if b follows a - if ( cur ) { - while ( ( cur = cur.nextSibling ) ) { - if ( cur === b ) { - return -1; - } - } - } - - return a ? 1 : -1; -} - -/** - * Returns a function to use in pseudos for input types - * @param {String} type - */ -function createInputPseudo( type ) { - return function( elem ) { - var name = elem.nodeName.toLowerCase(); - return name === "input" && elem.type === type; - }; -} - -/** - * Returns a function to use in pseudos for buttons - * @param {String} type - */ -function createButtonPseudo( type ) { - return function( elem ) { - var name = elem.nodeName.toLowerCase(); - return ( name === "input" || name === "button" ) && elem.type === type; - }; -} - -/** - * Returns a function to use in pseudos for :enabled/:disabled - * @param {Boolean} disabled true for :disabled; false for :enabled - */ -function createDisabledPseudo( disabled ) { - - // Known :disabled false positives: fieldset[disabled] > legend:nth-of-type(n+2) :can-disable - return function( elem ) { - - // Only certain elements can match :enabled or :disabled - // https://html.spec.whatwg.org/multipage/scripting.html#selector-enabled - // https://html.spec.whatwg.org/multipage/scripting.html#selector-disabled - if ( "form" in elem ) { - - // Check for inherited disabledness on relevant non-disabled elements: - // * listed form-associated elements in a disabled fieldset - // https://html.spec.whatwg.org/multipage/forms.html#category-listed - // https://html.spec.whatwg.org/multipage/forms.html#concept-fe-disabled - // * option elements in a disabled optgroup - // https://html.spec.whatwg.org/multipage/forms.html#concept-option-disabled - // All such elements have a "form" property. - if ( elem.parentNode && elem.disabled === false ) { - - // Option elements defer to a parent optgroup if present - if ( "label" in elem ) { - if ( "label" in elem.parentNode ) { - return elem.parentNode.disabled === disabled; - } else { - return elem.disabled === disabled; - } - } - - // Support: IE 6 - 11 - // Use the isDisabled shortcut property to check for disabled fieldset ancestors - return elem.isDisabled === disabled || - - // Where there is no isDisabled, check manually - /* jshint -W018 */ - elem.isDisabled !== !disabled && - inDisabledFieldset( elem ) === disabled; - } - - return elem.disabled === disabled; - - // Try to winnow out elements that can't be disabled before trusting the disabled property. - // Some victims get caught in our net (label, legend, menu, track), but it shouldn't - // even exist on them, let alone have a boolean value. - } else if ( "label" in elem ) { - return elem.disabled === disabled; - } - - // Remaining elements are neither :enabled nor :disabled - return false; - }; -} - -/** - * Returns a function to use in pseudos for positionals - * @param {Function} fn - */ -function createPositionalPseudo( fn ) { - return markFunction( function( argument ) { - argument = +argument; - return markFunction( function( seed, matches ) { - var j, - matchIndexes = fn( [], seed.length, argument ), - i = matchIndexes.length; - - // Match elements found at the specified indexes - while ( i-- ) { - if ( seed[ ( j = matchIndexes[ i ] ) ] ) { - seed[ j ] = !( matches[ j ] = seed[ j ] ); - } - } - } ); - } ); -} - -/** - * Checks a node for validity as a Sizzle context - * @param {Element|Object=} context - * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value - */ -function testContext( context ) { - return context && typeof context.getElementsByTagName !== "undefined" && context; -} - -// Expose support vars for convenience -support = Sizzle.support = {}; - -/** - * Detects XML nodes - * @param {Element|Object} elem An element or a document - * @returns {Boolean} True iff elem is a non-HTML XML node - */ -isXML = Sizzle.isXML = function( elem ) { - var namespace = elem && elem.namespaceURI, - docElem = elem && ( elem.ownerDocument || elem ).documentElement; - - // Support: IE <=8 - // Assume HTML when documentElement doesn't yet exist, such as inside loading iframes - // https://bugs.jquery.com/ticket/4833 - return !rhtml.test( namespace || docElem && docElem.nodeName || "HTML" ); -}; - -/** - * Sets document-related variables once based on the current document - * @param {Element|Object} [doc] An element or document object to use to set the document - * @returns {Object} Returns the current document - */ -setDocument = Sizzle.setDocument = function( node ) { - var hasCompare, subWindow, - doc = node ? node.ownerDocument || node : preferredDoc; - - // Return early if doc is invalid or already selected - // Support: IE 11+, Edge 17 - 18+ - // IE/Edge sometimes throw a "Permission denied" error when strict-comparing - // two documents; shallow comparisons work. - // eslint-disable-next-line eqeqeq - if ( doc == document || doc.nodeType !== 9 || !doc.documentElement ) { - return document; - } - - // Update global variables - document = doc; - docElem = document.documentElement; - documentIsHTML = !isXML( document ); - - // Support: IE 9 - 11+, Edge 12 - 18+ - // Accessing iframe documents after unload throws "permission denied" errors (jQuery #13936) - // Support: IE 11+, Edge 17 - 18+ - // IE/Edge sometimes throw a "Permission denied" error when strict-comparing - // two documents; shallow comparisons work. - // eslint-disable-next-line eqeqeq - if ( preferredDoc != document && - ( subWindow = document.defaultView ) && subWindow.top !== subWindow ) { - - // Support: IE 11, Edge - if ( subWindow.addEventListener ) { - subWindow.addEventListener( "unload", unloadHandler, false ); - - // Support: IE 9 - 10 only - } else if ( subWindow.attachEvent ) { - subWindow.attachEvent( "onunload", unloadHandler ); - } - } - - // Support: IE 8 - 11+, Edge 12 - 18+, Chrome <=16 - 25 only, Firefox <=3.6 - 31 only, - // Safari 4 - 5 only, Opera <=11.6 - 12.x only - // IE/Edge & older browsers don't support the :scope pseudo-class. - // Support: Safari 6.0 only - // Safari 6.0 supports :scope but it's an alias of :root there. - support.scope = assert( function( el ) { - docElem.appendChild( el ).appendChild( document.createElement( "div" ) ); - return typeof el.querySelectorAll !== "undefined" && - !el.querySelectorAll( ":scope fieldset div" ).length; - } ); - - /* Attributes - ---------------------------------------------------------------------- */ - - // Support: IE<8 - // Verify that getAttribute really returns attributes and not properties - // (excepting IE8 booleans) - support.attributes = assert( function( el ) { - el.className = "i"; - return !el.getAttribute( "className" ); - } ); - - /* getElement(s)By* - ---------------------------------------------------------------------- */ - - // Check if getElementsByTagName("*") returns only elements - support.getElementsByTagName = assert( function( el ) { - el.appendChild( document.createComment( "" ) ); - return !el.getElementsByTagName( "*" ).length; - } ); - - // Support: IE<9 - support.getElementsByClassName = rnative.test( document.getElementsByClassName ); - - // Support: IE<10 - // Check if getElementById returns elements by name - // The broken getElementById methods don't pick up programmatically-set names, - // so use a roundabout getElementsByName test - support.getById = assert( function( el ) { - docElem.appendChild( el ).id = expando; - return !document.getElementsByName || !document.getElementsByName( expando ).length; - } ); - - // ID filter and find - if ( support.getById ) { - Expr.filter[ "ID" ] = function( id ) { - var attrId = id.replace( runescape, funescape ); - return function( elem ) { - return elem.getAttribute( "id" ) === attrId; - }; - }; - Expr.find[ "ID" ] = function( id, context ) { - if ( typeof context.getElementById !== "undefined" && documentIsHTML ) { - var elem = context.getElementById( id ); - return elem ? [ elem ] : []; - } - }; - } else { - Expr.filter[ "ID" ] = function( id ) { - var attrId = id.replace( runescape, funescape ); - return function( elem ) { - var node = typeof elem.getAttributeNode !== "undefined" && - elem.getAttributeNode( "id" ); - return node && node.value === attrId; - }; - }; - - // Support: IE 6 - 7 only - // getElementById is not reliable as a find shortcut - Expr.find[ "ID" ] = function( id, context ) { - if ( typeof context.getElementById !== "undefined" && documentIsHTML ) { - var node, i, elems, - elem = context.getElementById( id ); - - if ( elem ) { - - // Verify the id attribute - node = elem.getAttributeNode( "id" ); - if ( node && node.value === id ) { - return [ elem ]; - } - - // Fall back on getElementsByName - elems = context.getElementsByName( id ); - i = 0; - while ( ( elem = elems[ i++ ] ) ) { - node = elem.getAttributeNode( "id" ); - if ( node && node.value === id ) { - return [ elem ]; - } - } - } - - return []; - } - }; - } - - // Tag - Expr.find[ "TAG" ] = support.getElementsByTagName ? - function( tag, context ) { - if ( typeof context.getElementsByTagName !== "undefined" ) { - return context.getElementsByTagName( tag ); - - // DocumentFragment nodes don't have gEBTN - } else if ( support.qsa ) { - return context.querySelectorAll( tag ); - } - } : - - function( tag, context ) { - var elem, - tmp = [], - i = 0, - - // By happy coincidence, a (broken) gEBTN appears on DocumentFragment nodes too - results = context.getElementsByTagName( tag ); - - // Filter out possible comments - if ( tag === "*" ) { - while ( ( elem = results[ i++ ] ) ) { - if ( elem.nodeType === 1 ) { - tmp.push( elem ); - } - } - - return tmp; - } - return results; - }; - - // Class - Expr.find[ "CLASS" ] = support.getElementsByClassName && function( className, context ) { - if ( typeof context.getElementsByClassName !== "undefined" && documentIsHTML ) { - return context.getElementsByClassName( className ); - } - }; - - /* QSA/matchesSelector - ---------------------------------------------------------------------- */ - - // QSA and matchesSelector support - - // matchesSelector(:active) reports false when true (IE9/Opera 11.5) - rbuggyMatches = []; - - // qSa(:focus) reports false when true (Chrome 21) - // We allow this because of a bug in IE8/9 that throws an error - // whenever `document.activeElement` is accessed on an iframe - // So, we allow :focus to pass through QSA all the time to avoid the IE error - // See https://bugs.jquery.com/ticket/13378 - rbuggyQSA = []; - - if ( ( support.qsa = rnative.test( document.querySelectorAll ) ) ) { - - // Build QSA regex - // Regex strategy adopted from Diego Perini - assert( function( el ) { - - var input; - - // Select is set to empty string on purpose - // This is to test IE's treatment of not explicitly - // setting a boolean content attribute, - // since its presence should be enough - // https://bugs.jquery.com/ticket/12359 - docElem.appendChild( el ).innerHTML = "<a id='" + expando + "'></a>" + - "<select id='" + expando + "-\r\\' msallowcapture=''>" + - "<option selected=''></option></select>"; - - // Support: IE8, Opera 11-12.16 - // Nothing should be selected when empty strings follow ^= or $= or *= - // The test attribute must be unknown in Opera but "safe" for WinRT - // https://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section - if ( el.querySelectorAll( "[msallowcapture^='']" ).length ) { - rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" ); - } - - // Support: IE8 - // Boolean attributes and "value" are not treated correctly - if ( !el.querySelectorAll( "[selected]" ).length ) { - rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" ); - } - - // Support: Chrome<29, Android<4.4, Safari<7.0+, iOS<7.0+, PhantomJS<1.9.8+ - if ( !el.querySelectorAll( "[id~=" + expando + "-]" ).length ) { - rbuggyQSA.push( "~=" ); - } - - // Support: IE 11+, Edge 15 - 18+ - // IE 11/Edge don't find elements on a `[name='']` query in some cases. - // Adding a temporary attribute to the document before the selection works - // around the issue. - // Interestingly, IE 10 & older don't seem to have the issue. - input = document.createElement( "input" ); - input.setAttribute( "name", "" ); - el.appendChild( input ); - if ( !el.querySelectorAll( "[name='']" ).length ) { - rbuggyQSA.push( "\\[" + whitespace + "*name" + whitespace + "*=" + - whitespace + "*(?:''|\"\")" ); - } - - // Webkit/Opera - :checked should return selected option elements - // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked - // IE8 throws error here and will not see later tests - if ( !el.querySelectorAll( ":checked" ).length ) { - rbuggyQSA.push( ":checked" ); - } - - // Support: Safari 8+, iOS 8+ - // https://bugs.webkit.org/show_bug.cgi?id=136851 - // In-page `selector#id sibling-combinator selector` fails - if ( !el.querySelectorAll( "a#" + expando + "+*" ).length ) { - rbuggyQSA.push( ".#.+[+~]" ); - } - - // Support: Firefox <=3.6 - 5 only - // Old Firefox doesn't throw on a badly-escaped identifier. - el.querySelectorAll( "\\\f" ); - rbuggyQSA.push( "[\\r\\n\\f]" ); - } ); - - assert( function( el ) { - el.innerHTML = "<a href='' disabled='disabled'></a>" + - "<select disabled='disabled'><option/></select>"; - - // Support: Windows 8 Native Apps - // The type and name attributes are restricted during .innerHTML assignment - var input = document.createElement( "input" ); - input.setAttribute( "type", "hidden" ); - el.appendChild( input ).setAttribute( "name", "D" ); - - // Support: IE8 - // Enforce case-sensitivity of name attribute - if ( el.querySelectorAll( "[name=d]" ).length ) { - rbuggyQSA.push( "name" + whitespace + "*[*^$|!~]?=" ); - } - - // FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled) - // IE8 throws error here and will not see later tests - if ( el.querySelectorAll( ":enabled" ).length !== 2 ) { - rbuggyQSA.push( ":enabled", ":disabled" ); - } - - // Support: IE9-11+ - // IE's :disabled selector does not pick up the children of disabled fieldsets - docElem.appendChild( el ).disabled = true; - if ( el.querySelectorAll( ":disabled" ).length !== 2 ) { - rbuggyQSA.push( ":enabled", ":disabled" ); - } - - // Support: Opera 10 - 11 only - // Opera 10-11 does not throw on post-comma invalid pseudos - el.querySelectorAll( "*,:x" ); - rbuggyQSA.push( ",.*:" ); - } ); - } - - if ( ( support.matchesSelector = rnative.test( ( matches = docElem.matches || - docElem.webkitMatchesSelector || - docElem.mozMatchesSelector || - docElem.oMatchesSelector || - docElem.msMatchesSelector ) ) ) ) { - - assert( function( el ) { - - // Check to see if it's possible to do matchesSelector - // on a disconnected node (IE 9) - support.disconnectedMatch = matches.call( el, "*" ); - - // This should fail with an exception - // Gecko does not error, returns false instead - matches.call( el, "[s!='']:x" ); - rbuggyMatches.push( "!=", pseudos ); - } ); - } - - rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join( "|" ) ); - rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join( "|" ) ); - - /* Contains - ---------------------------------------------------------------------- */ - hasCompare = rnative.test( docElem.compareDocumentPosition ); - - // Element contains another - // Purposefully self-exclusive - // As in, an element does not contain itself - contains = hasCompare || rnative.test( docElem.contains ) ? - function( a, b ) { - var adown = a.nodeType === 9 ? a.documentElement : a, - bup = b && b.parentNode; - return a === bup || !!( bup && bup.nodeType === 1 && ( - adown.contains ? - adown.contains( bup ) : - a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16 - ) ); - } : - function( a, b ) { - if ( b ) { - while ( ( b = b.parentNode ) ) { - if ( b === a ) { - return true; - } - } - } - return false; - }; - - /* Sorting - ---------------------------------------------------------------------- */ - - // Document order sorting - sortOrder = hasCompare ? - function( a, b ) { - - // Flag for duplicate removal - if ( a === b ) { - hasDuplicate = true; - return 0; - } - - // Sort on method existence if only one input has compareDocumentPosition - var compare = !a.compareDocumentPosition - !b.compareDocumentPosition; - if ( compare ) { - return compare; - } - - // Calculate position if both inputs belong to the same document - // Support: IE 11+, Edge 17 - 18+ - // IE/Edge sometimes throw a "Permission denied" error when strict-comparing - // two documents; shallow comparisons work. - // eslint-disable-next-line eqeqeq - compare = ( a.ownerDocument || a ) == ( b.ownerDocument || b ) ? - a.compareDocumentPosition( b ) : - - // Otherwise we know they are disconnected - 1; - - // Disconnected nodes - if ( compare & 1 || - ( !support.sortDetached && b.compareDocumentPosition( a ) === compare ) ) { - - // Choose the first element that is related to our preferred document - // Support: IE 11+, Edge 17 - 18+ - // IE/Edge sometimes throw a "Permission denied" error when strict-comparing - // two documents; shallow comparisons work. - // eslint-disable-next-line eqeqeq - if ( a == document || a.ownerDocument == preferredDoc && - contains( preferredDoc, a ) ) { - return -1; - } - - // Support: IE 11+, Edge 17 - 18+ - // IE/Edge sometimes throw a "Permission denied" error when strict-comparing - // two documents; shallow comparisons work. - // eslint-disable-next-line eqeqeq - if ( b == document || b.ownerDocument == preferredDoc && - contains( preferredDoc, b ) ) { - return 1; - } - - // Maintain original order - return sortInput ? - ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) : - 0; - } - - return compare & 4 ? -1 : 1; - } : - function( a, b ) { - - // Exit early if the nodes are identical - if ( a === b ) { - hasDuplicate = true; - return 0; - } - - var cur, - i = 0, - aup = a.parentNode, - bup = b.parentNode, - ap = [ a ], - bp = [ b ]; - - // Parentless nodes are either documents or disconnected - if ( !aup || !bup ) { - - // Support: IE 11+, Edge 17 - 18+ - // IE/Edge sometimes throw a "Permission denied" error when strict-comparing - // two documents; shallow comparisons work. - /* eslint-disable eqeqeq */ - return a == document ? -1 : - b == document ? 1 : - /* eslint-enable eqeqeq */ - aup ? -1 : - bup ? 1 : - sortInput ? - ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) : - 0; - - // If the nodes are siblings, we can do a quick check - } else if ( aup === bup ) { - return siblingCheck( a, b ); - } - - // Otherwise we need full lists of their ancestors for comparison - cur = a; - while ( ( cur = cur.parentNode ) ) { - ap.unshift( cur ); - } - cur = b; - while ( ( cur = cur.parentNode ) ) { - bp.unshift( cur ); - } - - // Walk down the tree looking for a discrepancy - while ( ap[ i ] === bp[ i ] ) { - i++; - } - - return i ? - - // Do a sibling check if the nodes have a common ancestor - siblingCheck( ap[ i ], bp[ i ] ) : - - // Otherwise nodes in our document sort first - // Support: IE 11+, Edge 17 - 18+ - // IE/Edge sometimes throw a "Permission denied" error when strict-comparing - // two documents; shallow comparisons work. - /* eslint-disable eqeqeq */ - ap[ i ] == preferredDoc ? -1 : - bp[ i ] == preferredDoc ? 1 : - /* eslint-enable eqeqeq */ - 0; - }; - - return document; -}; - -Sizzle.matches = function( expr, elements ) { - return Sizzle( expr, null, null, elements ); -}; - -Sizzle.matchesSelector = function( elem, expr ) { - setDocument( elem ); - - if ( support.matchesSelector && documentIsHTML && - !nonnativeSelectorCache[ expr + " " ] && - ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) && - ( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) { - - try { - var ret = matches.call( elem, expr ); - - // IE 9's matchesSelector returns false on disconnected nodes - if ( ret || support.disconnectedMatch || - - // As well, disconnected nodes are said to be in a document - // fragment in IE 9 - elem.document && elem.document.nodeType !== 11 ) { - return ret; - } - } catch ( e ) { - nonnativeSelectorCache( expr, true ); - } - } - - return Sizzle( expr, document, null, [ elem ] ).length > 0; -}; - -Sizzle.contains = function( context, elem ) { - - // Set document vars if needed - // Support: IE 11+, Edge 17 - 18+ - // IE/Edge sometimes throw a "Permission denied" error when strict-comparing - // two documents; shallow comparisons work. - // eslint-disable-next-line eqeqeq - if ( ( context.ownerDocument || context ) != document ) { - setDocument( context ); - } - return contains( context, elem ); -}; - -Sizzle.attr = function( elem, name ) { - - // Set document vars if needed - // Support: IE 11+, Edge 17 - 18+ - // IE/Edge sometimes throw a "Permission denied" error when strict-comparing - // two documents; shallow comparisons work. - // eslint-disable-next-line eqeqeq - if ( ( elem.ownerDocument || elem ) != document ) { - setDocument( elem ); - } - - var fn = Expr.attrHandle[ name.toLowerCase() ], - - // Don't get fooled by Object.prototype properties (jQuery #13807) - val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ? - fn( elem, name, !documentIsHTML ) : - undefined; - - return val !== undefined ? - val : - support.attributes || !documentIsHTML ? - elem.getAttribute( name ) : - ( val = elem.getAttributeNode( name ) ) && val.specified ? - val.value : - null; -}; - -Sizzle.escape = function( sel ) { - return ( sel + "" ).replace( rcssescape, fcssescape ); -}; - -Sizzle.error = function( msg ) { - throw new Error( "Syntax error, unrecognized expression: " + msg ); -}; - -/** - * Document sorting and removing duplicates - * @param {ArrayLike} results - */ -Sizzle.uniqueSort = function( results ) { - var elem, - duplicates = [], - j = 0, - i = 0; - - // Unless we *know* we can detect duplicates, assume their presence - hasDuplicate = !support.detectDuplicates; - sortInput = !support.sortStable && results.slice( 0 ); - results.sort( sortOrder ); - - if ( hasDuplicate ) { - while ( ( elem = results[ i++ ] ) ) { - if ( elem === results[ i ] ) { - j = duplicates.push( i ); - } - } - while ( j-- ) { - results.splice( duplicates[ j ], 1 ); - } - } - - // Clear input after sorting to release objects - // See https://github.com/jquery/sizzle/pull/225 - sortInput = null; - - return results; -}; - -/** - * Utility function for retrieving the text value of an array of DOM nodes - * @param {Array|Element} elem - */ -getText = Sizzle.getText = function( elem ) { - var node, - ret = "", - i = 0, - nodeType = elem.nodeType; - - if ( !nodeType ) { - - // If no nodeType, this is expected to be an array - while ( ( node = elem[ i++ ] ) ) { - - // Do not traverse comment nodes - ret += getText( node ); - } - } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) { - - // Use textContent for elements - // innerText usage removed for consistency of new lines (jQuery #11153) - if ( typeof elem.textContent === "string" ) { - return elem.textContent; - } else { - - // Traverse its children - for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { - ret += getText( elem ); - } - } - } else if ( nodeType === 3 || nodeType === 4 ) { - return elem.nodeValue; - } - - // Do not include comment or processing instruction nodes - - return ret; -}; - -Expr = Sizzle.selectors = { - - // Can be adjusted by the user - cacheLength: 50, - - createPseudo: markFunction, - - match: matchExpr, - - attrHandle: {}, - - find: {}, - - relative: { - ">": { dir: "parentNode", first: true }, - " ": { dir: "parentNode" }, - "+": { dir: "previousSibling", first: true }, - "~": { dir: "previousSibling" } - }, - - preFilter: { - "ATTR": function( match ) { - match[ 1 ] = match[ 1 ].replace( runescape, funescape ); - - // Move the given value to match[3] whether quoted or unquoted - match[ 3 ] = ( match[ 3 ] || match[ 4 ] || - match[ 5 ] || "" ).replace( runescape, funescape ); - - if ( match[ 2 ] === "~=" ) { - match[ 3 ] = " " + match[ 3 ] + " "; - } - - return match.slice( 0, 4 ); - }, - - "CHILD": function( match ) { - - /* matches from matchExpr["CHILD"] - 1 type (only|nth|...) - 2 what (child|of-type) - 3 argument (even|odd|\d*|\d*n([+-]\d+)?|...) - 4 xn-component of xn+y argument ([+-]?\d*n|) - 5 sign of xn-component - 6 x of xn-component - 7 sign of y-component - 8 y of y-component - */ - match[ 1 ] = match[ 1 ].toLowerCase(); - - if ( match[ 1 ].slice( 0, 3 ) === "nth" ) { - - // nth-* requires argument - if ( !match[ 3 ] ) { - Sizzle.error( match[ 0 ] ); - } - - // numeric x and y parameters for Expr.filter.CHILD - // remember that false/true cast respectively to 0/1 - match[ 4 ] = +( match[ 4 ] ? - match[ 5 ] + ( match[ 6 ] || 1 ) : - 2 * ( match[ 3 ] === "even" || match[ 3 ] === "odd" ) ); - match[ 5 ] = +( ( match[ 7 ] + match[ 8 ] ) || match[ 3 ] === "odd" ); - - // other types prohibit arguments - } else if ( match[ 3 ] ) { - Sizzle.error( match[ 0 ] ); - } - - return match; - }, - - "PSEUDO": function( match ) { - var excess, - unquoted = !match[ 6 ] && match[ 2 ]; - - if ( matchExpr[ "CHILD" ].test( match[ 0 ] ) ) { - return null; - } - - // Accept quoted arguments as-is - if ( match[ 3 ] ) { - match[ 2 ] = match[ 4 ] || match[ 5 ] || ""; - - // Strip excess characters from unquoted arguments - } else if ( unquoted && rpseudo.test( unquoted ) && - - // Get excess from tokenize (recursively) - ( excess = tokenize( unquoted, true ) ) && - - // advance to the next closing parenthesis - ( excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length ) ) { - - // excess is a negative index - match[ 0 ] = match[ 0 ].slice( 0, excess ); - match[ 2 ] = unquoted.slice( 0, excess ); - } - - // Return only captures needed by the pseudo filter method (type and argument) - return match.slice( 0, 3 ); - } - }, - - filter: { - - "TAG": function( nodeNameSelector ) { - var nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase(); - return nodeNameSelector === "*" ? - function() { - return true; - } : - function( elem ) { - return elem.nodeName && elem.nodeName.toLowerCase() === nodeName; - }; - }, - - "CLASS": function( className ) { - var pattern = classCache[ className + " " ]; - - return pattern || - ( pattern = new RegExp( "(^|" + whitespace + - ")" + className + "(" + whitespace + "|$)" ) ) && classCache( - className, function( elem ) { - return pattern.test( - typeof elem.className === "string" && elem.className || - typeof elem.getAttribute !== "undefined" && - elem.getAttribute( "class" ) || - "" - ); - } ); - }, - - "ATTR": function( name, operator, check ) { - return function( elem ) { - var result = Sizzle.attr( elem, name ); - - if ( result == null ) { - return operator === "!="; - } - if ( !operator ) { - return true; - } - - result += ""; - - /* eslint-disable max-len */ - - return operator === "=" ? result === check : - operator === "!=" ? result !== check : - operator === "^=" ? check && result.indexOf( check ) === 0 : - operator === "*=" ? check && result.indexOf( check ) > -1 : - operator === "$=" ? check && result.slice( -check.length ) === check : - operator === "~=" ? ( " " + result.replace( rwhitespace, " " ) + " " ).indexOf( check ) > -1 : - operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" : - false; - /* eslint-enable max-len */ - - }; - }, - - "CHILD": function( type, what, _argument, first, last ) { - var simple = type.slice( 0, 3 ) !== "nth", - forward = type.slice( -4 ) !== "last", - ofType = what === "of-type"; - - return first === 1 && last === 0 ? - - // Shortcut for :nth-*(n) - function( elem ) { - return !!elem.parentNode; - } : - - function( elem, _context, xml ) { - var cache, uniqueCache, outerCache, node, nodeIndex, start, - dir = simple !== forward ? "nextSibling" : "previousSibling", - parent = elem.parentNode, - name = ofType && elem.nodeName.toLowerCase(), - useCache = !xml && !ofType, - diff = false; - - if ( parent ) { - - // :(first|last|only)-(child|of-type) - if ( simple ) { - while ( dir ) { - node = elem; - while ( ( node = node[ dir ] ) ) { - if ( ofType ? - node.nodeName.toLowerCase() === name : - node.nodeType === 1 ) { - - return false; - } - } - - // Reverse direction for :only-* (if we haven't yet done so) - start = dir = type === "only" && !start && "nextSibling"; - } - return true; - } - - start = [ forward ? parent.firstChild : parent.lastChild ]; - - // non-xml :nth-child(...) stores cache data on `parent` - if ( forward && useCache ) { - - // Seek `elem` from a previously-cached index - - // ...in a gzip-friendly way - node = parent; - outerCache = node[ expando ] || ( node[ expando ] = {} ); - - // Support: IE <9 only - // Defend against cloned attroperties (jQuery gh-1709) - uniqueCache = outerCache[ node.uniqueID ] || - ( outerCache[ node.uniqueID ] = {} ); - - cache = uniqueCache[ type ] || []; - nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ]; - diff = nodeIndex && cache[ 2 ]; - node = nodeIndex && parent.childNodes[ nodeIndex ]; - - while ( ( node = ++nodeIndex && node && node[ dir ] || - - // Fallback to seeking `elem` from the start - ( diff = nodeIndex = 0 ) || start.pop() ) ) { - - // When found, cache indexes on `parent` and break - if ( node.nodeType === 1 && ++diff && node === elem ) { - uniqueCache[ type ] = [ dirruns, nodeIndex, diff ]; - break; - } - } - - } else { - - // Use previously-cached element index if available - if ( useCache ) { - - // ...in a gzip-friendly way - node = elem; - outerCache = node[ expando ] || ( node[ expando ] = {} ); - - // Support: IE <9 only - // Defend against cloned attroperties (jQuery gh-1709) - uniqueCache = outerCache[ node.uniqueID ] || - ( outerCache[ node.uniqueID ] = {} ); - - cache = uniqueCache[ type ] || []; - nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ]; - diff = nodeIndex; - } - - // xml :nth-child(...) - // or :nth-last-child(...) or :nth(-last)?-of-type(...) - if ( diff === false ) { - - // Use the same loop as above to seek `elem` from the start - while ( ( node = ++nodeIndex && node && node[ dir ] || - ( diff = nodeIndex = 0 ) || start.pop() ) ) { - - if ( ( ofType ? - node.nodeName.toLowerCase() === name : - node.nodeType === 1 ) && - ++diff ) { - - // Cache the index of each encountered element - if ( useCache ) { - outerCache = node[ expando ] || - ( node[ expando ] = {} ); - - // Support: IE <9 only - // Defend against cloned attroperties (jQuery gh-1709) - uniqueCache = outerCache[ node.uniqueID ] || - ( outerCache[ node.uniqueID ] = {} ); - - uniqueCache[ type ] = [ dirruns, diff ]; - } - - if ( node === elem ) { - break; - } - } - } - } - } - - // Incorporate the offset, then check against cycle size - diff -= last; - return diff === first || ( diff % first === 0 && diff / first >= 0 ); - } - }; - }, - - "PSEUDO": function( pseudo, argument ) { - - // pseudo-class names are case-insensitive - // http://www.w3.org/TR/selectors/#pseudo-classes - // Prioritize by case sensitivity in case custom pseudos are added with uppercase letters - // Remember that setFilters inherits from pseudos - var args, - fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] || - Sizzle.error( "unsupported pseudo: " + pseudo ); - - // The user may use createPseudo to indicate that - // arguments are needed to create the filter function - // just as Sizzle does - if ( fn[ expando ] ) { - return fn( argument ); - } - - // But maintain support for old signatures - if ( fn.length > 1 ) { - args = [ pseudo, pseudo, "", argument ]; - return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ? - markFunction( function( seed, matches ) { - var idx, - matched = fn( seed, argument ), - i = matched.length; - while ( i-- ) { - idx = indexOf( seed, matched[ i ] ); - seed[ idx ] = !( matches[ idx ] = matched[ i ] ); - } - } ) : - function( elem ) { - return fn( elem, 0, args ); - }; - } - - return fn; - } - }, - - pseudos: { - - // Potentially complex pseudos - "not": markFunction( function( selector ) { - - // Trim the selector passed to compile - // to avoid treating leading and trailing - // spaces as combinators - var input = [], - results = [], - matcher = compile( selector.replace( rtrim, "$1" ) ); - - return matcher[ expando ] ? - markFunction( function( seed, matches, _context, xml ) { - var elem, - unmatched = matcher( seed, null, xml, [] ), - i = seed.length; - - // Match elements unmatched by `matcher` - while ( i-- ) { - if ( ( elem = unmatched[ i ] ) ) { - seed[ i ] = !( matches[ i ] = elem ); - } - } - } ) : - function( elem, _context, xml ) { - input[ 0 ] = elem; - matcher( input, null, xml, results ); - - // Don't keep the element (issue #299) - input[ 0 ] = null; - return !results.pop(); - }; - } ), - - "has": markFunction( function( selector ) { - return function( elem ) { - return Sizzle( selector, elem ).length > 0; - }; - } ), - - "contains": markFunction( function( text ) { - text = text.replace( runescape, funescape ); - return function( elem ) { - return ( elem.textContent || getText( elem ) ).indexOf( text ) > -1; - }; - } ), - - // "Whether an element is represented by a :lang() selector - // is based solely on the element's language value - // being equal to the identifier C, - // or beginning with the identifier C immediately followed by "-". - // The matching of C against the element's language value is performed case-insensitively. - // The identifier C does not have to be a valid language name." - // http://www.w3.org/TR/selectors/#lang-pseudo - "lang": markFunction( function( lang ) { - - // lang value must be a valid identifier - if ( !ridentifier.test( lang || "" ) ) { - Sizzle.error( "unsupported lang: " + lang ); - } - lang = lang.replace( runescape, funescape ).toLowerCase(); - return function( elem ) { - var elemLang; - do { - if ( ( elemLang = documentIsHTML ? - elem.lang : - elem.getAttribute( "xml:lang" ) || elem.getAttribute( "lang" ) ) ) { - - elemLang = elemLang.toLowerCase(); - return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0; - } - } while ( ( elem = elem.parentNode ) && elem.nodeType === 1 ); - return false; - }; - } ), - - // Miscellaneous - "target": function( elem ) { - var hash = window.location && window.location.hash; - return hash && hash.slice( 1 ) === elem.id; - }, - - "root": function( elem ) { - return elem === docElem; - }, - - "focus": function( elem ) { - return elem === document.activeElement && - ( !document.hasFocus || document.hasFocus() ) && - !!( elem.type || elem.href || ~elem.tabIndex ); - }, - - // Boolean properties - "enabled": createDisabledPseudo( false ), - "disabled": createDisabledPseudo( true ), - - "checked": function( elem ) { - - // In CSS3, :checked should return both checked and selected elements - // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked - var nodeName = elem.nodeName.toLowerCase(); - return ( nodeName === "input" && !!elem.checked ) || - ( nodeName === "option" && !!elem.selected ); - }, - - "selected": function( elem ) { - - // Accessing this property makes selected-by-default - // options in Safari work properly - if ( elem.parentNode ) { - // eslint-disable-next-line no-unused-expressions - elem.parentNode.selectedIndex; - } - - return elem.selected === true; - }, - - // Contents - "empty": function( elem ) { - - // http://www.w3.org/TR/selectors/#empty-pseudo - // :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5), - // but not by others (comment: 8; processing instruction: 7; etc.) - // nodeType < 6 works because attributes (2) do not appear as children - for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { - if ( elem.nodeType < 6 ) { - return false; - } - } - return true; - }, - - "parent": function( elem ) { - return !Expr.pseudos[ "empty" ]( elem ); - }, - - // Element/input types - "header": function( elem ) { - return rheader.test( elem.nodeName ); - }, - - "input": function( elem ) { - return rinputs.test( elem.nodeName ); - }, - - "button": function( elem ) { - var name = elem.nodeName.toLowerCase(); - return name === "input" && elem.type === "button" || name === "button"; - }, - - "text": function( elem ) { - var attr; - return elem.nodeName.toLowerCase() === "input" && - elem.type === "text" && - - // Support: IE<8 - // New HTML5 attribute values (e.g., "search") appear with elem.type === "text" - ( ( attr = elem.getAttribute( "type" ) ) == null || - attr.toLowerCase() === "text" ); - }, - - // Position-in-collection - "first": createPositionalPseudo( function() { - return [ 0 ]; - } ), - - "last": createPositionalPseudo( function( _matchIndexes, length ) { - return [ length - 1 ]; - } ), - - "eq": createPositionalPseudo( function( _matchIndexes, length, argument ) { - return [ argument < 0 ? argument + length : argument ]; - } ), - - "even": createPositionalPseudo( function( matchIndexes, length ) { - var i = 0; - for ( ; i < length; i += 2 ) { - matchIndexes.push( i ); - } - return matchIndexes; - } ), - - "odd": createPositionalPseudo( function( matchIndexes, length ) { - var i = 1; - for ( ; i < length; i += 2 ) { - matchIndexes.push( i ); - } - return matchIndexes; - } ), - - "lt": createPositionalPseudo( function( matchIndexes, length, argument ) { - var i = argument < 0 ? - argument + length : - argument > length ? - length : - argument; - for ( ; --i >= 0; ) { - matchIndexes.push( i ); - } - return matchIndexes; - } ), - - "gt": createPositionalPseudo( function( matchIndexes, length, argument ) { - var i = argument < 0 ? argument + length : argument; - for ( ; ++i < length; ) { - matchIndexes.push( i ); - } - return matchIndexes; - } ) - } -}; - -Expr.pseudos[ "nth" ] = Expr.pseudos[ "eq" ]; - -// Add button/input type pseudos -for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) { - Expr.pseudos[ i ] = createInputPseudo( i ); -} -for ( i in { submit: true, reset: true } ) { - Expr.pseudos[ i ] = createButtonPseudo( i ); -} - -// Easy API for creating new setFilters -function setFilters() {} -setFilters.prototype = Expr.filters = Expr.pseudos; -Expr.setFilters = new setFilters(); - -tokenize = Sizzle.tokenize = function( selector, parseOnly ) { - var matched, match, tokens, type, - soFar, groups, preFilters, - cached = tokenCache[ selector + " " ]; - - if ( cached ) { - return parseOnly ? 0 : cached.slice( 0 ); - } - - soFar = selector; - groups = []; - preFilters = Expr.preFilter; - - while ( soFar ) { - - // Comma and first run - if ( !matched || ( match = rcomma.exec( soFar ) ) ) { - if ( match ) { - - // Don't consume trailing commas as valid - soFar = soFar.slice( match[ 0 ].length ) || soFar; - } - groups.push( ( tokens = [] ) ); - } - - matched = false; - - // Combinators - if ( ( match = rcombinators.exec( soFar ) ) ) { - matched = match.shift(); - tokens.push( { - value: matched, - - // Cast descendant combinators to space - type: match[ 0 ].replace( rtrim, " " ) - } ); - soFar = soFar.slice( matched.length ); - } - - // Filters - for ( type in Expr.filter ) { - if ( ( match = matchExpr[ type ].exec( soFar ) ) && ( !preFilters[ type ] || - ( match = preFilters[ type ]( match ) ) ) ) { - matched = match.shift(); - tokens.push( { - value: matched, - type: type, - matches: match - } ); - soFar = soFar.slice( matched.length ); - } - } - - if ( !matched ) { - break; - } - } - - // Return the length of the invalid excess - // if we're just parsing - // Otherwise, throw an error or return tokens - return parseOnly ? - soFar.length : - soFar ? - Sizzle.error( selector ) : - - // Cache the tokens - tokenCache( selector, groups ).slice( 0 ); -}; - -function toSelector( tokens ) { - var i = 0, - len = tokens.length, - selector = ""; - for ( ; i < len; i++ ) { - selector += tokens[ i ].value; - } - return selector; -} - -function addCombinator( matcher, combinator, base ) { - var dir = combinator.dir, - skip = combinator.next, - key = skip || dir, - checkNonElements = base && key === "parentNode", - doneName = done++; - - return combinator.first ? - - // Check against closest ancestor/preceding element - function( elem, context, xml ) { - while ( ( elem = elem[ dir ] ) ) { - if ( elem.nodeType === 1 || checkNonElements ) { - return matcher( elem, context, xml ); - } - } - return false; - } : - - // Check against all ancestor/preceding elements - function( elem, context, xml ) { - var oldCache, uniqueCache, outerCache, - newCache = [ dirruns, doneName ]; - - // We can't set arbitrary data on XML nodes, so they don't benefit from combinator caching - if ( xml ) { - while ( ( elem = elem[ dir ] ) ) { - if ( elem.nodeType === 1 || checkNonElements ) { - if ( matcher( elem, context, xml ) ) { - return true; - } - } - } - } else { - while ( ( elem = elem[ dir ] ) ) { - if ( elem.nodeType === 1 || checkNonElements ) { - outerCache = elem[ expando ] || ( elem[ expando ] = {} ); - - // Support: IE <9 only - // Defend against cloned attroperties (jQuery gh-1709) - uniqueCache = outerCache[ elem.uniqueID ] || - ( outerCache[ elem.uniqueID ] = {} ); - - if ( skip && skip === elem.nodeName.toLowerCase() ) { - elem = elem[ dir ] || elem; - } else if ( ( oldCache = uniqueCache[ key ] ) && - oldCache[ 0 ] === dirruns && oldCache[ 1 ] === doneName ) { - - // Assign to newCache so results back-propagate to previous elements - return ( newCache[ 2 ] = oldCache[ 2 ] ); - } else { - - // Reuse newcache so results back-propagate to previous elements - uniqueCache[ key ] = newCache; - - // A match means we're done; a fail means we have to keep checking - if ( ( newCache[ 2 ] = matcher( elem, context, xml ) ) ) { - return true; - } - } - } - } - } - return false; - }; -} - -function elementMatcher( matchers ) { - return matchers.length > 1 ? - function( elem, context, xml ) { - var i = matchers.length; - while ( i-- ) { - if ( !matchers[ i ]( elem, context, xml ) ) { - return false; - } - } - return true; - } : - matchers[ 0 ]; -} - -function multipleContexts( selector, contexts, results ) { - var i = 0, - len = contexts.length; - for ( ; i < len; i++ ) { - Sizzle( selector, contexts[ i ], results ); - } - return results; -} - -function condense( unmatched, map, filter, context, xml ) { - var elem, - newUnmatched = [], - i = 0, - len = unmatched.length, - mapped = map != null; - - for ( ; i < len; i++ ) { - if ( ( elem = unmatched[ i ] ) ) { - if ( !filter || filter( elem, context, xml ) ) { - newUnmatched.push( elem ); - if ( mapped ) { - map.push( i ); - } - } - } - } - - return newUnmatched; -} - -function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) { - if ( postFilter && !postFilter[ expando ] ) { - postFilter = setMatcher( postFilter ); - } - if ( postFinder && !postFinder[ expando ] ) { - postFinder = setMatcher( postFinder, postSelector ); - } - return markFunction( function( seed, results, context, xml ) { - var temp, i, elem, - preMap = [], - postMap = [], - preexisting = results.length, - - // Get initial elements from seed or context - elems = seed || multipleContexts( - selector || "*", - context.nodeType ? [ context ] : context, - [] - ), - - // Prefilter to get matcher input, preserving a map for seed-results synchronization - matcherIn = preFilter && ( seed || !selector ) ? - condense( elems, preMap, preFilter, context, xml ) : - elems, - - matcherOut = matcher ? - - // If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results, - postFinder || ( seed ? preFilter : preexisting || postFilter ) ? - - // ...intermediate processing is necessary - [] : - - // ...otherwise use results directly - results : - matcherIn; - - // Find primary matches - if ( matcher ) { - matcher( matcherIn, matcherOut, context, xml ); - } - - // Apply postFilter - if ( postFilter ) { - temp = condense( matcherOut, postMap ); - postFilter( temp, [], context, xml ); - - // Un-match failing elements by moving them back to matcherIn - i = temp.length; - while ( i-- ) { - if ( ( elem = temp[ i ] ) ) { - matcherOut[ postMap[ i ] ] = !( matcherIn[ postMap[ i ] ] = elem ); - } - } - } - - if ( seed ) { - if ( postFinder || preFilter ) { - if ( postFinder ) { - - // Get the final matcherOut by condensing this intermediate into postFinder contexts - temp = []; - i = matcherOut.length; - while ( i-- ) { - if ( ( elem = matcherOut[ i ] ) ) { - - // Restore matcherIn since elem is not yet a final match - temp.push( ( matcherIn[ i ] = elem ) ); - } - } - postFinder( null, ( matcherOut = [] ), temp, xml ); - } - - // Move matched elements from seed to results to keep them synchronized - i = matcherOut.length; - while ( i-- ) { - if ( ( elem = matcherOut[ i ] ) && - ( temp = postFinder ? indexOf( seed, elem ) : preMap[ i ] ) > -1 ) { - - seed[ temp ] = !( results[ temp ] = elem ); - } - } - } - - // Add elements to results, through postFinder if defined - } else { - matcherOut = condense( - matcherOut === results ? - matcherOut.splice( preexisting, matcherOut.length ) : - matcherOut - ); - if ( postFinder ) { - postFinder( null, results, matcherOut, xml ); - } else { - push.apply( results, matcherOut ); - } - } - } ); -} - -function matcherFromTokens( tokens ) { - var checkContext, matcher, j, - len = tokens.length, - leadingRelative = Expr.relative[ tokens[ 0 ].type ], - implicitRelative = leadingRelative || Expr.relative[ " " ], - i = leadingRelative ? 1 : 0, - - // The foundational matcher ensures that elements are reachable from top-level context(s) - matchContext = addCombinator( function( elem ) { - return elem === checkContext; - }, implicitRelative, true ), - matchAnyContext = addCombinator( function( elem ) { - return indexOf( checkContext, elem ) > -1; - }, implicitRelative, true ), - matchers = [ function( elem, context, xml ) { - var ret = ( !leadingRelative && ( xml || context !== outermostContext ) ) || ( - ( checkContext = context ).nodeType ? - matchContext( elem, context, xml ) : - matchAnyContext( elem, context, xml ) ); - - // Avoid hanging onto element (issue #299) - checkContext = null; - return ret; - } ]; - - for ( ; i < len; i++ ) { - if ( ( matcher = Expr.relative[ tokens[ i ].type ] ) ) { - matchers = [ addCombinator( elementMatcher( matchers ), matcher ) ]; - } else { - matcher = Expr.filter[ tokens[ i ].type ].apply( null, tokens[ i ].matches ); - - // Return special upon seeing a positional matcher - if ( matcher[ expando ] ) { - - // Find the next relative operator (if any) for proper handling - j = ++i; - for ( ; j < len; j++ ) { - if ( Expr.relative[ tokens[ j ].type ] ) { - break; - } - } - return setMatcher( - i > 1 && elementMatcher( matchers ), - i > 1 && toSelector( - - // If the preceding token was a descendant combinator, insert an implicit any-element `*` - tokens - .slice( 0, i - 1 ) - .concat( { value: tokens[ i - 2 ].type === " " ? "*" : "" } ) - ).replace( rtrim, "$1" ), - matcher, - i < j && matcherFromTokens( tokens.slice( i, j ) ), - j < len && matcherFromTokens( ( tokens = tokens.slice( j ) ) ), - j < len && toSelector( tokens ) - ); - } - matchers.push( matcher ); - } - } - - return elementMatcher( matchers ); -} - -function matcherFromGroupMatchers( elementMatchers, setMatchers ) { - var bySet = setMatchers.length > 0, - byElement = elementMatchers.length > 0, - superMatcher = function( seed, context, xml, results, outermost ) { - var elem, j, matcher, - matchedCount = 0, - i = "0", - unmatched = seed && [], - setMatched = [], - contextBackup = outermostContext, - - // We must always have either seed elements or outermost context - elems = seed || byElement && Expr.find[ "TAG" ]( "*", outermost ), - - // Use integer dirruns iff this is the outermost matcher - dirrunsUnique = ( dirruns += contextBackup == null ? 1 : Math.random() || 0.1 ), - len = elems.length; - - if ( outermost ) { - - // Support: IE 11+, Edge 17 - 18+ - // IE/Edge sometimes throw a "Permission denied" error when strict-comparing - // two documents; shallow comparisons work. - // eslint-disable-next-line eqeqeq - outermostContext = context == document || context || outermost; - } - - // Add elements passing elementMatchers directly to results - // Support: IE<9, Safari - // Tolerate NodeList properties (IE: "length"; Safari: <number>) matching elements by id - for ( ; i !== len && ( elem = elems[ i ] ) != null; i++ ) { - if ( byElement && elem ) { - j = 0; - - // Support: IE 11+, Edge 17 - 18+ - // IE/Edge sometimes throw a "Permission denied" error when strict-comparing - // two documents; shallow comparisons work. - // eslint-disable-next-line eqeqeq - if ( !context && elem.ownerDocument != document ) { - setDocument( elem ); - xml = !documentIsHTML; - } - while ( ( matcher = elementMatchers[ j++ ] ) ) { - if ( matcher( elem, context || document, xml ) ) { - results.push( elem ); - break; - } - } - if ( outermost ) { - dirruns = dirrunsUnique; - } - } - - // Track unmatched elements for set filters - if ( bySet ) { - - // They will have gone through all possible matchers - if ( ( elem = !matcher && elem ) ) { - matchedCount--; - } - - // Lengthen the array for every element, matched or not - if ( seed ) { - unmatched.push( elem ); - } - } - } - - // `i` is now the count of elements visited above, and adding it to `matchedCount` - // makes the latter nonnegative. - matchedCount += i; - - // Apply set filters to unmatched elements - // NOTE: This can be skipped if there are no unmatched elements (i.e., `matchedCount` - // equals `i`), unless we didn't visit _any_ elements in the above loop because we have - // no element matchers and no seed. - // Incrementing an initially-string "0" `i` allows `i` to remain a string only in that - // case, which will result in a "00" `matchedCount` that differs from `i` but is also - // numerically zero. - if ( bySet && i !== matchedCount ) { - j = 0; - while ( ( matcher = setMatchers[ j++ ] ) ) { - matcher( unmatched, setMatched, context, xml ); - } - - if ( seed ) { - - // Reintegrate element matches to eliminate the need for sorting - if ( matchedCount > 0 ) { - while ( i-- ) { - if ( !( unmatched[ i ] || setMatched[ i ] ) ) { - setMatched[ i ] = pop.call( results ); - } - } - } - - // Discard index placeholder values to get only actual matches - setMatched = condense( setMatched ); - } - - // Add matches to results - push.apply( results, setMatched ); - - // Seedless set matches succeeding multiple successful matchers stipulate sorting - if ( outermost && !seed && setMatched.length > 0 && - ( matchedCount + setMatchers.length ) > 1 ) { - - Sizzle.uniqueSort( results ); - } - } - - // Override manipulation of globals by nested matchers - if ( outermost ) { - dirruns = dirrunsUnique; - outermostContext = contextBackup; - } - - return unmatched; - }; - - return bySet ? - markFunction( superMatcher ) : - superMatcher; -} - -compile = Sizzle.compile = function( selector, match /* Internal Use Only */ ) { - var i, - setMatchers = [], - elementMatchers = [], - cached = compilerCache[ selector + " " ]; - - if ( !cached ) { - - // Generate a function of recursive functions that can be used to check each element - if ( !match ) { - match = tokenize( selector ); - } - i = match.length; - while ( i-- ) { - cached = matcherFromTokens( match[ i ] ); - if ( cached[ expando ] ) { - setMatchers.push( cached ); - } else { - elementMatchers.push( cached ); - } - } - - // Cache the compiled function - cached = compilerCache( - selector, - matcherFromGroupMatchers( elementMatchers, setMatchers ) - ); - - // Save selector and tokenization - cached.selector = selector; - } - return cached; -}; - -/** - * A low-level selection function that works with Sizzle's compiled - * selector functions - * @param {String|Function} selector A selector or a pre-compiled - * selector function built with Sizzle.compile - * @param {Element} context - * @param {Array} [results] - * @param {Array} [seed] A set of elements to match against - */ -select = Sizzle.select = function( selector, context, results, seed ) { - var i, tokens, token, type, find, - compiled = typeof selector === "function" && selector, - match = !seed && tokenize( ( selector = compiled.selector || selector ) ); - - results = results || []; - - // Try to minimize operations if there is only one selector in the list and no seed - // (the latter of which guarantees us context) - if ( match.length === 1 ) { - - // Reduce context if the leading compound selector is an ID - tokens = match[ 0 ] = match[ 0 ].slice( 0 ); - if ( tokens.length > 2 && ( token = tokens[ 0 ] ).type === "ID" && - context.nodeType === 9 && documentIsHTML && Expr.relative[ tokens[ 1 ].type ] ) { - - context = ( Expr.find[ "ID" ]( token.matches[ 0 ] - .replace( runescape, funescape ), context ) || [] )[ 0 ]; - if ( !context ) { - return results; - - // Precompiled matchers will still verify ancestry, so step up a level - } else if ( compiled ) { - context = context.parentNode; - } - - selector = selector.slice( tokens.shift().value.length ); - } - - // Fetch a seed set for right-to-left matching - i = matchExpr[ "needsContext" ].test( selector ) ? 0 : tokens.length; - while ( i-- ) { - token = tokens[ i ]; - - // Abort if we hit a combinator - if ( Expr.relative[ ( type = token.type ) ] ) { - break; - } - if ( ( find = Expr.find[ type ] ) ) { - - // Search, expanding context for leading sibling combinators - if ( ( seed = find( - token.matches[ 0 ].replace( runescape, funescape ), - rsibling.test( tokens[ 0 ].type ) && testContext( context.parentNode ) || - context - ) ) ) { - - // If seed is empty or no tokens remain, we can return early - tokens.splice( i, 1 ); - selector = seed.length && toSelector( tokens ); - if ( !selector ) { - push.apply( results, seed ); - return results; - } - - break; - } - } - } - } - - // Compile and execute a filtering function if one is not provided - // Provide `match` to avoid retokenization if we modified the selector above - ( compiled || compile( selector, match ) )( - seed, - context, - !documentIsHTML, - results, - !context || rsibling.test( selector ) && testContext( context.parentNode ) || context - ); - return results; -}; - -// One-time assignments - -// Sort stability -support.sortStable = expando.split( "" ).sort( sortOrder ).join( "" ) === expando; - -// Support: Chrome 14-35+ -// Always assume duplicates if they aren't passed to the comparison function -support.detectDuplicates = !!hasDuplicate; - -// Initialize against the default document -setDocument(); - -// Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27) -// Detached nodes confoundingly follow *each other* -support.sortDetached = assert( function( el ) { - - // Should return 1, but returns 4 (following) - return el.compareDocumentPosition( document.createElement( "fieldset" ) ) & 1; -} ); - -// Support: IE<8 -// Prevent attribute/property "interpolation" -// https://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx -if ( !assert( function( el ) { - el.innerHTML = "<a href='#'></a>"; - return el.firstChild.getAttribute( "href" ) === "#"; -} ) ) { - addHandle( "type|href|height|width", function( elem, name, isXML ) { - if ( !isXML ) { - return elem.getAttribute( name, name.toLowerCase() === "type" ? 1 : 2 ); - } - } ); -} - -// Support: IE<9 -// Use defaultValue in place of getAttribute("value") -if ( !support.attributes || !assert( function( el ) { - el.innerHTML = "<input/>"; - el.firstChild.setAttribute( "value", "" ); - return el.firstChild.getAttribute( "value" ) === ""; -} ) ) { - addHandle( "value", function( elem, _name, isXML ) { - if ( !isXML && elem.nodeName.toLowerCase() === "input" ) { - return elem.defaultValue; - } - } ); -} - -// Support: IE<9 -// Use getAttributeNode to fetch booleans when getAttribute lies -if ( !assert( function( el ) { - return el.getAttribute( "disabled" ) == null; -} ) ) { - addHandle( booleans, function( elem, name, isXML ) { - var val; - if ( !isXML ) { - return elem[ name ] === true ? name.toLowerCase() : - ( val = elem.getAttributeNode( name ) ) && val.specified ? - val.value : - null; - } - } ); -} - -return Sizzle; - -} )( window ); - - - -jQuery.find = Sizzle; -jQuery.expr = Sizzle.selectors; - -// Deprecated -jQuery.expr[ ":" ] = jQuery.expr.pseudos; -jQuery.uniqueSort = jQuery.unique = Sizzle.uniqueSort; -jQuery.text = Sizzle.getText; -jQuery.isXMLDoc = Sizzle.isXML; -jQuery.contains = Sizzle.contains; -jQuery.escapeSelector = Sizzle.escape; - - - - -var dir = function( elem, dir, until ) { - var matched = [], - truncate = until !== undefined; - - while ( ( elem = elem[ dir ] ) && elem.nodeType !== 9 ) { - if ( elem.nodeType === 1 ) { - if ( truncate && jQuery( elem ).is( until ) ) { - break; - } - matched.push( elem ); - } - } - return matched; -}; - - -var siblings = function( n, elem ) { - var matched = []; - - for ( ; n; n = n.nextSibling ) { - if ( n.nodeType === 1 && n !== elem ) { - matched.push( n ); - } - } - - return matched; -}; - - -var rneedsContext = jQuery.expr.match.needsContext; - - - -function nodeName( elem, name ) { - - return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase(); - -} -var rsingleTag = ( /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i ); - - - -// Implement the identical functionality for filter and not -function winnow( elements, qualifier, not ) { - if ( isFunction( qualifier ) ) { - return jQuery.grep( elements, function( elem, i ) { - return !!qualifier.call( elem, i, elem ) !== not; - } ); - } - - // Single element - if ( qualifier.nodeType ) { - return jQuery.grep( elements, function( elem ) { - return ( elem === qualifier ) !== not; - } ); - } - - // Arraylike of elements (jQuery, arguments, Array) - if ( typeof qualifier !== "string" ) { - return jQuery.grep( elements, function( elem ) { - return ( indexOf.call( qualifier, elem ) > -1 ) !== not; - } ); - } - - // Filtered directly for both simple and complex selectors - return jQuery.filter( qualifier, elements, not ); -} - -jQuery.filter = function( expr, elems, not ) { - var elem = elems[ 0 ]; - - if ( not ) { - expr = ":not(" + expr + ")"; - } - - if ( elems.length === 1 && elem.nodeType === 1 ) { - return jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : []; - } - - return jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) { - return elem.nodeType === 1; - } ) ); -}; - -jQuery.fn.extend( { - find: function( selector ) { - var i, ret, - len = this.length, - self = this; - - if ( typeof selector !== "string" ) { - return this.pushStack( jQuery( selector ).filter( function() { - for ( i = 0; i < len; i++ ) { - if ( jQuery.contains( self[ i ], this ) ) { - return true; - } - } - } ) ); - } - - ret = this.pushStack( [] ); - - for ( i = 0; i < len; i++ ) { - jQuery.find( selector, self[ i ], ret ); - } - - return len > 1 ? jQuery.uniqueSort( ret ) : ret; - }, - filter: function( selector ) { - return this.pushStack( winnow( this, selector || [], false ) ); - }, - not: function( selector ) { - return this.pushStack( winnow( this, selector || [], true ) ); - }, - is: function( selector ) { - return !!winnow( - this, - - // If this is a positional/relative selector, check membership in the returned set - // so $("p:first").is("p:last") won't return true for a doc with two "p". - typeof selector === "string" && rneedsContext.test( selector ) ? - jQuery( selector ) : - selector || [], - false - ).length; - } -} ); - - -// Initialize a jQuery object - - -// A central reference to the root jQuery(document) -var rootjQuery, - - // A simple way to check for HTML strings - // Prioritize #id over <tag> to avoid XSS via location.hash (#9521) - // Strict HTML recognition (#11290: must start with <) - // Shortcut simple #id case for speed - rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/, - - init = jQuery.fn.init = function( selector, context, root ) { - var match, elem; - - // HANDLE: $(""), $(null), $(undefined), $(false) - if ( !selector ) { - return this; - } - - // Method init() accepts an alternate rootjQuery - // so migrate can support jQuery.sub (gh-2101) - root = root || rootjQuery; - - // Handle HTML strings - if ( typeof selector === "string" ) { - if ( selector[ 0 ] === "<" && - selector[ selector.length - 1 ] === ">" && - selector.length >= 3 ) { - - // Assume that strings that start and end with <> are HTML and skip the regex check - match = [ null, selector, null ]; - - } else { - match = rquickExpr.exec( selector ); - } - - // Match html or make sure no context is specified for #id - if ( match && ( match[ 1 ] || !context ) ) { - - // HANDLE: $(html) -> $(array) - if ( match[ 1 ] ) { - context = context instanceof jQuery ? context[ 0 ] : context; - - // Option to run scripts is true for back-compat - // Intentionally let the error be thrown if parseHTML is not present - jQuery.merge( this, jQuery.parseHTML( - match[ 1 ], - context && context.nodeType ? context.ownerDocument || context : document, - true - ) ); - - // HANDLE: $(html, props) - if ( rsingleTag.test( match[ 1 ] ) && jQuery.isPlainObject( context ) ) { - for ( match in context ) { - - // Properties of context are called as methods if possible - if ( isFunction( this[ match ] ) ) { - this[ match ]( context[ match ] ); - - // ...and otherwise set as attributes - } else { - this.attr( match, context[ match ] ); - } - } - } - - return this; - - // HANDLE: $(#id) - } else { - elem = document.getElementById( match[ 2 ] ); - - if ( elem ) { - - // Inject the element directly into the jQuery object - this[ 0 ] = elem; - this.length = 1; - } - return this; - } - - // HANDLE: $(expr, $(...)) - } else if ( !context || context.jquery ) { - return ( context || root ).find( selector ); - - // HANDLE: $(expr, context) - // (which is just equivalent to: $(context).find(expr) - } else { - return this.constructor( context ).find( selector ); - } - - // HANDLE: $(DOMElement) - } else if ( selector.nodeType ) { - this[ 0 ] = selector; - this.length = 1; - return this; - - // HANDLE: $(function) - // Shortcut for document ready - } else if ( isFunction( selector ) ) { - return root.ready !== undefined ? - root.ready( selector ) : - - // Execute immediately if ready is not present - selector( jQuery ); - } - - return jQuery.makeArray( selector, this ); - }; - -// Give the init function the jQuery prototype for later instantiation -init.prototype = jQuery.fn; - -// Initialize central reference -rootjQuery = jQuery( document ); - - -var rparentsprev = /^(?:parents|prev(?:Until|All))/, - - // Methods guaranteed to produce a unique set when starting from a unique set - guaranteedUnique = { - children: true, - contents: true, - next: true, - prev: true - }; - -jQuery.fn.extend( { - has: function( target ) { - var targets = jQuery( target, this ), - l = targets.length; - - return this.filter( function() { - var i = 0; - for ( ; i < l; i++ ) { - if ( jQuery.contains( this, targets[ i ] ) ) { - return true; - } - } - } ); - }, - - closest: function( selectors, context ) { - var cur, - i = 0, - l = this.length, - matched = [], - targets = typeof selectors !== "string" && jQuery( selectors ); - - // Positional selectors never match, since there's no _selection_ context - if ( !rneedsContext.test( selectors ) ) { - for ( ; i < l; i++ ) { - for ( cur = this[ i ]; cur && cur !== context; cur = cur.parentNode ) { - - // Always skip document fragments - if ( cur.nodeType < 11 && ( targets ? - targets.index( cur ) > -1 : - - // Don't pass non-elements to Sizzle - cur.nodeType === 1 && - jQuery.find.matchesSelector( cur, selectors ) ) ) { - - matched.push( cur ); - break; - } - } - } - } - - return this.pushStack( matched.length > 1 ? jQuery.uniqueSort( matched ) : matched ); - }, - - // Determine the position of an element within the set - index: function( elem ) { - - // No argument, return index in parent - if ( !elem ) { - return ( this[ 0 ] && this[ 0 ].parentNode ) ? this.first().prevAll().length : -1; - } - - // Index in selector - if ( typeof elem === "string" ) { - return indexOf.call( jQuery( elem ), this[ 0 ] ); - } - - // Locate the position of the desired element - return indexOf.call( this, - - // If it receives a jQuery object, the first element is used - elem.jquery ? elem[ 0 ] : elem - ); - }, - - add: function( selector, context ) { - return this.pushStack( - jQuery.uniqueSort( - jQuery.merge( this.get(), jQuery( selector, context ) ) - ) - ); - }, - - addBack: function( selector ) { - return this.add( selector == null ? - this.prevObject : this.prevObject.filter( selector ) - ); - } -} ); - -function sibling( cur, dir ) { - while ( ( cur = cur[ dir ] ) && cur.nodeType !== 1 ) {} - return cur; -} - -jQuery.each( { - parent: function( elem ) { - var parent = elem.parentNode; - return parent && parent.nodeType !== 11 ? parent : null; - }, - parents: function( elem ) { - return dir( elem, "parentNode" ); - }, - parentsUntil: function( elem, _i, until ) { - return dir( elem, "parentNode", until ); - }, - next: function( elem ) { - return sibling( elem, "nextSibling" ); - }, - prev: function( elem ) { - return sibling( elem, "previousSibling" ); - }, - nextAll: function( elem ) { - return dir( elem, "nextSibling" ); - }, - prevAll: function( elem ) { - return dir( elem, "previousSibling" ); - }, - nextUntil: function( elem, _i, until ) { - return dir( elem, "nextSibling", until ); - }, - prevUntil: function( elem, _i, until ) { - return dir( elem, "previousSibling", until ); - }, - siblings: function( elem ) { - return siblings( ( elem.parentNode || {} ).firstChild, elem ); - }, - children: function( elem ) { - return siblings( elem.firstChild ); - }, - contents: function( elem ) { - if ( elem.contentDocument != null && - - // Support: IE 11+ - // <object> elements with no `data` attribute has an object - // `contentDocument` with a `null` prototype. - getProto( elem.contentDocument ) ) { - - return elem.contentDocument; - } - - // Support: IE 9 - 11 only, iOS 7 only, Android Browser <=4.3 only - // Treat the template element as a regular one in browsers that - // don't support it. - if ( nodeName( elem, "template" ) ) { - elem = elem.content || elem; - } - - return jQuery.merge( [], elem.childNodes ); - } -}, function( name, fn ) { - jQuery.fn[ name ] = function( until, selector ) { - var matched = jQuery.map( this, fn, until ); - - if ( name.slice( -5 ) !== "Until" ) { - selector = until; - } - - if ( selector && typeof selector === "string" ) { - matched = jQuery.filter( selector, matched ); - } - - if ( this.length > 1 ) { - - // Remove duplicates - if ( !guaranteedUnique[ name ] ) { - jQuery.uniqueSort( matched ); - } - - // Reverse order for parents* and prev-derivatives - if ( rparentsprev.test( name ) ) { - matched.reverse(); - } - } - - return this.pushStack( matched ); - }; -} ); -var rnothtmlwhite = ( /[^\x20\t\r\n\f]+/g ); - - - -// Convert String-formatted options into Object-formatted ones -function createOptions( options ) { - var object = {}; - jQuery.each( options.match( rnothtmlwhite ) || [], function( _, flag ) { - object[ flag ] = true; - } ); - return object; -} - -/* - * Create a callback list using the following parameters: - * - * options: an optional list of space-separated options that will change how - * the callback list behaves or a more traditional option object - * - * By default a callback list will act like an event callback list and can be - * "fired" multiple times. - * - * Possible options: - * - * once: will ensure the callback list can only be fired once (like a Deferred) - * - * memory: will keep track of previous values and will call any callback added - * after the list has been fired right away with the latest "memorized" - * values (like a Deferred) - * - * unique: will ensure a callback can only be added once (no duplicate in the list) - * - * stopOnFalse: interrupt callings when a callback returns false - * - */ -jQuery.Callbacks = function( options ) { - - // Convert options from String-formatted to Object-formatted if needed - // (we check in cache first) - options = typeof options === "string" ? - createOptions( options ) : - jQuery.extend( {}, options ); - - var // Flag to know if list is currently firing - firing, - - // Last fire value for non-forgettable lists - memory, - - // Flag to know if list was already fired - fired, - - // Flag to prevent firing - locked, - - // Actual callback list - list = [], - - // Queue of execution data for repeatable lists - queue = [], - - // Index of currently firing callback (modified by add/remove as needed) - firingIndex = -1, - - // Fire callbacks - fire = function() { - - // Enforce single-firing - locked = locked || options.once; - - // Execute callbacks for all pending executions, - // respecting firingIndex overrides and runtime changes - fired = firing = true; - for ( ; queue.length; firingIndex = -1 ) { - memory = queue.shift(); - while ( ++firingIndex < list.length ) { - - // Run callback and check for early termination - if ( list[ firingIndex ].apply( memory[ 0 ], memory[ 1 ] ) === false && - options.stopOnFalse ) { - - // Jump to end and forget the data so .add doesn't re-fire - firingIndex = list.length; - memory = false; - } - } - } - - // Forget the data if we're done with it - if ( !options.memory ) { - memory = false; - } - - firing = false; - - // Clean up if we're done firing for good - if ( locked ) { - - // Keep an empty list if we have data for future add calls - if ( memory ) { - list = []; - - // Otherwise, this object is spent - } else { - list = ""; - } - } - }, - - // Actual Callbacks object - self = { - - // Add a callback or a collection of callbacks to the list - add: function() { - if ( list ) { - - // If we have memory from a past run, we should fire after adding - if ( memory && !firing ) { - firingIndex = list.length - 1; - queue.push( memory ); - } - - ( function add( args ) { - jQuery.each( args, function( _, arg ) { - if ( isFunction( arg ) ) { - if ( !options.unique || !self.has( arg ) ) { - list.push( arg ); - } - } else if ( arg && arg.length && toType( arg ) !== "string" ) { - - // Inspect recursively - add( arg ); - } - } ); - } )( arguments ); - - if ( memory && !firing ) { - fire(); - } - } - return this; - }, - - // Remove a callback from the list - remove: function() { - jQuery.each( arguments, function( _, arg ) { - var index; - while ( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) { - list.splice( index, 1 ); - - // Handle firing indexes - if ( index <= firingIndex ) { - firingIndex--; - } - } - } ); - return this; - }, - - // Check if a given callback is in the list. - // If no argument is given, return whether or not list has callbacks attached. - has: function( fn ) { - return fn ? - jQuery.inArray( fn, list ) > -1 : - list.length > 0; - }, - - // Remove all callbacks from the list - empty: function() { - if ( list ) { - list = []; - } - return this; - }, - - // Disable .fire and .add - // Abort any current/pending executions - // Clear all callbacks and values - disable: function() { - locked = queue = []; - list = memory = ""; - return this; - }, - disabled: function() { - return !list; - }, - - // Disable .fire - // Also disable .add unless we have memory (since it would have no effect) - // Abort any pending executions - lock: function() { - locked = queue = []; - if ( !memory && !firing ) { - list = memory = ""; - } - return this; - }, - locked: function() { - return !!locked; - }, - - // Call all callbacks with the given context and arguments - fireWith: function( context, args ) { - if ( !locked ) { - args = args || []; - args = [ context, args.slice ? args.slice() : args ]; - queue.push( args ); - if ( !firing ) { - fire(); - } - } - return this; - }, - - // Call all the callbacks with the given arguments - fire: function() { - self.fireWith( this, arguments ); - return this; - }, - - // To know if the callbacks have already been called at least once - fired: function() { - return !!fired; - } - }; - - return self; -}; - - -function Identity( v ) { - return v; -} -function Thrower( ex ) { - throw ex; -} - -function adoptValue( value, resolve, reject, noValue ) { - var method; - - try { - - // Check for promise aspect first to privilege synchronous behavior - if ( value && isFunction( ( method = value.promise ) ) ) { - method.call( value ).done( resolve ).fail( reject ); - - // Other thenables - } else if ( value && isFunction( ( method = value.then ) ) ) { - method.call( value, resolve, reject ); - - // Other non-thenables - } else { - - // Control `resolve` arguments by letting Array#slice cast boolean `noValue` to integer: - // * false: [ value ].slice( 0 ) => resolve( value ) - // * true: [ value ].slice( 1 ) => resolve() - resolve.apply( undefined, [ value ].slice( noValue ) ); - } - - // For Promises/A+, convert exceptions into rejections - // Since jQuery.when doesn't unwrap thenables, we can skip the extra checks appearing in - // Deferred#then to conditionally suppress rejection. - } catch ( value ) { - - // Support: Android 4.0 only - // Strict mode functions invoked without .call/.apply get global-object context - reject.apply( undefined, [ value ] ); - } -} - -jQuery.extend( { - - Deferred: function( func ) { - var tuples = [ - - // action, add listener, callbacks, - // ... .then handlers, argument index, [final state] - [ "notify", "progress", jQuery.Callbacks( "memory" ), - jQuery.Callbacks( "memory" ), 2 ], - [ "resolve", "done", jQuery.Callbacks( "once memory" ), - jQuery.Callbacks( "once memory" ), 0, "resolved" ], - [ "reject", "fail", jQuery.Callbacks( "once memory" ), - jQuery.Callbacks( "once memory" ), 1, "rejected" ] - ], - state = "pending", - promise = { - state: function() { - return state; - }, - always: function() { - deferred.done( arguments ).fail( arguments ); - return this; - }, - "catch": function( fn ) { - return promise.then( null, fn ); - }, - - // Keep pipe for back-compat - pipe: function( /* fnDone, fnFail, fnProgress */ ) { - var fns = arguments; - - return jQuery.Deferred( function( newDefer ) { - jQuery.each( tuples, function( _i, tuple ) { - - // Map tuples (progress, done, fail) to arguments (done, fail, progress) - var fn = isFunction( fns[ tuple[ 4 ] ] ) && fns[ tuple[ 4 ] ]; - - // deferred.progress(function() { bind to newDefer or newDefer.notify }) - // deferred.done(function() { bind to newDefer or newDefer.resolve }) - // deferred.fail(function() { bind to newDefer or newDefer.reject }) - deferred[ tuple[ 1 ] ]( function() { - var returned = fn && fn.apply( this, arguments ); - if ( returned && isFunction( returned.promise ) ) { - returned.promise() - .progress( newDefer.notify ) - .done( newDefer.resolve ) - .fail( newDefer.reject ); - } else { - newDefer[ tuple[ 0 ] + "With" ]( - this, - fn ? [ returned ] : arguments - ); - } - } ); - } ); - fns = null; - } ).promise(); - }, - then: function( onFulfilled, onRejected, onProgress ) { - var maxDepth = 0; - function resolve( depth, deferred, handler, special ) { - return function() { - var that = this, - args = arguments, - mightThrow = function() { - var returned, then; - - // Support: Promises/A+ section 2.3.3.3.3 - // https://promisesaplus.com/#point-59 - // Ignore double-resolution attempts - if ( depth < maxDepth ) { - return; - } - - returned = handler.apply( that, args ); - - // Support: Promises/A+ section 2.3.1 - // https://promisesaplus.com/#point-48 - if ( returned === deferred.promise() ) { - throw new TypeError( "Thenable self-resolution" ); - } - - // Support: Promises/A+ sections 2.3.3.1, 3.5 - // https://promisesaplus.com/#point-54 - // https://promisesaplus.com/#point-75 - // Retrieve `then` only once - then = returned && - - // Support: Promises/A+ section 2.3.4 - // https://promisesaplus.com/#point-64 - // Only check objects and functions for thenability - ( typeof returned === "object" || - typeof returned === "function" ) && - returned.then; - - // Handle a returned thenable - if ( isFunction( then ) ) { - - // Special processors (notify) just wait for resolution - if ( special ) { - then.call( - returned, - resolve( maxDepth, deferred, Identity, special ), - resolve( maxDepth, deferred, Thrower, special ) - ); - - // Normal processors (resolve) also hook into progress - } else { - - // ...and disregard older resolution values - maxDepth++; - - then.call( - returned, - resolve( maxDepth, deferred, Identity, special ), - resolve( maxDepth, deferred, Thrower, special ), - resolve( maxDepth, deferred, Identity, - deferred.notifyWith ) - ); - } - - // Handle all other returned values - } else { - - // Only substitute handlers pass on context - // and multiple values (non-spec behavior) - if ( handler !== Identity ) { - that = undefined; - args = [ returned ]; - } - - // Process the value(s) - // Default process is resolve - ( special || deferred.resolveWith )( that, args ); - } - }, - - // Only normal processors (resolve) catch and reject exceptions - process = special ? - mightThrow : - function() { - try { - mightThrow(); - } catch ( e ) { - - if ( jQuery.Deferred.exceptionHook ) { - jQuery.Deferred.exceptionHook( e, - process.stackTrace ); - } - - // Support: Promises/A+ section 2.3.3.3.4.1 - // https://promisesaplus.com/#point-61 - // Ignore post-resolution exceptions - if ( depth + 1 >= maxDepth ) { - - // Only substitute handlers pass on context - // and multiple values (non-spec behavior) - if ( handler !== Thrower ) { - that = undefined; - args = [ e ]; - } - - deferred.rejectWith( that, args ); - } - } - }; - - // Support: Promises/A+ section 2.3.3.3.1 - // https://promisesaplus.com/#point-57 - // Re-resolve promises immediately to dodge false rejection from - // subsequent errors - if ( depth ) { - process(); - } else { - - // Call an optional hook to record the stack, in case of exception - // since it's otherwise lost when execution goes async - if ( jQuery.Deferred.getStackHook ) { - process.stackTrace = jQuery.Deferred.getStackHook(); - } - window.setTimeout( process ); - } - }; - } - - return jQuery.Deferred( function( newDefer ) { - - // progress_handlers.add( ... ) - tuples[ 0 ][ 3 ].add( - resolve( - 0, - newDefer, - isFunction( onProgress ) ? - onProgress : - Identity, - newDefer.notifyWith - ) - ); - - // fulfilled_handlers.add( ... ) - tuples[ 1 ][ 3 ].add( - resolve( - 0, - newDefer, - isFunction( onFulfilled ) ? - onFulfilled : - Identity - ) - ); - - // rejected_handlers.add( ... ) - tuples[ 2 ][ 3 ].add( - resolve( - 0, - newDefer, - isFunction( onRejected ) ? - onRejected : - Thrower - ) - ); - } ).promise(); - }, - - // Get a promise for this deferred - // If obj is provided, the promise aspect is added to the object - promise: function( obj ) { - return obj != null ? jQuery.extend( obj, promise ) : promise; - } - }, - deferred = {}; - - // Add list-specific methods - jQuery.each( tuples, function( i, tuple ) { - var list = tuple[ 2 ], - stateString = tuple[ 5 ]; - - // promise.progress = list.add - // promise.done = list.add - // promise.fail = list.add - promise[ tuple[ 1 ] ] = list.add; - - // Handle state - if ( stateString ) { - list.add( - function() { - - // state = "resolved" (i.e., fulfilled) - // state = "rejected" - state = stateString; - }, - - // rejected_callbacks.disable - // fulfilled_callbacks.disable - tuples[ 3 - i ][ 2 ].disable, - - // rejected_handlers.disable - // fulfilled_handlers.disable - tuples[ 3 - i ][ 3 ].disable, - - // progress_callbacks.lock - tuples[ 0 ][ 2 ].lock, - - // progress_handlers.lock - tuples[ 0 ][ 3 ].lock - ); - } - - // progress_handlers.fire - // fulfilled_handlers.fire - // rejected_handlers.fire - list.add( tuple[ 3 ].fire ); - - // deferred.notify = function() { deferred.notifyWith(...) } - // deferred.resolve = function() { deferred.resolveWith(...) } - // deferred.reject = function() { deferred.rejectWith(...) } - deferred[ tuple[ 0 ] ] = function() { - deferred[ tuple[ 0 ] + "With" ]( this === deferred ? undefined : this, arguments ); - return this; - }; - - // deferred.notifyWith = list.fireWith - // deferred.resolveWith = list.fireWith - // deferred.rejectWith = list.fireWith - deferred[ tuple[ 0 ] + "With" ] = list.fireWith; - } ); - - // Make the deferred a promise - promise.promise( deferred ); - - // Call given func if any - if ( func ) { - func.call( deferred, deferred ); - } - - // All done! - return deferred; - }, - - // Deferred helper - when: function( singleValue ) { - var - - // count of uncompleted subordinates - remaining = arguments.length, - - // count of unprocessed arguments - i = remaining, - - // subordinate fulfillment data - resolveContexts = Array( i ), - resolveValues = slice.call( arguments ), - - // the primary Deferred - primary = jQuery.Deferred(), - - // subordinate callback factory - updateFunc = function( i ) { - return function( value ) { - resolveContexts[ i ] = this; - resolveValues[ i ] = arguments.length > 1 ? slice.call( arguments ) : value; - if ( !( --remaining ) ) { - primary.resolveWith( resolveContexts, resolveValues ); - } - }; - }; - - // Single- and empty arguments are adopted like Promise.resolve - if ( remaining <= 1 ) { - adoptValue( singleValue, primary.done( updateFunc( i ) ).resolve, primary.reject, - !remaining ); - - // Use .then() to unwrap secondary thenables (cf. gh-3000) - if ( primary.state() === "pending" || - isFunction( resolveValues[ i ] && resolveValues[ i ].then ) ) { - - return primary.then(); - } - } - - // Multiple arguments are aggregated like Promise.all array elements - while ( i-- ) { - adoptValue( resolveValues[ i ], updateFunc( i ), primary.reject ); - } - - return primary.promise(); - } -} ); - - -// These usually indicate a programmer mistake during development, -// warn about them ASAP rather than swallowing them by default. -var rerrorNames = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/; - -jQuery.Deferred.exceptionHook = function( error, stack ) { - - // Support: IE 8 - 9 only - // Console exists when dev tools are open, which can happen at any time - if ( window.console && window.console.warn && error && rerrorNames.test( error.name ) ) { - window.console.warn( "jQuery.Deferred exception: " + error.message, error.stack, stack ); - } -}; - - - - -jQuery.readyException = function( error ) { - window.setTimeout( function() { - throw error; - } ); -}; - - - - -// The deferred used on DOM ready -var readyList = jQuery.Deferred(); - -jQuery.fn.ready = function( fn ) { - - readyList - .then( fn ) - - // Wrap jQuery.readyException in a function so that the lookup - // happens at the time of error handling instead of callback - // registration. - .catch( function( error ) { - jQuery.readyException( error ); - } ); - - return this; -}; - -jQuery.extend( { - - // Is the DOM ready to be used? Set to true once it occurs. - isReady: false, - - // A counter to track how many items to wait for before - // the ready event fires. See #6781 - readyWait: 1, - - // Handle when the DOM is ready - ready: function( wait ) { - - // Abort if there are pending holds or we're already ready - if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) { - return; - } - - // Remember that the DOM is ready - jQuery.isReady = true; - - // If a normal DOM Ready event fired, decrement, and wait if need be - if ( wait !== true && --jQuery.readyWait > 0 ) { - return; - } - - // If there are functions bound, to execute - readyList.resolveWith( document, [ jQuery ] ); - } -} ); - -jQuery.ready.then = readyList.then; - -// The ready event handler and self cleanup method -function completed() { - document.removeEventListener( "DOMContentLoaded", completed ); - window.removeEventListener( "load", completed ); - jQuery.ready(); -} - -// Catch cases where $(document).ready() is called -// after the browser event has already occurred. -// Support: IE <=9 - 10 only -// Older IE sometimes signals "interactive" too soon -if ( document.readyState === "complete" || - ( document.readyState !== "loading" && !document.documentElement.doScroll ) ) { - - // Handle it asynchronously to allow scripts the opportunity to delay ready - window.setTimeout( jQuery.ready ); - -} else { - - // Use the handy event callback - document.addEventListener( "DOMContentLoaded", completed ); - - // A fallback to window.onload, that will always work - window.addEventListener( "load", completed ); -} - - - - -// Multifunctional method to get and set values of a collection -// The value/s can optionally be executed if it's a function -var access = function( elems, fn, key, value, chainable, emptyGet, raw ) { - var i = 0, - len = elems.length, - bulk = key == null; - - // Sets many values - if ( toType( key ) === "object" ) { - chainable = true; - for ( i in key ) { - access( elems, fn, i, key[ i ], true, emptyGet, raw ); - } - - // Sets one value - } else if ( value !== undefined ) { - chainable = true; - - if ( !isFunction( value ) ) { - raw = true; - } - - if ( bulk ) { - - // Bulk operations run against the entire set - if ( raw ) { - fn.call( elems, value ); - fn = null; - - // ...except when executing function values - } else { - bulk = fn; - fn = function( elem, _key, value ) { - return bulk.call( jQuery( elem ), value ); - }; - } - } - - if ( fn ) { - for ( ; i < len; i++ ) { - fn( - elems[ i ], key, raw ? - value : - value.call( elems[ i ], i, fn( elems[ i ], key ) ) - ); - } - } - } - - if ( chainable ) { - return elems; - } - - // Gets - if ( bulk ) { - return fn.call( elems ); - } - - return len ? fn( elems[ 0 ], key ) : emptyGet; -}; - - -// Matches dashed string for camelizing -var rmsPrefix = /^-ms-/, - rdashAlpha = /-([a-z])/g; - -// Used by camelCase as callback to replace() -function fcamelCase( _all, letter ) { - return letter.toUpperCase(); -} - -// Convert dashed to camelCase; used by the css and data modules -// Support: IE <=9 - 11, Edge 12 - 15 -// Microsoft forgot to hump their vendor prefix (#9572) -function camelCase( string ) { - return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase ); -} -var acceptData = function( owner ) { - - // Accepts only: - // - Node - // - Node.ELEMENT_NODE - // - Node.DOCUMENT_NODE - // - Object - // - Any - return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType ); -}; - - - - -function Data() { - this.expando = jQuery.expando + Data.uid++; -} - -Data.uid = 1; - -Data.prototype = { - - cache: function( owner ) { - - // Check if the owner object already has a cache - var value = owner[ this.expando ]; - - // If not, create one - if ( !value ) { - value = {}; - - // We can accept data for non-element nodes in modern browsers, - // but we should not, see #8335. - // Always return an empty object. - if ( acceptData( owner ) ) { - - // If it is a node unlikely to be stringify-ed or looped over - // use plain assignment - if ( owner.nodeType ) { - owner[ this.expando ] = value; - - // Otherwise secure it in a non-enumerable property - // configurable must be true to allow the property to be - // deleted when data is removed - } else { - Object.defineProperty( owner, this.expando, { - value: value, - configurable: true - } ); - } - } - } - - return value; - }, - set: function( owner, data, value ) { - var prop, - cache = this.cache( owner ); - - // Handle: [ owner, key, value ] args - // Always use camelCase key (gh-2257) - if ( typeof data === "string" ) { - cache[ camelCase( data ) ] = value; - - // Handle: [ owner, { properties } ] args - } else { - - // Copy the properties one-by-one to the cache object - for ( prop in data ) { - cache[ camelCase( prop ) ] = data[ prop ]; - } - } - return cache; - }, - get: function( owner, key ) { - return key === undefined ? - this.cache( owner ) : - - // Always use camelCase key (gh-2257) - owner[ this.expando ] && owner[ this.expando ][ camelCase( key ) ]; - }, - access: function( owner, key, value ) { - - // In cases where either: - // - // 1. No key was specified - // 2. A string key was specified, but no value provided - // - // Take the "read" path and allow the get method to determine - // which value to return, respectively either: - // - // 1. The entire cache object - // 2. The data stored at the key - // - if ( key === undefined || - ( ( key && typeof key === "string" ) && value === undefined ) ) { - - return this.get( owner, key ); - } - - // When the key is not a string, or both a key and value - // are specified, set or extend (existing objects) with either: - // - // 1. An object of properties - // 2. A key and value - // - this.set( owner, key, value ); - - // Since the "set" path can have two possible entry points - // return the expected data based on which path was taken[*] - return value !== undefined ? value : key; - }, - remove: function( owner, key ) { - var i, - cache = owner[ this.expando ]; - - if ( cache === undefined ) { - return; - } - - if ( key !== undefined ) { - - // Support array or space separated string of keys - if ( Array.isArray( key ) ) { - - // If key is an array of keys... - // We always set camelCase keys, so remove that. - key = key.map( camelCase ); - } else { - key = camelCase( key ); - - // If a key with the spaces exists, use it. - // Otherwise, create an array by matching non-whitespace - key = key in cache ? - [ key ] : - ( key.match( rnothtmlwhite ) || [] ); - } - - i = key.length; - - while ( i-- ) { - delete cache[ key[ i ] ]; - } - } - - // Remove the expando if there's no more data - if ( key === undefined || jQuery.isEmptyObject( cache ) ) { - - // Support: Chrome <=35 - 45 - // Webkit & Blink performance suffers when deleting properties - // from DOM nodes, so set to undefined instead - // https://bugs.chromium.org/p/chromium/issues/detail?id=378607 (bug restricted) - if ( owner.nodeType ) { - owner[ this.expando ] = undefined; - } else { - delete owner[ this.expando ]; - } - } - }, - hasData: function( owner ) { - var cache = owner[ this.expando ]; - return cache !== undefined && !jQuery.isEmptyObject( cache ); - } -}; -var dataPriv = new Data(); - -var dataUser = new Data(); - - - -// Implementation Summary -// -// 1. Enforce API surface and semantic compatibility with 1.9.x branch -// 2. Improve the module's maintainability by reducing the storage -// paths to a single mechanism. -// 3. Use the same single mechanism to support "private" and "user" data. -// 4. _Never_ expose "private" data to user code (TODO: Drop _data, _removeData) -// 5. Avoid exposing implementation details on user objects (eg. expando properties) -// 6. Provide a clear path for implementation upgrade to WeakMap in 2014 - -var rbrace = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/, - rmultiDash = /[A-Z]/g; - -function getData( data ) { - if ( data === "true" ) { - return true; - } - - if ( data === "false" ) { - return false; - } - - if ( data === "null" ) { - return null; - } - - // Only convert to a number if it doesn't change the string - if ( data === +data + "" ) { - return +data; - } - - if ( rbrace.test( data ) ) { - return JSON.parse( data ); - } - - return data; -} - -function dataAttr( elem, key, data ) { - var name; - - // If nothing was found internally, try to fetch any - // data from the HTML5 data-* attribute - if ( data === undefined && elem.nodeType === 1 ) { - name = "data-" + key.replace( rmultiDash, "-$&" ).toLowerCase(); - data = elem.getAttribute( name ); - - if ( typeof data === "string" ) { - try { - data = getData( data ); - } catch ( e ) {} - - // Make sure we set the data so it isn't changed later - dataUser.set( elem, key, data ); - } else { - data = undefined; - } - } - return data; -} - -jQuery.extend( { - hasData: function( elem ) { - return dataUser.hasData( elem ) || dataPriv.hasData( elem ); - }, - - data: function( elem, name, data ) { - return dataUser.access( elem, name, data ); - }, - - removeData: function( elem, name ) { - dataUser.remove( elem, name ); - }, - - // TODO: Now that all calls to _data and _removeData have been replaced - // with direct calls to dataPriv methods, these can be deprecated. - _data: function( elem, name, data ) { - return dataPriv.access( elem, name, data ); - }, - - _removeData: function( elem, name ) { - dataPriv.remove( elem, name ); - } -} ); - -jQuery.fn.extend( { - data: function( key, value ) { - var i, name, data, - elem = this[ 0 ], - attrs = elem && elem.attributes; - - // Gets all values - if ( key === undefined ) { - if ( this.length ) { - data = dataUser.get( elem ); - - if ( elem.nodeType === 1 && !dataPriv.get( elem, "hasDataAttrs" ) ) { - i = attrs.length; - while ( i-- ) { - - // Support: IE 11 only - // The attrs elements can be null (#14894) - if ( attrs[ i ] ) { - name = attrs[ i ].name; - if ( name.indexOf( "data-" ) === 0 ) { - name = camelCase( name.slice( 5 ) ); - dataAttr( elem, name, data[ name ] ); - } - } - } - dataPriv.set( elem, "hasDataAttrs", true ); - } - } - - return data; - } - - // Sets multiple values - if ( typeof key === "object" ) { - return this.each( function() { - dataUser.set( this, key ); - } ); - } - - return access( this, function( value ) { - var data; - - // The calling jQuery object (element matches) is not empty - // (and therefore has an element appears at this[ 0 ]) and the - // `value` parameter was not undefined. An empty jQuery object - // will result in `undefined` for elem = this[ 0 ] which will - // throw an exception if an attempt to read a data cache is made. - if ( elem && value === undefined ) { - - // Attempt to get data from the cache - // The key will always be camelCased in Data - data = dataUser.get( elem, key ); - if ( data !== undefined ) { - return data; - } - - // Attempt to "discover" the data in - // HTML5 custom data-* attrs - data = dataAttr( elem, key ); - if ( data !== undefined ) { - return data; - } - - // We tried really hard, but the data doesn't exist. - return; - } - - // Set the data... - this.each( function() { - - // We always store the camelCased key - dataUser.set( this, key, value ); - } ); - }, null, value, arguments.length > 1, null, true ); - }, - - removeData: function( key ) { - return this.each( function() { - dataUser.remove( this, key ); - } ); - } -} ); - - -jQuery.extend( { - queue: function( elem, type, data ) { - var queue; - - if ( elem ) { - type = ( type || "fx" ) + "queue"; - queue = dataPriv.get( elem, type ); - - // Speed up dequeue by getting out quickly if this is just a lookup - if ( data ) { - if ( !queue || Array.isArray( data ) ) { - queue = dataPriv.access( elem, type, jQuery.makeArray( data ) ); - } else { - queue.push( data ); - } - } - return queue || []; - } - }, - - dequeue: function( elem, type ) { - type = type || "fx"; - - var queue = jQuery.queue( elem, type ), - startLength = queue.length, - fn = queue.shift(), - hooks = jQuery._queueHooks( elem, type ), - next = function() { - jQuery.dequeue( elem, type ); - }; - - // If the fx queue is dequeued, always remove the progress sentinel - if ( fn === "inprogress" ) { - fn = queue.shift(); - startLength--; - } - - if ( fn ) { - - // Add a progress sentinel to prevent the fx queue from being - // automatically dequeued - if ( type === "fx" ) { - queue.unshift( "inprogress" ); - } - - // Clear up the last queue stop function - delete hooks.stop; - fn.call( elem, next, hooks ); - } - - if ( !startLength && hooks ) { - hooks.empty.fire(); - } - }, - - // Not public - generate a queueHooks object, or return the current one - _queueHooks: function( elem, type ) { - var key = type + "queueHooks"; - return dataPriv.get( elem, key ) || dataPriv.access( elem, key, { - empty: jQuery.Callbacks( "once memory" ).add( function() { - dataPriv.remove( elem, [ type + "queue", key ] ); - } ) - } ); - } -} ); - -jQuery.fn.extend( { - queue: function( type, data ) { - var setter = 2; - - if ( typeof type !== "string" ) { - data = type; - type = "fx"; - setter--; - } - - if ( arguments.length < setter ) { - return jQuery.queue( this[ 0 ], type ); - } - - return data === undefined ? - this : - this.each( function() { - var queue = jQuery.queue( this, type, data ); - - // Ensure a hooks for this queue - jQuery._queueHooks( this, type ); - - if ( type === "fx" && queue[ 0 ] !== "inprogress" ) { - jQuery.dequeue( this, type ); - } - } ); - }, - dequeue: function( type ) { - return this.each( function() { - jQuery.dequeue( this, type ); - } ); - }, - clearQueue: function( type ) { - return this.queue( type || "fx", [] ); - }, - - // Get a promise resolved when queues of a certain type - // are emptied (fx is the type by default) - promise: function( type, obj ) { - var tmp, - count = 1, - defer = jQuery.Deferred(), - elements = this, - i = this.length, - resolve = function() { - if ( !( --count ) ) { - defer.resolveWith( elements, [ elements ] ); - } - }; - - if ( typeof type !== "string" ) { - obj = type; - type = undefined; - } - type = type || "fx"; - - while ( i-- ) { - tmp = dataPriv.get( elements[ i ], type + "queueHooks" ); - if ( tmp && tmp.empty ) { - count++; - tmp.empty.add( resolve ); - } - } - resolve(); - return defer.promise( obj ); - } -} ); -var pnum = ( /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/ ).source; - -var rcssNum = new RegExp( "^(?:([+-])=|)(" + pnum + ")([a-z%]*)$", "i" ); - - -var cssExpand = [ "Top", "Right", "Bottom", "Left" ]; - -var documentElement = document.documentElement; - - - - var isAttached = function( elem ) { - return jQuery.contains( elem.ownerDocument, elem ); - }, - composed = { composed: true }; - - // Support: IE 9 - 11+, Edge 12 - 18+, iOS 10.0 - 10.2 only - // Check attachment across shadow DOM boundaries when possible (gh-3504) - // Support: iOS 10.0-10.2 only - // Early iOS 10 versions support `attachShadow` but not `getRootNode`, - // leading to errors. We need to check for `getRootNode`. - if ( documentElement.getRootNode ) { - isAttached = function( elem ) { - return jQuery.contains( elem.ownerDocument, elem ) || - elem.getRootNode( composed ) === elem.ownerDocument; - }; - } -var isHiddenWithinTree = function( elem, el ) { - - // isHiddenWithinTree might be called from jQuery#filter function; - // in that case, element will be second argument - elem = el || elem; - - // Inline style trumps all - return elem.style.display === "none" || - elem.style.display === "" && - - // Otherwise, check computed style - // Support: Firefox <=43 - 45 - // Disconnected elements can have computed display: none, so first confirm that elem is - // in the document. - isAttached( elem ) && - - jQuery.css( elem, "display" ) === "none"; - }; - - - -function adjustCSS( elem, prop, valueParts, tween ) { - var adjusted, scale, - maxIterations = 20, - currentValue = tween ? - function() { - return tween.cur(); - } : - function() { - return jQuery.css( elem, prop, "" ); - }, - initial = currentValue(), - unit = valueParts && valueParts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ), - - // Starting value computation is required for potential unit mismatches - initialInUnit = elem.nodeType && - ( jQuery.cssNumber[ prop ] || unit !== "px" && +initial ) && - rcssNum.exec( jQuery.css( elem, prop ) ); - - if ( initialInUnit && initialInUnit[ 3 ] !== unit ) { - - // Support: Firefox <=54 - // Halve the iteration target value to prevent interference from CSS upper bounds (gh-2144) - initial = initial / 2; - - // Trust units reported by jQuery.css - unit = unit || initialInUnit[ 3 ]; - - // Iteratively approximate from a nonzero starting point - initialInUnit = +initial || 1; - - while ( maxIterations-- ) { - - // Evaluate and update our best guess (doubling guesses that zero out). - // Finish if the scale equals or crosses 1 (making the old*new product non-positive). - jQuery.style( elem, prop, initialInUnit + unit ); - if ( ( 1 - scale ) * ( 1 - ( scale = currentValue() / initial || 0.5 ) ) <= 0 ) { - maxIterations = 0; - } - initialInUnit = initialInUnit / scale; - - } - - initialInUnit = initialInUnit * 2; - jQuery.style( elem, prop, initialInUnit + unit ); - - // Make sure we update the tween properties later on - valueParts = valueParts || []; - } - - if ( valueParts ) { - initialInUnit = +initialInUnit || +initial || 0; - - // Apply relative offset (+=/-=) if specified - adjusted = valueParts[ 1 ] ? - initialInUnit + ( valueParts[ 1 ] + 1 ) * valueParts[ 2 ] : - +valueParts[ 2 ]; - if ( tween ) { - tween.unit = unit; - tween.start = initialInUnit; - tween.end = adjusted; - } - } - return adjusted; -} - - -var defaultDisplayMap = {}; - -function getDefaultDisplay( elem ) { - var temp, - doc = elem.ownerDocument, - nodeName = elem.nodeName, - display = defaultDisplayMap[ nodeName ]; - - if ( display ) { - return display; - } - - temp = doc.body.appendChild( doc.createElement( nodeName ) ); - display = jQuery.css( temp, "display" ); - - temp.parentNode.removeChild( temp ); - - if ( display === "none" ) { - display = "block"; - } - defaultDisplayMap[ nodeName ] = display; - - return display; -} - -function showHide( elements, show ) { - var display, elem, - values = [], - index = 0, - length = elements.length; - - // Determine new display value for elements that need to change - for ( ; index < length; index++ ) { - elem = elements[ index ]; - if ( !elem.style ) { - continue; - } - - display = elem.style.display; - if ( show ) { - - // Since we force visibility upon cascade-hidden elements, an immediate (and slow) - // check is required in this first loop unless we have a nonempty display value (either - // inline or about-to-be-restored) - if ( display === "none" ) { - values[ index ] = dataPriv.get( elem, "display" ) || null; - if ( !values[ index ] ) { - elem.style.display = ""; - } - } - if ( elem.style.display === "" && isHiddenWithinTree( elem ) ) { - values[ index ] = getDefaultDisplay( elem ); - } - } else { - if ( display !== "none" ) { - values[ index ] = "none"; - - // Remember what we're overwriting - dataPriv.set( elem, "display", display ); - } - } - } - - // Set the display of the elements in a second loop to avoid constant reflow - for ( index = 0; index < length; index++ ) { - if ( values[ index ] != null ) { - elements[ index ].style.display = values[ index ]; - } - } - - return elements; -} - -jQuery.fn.extend( { - show: function() { - return showHide( this, true ); - }, - hide: function() { - return showHide( this ); - }, - toggle: function( state ) { - if ( typeof state === "boolean" ) { - return state ? this.show() : this.hide(); - } - - return this.each( function() { - if ( isHiddenWithinTree( this ) ) { - jQuery( this ).show(); - } else { - jQuery( this ).hide(); - } - } ); - } -} ); -var rcheckableType = ( /^(?:checkbox|radio)$/i ); - -var rtagName = ( /<([a-z][^\/\0>\x20\t\r\n\f]*)/i ); - -var rscriptType = ( /^$|^module$|\/(?:java|ecma)script/i ); - - - -( function() { - var fragment = document.createDocumentFragment(), - div = fragment.appendChild( document.createElement( "div" ) ), - input = document.createElement( "input" ); - - // Support: Android 4.0 - 4.3 only - // Check state lost if the name is set (#11217) - // Support: Windows Web Apps (WWA) - // `name` and `type` must use .setAttribute for WWA (#14901) - input.setAttribute( "type", "radio" ); - input.setAttribute( "checked", "checked" ); - input.setAttribute( "name", "t" ); - - div.appendChild( input ); - - // Support: Android <=4.1 only - // Older WebKit doesn't clone checked state correctly in fragments - support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked; - - // Support: IE <=11 only - // Make sure textarea (and checkbox) defaultValue is properly cloned - div.innerHTML = "<textarea>x</textarea>"; - support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue; - - // Support: IE <=9 only - // IE <=9 replaces <option> tags with their contents when inserted outside of - // the select element. - div.innerHTML = "<option></option>"; - support.option = !!div.lastChild; -} )(); - - -// We have to close these tags to support XHTML (#13200) -var wrapMap = { - - // XHTML parsers do not magically insert elements in the - // same way that tag soup parsers do. So we cannot shorten - // this by omitting <tbody> or other required elements. - thead: [ 1, "<table>", "</table>" ], - col: [ 2, "<table><colgroup>", "</colgroup></table>" ], - tr: [ 2, "<table><tbody>", "</tbody></table>" ], - td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ], - - _default: [ 0, "", "" ] -}; - -wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead; -wrapMap.th = wrapMap.td; - -// Support: IE <=9 only -if ( !support.option ) { - wrapMap.optgroup = wrapMap.option = [ 1, "<select multiple='multiple'>", "</select>" ]; -} - - -function getAll( context, tag ) { - - // Support: IE <=9 - 11 only - // Use typeof to avoid zero-argument method invocation on host objects (#15151) - var ret; - - if ( typeof context.getElementsByTagName !== "undefined" ) { - ret = context.getElementsByTagName( tag || "*" ); - - } else if ( typeof context.querySelectorAll !== "undefined" ) { - ret = context.querySelectorAll( tag || "*" ); - - } else { - ret = []; - } - - if ( tag === undefined || tag && nodeName( context, tag ) ) { - return jQuery.merge( [ context ], ret ); - } - - return ret; -} - - -// Mark scripts as having already been evaluated -function setGlobalEval( elems, refElements ) { - var i = 0, - l = elems.length; - - for ( ; i < l; i++ ) { - dataPriv.set( - elems[ i ], - "globalEval", - !refElements || dataPriv.get( refElements[ i ], "globalEval" ) - ); - } -} - - -var rhtml = /<|&#?\w+;/; - -function buildFragment( elems, context, scripts, selection, ignored ) { - var elem, tmp, tag, wrap, attached, j, - fragment = context.createDocumentFragment(), - nodes = [], - i = 0, - l = elems.length; - - for ( ; i < l; i++ ) { - elem = elems[ i ]; - - if ( elem || elem === 0 ) { - - // Add nodes directly - if ( toType( elem ) === "object" ) { - - // Support: Android <=4.0 only, PhantomJS 1 only - // push.apply(_, arraylike) throws on ancient WebKit - jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem ); - - // Convert non-html into a text node - } else if ( !rhtml.test( elem ) ) { - nodes.push( context.createTextNode( elem ) ); - - // Convert html into DOM nodes - } else { - tmp = tmp || fragment.appendChild( context.createElement( "div" ) ); - - // Deserialize a standard representation - tag = ( rtagName.exec( elem ) || [ "", "" ] )[ 1 ].toLowerCase(); - wrap = wrapMap[ tag ] || wrapMap._default; - tmp.innerHTML = wrap[ 1 ] + jQuery.htmlPrefilter( elem ) + wrap[ 2 ]; - - // Descend through wrappers to the right content - j = wrap[ 0 ]; - while ( j-- ) { - tmp = tmp.lastChild; - } - - // Support: Android <=4.0 only, PhantomJS 1 only - // push.apply(_, arraylike) throws on ancient WebKit - jQuery.merge( nodes, tmp.childNodes ); - - // Remember the top-level container - tmp = fragment.firstChild; - - // Ensure the created nodes are orphaned (#12392) - tmp.textContent = ""; - } - } - } - - // Remove wrapper from fragment - fragment.textContent = ""; - - i = 0; - while ( ( elem = nodes[ i++ ] ) ) { - - // Skip elements already in the context collection (trac-4087) - if ( selection && jQuery.inArray( elem, selection ) > -1 ) { - if ( ignored ) { - ignored.push( elem ); - } - continue; - } - - attached = isAttached( elem ); - - // Append to fragment - tmp = getAll( fragment.appendChild( elem ), "script" ); - - // Preserve script evaluation history - if ( attached ) { - setGlobalEval( tmp ); - } - - // Capture executables - if ( scripts ) { - j = 0; - while ( ( elem = tmp[ j++ ] ) ) { - if ( rscriptType.test( elem.type || "" ) ) { - scripts.push( elem ); - } - } - } - } - - return fragment; -} - - -var rtypenamespace = /^([^.]*)(?:\.(.+)|)/; - -function returnTrue() { - return true; -} - -function returnFalse() { - return false; -} - -// Support: IE <=9 - 11+ -// focus() and blur() are asynchronous, except when they are no-op. -// So expect focus to be synchronous when the element is already active, -// and blur to be synchronous when the element is not already active. -// (focus and blur are always synchronous in other supported browsers, -// this just defines when we can count on it). -function expectSync( elem, type ) { - return ( elem === safeActiveElement() ) === ( type === "focus" ); -} - -// Support: IE <=9 only -// Accessing document.activeElement can throw unexpectedly -// https://bugs.jquery.com/ticket/13393 -function safeActiveElement() { - try { - return document.activeElement; - } catch ( err ) { } -} - -function on( elem, types, selector, data, fn, one ) { - var origFn, type; - - // Types can be a map of types/handlers - if ( typeof types === "object" ) { - - // ( types-Object, selector, data ) - if ( typeof selector !== "string" ) { - - // ( types-Object, data ) - data = data || selector; - selector = undefined; - } - for ( type in types ) { - on( elem, type, selector, data, types[ type ], one ); - } - return elem; - } - - if ( data == null && fn == null ) { - - // ( types, fn ) - fn = selector; - data = selector = undefined; - } else if ( fn == null ) { - if ( typeof selector === "string" ) { - - // ( types, selector, fn ) - fn = data; - data = undefined; - } else { - - // ( types, data, fn ) - fn = data; - data = selector; - selector = undefined; - } - } - if ( fn === false ) { - fn = returnFalse; - } else if ( !fn ) { - return elem; - } - - if ( one === 1 ) { - origFn = fn; - fn = function( event ) { - - // Can use an empty set, since event contains the info - jQuery().off( event ); - return origFn.apply( this, arguments ); - }; - - // Use same guid so caller can remove using origFn - fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ ); - } - return elem.each( function() { - jQuery.event.add( this, types, fn, data, selector ); - } ); -} - -/* - * Helper functions for managing events -- not part of the public interface. - * Props to Dean Edwards' addEvent library for many of the ideas. - */ -jQuery.event = { - - global: {}, - - add: function( elem, types, handler, data, selector ) { - - var handleObjIn, eventHandle, tmp, - events, t, handleObj, - special, handlers, type, namespaces, origType, - elemData = dataPriv.get( elem ); - - // Only attach events to objects that accept data - if ( !acceptData( elem ) ) { - return; - } - - // Caller can pass in an object of custom data in lieu of the handler - if ( handler.handler ) { - handleObjIn = handler; - handler = handleObjIn.handler; - selector = handleObjIn.selector; - } - - // Ensure that invalid selectors throw exceptions at attach time - // Evaluate against documentElement in case elem is a non-element node (e.g., document) - if ( selector ) { - jQuery.find.matchesSelector( documentElement, selector ); - } - - // Make sure that the handler has a unique ID, used to find/remove it later - if ( !handler.guid ) { - handler.guid = jQuery.guid++; - } - - // Init the element's event structure and main handler, if this is the first - if ( !( events = elemData.events ) ) { - events = elemData.events = Object.create( null ); - } - if ( !( eventHandle = elemData.handle ) ) { - eventHandle = elemData.handle = function( e ) { - - // Discard the second event of a jQuery.event.trigger() and - // when an event is called after a page has unloaded - return typeof jQuery !== "undefined" && jQuery.event.triggered !== e.type ? - jQuery.event.dispatch.apply( elem, arguments ) : undefined; - }; - } - - // Handle multiple events separated by a space - types = ( types || "" ).match( rnothtmlwhite ) || [ "" ]; - t = types.length; - while ( t-- ) { - tmp = rtypenamespace.exec( types[ t ] ) || []; - type = origType = tmp[ 1 ]; - namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort(); - - // There *must* be a type, no attaching namespace-only handlers - if ( !type ) { - continue; - } - - // If event changes its type, use the special event handlers for the changed type - special = jQuery.event.special[ type ] || {}; - - // If selector defined, determine special event api type, otherwise given type - type = ( selector ? special.delegateType : special.bindType ) || type; - - // Update special based on newly reset type - special = jQuery.event.special[ type ] || {}; - - // handleObj is passed to all event handlers - handleObj = jQuery.extend( { - type: type, - origType: origType, - data: data, - handler: handler, - guid: handler.guid, - selector: selector, - needsContext: selector && jQuery.expr.match.needsContext.test( selector ), - namespace: namespaces.join( "." ) - }, handleObjIn ); - - // Init the event handler queue if we're the first - if ( !( handlers = events[ type ] ) ) { - handlers = events[ type ] = []; - handlers.delegateCount = 0; - - // Only use addEventListener if the special events handler returns false - if ( !special.setup || - special.setup.call( elem, data, namespaces, eventHandle ) === false ) { - - if ( elem.addEventListener ) { - elem.addEventListener( type, eventHandle ); - } - } - } - - if ( special.add ) { - special.add.call( elem, handleObj ); - - if ( !handleObj.handler.guid ) { - handleObj.handler.guid = handler.guid; - } - } - - // Add to the element's handler list, delegates in front - if ( selector ) { - handlers.splice( handlers.delegateCount++, 0, handleObj ); - } else { - handlers.push( handleObj ); - } - - // Keep track of which events have ever been used, for event optimization - jQuery.event.global[ type ] = true; - } - - }, - - // Detach an event or set of events from an element - remove: function( elem, types, handler, selector, mappedTypes ) { - - var j, origCount, tmp, - events, t, handleObj, - special, handlers, type, namespaces, origType, - elemData = dataPriv.hasData( elem ) && dataPriv.get( elem ); - - if ( !elemData || !( events = elemData.events ) ) { - return; - } - - // Once for each type.namespace in types; type may be omitted - types = ( types || "" ).match( rnothtmlwhite ) || [ "" ]; - t = types.length; - while ( t-- ) { - tmp = rtypenamespace.exec( types[ t ] ) || []; - type = origType = tmp[ 1 ]; - namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort(); - - // Unbind all events (on this namespace, if provided) for the element - if ( !type ) { - for ( type in events ) { - jQuery.event.remove( elem, type + types[ t ], handler, selector, true ); - } - continue; - } - - special = jQuery.event.special[ type ] || {}; - type = ( selector ? special.delegateType : special.bindType ) || type; - handlers = events[ type ] || []; - tmp = tmp[ 2 ] && - new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" ); - - // Remove matching events - origCount = j = handlers.length; - while ( j-- ) { - handleObj = handlers[ j ]; - - if ( ( mappedTypes || origType === handleObj.origType ) && - ( !handler || handler.guid === handleObj.guid ) && - ( !tmp || tmp.test( handleObj.namespace ) ) && - ( !selector || selector === handleObj.selector || - selector === "**" && handleObj.selector ) ) { - handlers.splice( j, 1 ); - - if ( handleObj.selector ) { - handlers.delegateCount--; - } - if ( special.remove ) { - special.remove.call( elem, handleObj ); - } - } - } - - // Remove generic event handler if we removed something and no more handlers exist - // (avoids potential for endless recursion during removal of special event handlers) - if ( origCount && !handlers.length ) { - if ( !special.teardown || - special.teardown.call( elem, namespaces, elemData.handle ) === false ) { - - jQuery.removeEvent( elem, type, elemData.handle ); - } - - delete events[ type ]; - } - } - - // Remove data and the expando if it's no longer used - if ( jQuery.isEmptyObject( events ) ) { - dataPriv.remove( elem, "handle events" ); - } - }, - - dispatch: function( nativeEvent ) { - - var i, j, ret, matched, handleObj, handlerQueue, - args = new Array( arguments.length ), - - // Make a writable jQuery.Event from the native event object - event = jQuery.event.fix( nativeEvent ), - - handlers = ( - dataPriv.get( this, "events" ) || Object.create( null ) - )[ event.type ] || [], - special = jQuery.event.special[ event.type ] || {}; - - // Use the fix-ed jQuery.Event rather than the (read-only) native event - args[ 0 ] = event; - - for ( i = 1; i < arguments.length; i++ ) { - args[ i ] = arguments[ i ]; - } - - event.delegateTarget = this; - - // Call the preDispatch hook for the mapped type, and let it bail if desired - if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) { - return; - } - - // Determine handlers - handlerQueue = jQuery.event.handlers.call( this, event, handlers ); - - // Run delegates first; they may want to stop propagation beneath us - i = 0; - while ( ( matched = handlerQueue[ i++ ] ) && !event.isPropagationStopped() ) { - event.currentTarget = matched.elem; - - j = 0; - while ( ( handleObj = matched.handlers[ j++ ] ) && - !event.isImmediatePropagationStopped() ) { - - // If the event is namespaced, then each handler is only invoked if it is - // specially universal or its namespaces are a superset of the event's. - if ( !event.rnamespace || handleObj.namespace === false || - event.rnamespace.test( handleObj.namespace ) ) { - - event.handleObj = handleObj; - event.data = handleObj.data; - - ret = ( ( jQuery.event.special[ handleObj.origType ] || {} ).handle || - handleObj.handler ).apply( matched.elem, args ); - - if ( ret !== undefined ) { - if ( ( event.result = ret ) === false ) { - event.preventDefault(); - event.stopPropagation(); - } - } - } - } - } - - // Call the postDispatch hook for the mapped type - if ( special.postDispatch ) { - special.postDispatch.call( this, event ); - } - - return event.result; - }, - - handlers: function( event, handlers ) { - var i, handleObj, sel, matchedHandlers, matchedSelectors, - handlerQueue = [], - delegateCount = handlers.delegateCount, - cur = event.target; - - // Find delegate handlers - if ( delegateCount && - - // Support: IE <=9 - // Black-hole SVG <use> instance trees (trac-13180) - cur.nodeType && - - // Support: Firefox <=42 - // Suppress spec-violating clicks indicating a non-primary pointer button (trac-3861) - // https://www.w3.org/TR/DOM-Level-3-Events/#event-type-click - // Support: IE 11 only - // ...but not arrow key "clicks" of radio inputs, which can have `button` -1 (gh-2343) - !( event.type === "click" && event.button >= 1 ) ) { - - for ( ; cur !== this; cur = cur.parentNode || this ) { - - // Don't check non-elements (#13208) - // Don't process clicks on disabled elements (#6911, #8165, #11382, #11764) - if ( cur.nodeType === 1 && !( event.type === "click" && cur.disabled === true ) ) { - matchedHandlers = []; - matchedSelectors = {}; - for ( i = 0; i < delegateCount; i++ ) { - handleObj = handlers[ i ]; - - // Don't conflict with Object.prototype properties (#13203) - sel = handleObj.selector + " "; - - if ( matchedSelectors[ sel ] === undefined ) { - matchedSelectors[ sel ] = handleObj.needsContext ? - jQuery( sel, this ).index( cur ) > -1 : - jQuery.find( sel, this, null, [ cur ] ).length; - } - if ( matchedSelectors[ sel ] ) { - matchedHandlers.push( handleObj ); - } - } - if ( matchedHandlers.length ) { - handlerQueue.push( { elem: cur, handlers: matchedHandlers } ); - } - } - } - } - - // Add the remaining (directly-bound) handlers - cur = this; - if ( delegateCount < handlers.length ) { - handlerQueue.push( { elem: cur, handlers: handlers.slice( delegateCount ) } ); - } - - return handlerQueue; - }, - - addProp: function( name, hook ) { - Object.defineProperty( jQuery.Event.prototype, name, { - enumerable: true, - configurable: true, - - get: isFunction( hook ) ? - function() { - if ( this.originalEvent ) { - return hook( this.originalEvent ); - } - } : - function() { - if ( this.originalEvent ) { - return this.originalEvent[ name ]; - } - }, - - set: function( value ) { - Object.defineProperty( this, name, { - enumerable: true, - configurable: true, - writable: true, - value: value - } ); - } - } ); - }, - - fix: function( originalEvent ) { - return originalEvent[ jQuery.expando ] ? - originalEvent : - new jQuery.Event( originalEvent ); - }, - - special: { - load: { - - // Prevent triggered image.load events from bubbling to window.load - noBubble: true - }, - click: { - - // Utilize native event to ensure correct state for checkable inputs - setup: function( data ) { - - // For mutual compressibility with _default, replace `this` access with a local var. - // `|| data` is dead code meant only to preserve the variable through minification. - var el = this || data; - - // Claim the first handler - if ( rcheckableType.test( el.type ) && - el.click && nodeName( el, "input" ) ) { - - // dataPriv.set( el, "click", ... ) - leverageNative( el, "click", returnTrue ); - } - - // Return false to allow normal processing in the caller - return false; - }, - trigger: function( data ) { - - // For mutual compressibility with _default, replace `this` access with a local var. - // `|| data` is dead code meant only to preserve the variable through minification. - var el = this || data; - - // Force setup before triggering a click - if ( rcheckableType.test( el.type ) && - el.click && nodeName( el, "input" ) ) { - - leverageNative( el, "click" ); - } - - // Return non-false to allow normal event-path propagation - return true; - }, - - // For cross-browser consistency, suppress native .click() on links - // Also prevent it if we're currently inside a leveraged native-event stack - _default: function( event ) { - var target = event.target; - return rcheckableType.test( target.type ) && - target.click && nodeName( target, "input" ) && - dataPriv.get( target, "click" ) || - nodeName( target, "a" ); - } - }, - - beforeunload: { - postDispatch: function( event ) { - - // Support: Firefox 20+ - // Firefox doesn't alert if the returnValue field is not set. - if ( event.result !== undefined && event.originalEvent ) { - event.originalEvent.returnValue = event.result; - } - } - } - } -}; - -// Ensure the presence of an event listener that handles manually-triggered -// synthetic events by interrupting progress until reinvoked in response to -// *native* events that it fires directly, ensuring that state changes have -// already occurred before other listeners are invoked. -function leverageNative( el, type, expectSync ) { - - // Missing expectSync indicates a trigger call, which must force setup through jQuery.event.add - if ( !expectSync ) { - if ( dataPriv.get( el, type ) === undefined ) { - jQuery.event.add( el, type, returnTrue ); - } - return; - } - - // Register the controller as a special universal handler for all event namespaces - dataPriv.set( el, type, false ); - jQuery.event.add( el, type, { - namespace: false, - handler: function( event ) { - var notAsync, result, - saved = dataPriv.get( this, type ); - - if ( ( event.isTrigger & 1 ) && this[ type ] ) { - - // Interrupt processing of the outer synthetic .trigger()ed event - // Saved data should be false in such cases, but might be a leftover capture object - // from an async native handler (gh-4350) - if ( !saved.length ) { - - // Store arguments for use when handling the inner native event - // There will always be at least one argument (an event object), so this array - // will not be confused with a leftover capture object. - saved = slice.call( arguments ); - dataPriv.set( this, type, saved ); - - // Trigger the native event and capture its result - // Support: IE <=9 - 11+ - // focus() and blur() are asynchronous - notAsync = expectSync( this, type ); - this[ type ](); - result = dataPriv.get( this, type ); - if ( saved !== result || notAsync ) { - dataPriv.set( this, type, false ); - } else { - result = {}; - } - if ( saved !== result ) { - - // Cancel the outer synthetic event - event.stopImmediatePropagation(); - event.preventDefault(); - - // Support: Chrome 86+ - // In Chrome, if an element having a focusout handler is blurred by - // clicking outside of it, it invokes the handler synchronously. If - // that handler calls `.remove()` on the element, the data is cleared, - // leaving `result` undefined. We need to guard against this. - return result && result.value; - } - - // If this is an inner synthetic event for an event with a bubbling surrogate - // (focus or blur), assume that the surrogate already propagated from triggering the - // native event and prevent that from happening again here. - // This technically gets the ordering wrong w.r.t. to `.trigger()` (in which the - // bubbling surrogate propagates *after* the non-bubbling base), but that seems - // less bad than duplication. - } else if ( ( jQuery.event.special[ type ] || {} ).delegateType ) { - event.stopPropagation(); - } - - // If this is a native event triggered above, everything is now in order - // Fire an inner synthetic event with the original arguments - } else if ( saved.length ) { - - // ...and capture the result - dataPriv.set( this, type, { - value: jQuery.event.trigger( - - // Support: IE <=9 - 11+ - // Extend with the prototype to reset the above stopImmediatePropagation() - jQuery.extend( saved[ 0 ], jQuery.Event.prototype ), - saved.slice( 1 ), - this - ) - } ); - - // Abort handling of the native event - event.stopImmediatePropagation(); - } - } - } ); -} - -jQuery.removeEvent = function( elem, type, handle ) { - - // This "if" is needed for plain objects - if ( elem.removeEventListener ) { - elem.removeEventListener( type, handle ); - } -}; - -jQuery.Event = function( src, props ) { - - // Allow instantiation without the 'new' keyword - if ( !( this instanceof jQuery.Event ) ) { - return new jQuery.Event( src, props ); - } - - // Event object - if ( src && src.type ) { - this.originalEvent = src; - this.type = src.type; - - // Events bubbling up the document may have been marked as prevented - // by a handler lower down the tree; reflect the correct value. - this.isDefaultPrevented = src.defaultPrevented || - src.defaultPrevented === undefined && - - // Support: Android <=2.3 only - src.returnValue === false ? - returnTrue : - returnFalse; - - // Create target properties - // Support: Safari <=6 - 7 only - // Target should not be a text node (#504, #13143) - this.target = ( src.target && src.target.nodeType === 3 ) ? - src.target.parentNode : - src.target; - - this.currentTarget = src.currentTarget; - this.relatedTarget = src.relatedTarget; - - // Event type - } else { - this.type = src; - } - - // Put explicitly provided properties onto the event object - if ( props ) { - jQuery.extend( this, props ); - } - - // Create a timestamp if incoming event doesn't have one - this.timeStamp = src && src.timeStamp || Date.now(); - - // Mark it as fixed - this[ jQuery.expando ] = true; -}; - -// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding -// https://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html -jQuery.Event.prototype = { - constructor: jQuery.Event, - isDefaultPrevented: returnFalse, - isPropagationStopped: returnFalse, - isImmediatePropagationStopped: returnFalse, - isSimulated: false, - - preventDefault: function() { - var e = this.originalEvent; - - this.isDefaultPrevented = returnTrue; - - if ( e && !this.isSimulated ) { - e.preventDefault(); - } - }, - stopPropagation: function() { - var e = this.originalEvent; - - this.isPropagationStopped = returnTrue; - - if ( e && !this.isSimulated ) { - e.stopPropagation(); - } - }, - stopImmediatePropagation: function() { - var e = this.originalEvent; - - this.isImmediatePropagationStopped = returnTrue; - - if ( e && !this.isSimulated ) { - e.stopImmediatePropagation(); - } - - this.stopPropagation(); - } -}; - -// Includes all common event props including KeyEvent and MouseEvent specific props -jQuery.each( { - altKey: true, - bubbles: true, - cancelable: true, - changedTouches: true, - ctrlKey: true, - detail: true, - eventPhase: true, - metaKey: true, - pageX: true, - pageY: true, - shiftKey: true, - view: true, - "char": true, - code: true, - charCode: true, - key: true, - keyCode: true, - button: true, - buttons: true, - clientX: true, - clientY: true, - offsetX: true, - offsetY: true, - pointerId: true, - pointerType: true, - screenX: true, - screenY: true, - targetTouches: true, - toElement: true, - touches: true, - which: true -}, jQuery.event.addProp ); - -jQuery.each( { focus: "focusin", blur: "focusout" }, function( type, delegateType ) { - jQuery.event.special[ type ] = { - - // Utilize native event if possible so blur/focus sequence is correct - setup: function() { - - // Claim the first handler - // dataPriv.set( this, "focus", ... ) - // dataPriv.set( this, "blur", ... ) - leverageNative( this, type, expectSync ); - - // Return false to allow normal processing in the caller - return false; - }, - trigger: function() { - - // Force setup before trigger - leverageNative( this, type ); - - // Return non-false to allow normal event-path propagation - return true; - }, - - // Suppress native focus or blur as it's already being fired - // in leverageNative. - _default: function() { - return true; - }, - - delegateType: delegateType - }; -} ); - -// Create mouseenter/leave events using mouseover/out and event-time checks -// so that event delegation works in jQuery. -// Do the same for pointerenter/pointerleave and pointerover/pointerout -// -// Support: Safari 7 only -// Safari sends mouseenter too often; see: -// https://bugs.chromium.org/p/chromium/issues/detail?id=470258 -// for the description of the bug (it existed in older Chrome versions as well). -jQuery.each( { - mouseenter: "mouseover", - mouseleave: "mouseout", - pointerenter: "pointerover", - pointerleave: "pointerout" -}, function( orig, fix ) { - jQuery.event.special[ orig ] = { - delegateType: fix, - bindType: fix, - - handle: function( event ) { - var ret, - target = this, - related = event.relatedTarget, - handleObj = event.handleObj; - - // For mouseenter/leave call the handler if related is outside the target. - // NB: No relatedTarget if the mouse left/entered the browser window - if ( !related || ( related !== target && !jQuery.contains( target, related ) ) ) { - event.type = handleObj.origType; - ret = handleObj.handler.apply( this, arguments ); - event.type = fix; - } - return ret; - } - }; -} ); - -jQuery.fn.extend( { - - on: function( types, selector, data, fn ) { - return on( this, types, selector, data, fn ); - }, - one: function( types, selector, data, fn ) { - return on( this, types, selector, data, fn, 1 ); - }, - off: function( types, selector, fn ) { - var handleObj, type; - if ( types && types.preventDefault && types.handleObj ) { - - // ( event ) dispatched jQuery.Event - handleObj = types.handleObj; - jQuery( types.delegateTarget ).off( - handleObj.namespace ? - handleObj.origType + "." + handleObj.namespace : - handleObj.origType, - handleObj.selector, - handleObj.handler - ); - return this; - } - if ( typeof types === "object" ) { - - // ( types-object [, selector] ) - for ( type in types ) { - this.off( type, selector, types[ type ] ); - } - return this; - } - if ( selector === false || typeof selector === "function" ) { - - // ( types [, fn] ) - fn = selector; - selector = undefined; - } - if ( fn === false ) { - fn = returnFalse; - } - return this.each( function() { - jQuery.event.remove( this, types, fn, selector ); - } ); - } -} ); - - -var - - // Support: IE <=10 - 11, Edge 12 - 13 only - // In IE/Edge using regex groups here causes severe slowdowns. - // See https://connect.microsoft.com/IE/feedback/details/1736512/ - rnoInnerhtml = /<script|<style|<link/i, - - // checked="checked" or checked - rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i, - rcleanScript = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g; - -// Prefer a tbody over its parent table for containing new rows -function manipulationTarget( elem, content ) { - if ( nodeName( elem, "table" ) && - nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ) { - - return jQuery( elem ).children( "tbody" )[ 0 ] || elem; - } - - return elem; -} - -// Replace/restore the type attribute of script elements for safe DOM manipulation -function disableScript( elem ) { - elem.type = ( elem.getAttribute( "type" ) !== null ) + "/" + elem.type; - return elem; -} -function restoreScript( elem ) { - if ( ( elem.type || "" ).slice( 0, 5 ) === "true/" ) { - elem.type = elem.type.slice( 5 ); - } else { - elem.removeAttribute( "type" ); - } - - return elem; -} - -function cloneCopyEvent( src, dest ) { - var i, l, type, pdataOld, udataOld, udataCur, events; - - if ( dest.nodeType !== 1 ) { - return; - } - - // 1. Copy private data: events, handlers, etc. - if ( dataPriv.hasData( src ) ) { - pdataOld = dataPriv.get( src ); - events = pdataOld.events; - - if ( events ) { - dataPriv.remove( dest, "handle events" ); - - for ( type in events ) { - for ( i = 0, l = events[ type ].length; i < l; i++ ) { - jQuery.event.add( dest, type, events[ type ][ i ] ); - } - } - } - } - - // 2. Copy user data - if ( dataUser.hasData( src ) ) { - udataOld = dataUser.access( src ); - udataCur = jQuery.extend( {}, udataOld ); - - dataUser.set( dest, udataCur ); - } -} - -// Fix IE bugs, see support tests -function fixInput( src, dest ) { - var nodeName = dest.nodeName.toLowerCase(); - - // Fails to persist the checked state of a cloned checkbox or radio button. - if ( nodeName === "input" && rcheckableType.test( src.type ) ) { - dest.checked = src.checked; - - // Fails to return the selected option to the default selected state when cloning options - } else if ( nodeName === "input" || nodeName === "textarea" ) { - dest.defaultValue = src.defaultValue; - } -} - -function domManip( collection, args, callback, ignored ) { - - // Flatten any nested arrays - args = flat( args ); - - var fragment, first, scripts, hasScripts, node, doc, - i = 0, - l = collection.length, - iNoClone = l - 1, - value = args[ 0 ], - valueIsFunction = isFunction( value ); - - // We can't cloneNode fragments that contain checked, in WebKit - if ( valueIsFunction || - ( l > 1 && typeof value === "string" && - !support.checkClone && rchecked.test( value ) ) ) { - return collection.each( function( index ) { - var self = collection.eq( index ); - if ( valueIsFunction ) { - args[ 0 ] = value.call( this, index, self.html() ); - } - domManip( self, args, callback, ignored ); - } ); - } - - if ( l ) { - fragment = buildFragment( args, collection[ 0 ].ownerDocument, false, collection, ignored ); - first = fragment.firstChild; - - if ( fragment.childNodes.length === 1 ) { - fragment = first; - } - - // Require either new content or an interest in ignored elements to invoke the callback - if ( first || ignored ) { - scripts = jQuery.map( getAll( fragment, "script" ), disableScript ); - hasScripts = scripts.length; - - // Use the original fragment for the last item - // instead of the first because it can end up - // being emptied incorrectly in certain situations (#8070). - for ( ; i < l; i++ ) { - node = fragment; - - if ( i !== iNoClone ) { - node = jQuery.clone( node, true, true ); - - // Keep references to cloned scripts for later restoration - if ( hasScripts ) { - - // Support: Android <=4.0 only, PhantomJS 1 only - // push.apply(_, arraylike) throws on ancient WebKit - jQuery.merge( scripts, getAll( node, "script" ) ); - } - } - - callback.call( collection[ i ], node, i ); - } - - if ( hasScripts ) { - doc = scripts[ scripts.length - 1 ].ownerDocument; - - // Reenable scripts - jQuery.map( scripts, restoreScript ); - - // Evaluate executable scripts on first document insertion - for ( i = 0; i < hasScripts; i++ ) { - node = scripts[ i ]; - if ( rscriptType.test( node.type || "" ) && - !dataPriv.access( node, "globalEval" ) && - jQuery.contains( doc, node ) ) { - - if ( node.src && ( node.type || "" ).toLowerCase() !== "module" ) { - - // Optional AJAX dependency, but won't run scripts if not present - if ( jQuery._evalUrl && !node.noModule ) { - jQuery._evalUrl( node.src, { - nonce: node.nonce || node.getAttribute( "nonce" ) - }, doc ); - } - } else { - DOMEval( node.textContent.replace( rcleanScript, "" ), node, doc ); - } - } - } - } - } - } - - return collection; -} - -function remove( elem, selector, keepData ) { - var node, - nodes = selector ? jQuery.filter( selector, elem ) : elem, - i = 0; - - for ( ; ( node = nodes[ i ] ) != null; i++ ) { - if ( !keepData && node.nodeType === 1 ) { - jQuery.cleanData( getAll( node ) ); - } - - if ( node.parentNode ) { - if ( keepData && isAttached( node ) ) { - setGlobalEval( getAll( node, "script" ) ); - } - node.parentNode.removeChild( node ); - } - } - - return elem; -} - -jQuery.extend( { - htmlPrefilter: function( html ) { - return html; - }, - - clone: function( elem, dataAndEvents, deepDataAndEvents ) { - var i, l, srcElements, destElements, - clone = elem.cloneNode( true ), - inPage = isAttached( elem ); - - // Fix IE cloning issues - if ( !support.noCloneChecked && ( elem.nodeType === 1 || elem.nodeType === 11 ) && - !jQuery.isXMLDoc( elem ) ) { - - // We eschew Sizzle here for performance reasons: https://jsperf.com/getall-vs-sizzle/2 - destElements = getAll( clone ); - srcElements = getAll( elem ); - - for ( i = 0, l = srcElements.length; i < l; i++ ) { - fixInput( srcElements[ i ], destElements[ i ] ); - } - } - - // Copy the events from the original to the clone - if ( dataAndEvents ) { - if ( deepDataAndEvents ) { - srcElements = srcElements || getAll( elem ); - destElements = destElements || getAll( clone ); - - for ( i = 0, l = srcElements.length; i < l; i++ ) { - cloneCopyEvent( srcElements[ i ], destElements[ i ] ); - } - } else { - cloneCopyEvent( elem, clone ); - } - } - - // Preserve script evaluation history - destElements = getAll( clone, "script" ); - if ( destElements.length > 0 ) { - setGlobalEval( destElements, !inPage && getAll( elem, "script" ) ); - } - - // Return the cloned set - return clone; - }, - - cleanData: function( elems ) { - var data, elem, type, - special = jQuery.event.special, - i = 0; - - for ( ; ( elem = elems[ i ] ) !== undefined; i++ ) { - if ( acceptData( elem ) ) { - if ( ( data = elem[ dataPriv.expando ] ) ) { - if ( data.events ) { - for ( type in data.events ) { - if ( special[ type ] ) { - jQuery.event.remove( elem, type ); - - // This is a shortcut to avoid jQuery.event.remove's overhead - } else { - jQuery.removeEvent( elem, type, data.handle ); - } - } - } - - // Support: Chrome <=35 - 45+ - // Assign undefined instead of using delete, see Data#remove - elem[ dataPriv.expando ] = undefined; - } - if ( elem[ dataUser.expando ] ) { - - // Support: Chrome <=35 - 45+ - // Assign undefined instead of using delete, see Data#remove - elem[ dataUser.expando ] = undefined; - } - } - } - } -} ); - -jQuery.fn.extend( { - detach: function( selector ) { - return remove( this, selector, true ); - }, - - remove: function( selector ) { - return remove( this, selector ); - }, - - text: function( value ) { - return access( this, function( value ) { - return value === undefined ? - jQuery.text( this ) : - this.empty().each( function() { - if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { - this.textContent = value; - } - } ); - }, null, value, arguments.length ); - }, - - append: function() { - return domManip( this, arguments, function( elem ) { - if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { - var target = manipulationTarget( this, elem ); - target.appendChild( elem ); - } - } ); - }, - - prepend: function() { - return domManip( this, arguments, function( elem ) { - if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { - var target = manipulationTarget( this, elem ); - target.insertBefore( elem, target.firstChild ); - } - } ); - }, - - before: function() { - return domManip( this, arguments, function( elem ) { - if ( this.parentNode ) { - this.parentNode.insertBefore( elem, this ); - } - } ); - }, - - after: function() { - return domManip( this, arguments, function( elem ) { - if ( this.parentNode ) { - this.parentNode.insertBefore( elem, this.nextSibling ); - } - } ); - }, - - empty: function() { - var elem, - i = 0; - - for ( ; ( elem = this[ i ] ) != null; i++ ) { - if ( elem.nodeType === 1 ) { - - // Prevent memory leaks - jQuery.cleanData( getAll( elem, false ) ); - - // Remove any remaining nodes - elem.textContent = ""; - } - } - - return this; - }, - - clone: function( dataAndEvents, deepDataAndEvents ) { - dataAndEvents = dataAndEvents == null ? false : dataAndEvents; - deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents; - - return this.map( function() { - return jQuery.clone( this, dataAndEvents, deepDataAndEvents ); - } ); - }, - - html: function( value ) { - return access( this, function( value ) { - var elem = this[ 0 ] || {}, - i = 0, - l = this.length; - - if ( value === undefined && elem.nodeType === 1 ) { - return elem.innerHTML; - } - - // See if we can take a shortcut and just use innerHTML - if ( typeof value === "string" && !rnoInnerhtml.test( value ) && - !wrapMap[ ( rtagName.exec( value ) || [ "", "" ] )[ 1 ].toLowerCase() ] ) { - - value = jQuery.htmlPrefilter( value ); - - try { - for ( ; i < l; i++ ) { - elem = this[ i ] || {}; - - // Remove element nodes and prevent memory leaks - if ( elem.nodeType === 1 ) { - jQuery.cleanData( getAll( elem, false ) ); - elem.innerHTML = value; - } - } - - elem = 0; - - // If using innerHTML throws an exception, use the fallback method - } catch ( e ) {} - } - - if ( elem ) { - this.empty().append( value ); - } - }, null, value, arguments.length ); - }, - - replaceWith: function() { - var ignored = []; - - // Make the changes, replacing each non-ignored context element with the new content - return domManip( this, arguments, function( elem ) { - var parent = this.parentNode; - - if ( jQuery.inArray( this, ignored ) < 0 ) { - jQuery.cleanData( getAll( this ) ); - if ( parent ) { - parent.replaceChild( elem, this ); - } - } - - // Force callback invocation - }, ignored ); - } -} ); - -jQuery.each( { - appendTo: "append", - prependTo: "prepend", - insertBefore: "before", - insertAfter: "after", - replaceAll: "replaceWith" -}, function( name, original ) { - jQuery.fn[ name ] = function( selector ) { - var elems, - ret = [], - insert = jQuery( selector ), - last = insert.length - 1, - i = 0; - - for ( ; i <= last; i++ ) { - elems = i === last ? this : this.clone( true ); - jQuery( insert[ i ] )[ original ]( elems ); - - // Support: Android <=4.0 only, PhantomJS 1 only - // .get() because push.apply(_, arraylike) throws on ancient WebKit - push.apply( ret, elems.get() ); - } - - return this.pushStack( ret ); - }; -} ); -var rnumnonpx = new RegExp( "^(" + pnum + ")(?!px)[a-z%]+$", "i" ); - -var getStyles = function( elem ) { - - // Support: IE <=11 only, Firefox <=30 (#15098, #14150) - // IE throws on elements created in popups - // FF meanwhile throws on frame elements through "defaultView.getComputedStyle" - var view = elem.ownerDocument.defaultView; - - if ( !view || !view.opener ) { - view = window; - } - - return view.getComputedStyle( elem ); - }; - -var swap = function( elem, options, callback ) { - var ret, name, - old = {}; - - // Remember the old values, and insert the new ones - for ( name in options ) { - old[ name ] = elem.style[ name ]; - elem.style[ name ] = options[ name ]; - } - - ret = callback.call( elem ); - - // Revert the old values - for ( name in options ) { - elem.style[ name ] = old[ name ]; - } - - return ret; -}; - - -var rboxStyle = new RegExp( cssExpand.join( "|" ), "i" ); - - - -( function() { - - // Executing both pixelPosition & boxSizingReliable tests require only one layout - // so they're executed at the same time to save the second computation. - function computeStyleTests() { - - // This is a singleton, we need to execute it only once - if ( !div ) { - return; - } - - container.style.cssText = "position:absolute;left:-11111px;width:60px;" + - "margin-top:1px;padding:0;border:0"; - div.style.cssText = - "position:relative;display:block;box-sizing:border-box;overflow:scroll;" + - "margin:auto;border:1px;padding:1px;" + - "width:60%;top:1%"; - documentElement.appendChild( container ).appendChild( div ); - - var divStyle = window.getComputedStyle( div ); - pixelPositionVal = divStyle.top !== "1%"; - - // Support: Android 4.0 - 4.3 only, Firefox <=3 - 44 - reliableMarginLeftVal = roundPixelMeasures( divStyle.marginLeft ) === 12; - - // Support: Android 4.0 - 4.3 only, Safari <=9.1 - 10.1, iOS <=7.0 - 9.3 - // Some styles come back with percentage values, even though they shouldn't - div.style.right = "60%"; - pixelBoxStylesVal = roundPixelMeasures( divStyle.right ) === 36; - - // Support: IE 9 - 11 only - // Detect misreporting of content dimensions for box-sizing:border-box elements - boxSizingReliableVal = roundPixelMeasures( divStyle.width ) === 36; - - // Support: IE 9 only - // Detect overflow:scroll screwiness (gh-3699) - // Support: Chrome <=64 - // Don't get tricked when zoom affects offsetWidth (gh-4029) - div.style.position = "absolute"; - scrollboxSizeVal = roundPixelMeasures( div.offsetWidth / 3 ) === 12; - - documentElement.removeChild( container ); - - // Nullify the div so it wouldn't be stored in the memory and - // it will also be a sign that checks already performed - div = null; - } - - function roundPixelMeasures( measure ) { - return Math.round( parseFloat( measure ) ); - } - - var pixelPositionVal, boxSizingReliableVal, scrollboxSizeVal, pixelBoxStylesVal, - reliableTrDimensionsVal, reliableMarginLeftVal, - container = document.createElement( "div" ), - div = document.createElement( "div" ); - - // Finish early in limited (non-browser) environments - if ( !div.style ) { - return; - } - - // Support: IE <=9 - 11 only - // Style of cloned element affects source element cloned (#8908) - div.style.backgroundClip = "content-box"; - div.cloneNode( true ).style.backgroundClip = ""; - support.clearCloneStyle = div.style.backgroundClip === "content-box"; - - jQuery.extend( support, { - boxSizingReliable: function() { - computeStyleTests(); - return boxSizingReliableVal; - }, - pixelBoxStyles: function() { - computeStyleTests(); - return pixelBoxStylesVal; - }, - pixelPosition: function() { - computeStyleTests(); - return pixelPositionVal; - }, - reliableMarginLeft: function() { - computeStyleTests(); - return reliableMarginLeftVal; - }, - scrollboxSize: function() { - computeStyleTests(); - return scrollboxSizeVal; - }, - - // Support: IE 9 - 11+, Edge 15 - 18+ - // IE/Edge misreport `getComputedStyle` of table rows with width/height - // set in CSS while `offset*` properties report correct values. - // Behavior in IE 9 is more subtle than in newer versions & it passes - // some versions of this test; make sure not to make it pass there! - // - // Support: Firefox 70+ - // Only Firefox includes border widths - // in computed dimensions. (gh-4529) - reliableTrDimensions: function() { - var table, tr, trChild, trStyle; - if ( reliableTrDimensionsVal == null ) { - table = document.createElement( "table" ); - tr = document.createElement( "tr" ); - trChild = document.createElement( "div" ); - - table.style.cssText = "position:absolute;left:-11111px;border-collapse:separate"; - tr.style.cssText = "border:1px solid"; - - // Support: Chrome 86+ - // Height set through cssText does not get applied. - // Computed height then comes back as 0. - tr.style.height = "1px"; - trChild.style.height = "9px"; - - // Support: Android 8 Chrome 86+ - // In our bodyBackground.html iframe, - // display for all div elements is set to "inline", - // which causes a problem only in Android 8 Chrome 86. - // Ensuring the div is display: block - // gets around this issue. - trChild.style.display = "block"; - - documentElement - .appendChild( table ) - .appendChild( tr ) - .appendChild( trChild ); - - trStyle = window.getComputedStyle( tr ); - reliableTrDimensionsVal = ( parseInt( trStyle.height, 10 ) + - parseInt( trStyle.borderTopWidth, 10 ) + - parseInt( trStyle.borderBottomWidth, 10 ) ) === tr.offsetHeight; - - documentElement.removeChild( table ); - } - return reliableTrDimensionsVal; - } - } ); -} )(); - - -function curCSS( elem, name, computed ) { - var width, minWidth, maxWidth, ret, - - // Support: Firefox 51+ - // Retrieving style before computed somehow - // fixes an issue with getting wrong values - // on detached elements - style = elem.style; - - computed = computed || getStyles( elem ); - - // getPropertyValue is needed for: - // .css('filter') (IE 9 only, #12537) - // .css('--customProperty) (#3144) - if ( computed ) { - ret = computed.getPropertyValue( name ) || computed[ name ]; - - if ( ret === "" && !isAttached( elem ) ) { - ret = jQuery.style( elem, name ); - } - - // A tribute to the "awesome hack by Dean Edwards" - // Android Browser returns percentage for some values, - // but width seems to be reliably pixels. - // This is against the CSSOM draft spec: - // https://drafts.csswg.org/cssom/#resolved-values - if ( !support.pixelBoxStyles() && rnumnonpx.test( ret ) && rboxStyle.test( name ) ) { - - // Remember the original values - width = style.width; - minWidth = style.minWidth; - maxWidth = style.maxWidth; - - // Put in the new values to get a computed value out - style.minWidth = style.maxWidth = style.width = ret; - ret = computed.width; - - // Revert the changed values - style.width = width; - style.minWidth = minWidth; - style.maxWidth = maxWidth; - } - } - - return ret !== undefined ? - - // Support: IE <=9 - 11 only - // IE returns zIndex value as an integer. - ret + "" : - ret; -} - - -function addGetHookIf( conditionFn, hookFn ) { - - // Define the hook, we'll check on the first run if it's really needed. - return { - get: function() { - if ( conditionFn() ) { - - // Hook not needed (or it's not possible to use it due - // to missing dependency), remove it. - delete this.get; - return; - } - - // Hook needed; redefine it so that the support test is not executed again. - return ( this.get = hookFn ).apply( this, arguments ); - } - }; -} - - -var cssPrefixes = [ "Webkit", "Moz", "ms" ], - emptyStyle = document.createElement( "div" ).style, - vendorProps = {}; - -// Return a vendor-prefixed property or undefined -function vendorPropName( name ) { - - // Check for vendor prefixed names - var capName = name[ 0 ].toUpperCase() + name.slice( 1 ), - i = cssPrefixes.length; - - while ( i-- ) { - name = cssPrefixes[ i ] + capName; - if ( name in emptyStyle ) { - return name; - } - } -} - -// Return a potentially-mapped jQuery.cssProps or vendor prefixed property -function finalPropName( name ) { - var final = jQuery.cssProps[ name ] || vendorProps[ name ]; - - if ( final ) { - return final; - } - if ( name in emptyStyle ) { - return name; - } - return vendorProps[ name ] = vendorPropName( name ) || name; -} - - -var - - // Swappable if display is none or starts with table - // except "table", "table-cell", or "table-caption" - // See here for display values: https://developer.mozilla.org/en-US/docs/CSS/display - rdisplayswap = /^(none|table(?!-c[ea]).+)/, - rcustomProp = /^--/, - cssShow = { position: "absolute", visibility: "hidden", display: "block" }, - cssNormalTransform = { - letterSpacing: "0", - fontWeight: "400" - }; - -function setPositiveNumber( _elem, value, subtract ) { - - // Any relative (+/-) values have already been - // normalized at this point - var matches = rcssNum.exec( value ); - return matches ? - - // Guard against undefined "subtract", e.g., when used as in cssHooks - Math.max( 0, matches[ 2 ] - ( subtract || 0 ) ) + ( matches[ 3 ] || "px" ) : - value; -} - -function boxModelAdjustment( elem, dimension, box, isBorderBox, styles, computedVal ) { - var i = dimension === "width" ? 1 : 0, - extra = 0, - delta = 0; - - // Adjustment may not be necessary - if ( box === ( isBorderBox ? "border" : "content" ) ) { - return 0; - } - - for ( ; i < 4; i += 2 ) { - - // Both box models exclude margin - if ( box === "margin" ) { - delta += jQuery.css( elem, box + cssExpand[ i ], true, styles ); - } - - // If we get here with a content-box, we're seeking "padding" or "border" or "margin" - if ( !isBorderBox ) { - - // Add padding - delta += jQuery.css( elem, "padding" + cssExpand[ i ], true, styles ); - - // For "border" or "margin", add border - if ( box !== "padding" ) { - delta += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); - - // But still keep track of it otherwise - } else { - extra += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); - } - - // If we get here with a border-box (content + padding + border), we're seeking "content" or - // "padding" or "margin" - } else { - - // For "content", subtract padding - if ( box === "content" ) { - delta -= jQuery.css( elem, "padding" + cssExpand[ i ], true, styles ); - } - - // For "content" or "padding", subtract border - if ( box !== "margin" ) { - delta -= jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); - } - } - } - - // Account for positive content-box scroll gutter when requested by providing computedVal - if ( !isBorderBox && computedVal >= 0 ) { - - // offsetWidth/offsetHeight is a rounded sum of content, padding, scroll gutter, and border - // Assuming integer scroll gutter, subtract the rest and round down - delta += Math.max( 0, Math.ceil( - elem[ "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ) ] - - computedVal - - delta - - extra - - 0.5 - - // If offsetWidth/offsetHeight is unknown, then we can't determine content-box scroll gutter - // Use an explicit zero to avoid NaN (gh-3964) - ) ) || 0; - } - - return delta; -} - -function getWidthOrHeight( elem, dimension, extra ) { - - // Start with computed style - var styles = getStyles( elem ), - - // To avoid forcing a reflow, only fetch boxSizing if we need it (gh-4322). - // Fake content-box until we know it's needed to know the true value. - boxSizingNeeded = !support.boxSizingReliable() || extra, - isBorderBox = boxSizingNeeded && - jQuery.css( elem, "boxSizing", false, styles ) === "border-box", - valueIsBorderBox = isBorderBox, - - val = curCSS( elem, dimension, styles ), - offsetProp = "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ); - - // Support: Firefox <=54 - // Return a confounding non-pixel value or feign ignorance, as appropriate. - if ( rnumnonpx.test( val ) ) { - if ( !extra ) { - return val; - } - val = "auto"; - } - - - // Support: IE 9 - 11 only - // Use offsetWidth/offsetHeight for when box sizing is unreliable. - // In those cases, the computed value can be trusted to be border-box. - if ( ( !support.boxSizingReliable() && isBorderBox || - - // Support: IE 10 - 11+, Edge 15 - 18+ - // IE/Edge misreport `getComputedStyle` of table rows with width/height - // set in CSS while `offset*` properties report correct values. - // Interestingly, in some cases IE 9 doesn't suffer from this issue. - !support.reliableTrDimensions() && nodeName( elem, "tr" ) || - - // Fall back to offsetWidth/offsetHeight when value is "auto" - // This happens for inline elements with no explicit setting (gh-3571) - val === "auto" || - - // Support: Android <=4.1 - 4.3 only - // Also use offsetWidth/offsetHeight for misreported inline dimensions (gh-3602) - !parseFloat( val ) && jQuery.css( elem, "display", false, styles ) === "inline" ) && - - // Make sure the element is visible & connected - elem.getClientRects().length ) { - - isBorderBox = jQuery.css( elem, "boxSizing", false, styles ) === "border-box"; - - // Where available, offsetWidth/offsetHeight approximate border box dimensions. - // Where not available (e.g., SVG), assume unreliable box-sizing and interpret the - // retrieved value as a content box dimension. - valueIsBorderBox = offsetProp in elem; - if ( valueIsBorderBox ) { - val = elem[ offsetProp ]; - } - } - - // Normalize "" and auto - val = parseFloat( val ) || 0; - - // Adjust for the element's box model - return ( val + - boxModelAdjustment( - elem, - dimension, - extra || ( isBorderBox ? "border" : "content" ), - valueIsBorderBox, - styles, - - // Provide the current computed size to request scroll gutter calculation (gh-3589) - val - ) - ) + "px"; -} - -jQuery.extend( { - - // Add in style property hooks for overriding the default - // behavior of getting and setting a style property - cssHooks: { - opacity: { - get: function( elem, computed ) { - if ( computed ) { - - // We should always get a number back from opacity - var ret = curCSS( elem, "opacity" ); - return ret === "" ? "1" : ret; - } - } - } - }, - - // Don't automatically add "px" to these possibly-unitless properties - cssNumber: { - "animationIterationCount": true, - "columnCount": true, - "fillOpacity": true, - "flexGrow": true, - "flexShrink": true, - "fontWeight": true, - "gridArea": true, - "gridColumn": true, - "gridColumnEnd": true, - "gridColumnStart": true, - "gridRow": true, - "gridRowEnd": true, - "gridRowStart": true, - "lineHeight": true, - "opacity": true, - "order": true, - "orphans": true, - "widows": true, - "zIndex": true, - "zoom": true - }, - - // Add in properties whose names you wish to fix before - // setting or getting the value - cssProps: {}, - - // Get and set the style property on a DOM Node - style: function( elem, name, value, extra ) { - - // Don't set styles on text and comment nodes - if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) { - return; - } - - // Make sure that we're working with the right name - var ret, type, hooks, - origName = camelCase( name ), - isCustomProp = rcustomProp.test( name ), - style = elem.style; - - // Make sure that we're working with the right name. We don't - // want to query the value if it is a CSS custom property - // since they are user-defined. - if ( !isCustomProp ) { - name = finalPropName( origName ); - } - - // Gets hook for the prefixed version, then unprefixed version - hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ]; - - // Check if we're setting a value - if ( value !== undefined ) { - type = typeof value; - - // Convert "+=" or "-=" to relative numbers (#7345) - if ( type === "string" && ( ret = rcssNum.exec( value ) ) && ret[ 1 ] ) { - value = adjustCSS( elem, name, ret ); - - // Fixes bug #9237 - type = "number"; - } - - // Make sure that null and NaN values aren't set (#7116) - if ( value == null || value !== value ) { - return; - } - - // If a number was passed in, add the unit (except for certain CSS properties) - // The isCustomProp check can be removed in jQuery 4.0 when we only auto-append - // "px" to a few hardcoded values. - if ( type === "number" && !isCustomProp ) { - value += ret && ret[ 3 ] || ( jQuery.cssNumber[ origName ] ? "" : "px" ); - } - - // background-* props affect original clone's values - if ( !support.clearCloneStyle && value === "" && name.indexOf( "background" ) === 0 ) { - style[ name ] = "inherit"; - } - - // If a hook was provided, use that value, otherwise just set the specified value - if ( !hooks || !( "set" in hooks ) || - ( value = hooks.set( elem, value, extra ) ) !== undefined ) { - - if ( isCustomProp ) { - style.setProperty( name, value ); - } else { - style[ name ] = value; - } - } - - } else { - - // If a hook was provided get the non-computed value from there - if ( hooks && "get" in hooks && - ( ret = hooks.get( elem, false, extra ) ) !== undefined ) { - - return ret; - } - - // Otherwise just get the value from the style object - return style[ name ]; - } - }, - - css: function( elem, name, extra, styles ) { - var val, num, hooks, - origName = camelCase( name ), - isCustomProp = rcustomProp.test( name ); - - // Make sure that we're working with the right name. We don't - // want to modify the value if it is a CSS custom property - // since they are user-defined. - if ( !isCustomProp ) { - name = finalPropName( origName ); - } - - // Try prefixed name followed by the unprefixed name - hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ]; - - // If a hook was provided get the computed value from there - if ( hooks && "get" in hooks ) { - val = hooks.get( elem, true, extra ); - } - - // Otherwise, if a way to get the computed value exists, use that - if ( val === undefined ) { - val = curCSS( elem, name, styles ); - } - - // Convert "normal" to computed value - if ( val === "normal" && name in cssNormalTransform ) { - val = cssNormalTransform[ name ]; - } - - // Make numeric if forced or a qualifier was provided and val looks numeric - if ( extra === "" || extra ) { - num = parseFloat( val ); - return extra === true || isFinite( num ) ? num || 0 : val; - } - - return val; - } -} ); - -jQuery.each( [ "height", "width" ], function( _i, dimension ) { - jQuery.cssHooks[ dimension ] = { - get: function( elem, computed, extra ) { - if ( computed ) { - - // Certain elements can have dimension info if we invisibly show them - // but it must have a current display style that would benefit - return rdisplayswap.test( jQuery.css( elem, "display" ) ) && - - // Support: Safari 8+ - // Table columns in Safari have non-zero offsetWidth & zero - // getBoundingClientRect().width unless display is changed. - // Support: IE <=11 only - // Running getBoundingClientRect on a disconnected node - // in IE throws an error. - ( !elem.getClientRects().length || !elem.getBoundingClientRect().width ) ? - swap( elem, cssShow, function() { - return getWidthOrHeight( elem, dimension, extra ); - } ) : - getWidthOrHeight( elem, dimension, extra ); - } - }, - - set: function( elem, value, extra ) { - var matches, - styles = getStyles( elem ), - - // Only read styles.position if the test has a chance to fail - // to avoid forcing a reflow. - scrollboxSizeBuggy = !support.scrollboxSize() && - styles.position === "absolute", - - // To avoid forcing a reflow, only fetch boxSizing if we need it (gh-3991) - boxSizingNeeded = scrollboxSizeBuggy || extra, - isBorderBox = boxSizingNeeded && - jQuery.css( elem, "boxSizing", false, styles ) === "border-box", - subtract = extra ? - boxModelAdjustment( - elem, - dimension, - extra, - isBorderBox, - styles - ) : - 0; - - // Account for unreliable border-box dimensions by comparing offset* to computed and - // faking a content-box to get border and padding (gh-3699) - if ( isBorderBox && scrollboxSizeBuggy ) { - subtract -= Math.ceil( - elem[ "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ) ] - - parseFloat( styles[ dimension ] ) - - boxModelAdjustment( elem, dimension, "border", false, styles ) - - 0.5 - ); - } - - // Convert to pixels if value adjustment is needed - if ( subtract && ( matches = rcssNum.exec( value ) ) && - ( matches[ 3 ] || "px" ) !== "px" ) { - - elem.style[ dimension ] = value; - value = jQuery.css( elem, dimension ); - } - - return setPositiveNumber( elem, value, subtract ); - } - }; -} ); - -jQuery.cssHooks.marginLeft = addGetHookIf( support.reliableMarginLeft, - function( elem, computed ) { - if ( computed ) { - return ( parseFloat( curCSS( elem, "marginLeft" ) ) || - elem.getBoundingClientRect().left - - swap( elem, { marginLeft: 0 }, function() { - return elem.getBoundingClientRect().left; - } ) - ) + "px"; - } - } -); - -// These hooks are used by animate to expand properties -jQuery.each( { - margin: "", - padding: "", - border: "Width" -}, function( prefix, suffix ) { - jQuery.cssHooks[ prefix + suffix ] = { - expand: function( value ) { - var i = 0, - expanded = {}, - - // Assumes a single number if not a string - parts = typeof value === "string" ? value.split( " " ) : [ value ]; - - for ( ; i < 4; i++ ) { - expanded[ prefix + cssExpand[ i ] + suffix ] = - parts[ i ] || parts[ i - 2 ] || parts[ 0 ]; - } - - return expanded; - } - }; - - if ( prefix !== "margin" ) { - jQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber; - } -} ); - -jQuery.fn.extend( { - css: function( name, value ) { - return access( this, function( elem, name, value ) { - var styles, len, - map = {}, - i = 0; - - if ( Array.isArray( name ) ) { - styles = getStyles( elem ); - len = name.length; - - for ( ; i < len; i++ ) { - map[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles ); - } - - return map; - } - - return value !== undefined ? - jQuery.style( elem, name, value ) : - jQuery.css( elem, name ); - }, name, value, arguments.length > 1 ); - } -} ); - - -function Tween( elem, options, prop, end, easing ) { - return new Tween.prototype.init( elem, options, prop, end, easing ); -} -jQuery.Tween = Tween; - -Tween.prototype = { - constructor: Tween, - init: function( elem, options, prop, end, easing, unit ) { - this.elem = elem; - this.prop = prop; - this.easing = easing || jQuery.easing._default; - this.options = options; - this.start = this.now = this.cur(); - this.end = end; - this.unit = unit || ( jQuery.cssNumber[ prop ] ? "" : "px" ); - }, - cur: function() { - var hooks = Tween.propHooks[ this.prop ]; - - return hooks && hooks.get ? - hooks.get( this ) : - Tween.propHooks._default.get( this ); - }, - run: function( percent ) { - var eased, - hooks = Tween.propHooks[ this.prop ]; - - if ( this.options.duration ) { - this.pos = eased = jQuery.easing[ this.easing ]( - percent, this.options.duration * percent, 0, 1, this.options.duration - ); - } else { - this.pos = eased = percent; - } - this.now = ( this.end - this.start ) * eased + this.start; - - if ( this.options.step ) { - this.options.step.call( this.elem, this.now, this ); - } - - if ( hooks && hooks.set ) { - hooks.set( this ); - } else { - Tween.propHooks._default.set( this ); - } - return this; - } -}; - -Tween.prototype.init.prototype = Tween.prototype; - -Tween.propHooks = { - _default: { - get: function( tween ) { - var result; - - // Use a property on the element directly when it is not a DOM element, - // or when there is no matching style property that exists. - if ( tween.elem.nodeType !== 1 || - tween.elem[ tween.prop ] != null && tween.elem.style[ tween.prop ] == null ) { - return tween.elem[ tween.prop ]; - } - - // Passing an empty string as a 3rd parameter to .css will automatically - // attempt a parseFloat and fallback to a string if the parse fails. - // Simple values such as "10px" are parsed to Float; - // complex values such as "rotate(1rad)" are returned as-is. - result = jQuery.css( tween.elem, tween.prop, "" ); - - // Empty strings, null, undefined and "auto" are converted to 0. - return !result || result === "auto" ? 0 : result; - }, - set: function( tween ) { - - // Use step hook for back compat. - // Use cssHook if its there. - // Use .style if available and use plain properties where available. - if ( jQuery.fx.step[ tween.prop ] ) { - jQuery.fx.step[ tween.prop ]( tween ); - } else if ( tween.elem.nodeType === 1 && ( - jQuery.cssHooks[ tween.prop ] || - tween.elem.style[ finalPropName( tween.prop ) ] != null ) ) { - jQuery.style( tween.elem, tween.prop, tween.now + tween.unit ); - } else { - tween.elem[ tween.prop ] = tween.now; - } - } - } -}; - -// Support: IE <=9 only -// Panic based approach to setting things on disconnected nodes -Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = { - set: function( tween ) { - if ( tween.elem.nodeType && tween.elem.parentNode ) { - tween.elem[ tween.prop ] = tween.now; - } - } -}; - -jQuery.easing = { - linear: function( p ) { - return p; - }, - swing: function( p ) { - return 0.5 - Math.cos( p * Math.PI ) / 2; - }, - _default: "swing" -}; - -jQuery.fx = Tween.prototype.init; - -// Back compat <1.8 extension point -jQuery.fx.step = {}; - - - - -var - fxNow, inProgress, - rfxtypes = /^(?:toggle|show|hide)$/, - rrun = /queueHooks$/; - -function schedule() { - if ( inProgress ) { - if ( document.hidden === false && window.requestAnimationFrame ) { - window.requestAnimationFrame( schedule ); - } else { - window.setTimeout( schedule, jQuery.fx.interval ); - } - - jQuery.fx.tick(); - } -} - -// Animations created synchronously will run synchronously -function createFxNow() { - window.setTimeout( function() { - fxNow = undefined; - } ); - return ( fxNow = Date.now() ); -} - -// Generate parameters to create a standard animation -function genFx( type, includeWidth ) { - var which, - i = 0, - attrs = { height: type }; - - // If we include width, step value is 1 to do all cssExpand values, - // otherwise step value is 2 to skip over Left and Right - includeWidth = includeWidth ? 1 : 0; - for ( ; i < 4; i += 2 - includeWidth ) { - which = cssExpand[ i ]; - attrs[ "margin" + which ] = attrs[ "padding" + which ] = type; - } - - if ( includeWidth ) { - attrs.opacity = attrs.width = type; - } - - return attrs; -} - -function createTween( value, prop, animation ) { - var tween, - collection = ( Animation.tweeners[ prop ] || [] ).concat( Animation.tweeners[ "*" ] ), - index = 0, - length = collection.length; - for ( ; index < length; index++ ) { - if ( ( tween = collection[ index ].call( animation, prop, value ) ) ) { - - // We're done with this property - return tween; - } - } -} - -function defaultPrefilter( elem, props, opts ) { - var prop, value, toggle, hooks, oldfire, propTween, restoreDisplay, display, - isBox = "width" in props || "height" in props, - anim = this, - orig = {}, - style = elem.style, - hidden = elem.nodeType && isHiddenWithinTree( elem ), - dataShow = dataPriv.get( elem, "fxshow" ); - - // Queue-skipping animations hijack the fx hooks - if ( !opts.queue ) { - hooks = jQuery._queueHooks( elem, "fx" ); - if ( hooks.unqueued == null ) { - hooks.unqueued = 0; - oldfire = hooks.empty.fire; - hooks.empty.fire = function() { - if ( !hooks.unqueued ) { - oldfire(); - } - }; - } - hooks.unqueued++; - - anim.always( function() { - - // Ensure the complete handler is called before this completes - anim.always( function() { - hooks.unqueued--; - if ( !jQuery.queue( elem, "fx" ).length ) { - hooks.empty.fire(); - } - } ); - } ); - } - - // Detect show/hide animations - for ( prop in props ) { - value = props[ prop ]; - if ( rfxtypes.test( value ) ) { - delete props[ prop ]; - toggle = toggle || value === "toggle"; - if ( value === ( hidden ? "hide" : "show" ) ) { - - // Pretend to be hidden if this is a "show" and - // there is still data from a stopped show/hide - if ( value === "show" && dataShow && dataShow[ prop ] !== undefined ) { - hidden = true; - - // Ignore all other no-op show/hide data - } else { - continue; - } - } - orig[ prop ] = dataShow && dataShow[ prop ] || jQuery.style( elem, prop ); - } - } - - // Bail out if this is a no-op like .hide().hide() - propTween = !jQuery.isEmptyObject( props ); - if ( !propTween && jQuery.isEmptyObject( orig ) ) { - return; - } - - // Restrict "overflow" and "display" styles during box animations - if ( isBox && elem.nodeType === 1 ) { - - // Support: IE <=9 - 11, Edge 12 - 15 - // Record all 3 overflow attributes because IE does not infer the shorthand - // from identically-valued overflowX and overflowY and Edge just mirrors - // the overflowX value there. - opts.overflow = [ style.overflow, style.overflowX, style.overflowY ]; - - // Identify a display type, preferring old show/hide data over the CSS cascade - restoreDisplay = dataShow && dataShow.display; - if ( restoreDisplay == null ) { - restoreDisplay = dataPriv.get( elem, "display" ); - } - display = jQuery.css( elem, "display" ); - if ( display === "none" ) { - if ( restoreDisplay ) { - display = restoreDisplay; - } else { - - // Get nonempty value(s) by temporarily forcing visibility - showHide( [ elem ], true ); - restoreDisplay = elem.style.display || restoreDisplay; - display = jQuery.css( elem, "display" ); - showHide( [ elem ] ); - } - } - - // Animate inline elements as inline-block - if ( display === "inline" || display === "inline-block" && restoreDisplay != null ) { - if ( jQuery.css( elem, "float" ) === "none" ) { - - // Restore the original display value at the end of pure show/hide animations - if ( !propTween ) { - anim.done( function() { - style.display = restoreDisplay; - } ); - if ( restoreDisplay == null ) { - display = style.display; - restoreDisplay = display === "none" ? "" : display; - } - } - style.display = "inline-block"; - } - } - } - - if ( opts.overflow ) { - style.overflow = "hidden"; - anim.always( function() { - style.overflow = opts.overflow[ 0 ]; - style.overflowX = opts.overflow[ 1 ]; - style.overflowY = opts.overflow[ 2 ]; - } ); - } - - // Implement show/hide animations - propTween = false; - for ( prop in orig ) { - - // General show/hide setup for this element animation - if ( !propTween ) { - if ( dataShow ) { - if ( "hidden" in dataShow ) { - hidden = dataShow.hidden; - } - } else { - dataShow = dataPriv.access( elem, "fxshow", { display: restoreDisplay } ); - } - - // Store hidden/visible for toggle so `.stop().toggle()` "reverses" - if ( toggle ) { - dataShow.hidden = !hidden; - } - - // Show elements before animating them - if ( hidden ) { - showHide( [ elem ], true ); - } - - /* eslint-disable no-loop-func */ - - anim.done( function() { - - /* eslint-enable no-loop-func */ - - // The final step of a "hide" animation is actually hiding the element - if ( !hidden ) { - showHide( [ elem ] ); - } - dataPriv.remove( elem, "fxshow" ); - for ( prop in orig ) { - jQuery.style( elem, prop, orig[ prop ] ); - } - } ); - } - - // Per-property setup - propTween = createTween( hidden ? dataShow[ prop ] : 0, prop, anim ); - if ( !( prop in dataShow ) ) { - dataShow[ prop ] = propTween.start; - if ( hidden ) { - propTween.end = propTween.start; - propTween.start = 0; - } - } - } -} - -function propFilter( props, specialEasing ) { - var index, name, easing, value, hooks; - - // camelCase, specialEasing and expand cssHook pass - for ( index in props ) { - name = camelCase( index ); - easing = specialEasing[ name ]; - value = props[ index ]; - if ( Array.isArray( value ) ) { - easing = value[ 1 ]; - value = props[ index ] = value[ 0 ]; - } - - if ( index !== name ) { - props[ name ] = value; - delete props[ index ]; - } - - hooks = jQuery.cssHooks[ name ]; - if ( hooks && "expand" in hooks ) { - value = hooks.expand( value ); - delete props[ name ]; - - // Not quite $.extend, this won't overwrite existing keys. - // Reusing 'index' because we have the correct "name" - for ( index in value ) { - if ( !( index in props ) ) { - props[ index ] = value[ index ]; - specialEasing[ index ] = easing; - } - } - } else { - specialEasing[ name ] = easing; - } - } -} - -function Animation( elem, properties, options ) { - var result, - stopped, - index = 0, - length = Animation.prefilters.length, - deferred = jQuery.Deferred().always( function() { - - // Don't match elem in the :animated selector - delete tick.elem; - } ), - tick = function() { - if ( stopped ) { - return false; - } - var currentTime = fxNow || createFxNow(), - remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ), - - // Support: Android 2.3 only - // Archaic crash bug won't allow us to use `1 - ( 0.5 || 0 )` (#12497) - temp = remaining / animation.duration || 0, - percent = 1 - temp, - index = 0, - length = animation.tweens.length; - - for ( ; index < length; index++ ) { - animation.tweens[ index ].run( percent ); - } - - deferred.notifyWith( elem, [ animation, percent, remaining ] ); - - // If there's more to do, yield - if ( percent < 1 && length ) { - return remaining; - } - - // If this was an empty animation, synthesize a final progress notification - if ( !length ) { - deferred.notifyWith( elem, [ animation, 1, 0 ] ); - } - - // Resolve the animation and report its conclusion - deferred.resolveWith( elem, [ animation ] ); - return false; - }, - animation = deferred.promise( { - elem: elem, - props: jQuery.extend( {}, properties ), - opts: jQuery.extend( true, { - specialEasing: {}, - easing: jQuery.easing._default - }, options ), - originalProperties: properties, - originalOptions: options, - startTime: fxNow || createFxNow(), - duration: options.duration, - tweens: [], - createTween: function( prop, end ) { - var tween = jQuery.Tween( elem, animation.opts, prop, end, - animation.opts.specialEasing[ prop ] || animation.opts.easing ); - animation.tweens.push( tween ); - return tween; - }, - stop: function( gotoEnd ) { - var index = 0, - - // If we are going to the end, we want to run all the tweens - // otherwise we skip this part - length = gotoEnd ? animation.tweens.length : 0; - if ( stopped ) { - return this; - } - stopped = true; - for ( ; index < length; index++ ) { - animation.tweens[ index ].run( 1 ); - } - - // Resolve when we played the last frame; otherwise, reject - if ( gotoEnd ) { - deferred.notifyWith( elem, [ animation, 1, 0 ] ); - deferred.resolveWith( elem, [ animation, gotoEnd ] ); - } else { - deferred.rejectWith( elem, [ animation, gotoEnd ] ); - } - return this; - } - } ), - props = animation.props; - - propFilter( props, animation.opts.specialEasing ); - - for ( ; index < length; index++ ) { - result = Animation.prefilters[ index ].call( animation, elem, props, animation.opts ); - if ( result ) { - if ( isFunction( result.stop ) ) { - jQuery._queueHooks( animation.elem, animation.opts.queue ).stop = - result.stop.bind( result ); - } - return result; - } - } - - jQuery.map( props, createTween, animation ); - - if ( isFunction( animation.opts.start ) ) { - animation.opts.start.call( elem, animation ); - } - - // Attach callbacks from options - animation - .progress( animation.opts.progress ) - .done( animation.opts.done, animation.opts.complete ) - .fail( animation.opts.fail ) - .always( animation.opts.always ); - - jQuery.fx.timer( - jQuery.extend( tick, { - elem: elem, - anim: animation, - queue: animation.opts.queue - } ) - ); - - return animation; -} - -jQuery.Animation = jQuery.extend( Animation, { - - tweeners: { - "*": [ function( prop, value ) { - var tween = this.createTween( prop, value ); - adjustCSS( tween.elem, prop, rcssNum.exec( value ), tween ); - return tween; - } ] - }, - - tweener: function( props, callback ) { - if ( isFunction( props ) ) { - callback = props; - props = [ "*" ]; - } else { - props = props.match( rnothtmlwhite ); - } - - var prop, - index = 0, - length = props.length; - - for ( ; index < length; index++ ) { - prop = props[ index ]; - Animation.tweeners[ prop ] = Animation.tweeners[ prop ] || []; - Animation.tweeners[ prop ].unshift( callback ); - } - }, - - prefilters: [ defaultPrefilter ], - - prefilter: function( callback, prepend ) { - if ( prepend ) { - Animation.prefilters.unshift( callback ); - } else { - Animation.prefilters.push( callback ); - } - } -} ); - -jQuery.speed = function( speed, easing, fn ) { - var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : { - complete: fn || !fn && easing || - isFunction( speed ) && speed, - duration: speed, - easing: fn && easing || easing && !isFunction( easing ) && easing - }; - - // Go to the end state if fx are off - if ( jQuery.fx.off ) { - opt.duration = 0; - - } else { - if ( typeof opt.duration !== "number" ) { - if ( opt.duration in jQuery.fx.speeds ) { - opt.duration = jQuery.fx.speeds[ opt.duration ]; - - } else { - opt.duration = jQuery.fx.speeds._default; - } - } - } - - // Normalize opt.queue - true/undefined/null -> "fx" - if ( opt.queue == null || opt.queue === true ) { - opt.queue = "fx"; - } - - // Queueing - opt.old = opt.complete; - - opt.complete = function() { - if ( isFunction( opt.old ) ) { - opt.old.call( this ); - } - - if ( opt.queue ) { - jQuery.dequeue( this, opt.queue ); - } - }; - - return opt; -}; - -jQuery.fn.extend( { - fadeTo: function( speed, to, easing, callback ) { - - // Show any hidden elements after setting opacity to 0 - return this.filter( isHiddenWithinTree ).css( "opacity", 0 ).show() - - // Animate to the value specified - .end().animate( { opacity: to }, speed, easing, callback ); - }, - animate: function( prop, speed, easing, callback ) { - var empty = jQuery.isEmptyObject( prop ), - optall = jQuery.speed( speed, easing, callback ), - doAnimation = function() { - - // Operate on a copy of prop so per-property easing won't be lost - var anim = Animation( this, jQuery.extend( {}, prop ), optall ); - - // Empty animations, or finishing resolves immediately - if ( empty || dataPriv.get( this, "finish" ) ) { - anim.stop( true ); - } - }; - - doAnimation.finish = doAnimation; - - return empty || optall.queue === false ? - this.each( doAnimation ) : - this.queue( optall.queue, doAnimation ); - }, - stop: function( type, clearQueue, gotoEnd ) { - var stopQueue = function( hooks ) { - var stop = hooks.stop; - delete hooks.stop; - stop( gotoEnd ); - }; - - if ( typeof type !== "string" ) { - gotoEnd = clearQueue; - clearQueue = type; - type = undefined; - } - if ( clearQueue ) { - this.queue( type || "fx", [] ); - } - - return this.each( function() { - var dequeue = true, - index = type != null && type + "queueHooks", - timers = jQuery.timers, - data = dataPriv.get( this ); - - if ( index ) { - if ( data[ index ] && data[ index ].stop ) { - stopQueue( data[ index ] ); - } - } else { - for ( index in data ) { - if ( data[ index ] && data[ index ].stop && rrun.test( index ) ) { - stopQueue( data[ index ] ); - } - } - } - - for ( index = timers.length; index--; ) { - if ( timers[ index ].elem === this && - ( type == null || timers[ index ].queue === type ) ) { - - timers[ index ].anim.stop( gotoEnd ); - dequeue = false; - timers.splice( index, 1 ); - } - } - - // Start the next in the queue if the last step wasn't forced. - // Timers currently will call their complete callbacks, which - // will dequeue but only if they were gotoEnd. - if ( dequeue || !gotoEnd ) { - jQuery.dequeue( this, type ); - } - } ); - }, - finish: function( type ) { - if ( type !== false ) { - type = type || "fx"; - } - return this.each( function() { - var index, - data = dataPriv.get( this ), - queue = data[ type + "queue" ], - hooks = data[ type + "queueHooks" ], - timers = jQuery.timers, - length = queue ? queue.length : 0; - - // Enable finishing flag on private data - data.finish = true; - - // Empty the queue first - jQuery.queue( this, type, [] ); - - if ( hooks && hooks.stop ) { - hooks.stop.call( this, true ); - } - - // Look for any active animations, and finish them - for ( index = timers.length; index--; ) { - if ( timers[ index ].elem === this && timers[ index ].queue === type ) { - timers[ index ].anim.stop( true ); - timers.splice( index, 1 ); - } - } - - // Look for any animations in the old queue and finish them - for ( index = 0; index < length; index++ ) { - if ( queue[ index ] && queue[ index ].finish ) { - queue[ index ].finish.call( this ); - } - } - - // Turn off finishing flag - delete data.finish; - } ); - } -} ); - -jQuery.each( [ "toggle", "show", "hide" ], function( _i, name ) { - var cssFn = jQuery.fn[ name ]; - jQuery.fn[ name ] = function( speed, easing, callback ) { - return speed == null || typeof speed === "boolean" ? - cssFn.apply( this, arguments ) : - this.animate( genFx( name, true ), speed, easing, callback ); - }; -} ); - -// Generate shortcuts for custom animations -jQuery.each( { - slideDown: genFx( "show" ), - slideUp: genFx( "hide" ), - slideToggle: genFx( "toggle" ), - fadeIn: { opacity: "show" }, - fadeOut: { opacity: "hide" }, - fadeToggle: { opacity: "toggle" } -}, function( name, props ) { - jQuery.fn[ name ] = function( speed, easing, callback ) { - return this.animate( props, speed, easing, callback ); - }; -} ); - -jQuery.timers = []; -jQuery.fx.tick = function() { - var timer, - i = 0, - timers = jQuery.timers; - - fxNow = Date.now(); - - for ( ; i < timers.length; i++ ) { - timer = timers[ i ]; - - // Run the timer and safely remove it when done (allowing for external removal) - if ( !timer() && timers[ i ] === timer ) { - timers.splice( i--, 1 ); - } - } - - if ( !timers.length ) { - jQuery.fx.stop(); - } - fxNow = undefined; -}; - -jQuery.fx.timer = function( timer ) { - jQuery.timers.push( timer ); - jQuery.fx.start(); -}; - -jQuery.fx.interval = 13; -jQuery.fx.start = function() { - if ( inProgress ) { - return; - } - - inProgress = true; - schedule(); -}; - -jQuery.fx.stop = function() { - inProgress = null; -}; - -jQuery.fx.speeds = { - slow: 600, - fast: 200, - - // Default speed - _default: 400 -}; - - -// Based off of the plugin by Clint Helfers, with permission. -// https://web.archive.org/web/20100324014747/http://blindsignals.com/index.php/2009/07/jquery-delay/ -jQuery.fn.delay = function( time, type ) { - time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time; - type = type || "fx"; - - return this.queue( type, function( next, hooks ) { - var timeout = window.setTimeout( next, time ); - hooks.stop = function() { - window.clearTimeout( timeout ); - }; - } ); -}; - - -( function() { - var input = document.createElement( "input" ), - select = document.createElement( "select" ), - opt = select.appendChild( document.createElement( "option" ) ); - - input.type = "checkbox"; - - // Support: Android <=4.3 only - // Default value for a checkbox should be "on" - support.checkOn = input.value !== ""; - - // Support: IE <=11 only - // Must access selectedIndex to make default options select - support.optSelected = opt.selected; - - // Support: IE <=11 only - // An input loses its value after becoming a radio - input = document.createElement( "input" ); - input.value = "t"; - input.type = "radio"; - support.radioValue = input.value === "t"; -} )(); - - -var boolHook, - attrHandle = jQuery.expr.attrHandle; - -jQuery.fn.extend( { - attr: function( name, value ) { - return access( this, jQuery.attr, name, value, arguments.length > 1 ); - }, - - removeAttr: function( name ) { - return this.each( function() { - jQuery.removeAttr( this, name ); - } ); - } -} ); - -jQuery.extend( { - attr: function( elem, name, value ) { - var ret, hooks, - nType = elem.nodeType; - - // Don't get/set attributes on text, comment and attribute nodes - if ( nType === 3 || nType === 8 || nType === 2 ) { - return; - } - - // Fallback to prop when attributes are not supported - if ( typeof elem.getAttribute === "undefined" ) { - return jQuery.prop( elem, name, value ); - } - - // Attribute hooks are determined by the lowercase version - // Grab necessary hook if one is defined - if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) { - hooks = jQuery.attrHooks[ name.toLowerCase() ] || - ( jQuery.expr.match.bool.test( name ) ? boolHook : undefined ); - } - - if ( value !== undefined ) { - if ( value === null ) { - jQuery.removeAttr( elem, name ); - return; - } - - if ( hooks && "set" in hooks && - ( ret = hooks.set( elem, value, name ) ) !== undefined ) { - return ret; - } - - elem.setAttribute( name, value + "" ); - return value; - } - - if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) { - return ret; - } - - ret = jQuery.find.attr( elem, name ); - - // Non-existent attributes return null, we normalize to undefined - return ret == null ? undefined : ret; - }, - - attrHooks: { - type: { - set: function( elem, value ) { - if ( !support.radioValue && value === "radio" && - nodeName( elem, "input" ) ) { - var val = elem.value; - elem.setAttribute( "type", value ); - if ( val ) { - elem.value = val; - } - return value; - } - } - } - }, - - removeAttr: function( elem, value ) { - var name, - i = 0, - - // Attribute names can contain non-HTML whitespace characters - // https://html.spec.whatwg.org/multipage/syntax.html#attributes-2 - attrNames = value && value.match( rnothtmlwhite ); - - if ( attrNames && elem.nodeType === 1 ) { - while ( ( name = attrNames[ i++ ] ) ) { - elem.removeAttribute( name ); - } - } - } -} ); - -// Hooks for boolean attributes -boolHook = { - set: function( elem, value, name ) { - if ( value === false ) { - - // Remove boolean attributes when set to false - jQuery.removeAttr( elem, name ); - } else { - elem.setAttribute( name, name ); - } - return name; - } -}; - -jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( _i, name ) { - var getter = attrHandle[ name ] || jQuery.find.attr; - - attrHandle[ name ] = function( elem, name, isXML ) { - var ret, handle, - lowercaseName = name.toLowerCase(); - - if ( !isXML ) { - - // Avoid an infinite loop by temporarily removing this function from the getter - handle = attrHandle[ lowercaseName ]; - attrHandle[ lowercaseName ] = ret; - ret = getter( elem, name, isXML ) != null ? - lowercaseName : - null; - attrHandle[ lowercaseName ] = handle; - } - return ret; - }; -} ); - - - - -var rfocusable = /^(?:input|select|textarea|button)$/i, - rclickable = /^(?:a|area)$/i; - -jQuery.fn.extend( { - prop: function( name, value ) { - return access( this, jQuery.prop, name, value, arguments.length > 1 ); - }, - - removeProp: function( name ) { - return this.each( function() { - delete this[ jQuery.propFix[ name ] || name ]; - } ); - } -} ); - -jQuery.extend( { - prop: function( elem, name, value ) { - var ret, hooks, - nType = elem.nodeType; - - // Don't get/set properties on text, comment and attribute nodes - if ( nType === 3 || nType === 8 || nType === 2 ) { - return; - } - - if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) { - - // Fix name and attach hooks - name = jQuery.propFix[ name ] || name; - hooks = jQuery.propHooks[ name ]; - } - - if ( value !== undefined ) { - if ( hooks && "set" in hooks && - ( ret = hooks.set( elem, value, name ) ) !== undefined ) { - return ret; - } - - return ( elem[ name ] = value ); - } - - if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) { - return ret; - } - - return elem[ name ]; - }, - - propHooks: { - tabIndex: { - get: function( elem ) { - - // Support: IE <=9 - 11 only - // elem.tabIndex doesn't always return the - // correct value when it hasn't been explicitly set - // https://web.archive.org/web/20141116233347/http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/ - // Use proper attribute retrieval(#12072) - var tabindex = jQuery.find.attr( elem, "tabindex" ); - - if ( tabindex ) { - return parseInt( tabindex, 10 ); - } - - if ( - rfocusable.test( elem.nodeName ) || - rclickable.test( elem.nodeName ) && - elem.href - ) { - return 0; - } - - return -1; - } - } - }, - - propFix: { - "for": "htmlFor", - "class": "className" - } -} ); - -// Support: IE <=11 only -// Accessing the selectedIndex property -// forces the browser to respect setting selected -// on the option -// The getter ensures a default option is selected -// when in an optgroup -// eslint rule "no-unused-expressions" is disabled for this code -// since it considers such accessions noop -if ( !support.optSelected ) { - jQuery.propHooks.selected = { - get: function( elem ) { - - /* eslint no-unused-expressions: "off" */ - - var parent = elem.parentNode; - if ( parent && parent.parentNode ) { - parent.parentNode.selectedIndex; - } - return null; - }, - set: function( elem ) { - - /* eslint no-unused-expressions: "off" */ - - var parent = elem.parentNode; - if ( parent ) { - parent.selectedIndex; - - if ( parent.parentNode ) { - parent.parentNode.selectedIndex; - } - } - } - }; -} - -jQuery.each( [ - "tabIndex", - "readOnly", - "maxLength", - "cellSpacing", - "cellPadding", - "rowSpan", - "colSpan", - "useMap", - "frameBorder", - "contentEditable" -], function() { - jQuery.propFix[ this.toLowerCase() ] = this; -} ); - - - - - // Strip and collapse whitespace according to HTML spec - // https://infra.spec.whatwg.org/#strip-and-collapse-ascii-whitespace - function stripAndCollapse( value ) { - var tokens = value.match( rnothtmlwhite ) || []; - return tokens.join( " " ); - } - - -function getClass( elem ) { - return elem.getAttribute && elem.getAttribute( "class" ) || ""; -} - -function classesToArray( value ) { - if ( Array.isArray( value ) ) { - return value; - } - if ( typeof value === "string" ) { - return value.match( rnothtmlwhite ) || []; - } - return []; -} - -jQuery.fn.extend( { - addClass: function( value ) { - var classes, elem, cur, curValue, clazz, j, finalValue, - i = 0; - - if ( isFunction( value ) ) { - return this.each( function( j ) { - jQuery( this ).addClass( value.call( this, j, getClass( this ) ) ); - } ); - } - - classes = classesToArray( value ); - - if ( classes.length ) { - while ( ( elem = this[ i++ ] ) ) { - curValue = getClass( elem ); - cur = elem.nodeType === 1 && ( " " + stripAndCollapse( curValue ) + " " ); - - if ( cur ) { - j = 0; - while ( ( clazz = classes[ j++ ] ) ) { - if ( cur.indexOf( " " + clazz + " " ) < 0 ) { - cur += clazz + " "; - } - } - - // Only assign if different to avoid unneeded rendering. - finalValue = stripAndCollapse( cur ); - if ( curValue !== finalValue ) { - elem.setAttribute( "class", finalValue ); - } - } - } - } - - return this; - }, - - removeClass: function( value ) { - var classes, elem, cur, curValue, clazz, j, finalValue, - i = 0; - - if ( isFunction( value ) ) { - return this.each( function( j ) { - jQuery( this ).removeClass( value.call( this, j, getClass( this ) ) ); - } ); - } - - if ( !arguments.length ) { - return this.attr( "class", "" ); - } - - classes = classesToArray( value ); - - if ( classes.length ) { - while ( ( elem = this[ i++ ] ) ) { - curValue = getClass( elem ); - - // This expression is here for better compressibility (see addClass) - cur = elem.nodeType === 1 && ( " " + stripAndCollapse( curValue ) + " " ); - - if ( cur ) { - j = 0; - while ( ( clazz = classes[ j++ ] ) ) { - - // Remove *all* instances - while ( cur.indexOf( " " + clazz + " " ) > -1 ) { - cur = cur.replace( " " + clazz + " ", " " ); - } - } - - // Only assign if different to avoid unneeded rendering. - finalValue = stripAndCollapse( cur ); - if ( curValue !== finalValue ) { - elem.setAttribute( "class", finalValue ); - } - } - } - } - - return this; - }, - - toggleClass: function( value, stateVal ) { - var type = typeof value, - isValidValue = type === "string" || Array.isArray( value ); - - if ( typeof stateVal === "boolean" && isValidValue ) { - return stateVal ? this.addClass( value ) : this.removeClass( value ); - } - - if ( isFunction( value ) ) { - return this.each( function( i ) { - jQuery( this ).toggleClass( - value.call( this, i, getClass( this ), stateVal ), - stateVal - ); - } ); - } - - return this.each( function() { - var className, i, self, classNames; - - if ( isValidValue ) { - - // Toggle individual class names - i = 0; - self = jQuery( this ); - classNames = classesToArray( value ); - - while ( ( className = classNames[ i++ ] ) ) { - - // Check each className given, space separated list - if ( self.hasClass( className ) ) { - self.removeClass( className ); - } else { - self.addClass( className ); - } - } - - // Toggle whole class name - } else if ( value === undefined || type === "boolean" ) { - className = getClass( this ); - if ( className ) { - - // Store className if set - dataPriv.set( this, "__className__", className ); - } - - // If the element has a class name or if we're passed `false`, - // then remove the whole classname (if there was one, the above saved it). - // Otherwise bring back whatever was previously saved (if anything), - // falling back to the empty string if nothing was stored. - if ( this.setAttribute ) { - this.setAttribute( "class", - className || value === false ? - "" : - dataPriv.get( this, "__className__" ) || "" - ); - } - } - } ); - }, - - hasClass: function( selector ) { - var className, elem, - i = 0; - - className = " " + selector + " "; - while ( ( elem = this[ i++ ] ) ) { - if ( elem.nodeType === 1 && - ( " " + stripAndCollapse( getClass( elem ) ) + " " ).indexOf( className ) > -1 ) { - return true; - } - } - - return false; - } -} ); - - - - -var rreturn = /\r/g; - -jQuery.fn.extend( { - val: function( value ) { - var hooks, ret, valueIsFunction, - elem = this[ 0 ]; - - if ( !arguments.length ) { - if ( elem ) { - hooks = jQuery.valHooks[ elem.type ] || - jQuery.valHooks[ elem.nodeName.toLowerCase() ]; - - if ( hooks && - "get" in hooks && - ( ret = hooks.get( elem, "value" ) ) !== undefined - ) { - return ret; - } - - ret = elem.value; - - // Handle most common string cases - if ( typeof ret === "string" ) { - return ret.replace( rreturn, "" ); - } - - // Handle cases where value is null/undef or number - return ret == null ? "" : ret; - } - - return; - } - - valueIsFunction = isFunction( value ); - - return this.each( function( i ) { - var val; - - if ( this.nodeType !== 1 ) { - return; - } - - if ( valueIsFunction ) { - val = value.call( this, i, jQuery( this ).val() ); - } else { - val = value; - } - - // Treat null/undefined as ""; convert numbers to string - if ( val == null ) { - val = ""; - - } else if ( typeof val === "number" ) { - val += ""; - - } else if ( Array.isArray( val ) ) { - val = jQuery.map( val, function( value ) { - return value == null ? "" : value + ""; - } ); - } - - hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ]; - - // If set returns undefined, fall back to normal setting - if ( !hooks || !( "set" in hooks ) || hooks.set( this, val, "value" ) === undefined ) { - this.value = val; - } - } ); - } -} ); - -jQuery.extend( { - valHooks: { - option: { - get: function( elem ) { - - var val = jQuery.find.attr( elem, "value" ); - return val != null ? - val : - - // Support: IE <=10 - 11 only - // option.text throws exceptions (#14686, #14858) - // Strip and collapse whitespace - // https://html.spec.whatwg.org/#strip-and-collapse-whitespace - stripAndCollapse( jQuery.text( elem ) ); - } - }, - select: { - get: function( elem ) { - var value, option, i, - options = elem.options, - index = elem.selectedIndex, - one = elem.type === "select-one", - values = one ? null : [], - max = one ? index + 1 : options.length; - - if ( index < 0 ) { - i = max; - - } else { - i = one ? index : 0; - } - - // Loop through all the selected options - for ( ; i < max; i++ ) { - option = options[ i ]; - - // Support: IE <=9 only - // IE8-9 doesn't update selected after form reset (#2551) - if ( ( option.selected || i === index ) && - - // Don't return options that are disabled or in a disabled optgroup - !option.disabled && - ( !option.parentNode.disabled || - !nodeName( option.parentNode, "optgroup" ) ) ) { - - // Get the specific value for the option - value = jQuery( option ).val(); - - // We don't need an array for one selects - if ( one ) { - return value; - } - - // Multi-Selects return an array - values.push( value ); - } - } - - return values; - }, - - set: function( elem, value ) { - var optionSet, option, - options = elem.options, - values = jQuery.makeArray( value ), - i = options.length; - - while ( i-- ) { - option = options[ i ]; - - /* eslint-disable no-cond-assign */ - - if ( option.selected = - jQuery.inArray( jQuery.valHooks.option.get( option ), values ) > -1 - ) { - optionSet = true; - } - - /* eslint-enable no-cond-assign */ - } - - // Force browsers to behave consistently when non-matching value is set - if ( !optionSet ) { - elem.selectedIndex = -1; - } - return values; - } - } - } -} ); - -// Radios and checkboxes getter/setter -jQuery.each( [ "radio", "checkbox" ], function() { - jQuery.valHooks[ this ] = { - set: function( elem, value ) { - if ( Array.isArray( value ) ) { - return ( elem.checked = jQuery.inArray( jQuery( elem ).val(), value ) > -1 ); - } - } - }; - if ( !support.checkOn ) { - jQuery.valHooks[ this ].get = function( elem ) { - return elem.getAttribute( "value" ) === null ? "on" : elem.value; - }; - } -} ); - - - - -// Return jQuery for attributes-only inclusion - - -support.focusin = "onfocusin" in window; - - -var rfocusMorph = /^(?:focusinfocus|focusoutblur)$/, - stopPropagationCallback = function( e ) { - e.stopPropagation(); - }; - -jQuery.extend( jQuery.event, { - - trigger: function( event, data, elem, onlyHandlers ) { - - var i, cur, tmp, bubbleType, ontype, handle, special, lastElement, - eventPath = [ elem || document ], - type = hasOwn.call( event, "type" ) ? event.type : event, - namespaces = hasOwn.call( event, "namespace" ) ? event.namespace.split( "." ) : []; - - cur = lastElement = tmp = elem = elem || document; - - // Don't do events on text and comment nodes - if ( elem.nodeType === 3 || elem.nodeType === 8 ) { - return; - } - - // focus/blur morphs to focusin/out; ensure we're not firing them right now - if ( rfocusMorph.test( type + jQuery.event.triggered ) ) { - return; - } - - if ( type.indexOf( "." ) > -1 ) { - - // Namespaced trigger; create a regexp to match event type in handle() - namespaces = type.split( "." ); - type = namespaces.shift(); - namespaces.sort(); - } - ontype = type.indexOf( ":" ) < 0 && "on" + type; - - // Caller can pass in a jQuery.Event object, Object, or just an event type string - event = event[ jQuery.expando ] ? - event : - new jQuery.Event( type, typeof event === "object" && event ); - - // Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true) - event.isTrigger = onlyHandlers ? 2 : 3; - event.namespace = namespaces.join( "." ); - event.rnamespace = event.namespace ? - new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" ) : - null; - - // Clean up the event in case it is being reused - event.result = undefined; - if ( !event.target ) { - event.target = elem; - } - - // Clone any incoming data and prepend the event, creating the handler arg list - data = data == null ? - [ event ] : - jQuery.makeArray( data, [ event ] ); - - // Allow special events to draw outside the lines - special = jQuery.event.special[ type ] || {}; - if ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) { - return; - } - - // Determine event propagation path in advance, per W3C events spec (#9951) - // Bubble up to document, then to window; watch for a global ownerDocument var (#9724) - if ( !onlyHandlers && !special.noBubble && !isWindow( elem ) ) { - - bubbleType = special.delegateType || type; - if ( !rfocusMorph.test( bubbleType + type ) ) { - cur = cur.parentNode; - } - for ( ; cur; cur = cur.parentNode ) { - eventPath.push( cur ); - tmp = cur; - } - - // Only add window if we got to document (e.g., not plain obj or detached DOM) - if ( tmp === ( elem.ownerDocument || document ) ) { - eventPath.push( tmp.defaultView || tmp.parentWindow || window ); - } - } - - // Fire handlers on the event path - i = 0; - while ( ( cur = eventPath[ i++ ] ) && !event.isPropagationStopped() ) { - lastElement = cur; - event.type = i > 1 ? - bubbleType : - special.bindType || type; - - // jQuery handler - handle = ( dataPriv.get( cur, "events" ) || Object.create( null ) )[ event.type ] && - dataPriv.get( cur, "handle" ); - if ( handle ) { - handle.apply( cur, data ); - } - - // Native handler - handle = ontype && cur[ ontype ]; - if ( handle && handle.apply && acceptData( cur ) ) { - event.result = handle.apply( cur, data ); - if ( event.result === false ) { - event.preventDefault(); - } - } - } - event.type = type; - - // If nobody prevented the default action, do it now - if ( !onlyHandlers && !event.isDefaultPrevented() ) { - - if ( ( !special._default || - special._default.apply( eventPath.pop(), data ) === false ) && - acceptData( elem ) ) { - - // Call a native DOM method on the target with the same name as the event. - // Don't do default actions on window, that's where global variables be (#6170) - if ( ontype && isFunction( elem[ type ] ) && !isWindow( elem ) ) { - - // Don't re-trigger an onFOO event when we call its FOO() method - tmp = elem[ ontype ]; - - if ( tmp ) { - elem[ ontype ] = null; - } - - // Prevent re-triggering of the same event, since we already bubbled it above - jQuery.event.triggered = type; - - if ( event.isPropagationStopped() ) { - lastElement.addEventListener( type, stopPropagationCallback ); - } - - elem[ type ](); - - if ( event.isPropagationStopped() ) { - lastElement.removeEventListener( type, stopPropagationCallback ); - } - - jQuery.event.triggered = undefined; - - if ( tmp ) { - elem[ ontype ] = tmp; - } - } - } - } - - return event.result; - }, - - // Piggyback on a donor event to simulate a different one - // Used only for `focus(in | out)` events - simulate: function( type, elem, event ) { - var e = jQuery.extend( - new jQuery.Event(), - event, - { - type: type, - isSimulated: true - } - ); - - jQuery.event.trigger( e, null, elem ); - } - -} ); - -jQuery.fn.extend( { - - trigger: function( type, data ) { - return this.each( function() { - jQuery.event.trigger( type, data, this ); - } ); - }, - triggerHandler: function( type, data ) { - var elem = this[ 0 ]; - if ( elem ) { - return jQuery.event.trigger( type, data, elem, true ); - } - } -} ); - - -// Support: Firefox <=44 -// Firefox doesn't have focus(in | out) events -// Related ticket - https://bugzilla.mozilla.org/show_bug.cgi?id=687787 -// -// Support: Chrome <=48 - 49, Safari <=9.0 - 9.1 -// focus(in | out) events fire after focus & blur events, -// which is spec violation - http://www.w3.org/TR/DOM-Level-3-Events/#events-focusevent-event-order -// Related ticket - https://bugs.chromium.org/p/chromium/issues/detail?id=449857 -if ( !support.focusin ) { - jQuery.each( { focus: "focusin", blur: "focusout" }, function( orig, fix ) { - - // Attach a single capturing handler on the document while someone wants focusin/focusout - var handler = function( event ) { - jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ) ); - }; - - jQuery.event.special[ fix ] = { - setup: function() { - - // Handle: regular nodes (via `this.ownerDocument`), window - // (via `this.document`) & document (via `this`). - var doc = this.ownerDocument || this.document || this, - attaches = dataPriv.access( doc, fix ); - - if ( !attaches ) { - doc.addEventListener( orig, handler, true ); - } - dataPriv.access( doc, fix, ( attaches || 0 ) + 1 ); - }, - teardown: function() { - var doc = this.ownerDocument || this.document || this, - attaches = dataPriv.access( doc, fix ) - 1; - - if ( !attaches ) { - doc.removeEventListener( orig, handler, true ); - dataPriv.remove( doc, fix ); - - } else { - dataPriv.access( doc, fix, attaches ); - } - } - }; - } ); -} -var location = window.location; - -var nonce = { guid: Date.now() }; - -var rquery = ( /\?/ ); - - - -// Cross-browser xml parsing -jQuery.parseXML = function( data ) { - var xml, parserErrorElem; - if ( !data || typeof data !== "string" ) { - return null; - } - - // Support: IE 9 - 11 only - // IE throws on parseFromString with invalid input. - try { - xml = ( new window.DOMParser() ).parseFromString( data, "text/xml" ); - } catch ( e ) {} - - parserErrorElem = xml && xml.getElementsByTagName( "parsererror" )[ 0 ]; - if ( !xml || parserErrorElem ) { - jQuery.error( "Invalid XML: " + ( - parserErrorElem ? - jQuery.map( parserErrorElem.childNodes, function( el ) { - return el.textContent; - } ).join( "\n" ) : - data - ) ); - } - return xml; -}; - - -var - rbracket = /\[\]$/, - rCRLF = /\r?\n/g, - rsubmitterTypes = /^(?:submit|button|image|reset|file)$/i, - rsubmittable = /^(?:input|select|textarea|keygen)/i; - -function buildParams( prefix, obj, traditional, add ) { - var name; - - if ( Array.isArray( obj ) ) { - - // Serialize array item. - jQuery.each( obj, function( i, v ) { - if ( traditional || rbracket.test( prefix ) ) { - - // Treat each array item as a scalar. - add( prefix, v ); - - } else { - - // Item is non-scalar (array or object), encode its numeric index. - buildParams( - prefix + "[" + ( typeof v === "object" && v != null ? i : "" ) + "]", - v, - traditional, - add - ); - } - } ); - - } else if ( !traditional && toType( obj ) === "object" ) { - - // Serialize object item. - for ( name in obj ) { - buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add ); - } - - } else { - - // Serialize scalar item. - add( prefix, obj ); - } -} - -// Serialize an array of form elements or a set of -// key/values into a query string -jQuery.param = function( a, traditional ) { - var prefix, - s = [], - add = function( key, valueOrFunction ) { - - // If value is a function, invoke it and use its return value - var value = isFunction( valueOrFunction ) ? - valueOrFunction() : - valueOrFunction; - - s[ s.length ] = encodeURIComponent( key ) + "=" + - encodeURIComponent( value == null ? "" : value ); - }; - - if ( a == null ) { - return ""; - } - - // If an array was passed in, assume that it is an array of form elements. - if ( Array.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) { - - // Serialize the form elements - jQuery.each( a, function() { - add( this.name, this.value ); - } ); - - } else { - - // If traditional, encode the "old" way (the way 1.3.2 or older - // did it), otherwise encode params recursively. - for ( prefix in a ) { - buildParams( prefix, a[ prefix ], traditional, add ); - } - } - - // Return the resulting serialization - return s.join( "&" ); -}; - -jQuery.fn.extend( { - serialize: function() { - return jQuery.param( this.serializeArray() ); - }, - serializeArray: function() { - return this.map( function() { - - // Can add propHook for "elements" to filter or add form elements - var elements = jQuery.prop( this, "elements" ); - return elements ? jQuery.makeArray( elements ) : this; - } ).filter( function() { - var type = this.type; - - // Use .is( ":disabled" ) so that fieldset[disabled] works - return this.name && !jQuery( this ).is( ":disabled" ) && - rsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) && - ( this.checked || !rcheckableType.test( type ) ); - } ).map( function( _i, elem ) { - var val = jQuery( this ).val(); - - if ( val == null ) { - return null; - } - - if ( Array.isArray( val ) ) { - return jQuery.map( val, function( val ) { - return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) }; - } ); - } - - return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) }; - } ).get(); - } -} ); - - -var - r20 = /%20/g, - rhash = /#.*$/, - rantiCache = /([?&])_=[^&]*/, - rheaders = /^(.*?):[ \t]*([^\r\n]*)$/mg, - - // #7653, #8125, #8152: local protocol detection - rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/, - rnoContent = /^(?:GET|HEAD)$/, - rprotocol = /^\/\//, - - /* Prefilters - * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example) - * 2) These are called: - * - BEFORE asking for a transport - * - AFTER param serialization (s.data is a string if s.processData is true) - * 3) key is the dataType - * 4) the catchall symbol "*" can be used - * 5) execution will start with transport dataType and THEN continue down to "*" if needed - */ - prefilters = {}, - - /* Transports bindings - * 1) key is the dataType - * 2) the catchall symbol "*" can be used - * 3) selection will start with transport dataType and THEN go to "*" if needed - */ - transports = {}, - - // Avoid comment-prolog char sequence (#10098); must appease lint and evade compression - allTypes = "*/".concat( "*" ), - - // Anchor tag for parsing the document origin - originAnchor = document.createElement( "a" ); - -originAnchor.href = location.href; - -// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport -function addToPrefiltersOrTransports( structure ) { - - // dataTypeExpression is optional and defaults to "*" - return function( dataTypeExpression, func ) { - - if ( typeof dataTypeExpression !== "string" ) { - func = dataTypeExpression; - dataTypeExpression = "*"; - } - - var dataType, - i = 0, - dataTypes = dataTypeExpression.toLowerCase().match( rnothtmlwhite ) || []; - - if ( isFunction( func ) ) { - - // For each dataType in the dataTypeExpression - while ( ( dataType = dataTypes[ i++ ] ) ) { - - // Prepend if requested - if ( dataType[ 0 ] === "+" ) { - dataType = dataType.slice( 1 ) || "*"; - ( structure[ dataType ] = structure[ dataType ] || [] ).unshift( func ); - - // Otherwise append - } else { - ( structure[ dataType ] = structure[ dataType ] || [] ).push( func ); - } - } - } - }; -} - -// Base inspection function for prefilters and transports -function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) { - - var inspected = {}, - seekingTransport = ( structure === transports ); - - function inspect( dataType ) { - var selected; - inspected[ dataType ] = true; - jQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) { - var dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR ); - if ( typeof dataTypeOrTransport === "string" && - !seekingTransport && !inspected[ dataTypeOrTransport ] ) { - - options.dataTypes.unshift( dataTypeOrTransport ); - inspect( dataTypeOrTransport ); - return false; - } else if ( seekingTransport ) { - return !( selected = dataTypeOrTransport ); - } - } ); - return selected; - } - - return inspect( options.dataTypes[ 0 ] ) || !inspected[ "*" ] && inspect( "*" ); -} - -// A special extend for ajax options -// that takes "flat" options (not to be deep extended) -// Fixes #9887 -function ajaxExtend( target, src ) { - var key, deep, - flatOptions = jQuery.ajaxSettings.flatOptions || {}; - - for ( key in src ) { - if ( src[ key ] !== undefined ) { - ( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ]; - } - } - if ( deep ) { - jQuery.extend( true, target, deep ); - } - - return target; -} - -/* Handles responses to an ajax request: - * - finds the right dataType (mediates between content-type and expected dataType) - * - returns the corresponding response - */ -function ajaxHandleResponses( s, jqXHR, responses ) { - - var ct, type, finalDataType, firstDataType, - contents = s.contents, - dataTypes = s.dataTypes; - - // Remove auto dataType and get content-type in the process - while ( dataTypes[ 0 ] === "*" ) { - dataTypes.shift(); - if ( ct === undefined ) { - ct = s.mimeType || jqXHR.getResponseHeader( "Content-Type" ); - } - } - - // Check if we're dealing with a known content-type - if ( ct ) { - for ( type in contents ) { - if ( contents[ type ] && contents[ type ].test( ct ) ) { - dataTypes.unshift( type ); - break; - } - } - } - - // Check to see if we have a response for the expected dataType - if ( dataTypes[ 0 ] in responses ) { - finalDataType = dataTypes[ 0 ]; - } else { - - // Try convertible dataTypes - for ( type in responses ) { - if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[ 0 ] ] ) { - finalDataType = type; - break; - } - if ( !firstDataType ) { - firstDataType = type; - } - } - - // Or just use first one - finalDataType = finalDataType || firstDataType; - } - - // If we found a dataType - // We add the dataType to the list if needed - // and return the corresponding response - if ( finalDataType ) { - if ( finalDataType !== dataTypes[ 0 ] ) { - dataTypes.unshift( finalDataType ); - } - return responses[ finalDataType ]; - } -} - -/* Chain conversions given the request and the original response - * Also sets the responseXXX fields on the jqXHR instance - */ -function ajaxConvert( s, response, jqXHR, isSuccess ) { - var conv2, current, conv, tmp, prev, - converters = {}, - - // Work with a copy of dataTypes in case we need to modify it for conversion - dataTypes = s.dataTypes.slice(); - - // Create converters map with lowercased keys - if ( dataTypes[ 1 ] ) { - for ( conv in s.converters ) { - converters[ conv.toLowerCase() ] = s.converters[ conv ]; - } - } - - current = dataTypes.shift(); - - // Convert to each sequential dataType - while ( current ) { - - if ( s.responseFields[ current ] ) { - jqXHR[ s.responseFields[ current ] ] = response; - } - - // Apply the dataFilter if provided - if ( !prev && isSuccess && s.dataFilter ) { - response = s.dataFilter( response, s.dataType ); - } - - prev = current; - current = dataTypes.shift(); - - if ( current ) { - - // There's only work to do if current dataType is non-auto - if ( current === "*" ) { - - current = prev; - - // Convert response if prev dataType is non-auto and differs from current - } else if ( prev !== "*" && prev !== current ) { - - // Seek a direct converter - conv = converters[ prev + " " + current ] || converters[ "* " + current ]; - - // If none found, seek a pair - if ( !conv ) { - for ( conv2 in converters ) { - - // If conv2 outputs current - tmp = conv2.split( " " ); - if ( tmp[ 1 ] === current ) { - - // If prev can be converted to accepted input - conv = converters[ prev + " " + tmp[ 0 ] ] || - converters[ "* " + tmp[ 0 ] ]; - if ( conv ) { - - // Condense equivalence converters - if ( conv === true ) { - conv = converters[ conv2 ]; - - // Otherwise, insert the intermediate dataType - } else if ( converters[ conv2 ] !== true ) { - current = tmp[ 0 ]; - dataTypes.unshift( tmp[ 1 ] ); - } - break; - } - } - } - } - - // Apply converter (if not an equivalence) - if ( conv !== true ) { - - // Unless errors are allowed to bubble, catch and return them - if ( conv && s.throws ) { - response = conv( response ); - } else { - try { - response = conv( response ); - } catch ( e ) { - return { - state: "parsererror", - error: conv ? e : "No conversion from " + prev + " to " + current - }; - } - } - } - } - } - } - - return { state: "success", data: response }; -} - -jQuery.extend( { - - // Counter for holding the number of active queries - active: 0, - - // Last-Modified header cache for next request - lastModified: {}, - etag: {}, - - ajaxSettings: { - url: location.href, - type: "GET", - isLocal: rlocalProtocol.test( location.protocol ), - global: true, - processData: true, - async: true, - contentType: "application/x-www-form-urlencoded; charset=UTF-8", - - /* - timeout: 0, - data: null, - dataType: null, - username: null, - password: null, - cache: null, - throws: false, - traditional: false, - headers: {}, - */ - - accepts: { - "*": allTypes, - text: "text/plain", - html: "text/html", - xml: "application/xml, text/xml", - json: "application/json, text/javascript" - }, - - contents: { - xml: /\bxml\b/, - html: /\bhtml/, - json: /\bjson\b/ - }, - - responseFields: { - xml: "responseXML", - text: "responseText", - json: "responseJSON" - }, - - // Data converters - // Keys separate source (or catchall "*") and destination types with a single space - converters: { - - // Convert anything to text - "* text": String, - - // Text to html (true = no transformation) - "text html": true, - - // Evaluate text as a json expression - "text json": JSON.parse, - - // Parse text as xml - "text xml": jQuery.parseXML - }, - - // For options that shouldn't be deep extended: - // you can add your own custom options here if - // and when you create one that shouldn't be - // deep extended (see ajaxExtend) - flatOptions: { - url: true, - context: true - } - }, - - // Creates a full fledged settings object into target - // with both ajaxSettings and settings fields. - // If target is omitted, writes into ajaxSettings. - ajaxSetup: function( target, settings ) { - return settings ? - - // Building a settings object - ajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) : - - // Extending ajaxSettings - ajaxExtend( jQuery.ajaxSettings, target ); - }, - - ajaxPrefilter: addToPrefiltersOrTransports( prefilters ), - ajaxTransport: addToPrefiltersOrTransports( transports ), - - // Main method - ajax: function( url, options ) { - - // If url is an object, simulate pre-1.5 signature - if ( typeof url === "object" ) { - options = url; - url = undefined; - } - - // Force options to be an object - options = options || {}; - - var transport, - - // URL without anti-cache param - cacheURL, - - // Response headers - responseHeadersString, - responseHeaders, - - // timeout handle - timeoutTimer, - - // Url cleanup var - urlAnchor, - - // Request state (becomes false upon send and true upon completion) - completed, - - // To know if global events are to be dispatched - fireGlobals, - - // Loop variable - i, - - // uncached part of the url - uncached, - - // Create the final options object - s = jQuery.ajaxSetup( {}, options ), - - // Callbacks context - callbackContext = s.context || s, - - // Context for global events is callbackContext if it is a DOM node or jQuery collection - globalEventContext = s.context && - ( callbackContext.nodeType || callbackContext.jquery ) ? - jQuery( callbackContext ) : - jQuery.event, - - // Deferreds - deferred = jQuery.Deferred(), - completeDeferred = jQuery.Callbacks( "once memory" ), - - // Status-dependent callbacks - statusCode = s.statusCode || {}, - - // Headers (they are sent all at once) - requestHeaders = {}, - requestHeadersNames = {}, - - // Default abort message - strAbort = "canceled", - - // Fake xhr - jqXHR = { - readyState: 0, - - // Builds headers hashtable if needed - getResponseHeader: function( key ) { - var match; - if ( completed ) { - if ( !responseHeaders ) { - responseHeaders = {}; - while ( ( match = rheaders.exec( responseHeadersString ) ) ) { - responseHeaders[ match[ 1 ].toLowerCase() + " " ] = - ( responseHeaders[ match[ 1 ].toLowerCase() + " " ] || [] ) - .concat( match[ 2 ] ); - } - } - match = responseHeaders[ key.toLowerCase() + " " ]; - } - return match == null ? null : match.join( ", " ); - }, - - // Raw string - getAllResponseHeaders: function() { - return completed ? responseHeadersString : null; - }, - - // Caches the header - setRequestHeader: function( name, value ) { - if ( completed == null ) { - name = requestHeadersNames[ name.toLowerCase() ] = - requestHeadersNames[ name.toLowerCase() ] || name; - requestHeaders[ name ] = value; - } - return this; - }, - - // Overrides response content-type header - overrideMimeType: function( type ) { - if ( completed == null ) { - s.mimeType = type; - } - return this; - }, - - // Status-dependent callbacks - statusCode: function( map ) { - var code; - if ( map ) { - if ( completed ) { - - // Execute the appropriate callbacks - jqXHR.always( map[ jqXHR.status ] ); - } else { - - // Lazy-add the new callbacks in a way that preserves old ones - for ( code in map ) { - statusCode[ code ] = [ statusCode[ code ], map[ code ] ]; - } - } - } - return this; - }, - - // Cancel the request - abort: function( statusText ) { - var finalText = statusText || strAbort; - if ( transport ) { - transport.abort( finalText ); - } - done( 0, finalText ); - return this; - } - }; - - // Attach deferreds - deferred.promise( jqXHR ); - - // Add protocol if not provided (prefilters might expect it) - // Handle falsy url in the settings object (#10093: consistency with old signature) - // We also use the url parameter if available - s.url = ( ( url || s.url || location.href ) + "" ) - .replace( rprotocol, location.protocol + "//" ); - - // Alias method option to type as per ticket #12004 - s.type = options.method || options.type || s.method || s.type; - - // Extract dataTypes list - s.dataTypes = ( s.dataType || "*" ).toLowerCase().match( rnothtmlwhite ) || [ "" ]; - - // A cross-domain request is in order when the origin doesn't match the current origin. - if ( s.crossDomain == null ) { - urlAnchor = document.createElement( "a" ); - - // Support: IE <=8 - 11, Edge 12 - 15 - // IE throws exception on accessing the href property if url is malformed, - // e.g. http://example.com:80x/ - try { - urlAnchor.href = s.url; - - // Support: IE <=8 - 11 only - // Anchor's host property isn't correctly set when s.url is relative - urlAnchor.href = urlAnchor.href; - s.crossDomain = originAnchor.protocol + "//" + originAnchor.host !== - urlAnchor.protocol + "//" + urlAnchor.host; - } catch ( e ) { - - // If there is an error parsing the URL, assume it is crossDomain, - // it can be rejected by the transport if it is invalid - s.crossDomain = true; - } - } - - // Convert data if not already a string - if ( s.data && s.processData && typeof s.data !== "string" ) { - s.data = jQuery.param( s.data, s.traditional ); - } - - // Apply prefilters - inspectPrefiltersOrTransports( prefilters, s, options, jqXHR ); - - // If request was aborted inside a prefilter, stop there - if ( completed ) { - return jqXHR; - } - - // We can fire global events as of now if asked to - // Don't fire events if jQuery.event is undefined in an AMD-usage scenario (#15118) - fireGlobals = jQuery.event && s.global; - - // Watch for a new set of requests - if ( fireGlobals && jQuery.active++ === 0 ) { - jQuery.event.trigger( "ajaxStart" ); - } - - // Uppercase the type - s.type = s.type.toUpperCase(); - - // Determine if request has content - s.hasContent = !rnoContent.test( s.type ); - - // Save the URL in case we're toying with the If-Modified-Since - // and/or If-None-Match header later on - // Remove hash to simplify url manipulation - cacheURL = s.url.replace( rhash, "" ); - - // More options handling for requests with no content - if ( !s.hasContent ) { - - // Remember the hash so we can put it back - uncached = s.url.slice( cacheURL.length ); - - // If data is available and should be processed, append data to url - if ( s.data && ( s.processData || typeof s.data === "string" ) ) { - cacheURL += ( rquery.test( cacheURL ) ? "&" : "?" ) + s.data; - - // #9682: remove data so that it's not used in an eventual retry - delete s.data; - } - - // Add or update anti-cache param if needed - if ( s.cache === false ) { - cacheURL = cacheURL.replace( rantiCache, "$1" ); - uncached = ( rquery.test( cacheURL ) ? "&" : "?" ) + "_=" + ( nonce.guid++ ) + - uncached; - } - - // Put hash and anti-cache on the URL that will be requested (gh-1732) - s.url = cacheURL + uncached; - - // Change '%20' to '+' if this is encoded form body content (gh-2658) - } else if ( s.data && s.processData && - ( s.contentType || "" ).indexOf( "application/x-www-form-urlencoded" ) === 0 ) { - s.data = s.data.replace( r20, "+" ); - } - - // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode. - if ( s.ifModified ) { - if ( jQuery.lastModified[ cacheURL ] ) { - jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ cacheURL ] ); - } - if ( jQuery.etag[ cacheURL ] ) { - jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ cacheURL ] ); - } - } - - // Set the correct header, if data is being sent - if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) { - jqXHR.setRequestHeader( "Content-Type", s.contentType ); - } - - // Set the Accepts header for the server, depending on the dataType - jqXHR.setRequestHeader( - "Accept", - s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[ 0 ] ] ? - s.accepts[ s.dataTypes[ 0 ] ] + - ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) : - s.accepts[ "*" ] - ); - - // Check for headers option - for ( i in s.headers ) { - jqXHR.setRequestHeader( i, s.headers[ i ] ); - } - - // Allow custom headers/mimetypes and early abort - if ( s.beforeSend && - ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || completed ) ) { - - // Abort if not done already and return - return jqXHR.abort(); - } - - // Aborting is no longer a cancellation - strAbort = "abort"; - - // Install callbacks on deferreds - completeDeferred.add( s.complete ); - jqXHR.done( s.success ); - jqXHR.fail( s.error ); - - // Get transport - transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR ); - - // If no transport, we auto-abort - if ( !transport ) { - done( -1, "No Transport" ); - } else { - jqXHR.readyState = 1; - - // Send global event - if ( fireGlobals ) { - globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] ); - } - - // If request was aborted inside ajaxSend, stop there - if ( completed ) { - return jqXHR; - } - - // Timeout - if ( s.async && s.timeout > 0 ) { - timeoutTimer = window.setTimeout( function() { - jqXHR.abort( "timeout" ); - }, s.timeout ); - } - - try { - completed = false; - transport.send( requestHeaders, done ); - } catch ( e ) { - - // Rethrow post-completion exceptions - if ( completed ) { - throw e; - } - - // Propagate others as results - done( -1, e ); - } - } - - // Callback for when everything is done - function done( status, nativeStatusText, responses, headers ) { - var isSuccess, success, error, response, modified, - statusText = nativeStatusText; - - // Ignore repeat invocations - if ( completed ) { - return; - } - - completed = true; - - // Clear timeout if it exists - if ( timeoutTimer ) { - window.clearTimeout( timeoutTimer ); - } - - // Dereference transport for early garbage collection - // (no matter how long the jqXHR object will be used) - transport = undefined; - - // Cache response headers - responseHeadersString = headers || ""; - - // Set readyState - jqXHR.readyState = status > 0 ? 4 : 0; - - // Determine if successful - isSuccess = status >= 200 && status < 300 || status === 304; - - // Get response data - if ( responses ) { - response = ajaxHandleResponses( s, jqXHR, responses ); - } - - // Use a noop converter for missing script but not if jsonp - if ( !isSuccess && - jQuery.inArray( "script", s.dataTypes ) > -1 && - jQuery.inArray( "json", s.dataTypes ) < 0 ) { - s.converters[ "text script" ] = function() {}; - } - - // Convert no matter what (that way responseXXX fields are always set) - response = ajaxConvert( s, response, jqXHR, isSuccess ); - - // If successful, handle type chaining - if ( isSuccess ) { - - // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode. - if ( s.ifModified ) { - modified = jqXHR.getResponseHeader( "Last-Modified" ); - if ( modified ) { - jQuery.lastModified[ cacheURL ] = modified; - } - modified = jqXHR.getResponseHeader( "etag" ); - if ( modified ) { - jQuery.etag[ cacheURL ] = modified; - } - } - - // if no content - if ( status === 204 || s.type === "HEAD" ) { - statusText = "nocontent"; - - // if not modified - } else if ( status === 304 ) { - statusText = "notmodified"; - - // If we have data, let's convert it - } else { - statusText = response.state; - success = response.data; - error = response.error; - isSuccess = !error; - } - } else { - - // Extract error from statusText and normalize for non-aborts - error = statusText; - if ( status || !statusText ) { - statusText = "error"; - if ( status < 0 ) { - status = 0; - } - } - } - - // Set data for the fake xhr object - jqXHR.status = status; - jqXHR.statusText = ( nativeStatusText || statusText ) + ""; - - // Success/Error - if ( isSuccess ) { - deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] ); - } else { - deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] ); - } - - // Status-dependent callbacks - jqXHR.statusCode( statusCode ); - statusCode = undefined; - - if ( fireGlobals ) { - globalEventContext.trigger( isSuccess ? "ajaxSuccess" : "ajaxError", - [ jqXHR, s, isSuccess ? success : error ] ); - } - - // Complete - completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] ); - - if ( fireGlobals ) { - globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] ); - - // Handle the global AJAX counter - if ( !( --jQuery.active ) ) { - jQuery.event.trigger( "ajaxStop" ); - } - } - } - - return jqXHR; - }, - - getJSON: function( url, data, callback ) { - return jQuery.get( url, data, callback, "json" ); - }, - - getScript: function( url, callback ) { - return jQuery.get( url, undefined, callback, "script" ); - } -} ); - -jQuery.each( [ "get", "post" ], function( _i, method ) { - jQuery[ method ] = function( url, data, callback, type ) { - - // Shift arguments if data argument was omitted - if ( isFunction( data ) ) { - type = type || callback; - callback = data; - data = undefined; - } - - // The url can be an options object (which then must have .url) - return jQuery.ajax( jQuery.extend( { - url: url, - type: method, - dataType: type, - data: data, - success: callback - }, jQuery.isPlainObject( url ) && url ) ); - }; -} ); - -jQuery.ajaxPrefilter( function( s ) { - var i; - for ( i in s.headers ) { - if ( i.toLowerCase() === "content-type" ) { - s.contentType = s.headers[ i ] || ""; - } - } -} ); - - -jQuery._evalUrl = function( url, options, doc ) { - return jQuery.ajax( { - url: url, - - // Make this explicit, since user can override this through ajaxSetup (#11264) - type: "GET", - dataType: "script", - cache: true, - async: false, - global: false, - - // Only evaluate the response if it is successful (gh-4126) - // dataFilter is not invoked for failure responses, so using it instead - // of the default converter is kludgy but it works. - converters: { - "text script": function() {} - }, - dataFilter: function( response ) { - jQuery.globalEval( response, options, doc ); - } - } ); -}; - - -jQuery.fn.extend( { - wrapAll: function( html ) { - var wrap; - - if ( this[ 0 ] ) { - if ( isFunction( html ) ) { - html = html.call( this[ 0 ] ); - } - - // The elements to wrap the target around - wrap = jQuery( html, this[ 0 ].ownerDocument ).eq( 0 ).clone( true ); - - if ( this[ 0 ].parentNode ) { - wrap.insertBefore( this[ 0 ] ); - } - - wrap.map( function() { - var elem = this; - - while ( elem.firstElementChild ) { - elem = elem.firstElementChild; - } - - return elem; - } ).append( this ); - } - - return this; - }, - - wrapInner: function( html ) { - if ( isFunction( html ) ) { - return this.each( function( i ) { - jQuery( this ).wrapInner( html.call( this, i ) ); - } ); - } - - return this.each( function() { - var self = jQuery( this ), - contents = self.contents(); - - if ( contents.length ) { - contents.wrapAll( html ); - - } else { - self.append( html ); - } - } ); - }, - - wrap: function( html ) { - var htmlIsFunction = isFunction( html ); - - return this.each( function( i ) { - jQuery( this ).wrapAll( htmlIsFunction ? html.call( this, i ) : html ); - } ); - }, - - unwrap: function( selector ) { - this.parent( selector ).not( "body" ).each( function() { - jQuery( this ).replaceWith( this.childNodes ); - } ); - return this; - } -} ); - - -jQuery.expr.pseudos.hidden = function( elem ) { - return !jQuery.expr.pseudos.visible( elem ); -}; -jQuery.expr.pseudos.visible = function( elem ) { - return !!( elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length ); -}; - - - - -jQuery.ajaxSettings.xhr = function() { - try { - return new window.XMLHttpRequest(); - } catch ( e ) {} -}; - -var xhrSuccessStatus = { - - // File protocol always yields status code 0, assume 200 - 0: 200, - - // Support: IE <=9 only - // #1450: sometimes IE returns 1223 when it should be 204 - 1223: 204 - }, - xhrSupported = jQuery.ajaxSettings.xhr(); - -support.cors = !!xhrSupported && ( "withCredentials" in xhrSupported ); -support.ajax = xhrSupported = !!xhrSupported; - -jQuery.ajaxTransport( function( options ) { - var callback, errorCallback; - - // Cross domain only allowed if supported through XMLHttpRequest - if ( support.cors || xhrSupported && !options.crossDomain ) { - return { - send: function( headers, complete ) { - var i, - xhr = options.xhr(); - - xhr.open( - options.type, - options.url, - options.async, - options.username, - options.password - ); - - // Apply custom fields if provided - if ( options.xhrFields ) { - for ( i in options.xhrFields ) { - xhr[ i ] = options.xhrFields[ i ]; - } - } - - // Override mime type if needed - if ( options.mimeType && xhr.overrideMimeType ) { - xhr.overrideMimeType( options.mimeType ); - } - - // X-Requested-With header - // For cross-domain requests, seeing as conditions for a preflight are - // akin to a jigsaw puzzle, we simply never set it to be sure. - // (it can always be set on a per-request basis or even using ajaxSetup) - // For same-domain requests, won't change header if already provided. - if ( !options.crossDomain && !headers[ "X-Requested-With" ] ) { - headers[ "X-Requested-With" ] = "XMLHttpRequest"; - } - - // Set headers - for ( i in headers ) { - xhr.setRequestHeader( i, headers[ i ] ); - } - - // Callback - callback = function( type ) { - return function() { - if ( callback ) { - callback = errorCallback = xhr.onload = - xhr.onerror = xhr.onabort = xhr.ontimeout = - xhr.onreadystatechange = null; - - if ( type === "abort" ) { - xhr.abort(); - } else if ( type === "error" ) { - - // Support: IE <=9 only - // On a manual native abort, IE9 throws - // errors on any property access that is not readyState - if ( typeof xhr.status !== "number" ) { - complete( 0, "error" ); - } else { - complete( - - // File: protocol always yields status 0; see #8605, #14207 - xhr.status, - xhr.statusText - ); - } - } else { - complete( - xhrSuccessStatus[ xhr.status ] || xhr.status, - xhr.statusText, - - // Support: IE <=9 only - // IE9 has no XHR2 but throws on binary (trac-11426) - // For XHR2 non-text, let the caller handle it (gh-2498) - ( xhr.responseType || "text" ) !== "text" || - typeof xhr.responseText !== "string" ? - { binary: xhr.response } : - { text: xhr.responseText }, - xhr.getAllResponseHeaders() - ); - } - } - }; - }; - - // Listen to events - xhr.onload = callback(); - errorCallback = xhr.onerror = xhr.ontimeout = callback( "error" ); - - // Support: IE 9 only - // Use onreadystatechange to replace onabort - // to handle uncaught aborts - if ( xhr.onabort !== undefined ) { - xhr.onabort = errorCallback; - } else { - xhr.onreadystatechange = function() { - - // Check readyState before timeout as it changes - if ( xhr.readyState === 4 ) { - - // Allow onerror to be called first, - // but that will not handle a native abort - // Also, save errorCallback to a variable - // as xhr.onerror cannot be accessed - window.setTimeout( function() { - if ( callback ) { - errorCallback(); - } - } ); - } - }; - } - - // Create the abort callback - callback = callback( "abort" ); - - try { - - // Do send the request (this may raise an exception) - xhr.send( options.hasContent && options.data || null ); - } catch ( e ) { - - // #14683: Only rethrow if this hasn't been notified as an error yet - if ( callback ) { - throw e; - } - } - }, - - abort: function() { - if ( callback ) { - callback(); - } - } - }; - } -} ); - - - - -// Prevent auto-execution of scripts when no explicit dataType was provided (See gh-2432) -jQuery.ajaxPrefilter( function( s ) { - if ( s.crossDomain ) { - s.contents.script = false; - } -} ); - -// Install script dataType -jQuery.ajaxSetup( { - accepts: { - script: "text/javascript, application/javascript, " + - "application/ecmascript, application/x-ecmascript" - }, - contents: { - script: /\b(?:java|ecma)script\b/ - }, - converters: { - "text script": function( text ) { - jQuery.globalEval( text ); - return text; - } - } -} ); - -// Handle cache's special case and crossDomain -jQuery.ajaxPrefilter( "script", function( s ) { - if ( s.cache === undefined ) { - s.cache = false; - } - if ( s.crossDomain ) { - s.type = "GET"; - } -} ); - -// Bind script tag hack transport -jQuery.ajaxTransport( "script", function( s ) { - - // This transport only deals with cross domain or forced-by-attrs requests - if ( s.crossDomain || s.scriptAttrs ) { - var script, callback; - return { - send: function( _, complete ) { - script = jQuery( "<script>" ) - .attr( s.scriptAttrs || {} ) - .prop( { charset: s.scriptCharset, src: s.url } ) - .on( "load error", callback = function( evt ) { - script.remove(); - callback = null; - if ( evt ) { - complete( evt.type === "error" ? 404 : 200, evt.type ); - } - } ); - - // Use native DOM manipulation to avoid our domManip AJAX trickery - document.head.appendChild( script[ 0 ] ); - }, - abort: function() { - if ( callback ) { - callback(); - } - } - }; - } -} ); - - - - -var oldCallbacks = [], - rjsonp = /(=)\?(?=&|$)|\?\?/; - -// Default jsonp settings -jQuery.ajaxSetup( { - jsonp: "callback", - jsonpCallback: function() { - var callback = oldCallbacks.pop() || ( jQuery.expando + "_" + ( nonce.guid++ ) ); - this[ callback ] = true; - return callback; - } -} ); - -// Detect, normalize options and install callbacks for jsonp requests -jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) { - - var callbackName, overwritten, responseContainer, - jsonProp = s.jsonp !== false && ( rjsonp.test( s.url ) ? - "url" : - typeof s.data === "string" && - ( s.contentType || "" ) - .indexOf( "application/x-www-form-urlencoded" ) === 0 && - rjsonp.test( s.data ) && "data" - ); - - // Handle iff the expected data type is "jsonp" or we have a parameter to set - if ( jsonProp || s.dataTypes[ 0 ] === "jsonp" ) { - - // Get callback name, remembering preexisting value associated with it - callbackName = s.jsonpCallback = isFunction( s.jsonpCallback ) ? - s.jsonpCallback() : - s.jsonpCallback; - - // Insert callback into url or form data - if ( jsonProp ) { - s[ jsonProp ] = s[ jsonProp ].replace( rjsonp, "$1" + callbackName ); - } else if ( s.jsonp !== false ) { - s.url += ( rquery.test( s.url ) ? "&" : "?" ) + s.jsonp + "=" + callbackName; - } - - // Use data converter to retrieve json after script execution - s.converters[ "script json" ] = function() { - if ( !responseContainer ) { - jQuery.error( callbackName + " was not called" ); - } - return responseContainer[ 0 ]; - }; - - // Force json dataType - s.dataTypes[ 0 ] = "json"; - - // Install callback - overwritten = window[ callbackName ]; - window[ callbackName ] = function() { - responseContainer = arguments; - }; - - // Clean-up function (fires after converters) - jqXHR.always( function() { - - // If previous value didn't exist - remove it - if ( overwritten === undefined ) { - jQuery( window ).removeProp( callbackName ); - - // Otherwise restore preexisting value - } else { - window[ callbackName ] = overwritten; - } - - // Save back as free - if ( s[ callbackName ] ) { - - // Make sure that re-using the options doesn't screw things around - s.jsonpCallback = originalSettings.jsonpCallback; - - // Save the callback name for future use - oldCallbacks.push( callbackName ); - } - - // Call if it was a function and we have a response - if ( responseContainer && isFunction( overwritten ) ) { - overwritten( responseContainer[ 0 ] ); - } - - responseContainer = overwritten = undefined; - } ); - - // Delegate to script - return "script"; - } -} ); - - - - -// Support: Safari 8 only -// In Safari 8 documents created via document.implementation.createHTMLDocument -// collapse sibling forms: the second one becomes a child of the first one. -// Because of that, this security measure has to be disabled in Safari 8. -// https://bugs.webkit.org/show_bug.cgi?id=137337 -support.createHTMLDocument = ( function() { - var body = document.implementation.createHTMLDocument( "" ).body; - body.innerHTML = "<form></form><form></form>"; - return body.childNodes.length === 2; -} )(); - - -// Argument "data" should be string of html -// context (optional): If specified, the fragment will be created in this context, -// defaults to document -// keepScripts (optional): If true, will include scripts passed in the html string -jQuery.parseHTML = function( data, context, keepScripts ) { - if ( typeof data !== "string" ) { - return []; - } - if ( typeof context === "boolean" ) { - keepScripts = context; - context = false; - } - - var base, parsed, scripts; - - if ( !context ) { - - // Stop scripts or inline event handlers from being executed immediately - // by using document.implementation - if ( support.createHTMLDocument ) { - context = document.implementation.createHTMLDocument( "" ); - - // Set the base href for the created document - // so any parsed elements with URLs - // are based on the document's URL (gh-2965) - base = context.createElement( "base" ); - base.href = document.location.href; - context.head.appendChild( base ); - } else { - context = document; - } - } - - parsed = rsingleTag.exec( data ); - scripts = !keepScripts && []; - - // Single tag - if ( parsed ) { - return [ context.createElement( parsed[ 1 ] ) ]; - } - - parsed = buildFragment( [ data ], context, scripts ); - - if ( scripts && scripts.length ) { - jQuery( scripts ).remove(); - } - - return jQuery.merge( [], parsed.childNodes ); -}; - - -/** - * Load a url into a page - */ -jQuery.fn.load = function( url, params, callback ) { - var selector, type, response, - self = this, - off = url.indexOf( " " ); - - if ( off > -1 ) { - selector = stripAndCollapse( url.slice( off ) ); - url = url.slice( 0, off ); - } - - // If it's a function - if ( isFunction( params ) ) { - - // We assume that it's the callback - callback = params; - params = undefined; - - // Otherwise, build a param string - } else if ( params && typeof params === "object" ) { - type = "POST"; - } - - // If we have elements to modify, make the request - if ( self.length > 0 ) { - jQuery.ajax( { - url: url, - - // If "type" variable is undefined, then "GET" method will be used. - // Make value of this field explicit since - // user can override it through ajaxSetup method - type: type || "GET", - dataType: "html", - data: params - } ).done( function( responseText ) { - - // Save response for use in complete callback - response = arguments; - - self.html( selector ? - - // If a selector was specified, locate the right elements in a dummy div - // Exclude scripts to avoid IE 'Permission Denied' errors - jQuery( "<div>" ).append( jQuery.parseHTML( responseText ) ).find( selector ) : - - // Otherwise use the full result - responseText ); - - // If the request succeeds, this function gets "data", "status", "jqXHR" - // but they are ignored because response was set above. - // If it fails, this function gets "jqXHR", "status", "error" - } ).always( callback && function( jqXHR, status ) { - self.each( function() { - callback.apply( this, response || [ jqXHR.responseText, status, jqXHR ] ); - } ); - } ); - } - - return this; -}; - - - - -jQuery.expr.pseudos.animated = function( elem ) { - return jQuery.grep( jQuery.timers, function( fn ) { - return elem === fn.elem; - } ).length; -}; - - - - -jQuery.offset = { - setOffset: function( elem, options, i ) { - var curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition, - position = jQuery.css( elem, "position" ), - curElem = jQuery( elem ), - props = {}; - - // Set position first, in-case top/left are set even on static elem - if ( position === "static" ) { - elem.style.position = "relative"; - } - - curOffset = curElem.offset(); - curCSSTop = jQuery.css( elem, "top" ); - curCSSLeft = jQuery.css( elem, "left" ); - calculatePosition = ( position === "absolute" || position === "fixed" ) && - ( curCSSTop + curCSSLeft ).indexOf( "auto" ) > -1; - - // Need to be able to calculate position if either - // top or left is auto and position is either absolute or fixed - if ( calculatePosition ) { - curPosition = curElem.position(); - curTop = curPosition.top; - curLeft = curPosition.left; - - } else { - curTop = parseFloat( curCSSTop ) || 0; - curLeft = parseFloat( curCSSLeft ) || 0; - } - - if ( isFunction( options ) ) { - - // Use jQuery.extend here to allow modification of coordinates argument (gh-1848) - options = options.call( elem, i, jQuery.extend( {}, curOffset ) ); - } - - if ( options.top != null ) { - props.top = ( options.top - curOffset.top ) + curTop; - } - if ( options.left != null ) { - props.left = ( options.left - curOffset.left ) + curLeft; - } - - if ( "using" in options ) { - options.using.call( elem, props ); - - } else { - curElem.css( props ); - } - } -}; - -jQuery.fn.extend( { - - // offset() relates an element's border box to the document origin - offset: function( options ) { - - // Preserve chaining for setter - if ( arguments.length ) { - return options === undefined ? - this : - this.each( function( i ) { - jQuery.offset.setOffset( this, options, i ); - } ); - } - - var rect, win, - elem = this[ 0 ]; - - if ( !elem ) { - return; - } - - // Return zeros for disconnected and hidden (display: none) elements (gh-2310) - // Support: IE <=11 only - // Running getBoundingClientRect on a - // disconnected node in IE throws an error - if ( !elem.getClientRects().length ) { - return { top: 0, left: 0 }; - } - - // Get document-relative position by adding viewport scroll to viewport-relative gBCR - rect = elem.getBoundingClientRect(); - win = elem.ownerDocument.defaultView; - return { - top: rect.top + win.pageYOffset, - left: rect.left + win.pageXOffset - }; - }, - - // position() relates an element's margin box to its offset parent's padding box - // This corresponds to the behavior of CSS absolute positioning - position: function() { - if ( !this[ 0 ] ) { - return; - } - - var offsetParent, offset, doc, - elem = this[ 0 ], - parentOffset = { top: 0, left: 0 }; - - // position:fixed elements are offset from the viewport, which itself always has zero offset - if ( jQuery.css( elem, "position" ) === "fixed" ) { - - // Assume position:fixed implies availability of getBoundingClientRect - offset = elem.getBoundingClientRect(); - - } else { - offset = this.offset(); - - // Account for the *real* offset parent, which can be the document or its root element - // when a statically positioned element is identified - doc = elem.ownerDocument; - offsetParent = elem.offsetParent || doc.documentElement; - while ( offsetParent && - ( offsetParent === doc.body || offsetParent === doc.documentElement ) && - jQuery.css( offsetParent, "position" ) === "static" ) { - - offsetParent = offsetParent.parentNode; - } - if ( offsetParent && offsetParent !== elem && offsetParent.nodeType === 1 ) { - - // Incorporate borders into its offset, since they are outside its content origin - parentOffset = jQuery( offsetParent ).offset(); - parentOffset.top += jQuery.css( offsetParent, "borderTopWidth", true ); - parentOffset.left += jQuery.css( offsetParent, "borderLeftWidth", true ); - } - } - - // Subtract parent offsets and element margins - return { - top: offset.top - parentOffset.top - jQuery.css( elem, "marginTop", true ), - left: offset.left - parentOffset.left - jQuery.css( elem, "marginLeft", true ) - }; - }, - - // This method will return documentElement in the following cases: - // 1) For the element inside the iframe without offsetParent, this method will return - // documentElement of the parent window - // 2) For the hidden or detached element - // 3) For body or html element, i.e. in case of the html node - it will return itself - // - // but those exceptions were never presented as a real life use-cases - // and might be considered as more preferable results. - // - // This logic, however, is not guaranteed and can change at any point in the future - offsetParent: function() { - return this.map( function() { - var offsetParent = this.offsetParent; - - while ( offsetParent && jQuery.css( offsetParent, "position" ) === "static" ) { - offsetParent = offsetParent.offsetParent; - } - - return offsetParent || documentElement; - } ); - } -} ); - -// Create scrollLeft and scrollTop methods -jQuery.each( { scrollLeft: "pageXOffset", scrollTop: "pageYOffset" }, function( method, prop ) { - var top = "pageYOffset" === prop; - - jQuery.fn[ method ] = function( val ) { - return access( this, function( elem, method, val ) { - - // Coalesce documents and windows - var win; - if ( isWindow( elem ) ) { - win = elem; - } else if ( elem.nodeType === 9 ) { - win = elem.defaultView; - } - - if ( val === undefined ) { - return win ? win[ prop ] : elem[ method ]; - } - - if ( win ) { - win.scrollTo( - !top ? val : win.pageXOffset, - top ? val : win.pageYOffset - ); - - } else { - elem[ method ] = val; - } - }, method, val, arguments.length ); - }; -} ); - -// Support: Safari <=7 - 9.1, Chrome <=37 - 49 -// Add the top/left cssHooks using jQuery.fn.position -// Webkit bug: https://bugs.webkit.org/show_bug.cgi?id=29084 -// Blink bug: https://bugs.chromium.org/p/chromium/issues/detail?id=589347 -// getComputedStyle returns percent when specified for top/left/bottom/right; -// rather than make the css module depend on the offset module, just check for it here -jQuery.each( [ "top", "left" ], function( _i, prop ) { - jQuery.cssHooks[ prop ] = addGetHookIf( support.pixelPosition, - function( elem, computed ) { - if ( computed ) { - computed = curCSS( elem, prop ); - - // If curCSS returns percentage, fallback to offset - return rnumnonpx.test( computed ) ? - jQuery( elem ).position()[ prop ] + "px" : - computed; - } - } - ); -} ); - - -// Create innerHeight, innerWidth, height, width, outerHeight and outerWidth methods -jQuery.each( { Height: "height", Width: "width" }, function( name, type ) { - jQuery.each( { - padding: "inner" + name, - content: type, - "": "outer" + name - }, function( defaultExtra, funcName ) { - - // Margin is only for outerHeight, outerWidth - jQuery.fn[ funcName ] = function( margin, value ) { - var chainable = arguments.length && ( defaultExtra || typeof margin !== "boolean" ), - extra = defaultExtra || ( margin === true || value === true ? "margin" : "border" ); - - return access( this, function( elem, type, value ) { - var doc; - - if ( isWindow( elem ) ) { - - // $( window ).outerWidth/Height return w/h including scrollbars (gh-1729) - return funcName.indexOf( "outer" ) === 0 ? - elem[ "inner" + name ] : - elem.document.documentElement[ "client" + name ]; - } - - // Get document width or height - if ( elem.nodeType === 9 ) { - doc = elem.documentElement; - - // Either scroll[Width/Height] or offset[Width/Height] or client[Width/Height], - // whichever is greatest - return Math.max( - elem.body[ "scroll" + name ], doc[ "scroll" + name ], - elem.body[ "offset" + name ], doc[ "offset" + name ], - doc[ "client" + name ] - ); - } - - return value === undefined ? - - // Get width or height on the element, requesting but not forcing parseFloat - jQuery.css( elem, type, extra ) : - - // Set width or height on the element - jQuery.style( elem, type, value, extra ); - }, type, chainable ? margin : undefined, chainable ); - }; - } ); -} ); - - -jQuery.each( [ - "ajaxStart", - "ajaxStop", - "ajaxComplete", - "ajaxError", - "ajaxSuccess", - "ajaxSend" -], function( _i, type ) { - jQuery.fn[ type ] = function( fn ) { - return this.on( type, fn ); - }; -} ); - - - - -jQuery.fn.extend( { - - bind: function( types, data, fn ) { - return this.on( types, null, data, fn ); - }, - unbind: function( types, fn ) { - return this.off( types, null, fn ); - }, - - delegate: function( selector, types, data, fn ) { - return this.on( types, selector, data, fn ); - }, - undelegate: function( selector, types, fn ) { - - // ( namespace ) or ( selector, types [, fn] ) - return arguments.length === 1 ? - this.off( selector, "**" ) : - this.off( types, selector || "**", fn ); - }, - - hover: function( fnOver, fnOut ) { - return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver ); - } -} ); - -jQuery.each( - ( "blur focus focusin focusout resize scroll click dblclick " + - "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " + - "change select submit keydown keypress keyup contextmenu" ).split( " " ), - function( _i, name ) { - - // Handle event binding - jQuery.fn[ name ] = function( data, fn ) { - return arguments.length > 0 ? - this.on( name, null, data, fn ) : - this.trigger( name ); - }; - } -); - - - - -// Support: Android <=4.0 only -// Make sure we trim BOM and NBSP -var rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g; - -// Bind a function to a context, optionally partially applying any -// arguments. -// jQuery.proxy is deprecated to promote standards (specifically Function#bind) -// However, it is not slated for removal any time soon -jQuery.proxy = function( fn, context ) { - var tmp, args, proxy; - - if ( typeof context === "string" ) { - tmp = fn[ context ]; - context = fn; - fn = tmp; - } - - // Quick check to determine if target is callable, in the spec - // this throws a TypeError, but we will just return undefined. - if ( !isFunction( fn ) ) { - return undefined; - } - - // Simulated bind - args = slice.call( arguments, 2 ); - proxy = function() { - return fn.apply( context || this, args.concat( slice.call( arguments ) ) ); - }; - - // Set the guid of unique handler to the same of original handler, so it can be removed - proxy.guid = fn.guid = fn.guid || jQuery.guid++; - - return proxy; -}; - -jQuery.holdReady = function( hold ) { - if ( hold ) { - jQuery.readyWait++; - } else { - jQuery.ready( true ); - } -}; -jQuery.isArray = Array.isArray; -jQuery.parseJSON = JSON.parse; -jQuery.nodeName = nodeName; -jQuery.isFunction = isFunction; -jQuery.isWindow = isWindow; -jQuery.camelCase = camelCase; -jQuery.type = toType; - -jQuery.now = Date.now; - -jQuery.isNumeric = function( obj ) { - - // As of jQuery 3.0, isNumeric is limited to - // strings and numbers (primitives or objects) - // that can be coerced to finite numbers (gh-2662) - var type = jQuery.type( obj ); - return ( type === "number" || type === "string" ) && - - // parseFloat NaNs numeric-cast false positives ("") - // ...but misinterprets leading-number strings, particularly hex literals ("0x...") - // subtraction forces infinities to NaN - !isNaN( obj - parseFloat( obj ) ); -}; - -jQuery.trim = function( text ) { - return text == null ? - "" : - ( text + "" ).replace( rtrim, "" ); -}; - - - -// Register as a named AMD module, since jQuery can be concatenated with other -// files that may use define, but not via a proper concatenation script that -// understands anonymous AMD modules. A named AMD is safest and most robust -// way to register. Lowercase jquery is used because AMD module names are -// derived from file names, and jQuery is normally delivered in a lowercase -// file name. Do this after creating the global so that if an AMD module wants -// to call noConflict to hide this version of jQuery, it will work. - -// Note that for maximum portability, libraries that are not jQuery should -// declare themselves as anonymous modules, and avoid setting a global if an -// AMD loader is present. jQuery is a special case. For more information, see -// https://github.com/jrburke/requirejs/wiki/Updating-existing-libraries#wiki-anon - -if ( typeof define === "function" && define.amd ) { - define( "jquery", [], function() { - return jQuery; - } ); -} - - - - -var - - // Map over jQuery in case of overwrite - _jQuery = window.jQuery, - - // Map over the $ in case of overwrite - _$ = window.$; - -jQuery.noConflict = function( deep ) { - if ( window.$ === jQuery ) { - window.$ = _$; - } - - if ( deep && window.jQuery === jQuery ) { - window.jQuery = _jQuery; - } - - return jQuery; -}; - -// Expose jQuery and $ identifiers, even in AMD -// (#7102#comment:10, https://github.com/jquery/jquery/pull/557) -// and CommonJS for browser emulators (#13566) -if ( typeof noGlobal === "undefined" ) { - window.jQuery = window.$ = jQuery; -} - - - - -return jQuery; -} ); diff --git a/docsrc/build/html/_static/jquery.js b/docsrc/build/html/_static/jquery.js index c4c6022f2..b0614034a 100644 --- a/docsrc/build/html/_static/jquery.js +++ b/docsrc/build/html/_static/jquery.js @@ -1,2 +1,2 @@ -/*! jQuery v3.6.0 | (c) OpenJS Foundation and other contributors | jquery.org/license */ -!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],r=Object.getPrototypeOf,s=t.slice,g=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},u=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},x=function(e){return null!=e&&e===e.window},E=C.document,c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.6.0",S=function(e,t){return new S.fn.init(e,t)};function p(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}S.fn=S.prototype={jquery:f,constructor:S,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=S.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return S.each(this,e)},map:function(n){return this.pushStack(S.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(S.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(S.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:t.sort,splice:t.splice},S.extend=S.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||m(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(S.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||S.isPlainObject(n)?n:{},i=!1,a[t]=S.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},S.extend({expando:"jQuery"+(f+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==o.call(e))&&(!(t=r(e))||"function"==typeof(n=v.call(t,"constructor")&&t.constructor)&&a.call(n)===l)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){b(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(p(e)){for(n=e.length;r<n;r++)if(!1===t.call(e[r],r,e[r]))break}else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(p(Object(e))?S.merge(n,"string"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:i.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(p(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return g(a)},guid:1,support:y}),"function"==typeof Symbol&&(S.fn[Symbol.iterator]=t[Symbol.iterator]),S.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var d=function(n){var e,d,b,o,i,h,f,g,w,u,l,T,C,a,E,v,s,c,y,S="sizzle"+1*new Date,p=n.document,k=0,r=0,m=ue(),x=ue(),A=ue(),N=ue(),j=function(e,t){return e===t&&(l=!0),0},D={}.hasOwnProperty,t=[],q=t.pop,L=t.push,H=t.push,O=t.slice,P=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",I="(?:\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",W="\\["+M+"*("+I+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+I+"))|)"+M+"*\\]",F=":("+I+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+W+")*)|.*)\\)|)",B=new RegExp(M+"+","g"),$=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),_=new RegExp("^"+M+"*,"+M+"*"),z=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp(F),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){T()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=O.call(p.childNodes),p.childNodes),t[p.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(T(e),e=e||C,E)){if(11!==p&&(u=Z.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&y(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n,e.getElementsByClassName(i)),n}if(d.qsa&&!N[t+" "]&&(!v||!v.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&(U.test(t)||z.test(t))){(f=ee.test(t)&&ye(e.parentNode)||e)===e&&d.scope||((s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=S)),o=(l=h(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+xe(l[o]);c=l.join(",")}try{return H.apply(n,f.querySelectorAll(c)),n}catch(e){N(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return g(t.replace($,"$1"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[S]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ve(a){return le(function(o){return o=+o,le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ye(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:p;return r!=C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,E=!i(C),p!=C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),d.scope=ce(function(e){return a.appendChild(e).appendChild(C.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(C.getElementsByClassName),d.getById=ce(function(e){return a.appendChild(e).id=S,!C.getElementsByName||!C.getElementsByName(S).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},b.find.CLASS=d.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&E)return t.getElementsByClassName(e)},s=[],v=[],(d.qsa=K.test(C.querySelectorAll))&&(ce(function(e){var t;a.appendChild(e).innerHTML="<a id='"+S+"'></a><select id='"+S+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+S+"-]").length||v.push("~="),(t=C.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||v.push("\\["+M+"*name"+M+"*="+M+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+S+"+*").length||v.push(".#.+[+~]"),e.querySelectorAll("\\\f"),v.push("[\\r\\n\\f]")}),ce(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",F)}),v=v.length&&new RegExp(v.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),y=t||K.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},j=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e==C||e.ownerDocument==p&&y(p,e)?-1:t==C||t.ownerDocument==p&&y(p,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==C?-1:t==C?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return pe(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?pe(a[r],s[r]):a[r]==p?-1:s[r]==p?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(T(e),d.matchesSelector&&E&&!N[t+" "]&&(!s||!s.test(t))&&(!v||!v.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){N(t,!0)}return 0<se(t,C,null,[e]).length},se.contains=function(e,t){return(e.ownerDocument||e)!=C&&T(e),y(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=C&&T(e);var n=b.attrHandle[t.toLowerCase()],r=n&&D.call(b.attrHandle,t.toLowerCase())?n(e,t,!E):void 0;return void 0!==r?r:d.attributes||!E?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},se.escape=function(e){return(e+"").replace(re,ie)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,n=[],r=0,i=0;if(l=!d.detectDuplicates,u=!d.sortStable&&e.slice(0),e.sort(j),l){while(t=e[i++])t===e[i]&&(r=n.push(i));while(r--)e.splice(n[r],1)}return u=null,e},o=se.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===i||4===i)return e.nodeValue}else while(t=e[r++])n+=o(t);return n},(b=se.selectors={cacheLength:50,createPseudo:le,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=m[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&m(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1<t.indexOf(i):"$="===r?i&&t.slice(-i.length)===i:"~="===r?-1<(" "+t.replace(B," ")+" ").indexOf(i):"|="===r&&(t===i||t.slice(0,i.length+1)===i+"-"))}},CHILD:function(h,e,t,g,v){var y="nth"!==h.slice(0,3),m="last"!==h.slice(-4),x="of-type"===e;return 1===g&&0===v?function(e){return!!e.parentNode}:function(e,t,n){var r,i,o,a,s,u,l=y!==m?"nextSibling":"previousSibling",c=e.parentNode,f=x&&e.nodeName.toLowerCase(),p=!n&&!x,d=!1;if(c){if(y){while(l){a=e;while(a=a[l])if(x?a.nodeName.toLowerCase()===f:1===a.nodeType)return!1;u=l="only"===h&&!u&&"nextSibling"}return!0}if(u=[m?c.firstChild:c.lastChild],m&&p){d=(s=(r=(i=(o=(a=c)[S]||(a[S]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]||[])[0]===k&&r[1])&&r[2],a=s&&c.childNodes[s];while(a=++s&&a&&a[l]||(d=s=0)||u.pop())if(1===a.nodeType&&++d&&a===e){i[h]=[k,s,d];break}}else if(p&&(d=s=(r=(i=(o=(a=e)[S]||(a[S]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]||[])[0]===k&&r[1]),!1===d)while(a=++s&&a&&a[l]||(d=s=0)||u.pop())if((x?a.nodeName.toLowerCase()===f:1===a.nodeType)&&++d&&(p&&((i=(o=a[S]||(a[S]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]=[k,d]),a===e))break;return(d-=v)===g||d%g==0&&0<=d/g}}},PSEUDO:function(e,o){var t,a=b.pseudos[e]||b.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return a[S]?a(o):1<a.length?(t=[e,e,"",o],b.setFilters.hasOwnProperty(e.toLowerCase())?le(function(e,t){var n,r=a(e,o),i=r.length;while(i--)e[n=P(e,r[i])]=!(t[n]=r[i])}):function(e){return a(e,0,t)}):a}},pseudos:{not:le(function(e){var r=[],i=[],s=f(e.replace($,"$1"));return s[S]?le(function(e,t,n,r){var i,o=s(e,null,r,[]),a=e.length;while(a--)(i=o[a])&&(e[a]=!(t[a]=i))}):function(e,t,n){return r[0]=e,s(r,null,n,i),r[0]=null,!i.pop()}}),has:le(function(t){return function(e){return 0<se(t,e).length}}),contains:le(function(t){return t=t.replace(te,ne),function(e){return-1<(e.textContent||o(e)).indexOf(t)}}),lang:le(function(n){return V.test(n||"")||se.error("unsupported lang: "+n),n=n.replace(te,ne).toLowerCase(),function(e){var t;do{if(t=E?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===a},focus:function(e){return e===C.activeElement&&(!C.hasFocus||C.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ge(!1),disabled:ge(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!b.pseudos.empty(e)},header:function(e){return J.test(e.nodeName)},input:function(e){return Q.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ve(function(){return[0]}),last:ve(function(e,t){return[t-1]}),eq:ve(function(e,t,n){return[n<0?n+t:n]}),even:ve(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:ve(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:ve(function(e,t,n){for(var r=n<0?n+t:t<n?t:n;0<=--r;)e.push(r);return e}),gt:ve(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=b.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[e]=de(e);for(e in{submit:!0,reset:!0})b.pseudos[e]=he(e);function me(){}function xe(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function be(s,e,t){var u=e.dir,l=e.next,c=l||u,f=t&&"parentNode"===c,p=r++;return e.first?function(e,t,n){while(e=e[u])if(1===e.nodeType||f)return s(e,t,n);return!1}:function(e,t,n){var r,i,o,a=[k,p];if(n){while(e=e[u])if((1===e.nodeType||f)&&s(e,t,n))return!0}else while(e=e[u])if(1===e.nodeType||f)if(i=(o=e[S]||(e[S]={}))[e.uniqueID]||(o[e.uniqueID]={}),l&&l===e.nodeName.toLowerCase())e=e[u]||e;else{if((r=i[c])&&r[0]===k&&r[1]===p)return a[2]=r[2];if((i[c]=a)[2]=s(e,t,n))return!0}return!1}}function we(i){return 1<i.length?function(e,t,n){var r=i.length;while(r--)if(!i[r](e,t,n))return!1;return!0}:i[0]}function Te(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function Ce(d,h,g,v,y,e){return v&&!v[S]&&(v=Ce(v)),y&&!y[S]&&(y=Ce(y,e)),le(function(e,t,n,r){var i,o,a,s=[],u=[],l=t.length,c=e||function(e,t,n){for(var r=0,i=t.length;r<i;r++)se(e,t[r],n);return n}(h||"*",n.nodeType?[n]:n,[]),f=!d||!e&&h?c:Te(c,s,d,n,r),p=g?y||(e?d:l||v)?[]:t:f;if(g&&g(f,p,n,r),v){i=Te(p,u),v(i,[],n,r),o=i.length;while(o--)(a=i[o])&&(p[u[o]]=!(f[u[o]]=a))}if(e){if(y||d){if(y){i=[],o=p.length;while(o--)(a=p[o])&&i.push(f[o]=a);y(null,p=[],i,r)}o=p.length;while(o--)(a=p[o])&&-1<(i=y?P(e,a):s[o])&&(e[i]=!(t[i]=a))}}else p=Te(p===t?p.splice(l,p.length):p),y?y(null,t,p,r):H.apply(t,p)})}function Ee(e){for(var i,t,n,r=e.length,o=b.relative[e[0].type],a=o||b.relative[" "],s=o?1:0,u=be(function(e){return e===i},a,!0),l=be(function(e){return-1<P(i,e)},a,!0),c=[function(e,t,n){var r=!o&&(n||t!==w)||((i=t).nodeType?u(e,t,n):l(e,t,n));return i=null,r}];s<r;s++)if(t=b.relative[e[s].type])c=[be(we(c),t)];else{if((t=b.filter[e[s].type].apply(null,e[s].matches))[S]){for(n=++s;n<r;n++)if(b.relative[e[n].type])break;return Ce(1<s&&we(c),1<s&&xe(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace($,"$1"),t,s<n&&Ee(e.slice(s,n)),n<r&&Ee(e=e.slice(n)),n<r&&xe(e))}c.push(t)}return we(c)}return me.prototype=b.filters=b.pseudos,b.setFilters=new me,h=se.tokenize=function(e,t){var n,r,i,o,a,s,u,l=x[e+" "];if(l)return t?0:l.slice(0);a=e,s=[],u=b.preFilter;while(a){for(o in n&&!(r=_.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=z.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace($," ")}),a=a.slice(n.length)),b.filter)!(r=G[o].exec(a))||u[o]&&!(r=u[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?se.error(e):x(e,s).slice(0)},f=se.compile=function(e,t){var n,v,y,m,x,r,i=[],o=[],a=A[e+" "];if(!a){t||(t=h(e)),n=t.length;while(n--)(a=Ee(t[n]))[S]?i.push(a):o.push(a);(a=A(e,(v=o,m=0<(y=i).length,x=0<v.length,r=function(e,t,n,r,i){var o,a,s,u=0,l="0",c=e&&[],f=[],p=w,d=e||x&&b.find.TAG("*",i),h=k+=null==p?1:Math.random()||.1,g=d.length;for(i&&(w=t==C||t||i);l!==g&&null!=(o=d[l]);l++){if(x&&o){a=0,t||o.ownerDocument==C||(T(o),n=!E);while(s=v[a++])if(s(o,t||C,n)){r.push(o);break}i&&(k=h)}m&&((o=!s&&o)&&u--,e&&c.push(o))}if(u+=l,m&&l!==u){a=0;while(s=y[a++])s(c,f,t,n);if(e){if(0<u)while(l--)c[l]||f[l]||(f[l]=q.call(r));f=Te(f)}H.apply(r,f),i&&!e&&0<f.length&&1<u+y.length&&se.uniqueSort(r)}return i&&(k=h,w=p),c},m?le(r):r))).selector=e}return a},g=se.select=function(e,t,n,r){var i,o,a,s,u,l="function"==typeof e&&e,c=!r&&h(e=l.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&E&&b.relative[o[1].type]){if(!(t=(b.find.ID(a.matches[0].replace(te,ne),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}i=G.needsContext.test(e)?0:o.length;while(i--){if(a=o[i],b.relative[s=a.type])break;if((u=b.find[s])&&(r=u(a.matches[0].replace(te,ne),ee.test(o[0].type)&&ye(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&xe(o)))return H.apply(n,r),n;break}}}return(l||f(e,c))(r,t,!E,n,!t||ee.test(e)&&ye(t.parentNode)||t),n},d.sortStable=S.split("").sort(j).join("")===S,d.detectDuplicates=!!l,T(),d.sortDetached=ce(function(e){return 1&e.compareDocumentPosition(C.createElement("fieldset"))}),ce(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||fe("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),d.attributes&&ce(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||fe("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ce(function(e){return null==e.getAttribute("disabled")})||fe(R,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),se}(C);S.find=d,S.expr=d.selectors,S.expr[":"]=S.expr.pseudos,S.uniqueSort=S.unique=d.uniqueSort,S.text=d.getText,S.isXMLDoc=d.isXML,S.contains=d.contains,S.escapeSelector=d.escape;var h=function(e,t,n){var r=[],i=void 0!==n;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(i&&S(e).is(n))break;r.push(e)}return r},T=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},k=S.expr.match.needsContext;function A(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var N=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,n,r){return m(n)?S.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?S.grep(e,function(e){return e===n!==r}):"string"!=typeof n?S.grep(e,function(e){return-1<i.call(n,e)!==r}):S.filter(n,e,r)}S.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?S.find.matchesSelector(r,e)?[r]:[]:S.find.matches(e,S.grep(t,function(e){return 1===e.nodeType}))},S.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(S(e).filter(function(){for(t=0;t<r;t++)if(S.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)S.find(e,i[t],n);return 1<r?S.uniqueSort(n):n},filter:function(e){return this.pushStack(j(this,e||[],!1))},not:function(e){return this.pushStack(j(this,e||[],!0))},is:function(e){return!!j(this,"string"==typeof e&&k.test(e)?S(e):e||[],!1).length}});var D,q=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(S.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||D,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:q.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof S?t[0]:t,S.merge(this,S.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),N.test(r[1])&&S.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=E.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(S):S.makeArray(e,this)}).prototype=S.fn,D=S(E);var L=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){while((e=e[t])&&1!==e.nodeType);return e}S.fn.extend({has:function(e){var t=S(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(S.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&S(e);if(!k.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&S.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?S.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?i.call(S(e),this[0]):i.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(S.uniqueSort(S.merge(this.get(),S(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),S.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return h(e,"parentNode")},parentsUntil:function(e,t,n){return h(e,"parentNode",n)},next:function(e){return O(e,"nextSibling")},prev:function(e){return O(e,"previousSibling")},nextAll:function(e){return h(e,"nextSibling")},prevAll:function(e){return h(e,"previousSibling")},nextUntil:function(e,t,n){return h(e,"nextSibling",n)},prevUntil:function(e,t,n){return h(e,"previousSibling",n)},siblings:function(e){return T((e.parentNode||{}).firstChild,e)},children:function(e){return T(e.firstChild)},contents:function(e){return null!=e.contentDocument&&r(e.contentDocument)?e.contentDocument:(A(e,"template")&&(e=e.content||e),S.merge([],e.childNodes))}},function(r,i){S.fn[r]=function(e,t){var n=S.map(this,i,e);return"Until"!==r.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=S.filter(t,n)),1<this.length&&(H[r]||S.uniqueSort(n),L.test(r)&&n.reverse()),this.pushStack(n)}});var P=/[^\x20\t\r\n\f]+/g;function R(e){return e}function M(e){throw e}function I(e,t,n,r){var i;try{e&&m(i=e.promise)?i.call(e).done(t).fail(n):e&&m(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}S.Callbacks=function(r){var e,n;r="string"==typeof r?(e=r,n={},S.each(e.match(P)||[],function(e,t){n[t]=!0}),n):S.extend({},r);var i,t,o,a,s=[],u=[],l=-1,c=function(){for(a=a||r.once,o=i=!0;u.length;l=-1){t=u.shift();while(++l<s.length)!1===s[l].apply(t[0],t[1])&&r.stopOnFalse&&(l=s.length,t=!1)}r.memory||(t=!1),i=!1,a&&(s=t?[]:"")},f={add:function(){return s&&(t&&!i&&(l=s.length-1,u.push(t)),function n(e){S.each(e,function(e,t){m(t)?r.unique&&f.has(t)||s.push(t):t&&t.length&&"string"!==w(t)&&n(t)})}(arguments),t&&!i&&c()),this},remove:function(){return S.each(arguments,function(e,t){var n;while(-1<(n=S.inArray(t,s,n)))s.splice(n,1),n<=l&&l--}),this},has:function(e){return e?-1<S.inArray(e,s):0<s.length},empty:function(){return s&&(s=[]),this},disable:function(){return a=u=[],s=t="",this},disabled:function(){return!s},lock:function(){return a=u=[],t||i||(s=t=""),this},locked:function(){return!!a},fireWith:function(e,t){return a||(t=[e,(t=t||[]).slice?t.slice():t],u.push(t),i||c()),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!o}};return f},S.extend({Deferred:function(e){var o=[["notify","progress",S.Callbacks("memory"),S.Callbacks("memory"),2],["resolve","done",S.Callbacks("once memory"),S.Callbacks("once memory"),0,"resolved"],["reject","fail",S.Callbacks("once memory"),S.Callbacks("once memory"),1,"rejected"]],i="pending",a={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},"catch":function(e){return a.then(null,e)},pipe:function(){var i=arguments;return S.Deferred(function(r){S.each(o,function(e,t){var n=m(i[t[4]])&&i[t[4]];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&m(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[t[0]+"With"](this,n?[e]:arguments)})}),i=null}).promise()},then:function(t,n,r){var u=0;function l(i,o,a,s){return function(){var n=this,r=arguments,e=function(){var e,t;if(!(i<u)){if((e=a.apply(n,r))===o.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,m(t)?s?t.call(e,l(u,o,R,s),l(u,o,M,s)):(u++,t.call(e,l(u,o,R,s),l(u,o,M,s),l(u,o,R,o.notifyWith))):(a!==R&&(n=void 0,r=[e]),(s||o.resolveWith)(n,r))}},t=s?e:function(){try{e()}catch(e){S.Deferred.exceptionHook&&S.Deferred.exceptionHook(e,t.stackTrace),u<=i+1&&(a!==M&&(n=void 0,r=[e]),o.rejectWith(n,r))}};i?t():(S.Deferred.getStackHook&&(t.stackTrace=S.Deferred.getStackHook()),C.setTimeout(t))}}return S.Deferred(function(e){o[0][3].add(l(0,e,m(r)?r:R,e.notifyWith)),o[1][3].add(l(0,e,m(t)?t:R)),o[2][3].add(l(0,e,m(n)?n:M))}).promise()},promise:function(e){return null!=e?S.extend(e,a):a}},s={};return S.each(o,function(e,t){var n=t[2],r=t[5];a[t[1]]=n.add,r&&n.add(function(){i=r},o[3-e][2].disable,o[3-e][3].disable,o[0][2].lock,o[0][3].lock),n.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?void 0:this,arguments),this},s[t[0]+"With"]=n.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){var n=arguments.length,t=n,r=Array(t),i=s.call(arguments),o=S.Deferred(),a=function(t){return function(e){r[t]=this,i[t]=1<arguments.length?s.call(arguments):e,--n||o.resolveWith(r,i)}};if(n<=1&&(I(e,o.done(a(t)).resolve,o.reject,!n),"pending"===o.state()||m(i[t]&&i[t].then)))return o.then();while(t--)I(i[t],a(t),o.reject);return o.promise()}});var W=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;S.Deferred.exceptionHook=function(e,t){C.console&&C.console.warn&&e&&W.test(e.name)&&C.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},S.readyException=function(e){C.setTimeout(function(){throw e})};var F=S.Deferred();function B(){E.removeEventListener("DOMContentLoaded",B),C.removeEventListener("load",B),S.ready()}S.fn.ready=function(e){return F.then(e)["catch"](function(e){S.readyException(e)}),this},S.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--S.readyWait:S.isReady)||(S.isReady=!0)!==e&&0<--S.readyWait||F.resolveWith(E,[S])}}),S.ready.then=F.then,"complete"===E.readyState||"loading"!==E.readyState&&!E.documentElement.doScroll?C.setTimeout(S.ready):(E.addEventListener("DOMContentLoaded",B),C.addEventListener("load",B));var $=function(e,t,n,r,i,o,a){var s=0,u=e.length,l=null==n;if("object"===w(n))for(s in i=!0,n)$(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,m(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(S(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):u?t(e[0],n):o},_=/^-ms-/,z=/-([a-z])/g;function U(e,t){return t.toUpperCase()}function X(e){return e.replace(_,"ms-").replace(z,U)}var V=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function G(){this.expando=S.expando+G.uid++}G.uid=1,G.prototype={cache:function(e){var t=e[this.expando];return t||(t={},V(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[X(t)]=n;else for(r in t)i[X(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][X(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(X):(t=X(t))in r?[t]:t.match(P)||[]).length;while(n--)delete r[t[n]]}(void 0===t||S.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!S.isEmptyObject(t)}};var Y=new G,Q=new G,J=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,K=/[A-Z]/g;function Z(e,t,n){var r,i;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(K,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===(i=n)||"false"!==i&&("null"===i?null:i===+i+""?+i:J.test(i)?JSON.parse(i):i)}catch(e){}Q.set(e,t,n)}else n=void 0;return n}S.extend({hasData:function(e){return Q.hasData(e)||Y.hasData(e)},data:function(e,t,n){return Q.access(e,t,n)},removeData:function(e,t){Q.remove(e,t)},_data:function(e,t,n){return Y.access(e,t,n)},_removeData:function(e,t){Y.remove(e,t)}}),S.fn.extend({data:function(n,e){var t,r,i,o=this[0],a=o&&o.attributes;if(void 0===n){if(this.length&&(i=Q.get(o),1===o.nodeType&&!Y.get(o,"hasDataAttrs"))){t=a.length;while(t--)a[t]&&0===(r=a[t].name).indexOf("data-")&&(r=X(r.slice(5)),Z(o,r,i[r]));Y.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof n?this.each(function(){Q.set(this,n)}):$(this,function(e){var t;if(o&&void 0===e)return void 0!==(t=Q.get(o,n))?t:void 0!==(t=Z(o,n))?t:void 0;this.each(function(){Q.set(this,n,e)})},null,e,1<arguments.length,null,!0)},removeData:function(e){return this.each(function(){Q.remove(this,e)})}}),S.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Y.get(e,t),n&&(!r||Array.isArray(n)?r=Y.access(e,t,S.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=S.queue(e,t),r=n.length,i=n.shift(),o=S._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){S.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Y.get(e,n)||Y.access(e,n,{empty:S.Callbacks("once memory").add(function(){Y.remove(e,[t+"queue",n])})})}}),S.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?S.queue(this[0],t):void 0===n?this:this.each(function(){var e=S.queue(this,t,n);S._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&S.dequeue(this,t)})},dequeue:function(e){return this.each(function(){S.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=S.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};"string"!=typeof e&&(t=e,e=void 0),e=e||"fx";while(a--)(n=Y.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var ee=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,te=new RegExp("^(?:([+-])=|)("+ee+")([a-z%]*)$","i"),ne=["Top","Right","Bottom","Left"],re=E.documentElement,ie=function(e){return S.contains(e.ownerDocument,e)},oe={composed:!0};re.getRootNode&&(ie=function(e){return S.contains(e.ownerDocument,e)||e.getRootNode(oe)===e.ownerDocument});var ae=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ie(e)&&"none"===S.css(e,"display")};function se(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return S.css(e,t,"")},u=s(),l=n&&n[3]||(S.cssNumber[t]?"":"px"),c=e.nodeType&&(S.cssNumber[t]||"px"!==l&&+u)&&te.exec(S.css(e,t));if(c&&c[3]!==l){u/=2,l=l||c[3],c=+u||1;while(a--)S.style(e,t,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;c*=2,S.style(e,t,c+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}var ue={};function le(e,t){for(var n,r,i,o,a,s,u,l=[],c=0,f=e.length;c<f;c++)(r=e[c]).style&&(n=r.style.display,t?("none"===n&&(l[c]=Y.get(r,"display")||null,l[c]||(r.style.display="")),""===r.style.display&&ae(r)&&(l[c]=(u=a=o=void 0,a=(i=r).ownerDocument,s=i.nodeName,(u=ue[s])||(o=a.body.appendChild(a.createElement(s)),u=S.css(o,"display"),o.parentNode.removeChild(o),"none"===u&&(u="block"),ue[s]=u)))):"none"!==n&&(l[c]="none",Y.set(r,"display",n)));for(c=0;c<f;c++)null!=l[c]&&(e[c].style.display=l[c]);return e}S.fn.extend({show:function(){return le(this,!0)},hide:function(){return le(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ae(this)?S(this).show():S(this).hide()})}});var ce,fe,pe=/^(?:checkbox|radio)$/i,de=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i;ce=E.createDocumentFragment().appendChild(E.createElement("div")),(fe=E.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),ce.appendChild(fe),y.checkClone=ce.cloneNode(!0).cloneNode(!0).lastChild.checked,ce.innerHTML="<textarea>x</textarea>",y.noCloneChecked=!!ce.cloneNode(!0).lastChild.defaultValue,ce.innerHTML="<option></option>",y.option=!!ce.lastChild;var ge={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ve(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?S.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;n<r;n++)Y.set(e[n],"globalEval",!t||Y.get(t[n],"globalEval"))}ge.tbody=ge.tfoot=ge.colgroup=ge.caption=ge.thead,ge.th=ge.td,y.option||(ge.optgroup=ge.option=[1,"<select multiple='multiple'>","</select>"]);var me=/<|&#?\w+;/;function xe(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d<h;d++)if((o=e[d])||0===o)if("object"===w(o))S.merge(p,o.nodeType?[o]:o);else if(me.test(o)){a=a||f.appendChild(t.createElement("div")),s=(de.exec(o)||["",""])[1].toLowerCase(),u=ge[s]||ge._default,a.innerHTML=u[1]+S.htmlPrefilter(o)+u[2],c=u[0];while(c--)a=a.lastChild;S.merge(p,a.childNodes),(a=f.firstChild).textContent=""}else p.push(t.createTextNode(o));f.textContent="",d=0;while(o=p[d++])if(r&&-1<S.inArray(o,r))i&&i.push(o);else if(l=ie(o),a=ve(f.appendChild(o),"script"),l&&ye(a),n){c=0;while(o=a[c++])he.test(o.type||"")&&n.push(o)}return f}var be=/^([^.]*)(?:\.(.+)|)/;function we(){return!0}function Te(){return!1}function Ce(e,t){return e===function(){try{return E.activeElement}catch(e){}}()==("focus"===t)}function Ee(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Ee(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Te;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return S().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=S.guid++)),e.each(function(){S.event.add(this,t,i,r,n)})}function Se(e,i,o){o?(Y.set(e,i,!1),S.event.add(e,i,{namespace:!1,handler:function(e){var t,n,r=Y.get(this,i);if(1&e.isTrigger&&this[i]){if(r.length)(S.event.special[i]||{}).delegateType&&e.stopPropagation();else if(r=s.call(arguments),Y.set(this,i,r),t=o(this,i),this[i](),r!==(n=Y.get(this,i))||t?Y.set(this,i,!1):n={},r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n&&n.value}else r.length&&(Y.set(this,i,{value:S.event.trigger(S.extend(r[0],S.Event.prototype),r.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Y.get(e,i)&&S.event.add(e,i,we)}S.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Y.get(t);if(V(t)){n.handler&&(n=(o=n).handler,i=o.selector),i&&S.find.matchesSelector(re,i),n.guid||(n.guid=S.guid++),(u=v.events)||(u=v.events=Object.create(null)),(a=v.handle)||(a=v.handle=function(e){return"undefined"!=typeof S&&S.event.triggered!==e.type?S.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(P)||[""]).length;while(l--)d=g=(s=be.exec(e[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=S.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=S.event.special[d]||{},c=S.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&S.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,h,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),S.event.global[d]=!0)}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Y.hasData(e)&&Y.get(e);if(v&&(u=v.events)){l=(t=(t||"").match(P)||[""]).length;while(l--)if(d=g=(s=be.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){f=S.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;while(o--)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||S.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)S.event.remove(e,d+t[l],n,r,!0);S.isEmptyObject(u)&&Y.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),u=S.event.fix(e),l=(Y.get(this,"events")||Object.create(null))[u.type]||[],c=S.event.special[u.type]||{};for(s[0]=u,t=1;t<arguments.length;t++)s[t]=arguments[t];if(u.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,u)){a=S.event.handlers.call(this,u,l),t=0;while((i=a[t++])&&!u.isPropagationStopped()){u.currentTarget=i.elem,n=0;while((o=i.handlers[n++])&&!u.isImmediatePropagationStopped())u.rnamespace&&!1!==o.namespace&&!u.rnamespace.test(o.namespace)||(u.handleObj=o,u.data=o.data,void 0!==(r=((S.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(u.result=r)&&(u.preventDefault(),u.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,u),u.result}},handlers:function(e,t){var n,r,i,o,a,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&1<=e.button))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],a={},n=0;n<u;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?-1<S(i,this).index(l):S.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(t,e){Object.defineProperty(S.Event.prototype,t,{enumerable:!0,configurable:!0,get:m(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[S.expando]?e:new S.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return pe.test(t.type)&&t.click&&A(t,"input")&&Se(t,"click",we),!1},trigger:function(e){var t=this||e;return pe.test(t.type)&&t.click&&A(t,"input")&&Se(t,"click"),!0},_default:function(e){var t=e.target;return pe.test(t.type)&&t.click&&A(t,"input")&&Y.get(t,"click")||A(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},S.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},S.Event=function(e,t){if(!(this instanceof S.Event))return new S.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?we:Te,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&S.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[S.expando]=!0},S.Event.prototype={constructor:S.Event,isDefaultPrevented:Te,isPropagationStopped:Te,isImmediatePropagationStopped:Te,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=we,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=we,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=we,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},S.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},S.event.addProp),S.each({focus:"focusin",blur:"focusout"},function(e,t){S.event.special[e]={setup:function(){return Se(this,e,Ce),!1},trigger:function(){return Se(this,e),!0},_default:function(){return!0},delegateType:t}}),S.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,i){S.event.special[e]={delegateType:i,bindType:i,handle:function(e){var t,n=e.relatedTarget,r=e.handleObj;return n&&(n===this||S.contains(this,n))||(e.type=r.origType,t=r.handler.apply(this,arguments),e.type=i),t}}}),S.fn.extend({on:function(e,t,n,r){return Ee(this,e,t,n,r)},one:function(e,t,n,r){return Ee(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,S(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Te),this.each(function(){S.event.remove(this,e,n,t)})}});var ke=/<script|<style|<link/i,Ae=/checked\s*(?:[^=]|=\s*.checked.)/i,Ne=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function je(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&S(e).children("tbody")[0]||e}function De(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function qe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Le(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(Y.hasData(e)&&(s=Y.get(e).events))for(i in Y.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)S.event.add(t,i,s[i][n]);Q.hasData(e)&&(o=Q.access(e),a=S.extend({},o),Q.set(t,a))}}function He(n,r,i,o){r=g(r);var e,t,a,s,u,l,c=0,f=n.length,p=f-1,d=r[0],h=m(d);if(h||1<f&&"string"==typeof d&&!y.checkClone&&Ae.test(d))return n.each(function(e){var t=n.eq(e);h&&(r[0]=d.call(this,e,t.html())),He(t,r,i,o)});if(f&&(t=(e=xe(r,n[0].ownerDocument,!1,n,o)).firstChild,1===e.childNodes.length&&(e=t),t||o)){for(s=(a=S.map(ve(e,"script"),De)).length;c<f;c++)u=e,c!==p&&(u=S.clone(u,!0,!0),s&&S.merge(a,ve(u,"script"))),i.call(n[c],u,c);if(s)for(l=a[a.length-1].ownerDocument,S.map(a,qe),c=0;c<s;c++)u=a[c],he.test(u.type||"")&&!Y.access(u,"globalEval")&&S.contains(l,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?S._evalUrl&&!u.noModule&&S._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},l):b(u.textContent.replace(Ne,""),u,l))}return n}function Oe(e,t,n){for(var r,i=t?S.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||S.cleanData(ve(r)),r.parentNode&&(n&&ie(r)&&ye(ve(r,"script")),r.parentNode.removeChild(r));return e}S.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s,u,l,c=e.cloneNode(!0),f=ie(e);if(!(y.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||S.isXMLDoc(e)))for(a=ve(c),r=0,i=(o=ve(e)).length;r<i;r++)s=o[r],u=a[r],void 0,"input"===(l=u.nodeName.toLowerCase())&&pe.test(s.type)?u.checked=s.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=s.defaultValue);if(t)if(n)for(o=o||ve(e),a=a||ve(c),r=0,i=o.length;r<i;r++)Le(o[r],a[r]);else Le(e,c);return 0<(a=ve(c,"script")).length&&ye(a,!f&&ve(e,"script")),c},cleanData:function(e){for(var t,n,r,i=S.event.special,o=0;void 0!==(n=e[o]);o++)if(V(n)){if(t=n[Y.expando]){if(t.events)for(r in t.events)i[r]?S.event.remove(n,r):S.removeEvent(n,r,t.handle);n[Y.expando]=void 0}n[Q.expando]&&(n[Q.expando]=void 0)}}}),S.fn.extend({detach:function(e){return Oe(this,e,!0)},remove:function(e){return Oe(this,e)},text:function(e){return $(this,function(e){return void 0===e?S.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return He(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||je(this,e).appendChild(e)})},prepend:function(){return He(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=je(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return He(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return He(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(S.cleanData(ve(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return S.clone(this,e,t)})},html:function(e){return $(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!ke.test(e)&&!ge[(de.exec(e)||["",""])[1].toLowerCase()]){e=S.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(S.cleanData(ve(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return He(this,arguments,function(e){var t=this.parentNode;S.inArray(this,n)<0&&(S.cleanData(ve(this)),t&&t.replaceChild(e,this))},n)}}),S.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){S.fn[e]=function(e){for(var t,n=[],r=S(e),i=r.length-1,o=0;o<=i;o++)t=o===i?this:this.clone(!0),S(r[o])[a](t),u.apply(n,t.get());return this.pushStack(n)}});var Pe=new RegExp("^("+ee+")(?!px)[a-z%]+$","i"),Re=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=C),t.getComputedStyle(e)},Me=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},Ie=new RegExp(ne.join("|"),"i");function We(e,t,n){var r,i,o,a,s=e.style;return(n=n||Re(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||ie(e)||(a=S.style(e,t)),!y.pixelBoxStyles()&&Pe.test(a)&&Ie.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function Fe(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(l){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",re.appendChild(u).appendChild(l);var e=C.getComputedStyle(l);n="1%"!==e.top,s=12===t(e.marginLeft),l.style.right="60%",o=36===t(e.right),r=36===t(e.width),l.style.position="absolute",i=12===t(l.offsetWidth/3),re.removeChild(u),l=null}}function t(e){return Math.round(parseFloat(e))}var n,r,i,o,a,s,u=E.createElement("div"),l=E.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",y.clearCloneStyle="content-box"===l.style.backgroundClip,S.extend(y,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),s},scrollboxSize:function(){return e(),i},reliableTrDimensions:function(){var e,t,n,r;return null==a&&(e=E.createElement("table"),t=E.createElement("tr"),n=E.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",re.appendChild(e).appendChild(t).appendChild(n),r=C.getComputedStyle(t),a=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===t.offsetHeight,re.removeChild(e)),a}}))}();var Be=["Webkit","Moz","ms"],$e=E.createElement("div").style,_e={};function ze(e){var t=S.cssProps[e]||_e[e];return t||(e in $e?e:_e[e]=function(e){var t=e[0].toUpperCase()+e.slice(1),n=Be.length;while(n--)if((e=Be[n]+t)in $e)return e}(e)||e)}var Ue=/^(none|table(?!-c[ea]).+)/,Xe=/^--/,Ve={position:"absolute",visibility:"hidden",display:"block"},Ge={letterSpacing:"0",fontWeight:"400"};function Ye(e,t,n){var r=te.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function Qe(e,t,n,r,i,o){var a="width"===t?1:0,s=0,u=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(u+=S.css(e,n+ne[a],!0,i)),r?("content"===n&&(u-=S.css(e,"padding"+ne[a],!0,i)),"margin"!==n&&(u-=S.css(e,"border"+ne[a]+"Width",!0,i))):(u+=S.css(e,"padding"+ne[a],!0,i),"padding"!==n?u+=S.css(e,"border"+ne[a]+"Width",!0,i):s+=S.css(e,"border"+ne[a]+"Width",!0,i));return!r&&0<=o&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))||0),u}function Je(e,t,n){var r=Re(e),i=(!y.boxSizingReliable()||n)&&"border-box"===S.css(e,"boxSizing",!1,r),o=i,a=We(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(Pe.test(a)){if(!n)return a;a="auto"}return(!y.boxSizingReliable()&&i||!y.reliableTrDimensions()&&A(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===S.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===S.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+Qe(e,t,n||(i?"border":"content"),o,r,a)+"px"}function Ke(e,t,n,r,i){return new Ke.prototype.init(e,t,n,r,i)}S.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=We(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=X(t),u=Xe.test(t),l=e.style;if(u||(t=ze(s)),a=S.cssHooks[t]||S.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];"string"===(o=typeof n)&&(i=te.exec(n))&&i[1]&&(n=se(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=i&&i[3]||(S.cssNumber[s]?"":"px")),y.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=X(t);return Xe.test(t)||(t=ze(s)),(a=S.cssHooks[t]||S.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=We(e,t,r)),"normal"===i&&t in Ge&&(i=Ge[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),S.each(["height","width"],function(e,u){S.cssHooks[u]={get:function(e,t,n){if(t)return!Ue.test(S.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Je(e,u,n):Me(e,Ve,function(){return Je(e,u,n)})},set:function(e,t,n){var r,i=Re(e),o=!y.scrollboxSize()&&"absolute"===i.position,a=(o||n)&&"border-box"===S.css(e,"boxSizing",!1,i),s=n?Qe(e,u,n,a,i):0;return a&&o&&(s-=Math.ceil(e["offset"+u[0].toUpperCase()+u.slice(1)]-parseFloat(i[u])-Qe(e,u,"border",!1,i)-.5)),s&&(r=te.exec(t))&&"px"!==(r[3]||"px")&&(e.style[u]=t,t=S.css(e,u)),Ye(0,t,s)}}}),S.cssHooks.marginLeft=Fe(y.reliableMarginLeft,function(e,t){if(t)return(parseFloat(We(e,"marginLeft"))||e.getBoundingClientRect().left-Me(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),S.each({margin:"",padding:"",border:"Width"},function(i,o){S.cssHooks[i+o]={expand:function(e){for(var t=0,n={},r="string"==typeof e?e.split(" "):[e];t<4;t++)n[i+ne[t]+o]=r[t]||r[t-2]||r[0];return n}},"margin"!==i&&(S.cssHooks[i+o].set=Ye)}),S.fn.extend({css:function(e,t){return $(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Re(e),i=t.length;a<i;a++)o[t[a]]=S.css(e,t[a],!1,r);return o}return void 0!==n?S.style(e,t,n):S.css(e,t)},e,t,1<arguments.length)}}),((S.Tween=Ke).prototype={constructor:Ke,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||S.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(S.cssNumber[n]?"":"px")},cur:function(){var e=Ke.propHooks[this.prop];return e&&e.get?e.get(this):Ke.propHooks._default.get(this)},run:function(e){var t,n=Ke.propHooks[this.prop];return this.options.duration?this.pos=t=S.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Ke.propHooks._default.set(this),this}}).init.prototype=Ke.prototype,(Ke.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=S.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){S.fx.step[e.prop]?S.fx.step[e.prop](e):1!==e.elem.nodeType||!S.cssHooks[e.prop]&&null==e.elem.style[ze(e.prop)]?e.elem[e.prop]=e.now:S.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=Ke.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},S.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},S.fx=Ke.prototype.init,S.fx.step={};var Ze,et,tt,nt,rt=/^(?:toggle|show|hide)$/,it=/queueHooks$/;function ot(){et&&(!1===E.hidden&&C.requestAnimationFrame?C.requestAnimationFrame(ot):C.setTimeout(ot,S.fx.interval),S.fx.tick())}function at(){return C.setTimeout(function(){Ze=void 0}),Ze=Date.now()}function st(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=ne[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function ut(e,t,n){for(var r,i=(lt.tweeners[t]||[]).concat(lt.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function lt(o,e,t){var n,a,r=0,i=lt.prefilters.length,s=S.Deferred().always(function(){delete u.elem}),u=function(){if(a)return!1;for(var e=Ze||at(),t=Math.max(0,l.startTime+l.duration-e),n=1-(t/l.duration||0),r=0,i=l.tweens.length;r<i;r++)l.tweens[r].run(n);return s.notifyWith(o,[l,n,t]),n<1&&i?t:(i||s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l]),!1)},l=s.promise({elem:o,props:S.extend({},e),opts:S.extend(!0,{specialEasing:{},easing:S.easing._default},t),originalProperties:e,originalOptions:t,startTime:Ze||at(),duration:t.duration,tweens:[],createTween:function(e,t){var n=S.Tween(o,l.opts,e,t,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(n),n},stop:function(e){var t=0,n=e?l.tweens.length:0;if(a)return this;for(a=!0;t<n;t++)l.tweens[t].run(1);return e?(s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l,e])):s.rejectWith(o,[l,e]),this}}),c=l.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=X(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=S.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,l.opts.specialEasing);r<i;r++)if(n=lt.prefilters[r].call(l,o,c,l.opts))return m(n.stop)&&(S._queueHooks(l.elem,l.opts.queue).stop=n.stop.bind(n)),n;return S.map(c,ut,l),m(l.opts.start)&&l.opts.start.call(o,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),S.fx.timer(S.extend(u,{elem:o,anim:l,queue:l.opts.queue})),l}S.Animation=S.extend(lt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return se(n.elem,e,te.exec(t),n),n}]},tweener:function(e,t){m(e)?(t=e,e=["*"]):e=e.match(P);for(var n,r=0,i=e.length;r<i;r++)n=e[r],lt.tweeners[n]=lt.tweeners[n]||[],lt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,u,l,c,f="width"in t||"height"in t,p=this,d={},h=e.style,g=e.nodeType&&ae(e),v=Y.get(e,"fxshow");for(r in n.queue||(null==(a=S._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always(function(){p.always(function(){a.unqueued--,S.queue(e,"fx").length||a.empty.fire()})})),t)if(i=t[r],rt.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;g=!0}d[r]=v&&v[r]||S.style(e,r)}if((u=!S.isEmptyObject(t))||!S.isEmptyObject(d))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=v&&v.display)&&(l=Y.get(e,"display")),"none"===(c=S.css(e,"display"))&&(l?c=l:(le([e],!0),l=e.style.display||l,c=S.css(e,"display"),le([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===S.css(e,"float")&&(u||(p.done(function(){h.display=l}),null==l&&(c=h.display,l="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1,d)u||(v?"hidden"in v&&(g=v.hidden):v=Y.access(e,"fxshow",{display:l}),o&&(v.hidden=!g),g&&le([e],!0),p.done(function(){for(r in g||le([e]),Y.remove(e,"fxshow"),d)S.style(e,r,d[r])})),u=ut(g?v[r]:0,r,p),r in v||(v[r]=u.start,g&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?lt.prefilters.unshift(e):lt.prefilters.push(e)}}),S.speed=function(e,t,n){var r=e&&"object"==typeof e?S.extend({},e):{complete:n||!n&&t||m(e)&&e,duration:e,easing:n&&t||t&&!m(t)&&t};return S.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in S.fx.speeds?r.duration=S.fx.speeds[r.duration]:r.duration=S.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){m(r.old)&&r.old.call(this),r.queue&&S.dequeue(this,r.queue)},r},S.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ae).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(t,e,n,r){var i=S.isEmptyObject(t),o=S.speed(e,n,r),a=function(){var e=lt(this,S.extend({},t),o);(i||Y.get(this,"finish"))&&e.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(i,e,o){var a=function(e){var t=e.stop;delete e.stop,t(o)};return"string"!=typeof i&&(o=e,e=i,i=void 0),e&&this.queue(i||"fx",[]),this.each(function(){var e=!0,t=null!=i&&i+"queueHooks",n=S.timers,r=Y.get(this);if(t)r[t]&&r[t].stop&&a(r[t]);else for(t in r)r[t]&&r[t].stop&&it.test(t)&&a(r[t]);for(t=n.length;t--;)n[t].elem!==this||null!=i&&n[t].queue!==i||(n[t].anim.stop(o),e=!1,n.splice(t,1));!e&&o||S.dequeue(this,i)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=Y.get(this),n=t[a+"queue"],r=t[a+"queueHooks"],i=S.timers,o=n?n.length:0;for(t.finish=!0,S.queue(this,a,[]),r&&r.stop&&r.stop.call(this,!0),e=i.length;e--;)i[e].elem===this&&i[e].queue===a&&(i[e].anim.stop(!0),i.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),S.each(["toggle","show","hide"],function(e,r){var i=S.fn[r];S.fn[r]=function(e,t,n){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(st(r,!0),e,t,n)}}),S.each({slideDown:st("show"),slideUp:st("hide"),slideToggle:st("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,r){S.fn[e]=function(e,t,n){return this.animate(r,e,t,n)}}),S.timers=[],S.fx.tick=function(){var e,t=0,n=S.timers;for(Ze=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||S.fx.stop(),Ze=void 0},S.fx.timer=function(e){S.timers.push(e),S.fx.start()},S.fx.interval=13,S.fx.start=function(){et||(et=!0,ot())},S.fx.stop=function(){et=null},S.fx.speeds={slow:600,fast:200,_default:400},S.fn.delay=function(r,e){return r=S.fx&&S.fx.speeds[r]||r,e=e||"fx",this.queue(e,function(e,t){var n=C.setTimeout(e,r);t.stop=function(){C.clearTimeout(n)}})},tt=E.createElement("input"),nt=E.createElement("select").appendChild(E.createElement("option")),tt.type="checkbox",y.checkOn=""!==tt.value,y.optSelected=nt.selected,(tt=E.createElement("input")).value="t",tt.type="radio",y.radioValue="t"===tt.value;var ct,ft=S.expr.attrHandle;S.fn.extend({attr:function(e,t){return $(this,S.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){S.removeAttr(this,e)})}}),S.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?S.prop(e,t,n):(1===o&&S.isXMLDoc(e)||(i=S.attrHooks[t.toLowerCase()]||(S.expr.match.bool.test(t)?ct:void 0)),void 0!==n?null===n?void S.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=S.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!y.radioValue&&"radio"===t&&A(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(P);if(i&&1===e.nodeType)while(n=i[r++])e.removeAttribute(n)}}),ct={set:function(e,t,n){return!1===t?S.removeAttr(e,n):e.setAttribute(n,n),n}},S.each(S.expr.match.bool.source.match(/\w+/g),function(e,t){var a=ft[t]||S.find.attr;ft[t]=function(e,t,n){var r,i,o=t.toLowerCase();return n||(i=ft[o],ft[o]=r,r=null!=a(e,t,n)?o:null,ft[o]=i),r}});var pt=/^(?:input|select|textarea|button)$/i,dt=/^(?:a|area)$/i;function ht(e){return(e.match(P)||[]).join(" ")}function gt(e){return e.getAttribute&&e.getAttribute("class")||""}function vt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(P)||[]}S.fn.extend({prop:function(e,t){return $(this,S.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[S.propFix[e]||e]})}}),S.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&S.isXMLDoc(e)||(t=S.propFix[t]||t,i=S.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=S.find.attr(e,"tabindex");return t?parseInt(t,10):pt.test(e.nodeName)||dt.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),y.optSelected||(S.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),S.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){S.propFix[this.toLowerCase()]=this}),S.fn.extend({addClass:function(t){var e,n,r,i,o,a,s,u=0;if(m(t))return this.each(function(e){S(this).addClass(t.call(this,e,gt(this)))});if((e=vt(t)).length)while(n=this[u++])if(i=gt(n),r=1===n.nodeType&&" "+ht(i)+" "){a=0;while(o=e[a++])r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=ht(r))&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,r,i,o,a,s,u=0;if(m(t))return this.each(function(e){S(this).removeClass(t.call(this,e,gt(this)))});if(!arguments.length)return this.attr("class","");if((e=vt(t)).length)while(n=this[u++])if(i=gt(n),r=1===n.nodeType&&" "+ht(i)+" "){a=0;while(o=e[a++])while(-1<r.indexOf(" "+o+" "))r=r.replace(" "+o+" "," ");i!==(s=ht(r))&&n.setAttribute("class",s)}return this},toggleClass:function(i,t){var o=typeof i,a="string"===o||Array.isArray(i);return"boolean"==typeof t&&a?t?this.addClass(i):this.removeClass(i):m(i)?this.each(function(e){S(this).toggleClass(i.call(this,e,gt(this),t),t)}):this.each(function(){var e,t,n,r;if(a){t=0,n=S(this),r=vt(i);while(e=r[t++])n.hasClass(e)?n.removeClass(e):n.addClass(e)}else void 0!==i&&"boolean"!==o||((e=gt(this))&&Y.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===i?"":Y.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;t=" "+e+" ";while(n=this[r++])if(1===n.nodeType&&-1<(" "+ht(gt(n))+" ").indexOf(t))return!0;return!1}});var yt=/\r/g;S.fn.extend({val:function(n){var r,e,i,t=this[0];return arguments.length?(i=m(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=i?n.call(this,e,S(this).val()):n)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=S.map(t,function(e){return null==e?"":e+""})),(r=S.valHooks[this.type]||S.valHooks[this.nodeName.toLowerCase()])&&"set"in r&&void 0!==r.set(this,t,"value")||(this.value=t))})):t?(r=S.valHooks[t.type]||S.valHooks[t.nodeName.toLowerCase()])&&"get"in r&&void 0!==(e=r.get(t,"value"))?e:"string"==typeof(e=t.value)?e.replace(yt,""):null==e?"":e:void 0}}),S.extend({valHooks:{option:{get:function(e){var t=S.find.attr(e,"value");return null!=t?t:ht(S.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r<u;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!A(n.parentNode,"optgroup"))){if(t=S(n).val(),a)return t;s.push(t)}return s},set:function(e,t){var n,r,i=e.options,o=S.makeArray(t),a=i.length;while(a--)((r=i[a]).selected=-1<S.inArray(S.valHooks.option.get(r),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),S.each(["radio","checkbox"],function(){S.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<S.inArray(S(e).val(),t)}},y.checkOn||(S.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),y.focusin="onfocusin"in C;var mt=/^(?:focusinfocus|focusoutblur)$/,xt=function(e){e.stopPropagation()};S.extend(S.event,{trigger:function(e,t,n,r){var i,o,a,s,u,l,c,f,p=[n||E],d=v.call(e,"type")?e.type:e,h=v.call(e,"namespace")?e.namespace.split("."):[];if(o=f=a=n=n||E,3!==n.nodeType&&8!==n.nodeType&&!mt.test(d+S.event.triggered)&&(-1<d.indexOf(".")&&(d=(h=d.split(".")).shift(),h.sort()),u=d.indexOf(":")<0&&"on"+d,(e=e[S.expando]?e:new S.Event(d,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=h.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:S.makeArray(t,[e]),c=S.event.special[d]||{},r||!c.trigger||!1!==c.trigger.apply(n,t))){if(!r&&!c.noBubble&&!x(n)){for(s=c.delegateType||d,mt.test(s+d)||(o=o.parentNode);o;o=o.parentNode)p.push(o),a=o;a===(n.ownerDocument||E)&&p.push(a.defaultView||a.parentWindow||C)}i=0;while((o=p[i++])&&!e.isPropagationStopped())f=o,e.type=1<i?s:c.bindType||d,(l=(Y.get(o,"events")||Object.create(null))[e.type]&&Y.get(o,"handle"))&&l.apply(o,t),(l=u&&o[u])&&l.apply&&V(o)&&(e.result=l.apply(o,t),!1===e.result&&e.preventDefault());return e.type=d,r||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(p.pop(),t)||!V(n)||u&&m(n[d])&&!x(n)&&((a=n[u])&&(n[u]=null),S.event.triggered=d,e.isPropagationStopped()&&f.addEventListener(d,xt),n[d](),e.isPropagationStopped()&&f.removeEventListener(d,xt),S.event.triggered=void 0,a&&(n[u]=a)),e.result}},simulate:function(e,t,n){var r=S.extend(new S.Event,n,{type:e,isSimulated:!0});S.event.trigger(r,null,t)}}),S.fn.extend({trigger:function(e,t){return this.each(function(){S.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return S.event.trigger(e,t,n,!0)}}),y.focusin||S.each({focus:"focusin",blur:"focusout"},function(n,r){var i=function(e){S.event.simulate(r,e.target,S.event.fix(e))};S.event.special[r]={setup:function(){var e=this.ownerDocument||this.document||this,t=Y.access(e,r);t||e.addEventListener(n,i,!0),Y.access(e,r,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this.document||this,t=Y.access(e,r)-1;t?Y.access(e,r,t):(e.removeEventListener(n,i,!0),Y.remove(e,r))}}});var bt=C.location,wt={guid:Date.now()},Tt=/\?/;S.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new C.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||S.error("Invalid XML: "+(n?S.map(n.childNodes,function(e){return e.textContent}).join("\n"):e)),t};var Ct=/\[\]$/,Et=/\r?\n/g,St=/^(?:submit|button|image|reset|file)$/i,kt=/^(?:input|select|textarea|keygen)/i;function At(n,e,r,i){var t;if(Array.isArray(e))S.each(e,function(e,t){r||Ct.test(n)?i(n,t):At(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,r,i)});else if(r||"object"!==w(e))i(n,e);else for(t in e)At(n+"["+t+"]",e[t],r,i)}S.param=function(e,t){var n,r=[],i=function(e,t){var n=m(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!S.isPlainObject(e))S.each(e,function(){i(this.name,this.value)});else for(n in e)At(n,e[n],t,i);return r.join("&")},S.fn.extend({serialize:function(){return S.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=S.prop(this,"elements");return e?S.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!S(this).is(":disabled")&&kt.test(this.nodeName)&&!St.test(e)&&(this.checked||!pe.test(e))}).map(function(e,t){var n=S(this).val();return null==n?null:Array.isArray(n)?S.map(n,function(e){return{name:t.name,value:e.replace(Et,"\r\n")}}):{name:t.name,value:n.replace(Et,"\r\n")}}).get()}});var Nt=/%20/g,jt=/#.*$/,Dt=/([?&])_=[^&]*/,qt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Lt=/^(?:GET|HEAD)$/,Ht=/^\/\//,Ot={},Pt={},Rt="*/".concat("*"),Mt=E.createElement("a");function It(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,r=0,i=e.toLowerCase().match(P)||[];if(m(t))while(n=i[r++])"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function Wt(t,i,o,a){var s={},u=t===Pt;function l(e){var r;return s[e]=!0,S.each(t[e]||[],function(e,t){var n=t(i,o,a);return"string"!=typeof n||u||s[n]?u?!(r=n):void 0:(i.dataTypes.unshift(n),l(n),!1)}),r}return l(i.dataTypes[0])||!s["*"]&&l("*")}function Ft(e,t){var n,r,i=S.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&S.extend(!0,e,r),e}Mt.href=bt.href,S.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:bt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(bt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Rt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":S.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Ft(Ft(e,S.ajaxSettings),t):Ft(S.ajaxSettings,e)},ajaxPrefilter:It(Ot),ajaxTransport:It(Pt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var c,f,p,n,d,r,h,g,i,o,v=S.ajaxSetup({},t),y=v.context||v,m=v.context&&(y.nodeType||y.jquery)?S(y):S.event,x=S.Deferred(),b=S.Callbacks("once memory"),w=v.statusCode||{},a={},s={},u="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(h){if(!n){n={};while(t=qt.exec(p))n[t[1].toLowerCase()+" "]=(n[t[1].toLowerCase()+" "]||[]).concat(t[2])}t=n[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return h?p:null},setRequestHeader:function(e,t){return null==h&&(e=s[e.toLowerCase()]=s[e.toLowerCase()]||e,a[e]=t),this},overrideMimeType:function(e){return null==h&&(v.mimeType=e),this},statusCode:function(e){var t;if(e)if(h)T.always(e[T.status]);else for(t in e)w[t]=[w[t],e[t]];return this},abort:function(e){var t=e||u;return c&&c.abort(t),l(0,t),this}};if(x.promise(T),v.url=((e||v.url||bt.href)+"").replace(Ht,bt.protocol+"//"),v.type=t.method||t.type||v.method||v.type,v.dataTypes=(v.dataType||"*").toLowerCase().match(P)||[""],null==v.crossDomain){r=E.createElement("a");try{r.href=v.url,r.href=r.href,v.crossDomain=Mt.protocol+"//"+Mt.host!=r.protocol+"//"+r.host}catch(e){v.crossDomain=!0}}if(v.data&&v.processData&&"string"!=typeof v.data&&(v.data=S.param(v.data,v.traditional)),Wt(Ot,v,t,T),h)return T;for(i in(g=S.event&&v.global)&&0==S.active++&&S.event.trigger("ajaxStart"),v.type=v.type.toUpperCase(),v.hasContent=!Lt.test(v.type),f=v.url.replace(jt,""),v.hasContent?v.data&&v.processData&&0===(v.contentType||"").indexOf("application/x-www-form-urlencoded")&&(v.data=v.data.replace(Nt,"+")):(o=v.url.slice(f.length),v.data&&(v.processData||"string"==typeof v.data)&&(f+=(Tt.test(f)?"&":"?")+v.data,delete v.data),!1===v.cache&&(f=f.replace(Dt,"$1"),o=(Tt.test(f)?"&":"?")+"_="+wt.guid+++o),v.url=f+o),v.ifModified&&(S.lastModified[f]&&T.setRequestHeader("If-Modified-Since",S.lastModified[f]),S.etag[f]&&T.setRequestHeader("If-None-Match",S.etag[f])),(v.data&&v.hasContent&&!1!==v.contentType||t.contentType)&&T.setRequestHeader("Content-Type",v.contentType),T.setRequestHeader("Accept",v.dataTypes[0]&&v.accepts[v.dataTypes[0]]?v.accepts[v.dataTypes[0]]+("*"!==v.dataTypes[0]?", "+Rt+"; q=0.01":""):v.accepts["*"]),v.headers)T.setRequestHeader(i,v.headers[i]);if(v.beforeSend&&(!1===v.beforeSend.call(y,T,v)||h))return T.abort();if(u="abort",b.add(v.complete),T.done(v.success),T.fail(v.error),c=Wt(Pt,v,t,T)){if(T.readyState=1,g&&m.trigger("ajaxSend",[T,v]),h)return T;v.async&&0<v.timeout&&(d=C.setTimeout(function(){T.abort("timeout")},v.timeout));try{h=!1,c.send(a,l)}catch(e){if(h)throw e;l(-1,e)}}else l(-1,"No Transport");function l(e,t,n,r){var i,o,a,s,u,l=t;h||(h=!0,d&&C.clearTimeout(d),c=void 0,p=r||"",T.readyState=0<e?4:0,i=200<=e&&e<300||304===e,n&&(s=function(e,t,n){var r,i,o,a,s=e.contents,u=e.dataTypes;while("*"===u[0])u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(v,T,n)),!i&&-1<S.inArray("script",v.dataTypes)&&S.inArray("json",v.dataTypes)<0&&(v.converters["text script"]=function(){}),s=function(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];o=c.shift();while(o)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(v,s,T,i),i?(v.ifModified&&((u=T.getResponseHeader("Last-Modified"))&&(S.lastModified[f]=u),(u=T.getResponseHeader("etag"))&&(S.etag[f]=u)),204===e||"HEAD"===v.type?l="nocontent":304===e?l="notmodified":(l=s.state,o=s.data,i=!(a=s.error))):(a=l,!e&&l||(l="error",e<0&&(e=0))),T.status=e,T.statusText=(t||l)+"",i?x.resolveWith(y,[o,l,T]):x.rejectWith(y,[T,l,a]),T.statusCode(w),w=void 0,g&&m.trigger(i?"ajaxSuccess":"ajaxError",[T,v,i?o:a]),b.fireWith(y,[T,l]),g&&(m.trigger("ajaxComplete",[T,v]),--S.active||S.event.trigger("ajaxStop")))}return T},getJSON:function(e,t,n){return S.get(e,t,n,"json")},getScript:function(e,t){return S.get(e,void 0,t,"script")}}),S.each(["get","post"],function(e,i){S[i]=function(e,t,n,r){return m(t)&&(r=r||n,n=t,t=void 0),S.ajax(S.extend({url:e,type:i,dataType:r,data:t,success:n},S.isPlainObject(e)&&e))}}),S.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),S._evalUrl=function(e,t,n){return S.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){S.globalEval(e,t,n)}})},S.fn.extend({wrapAll:function(e){var t;return this[0]&&(m(e)&&(e=e.call(this[0])),t=S(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(n){return m(n)?this.each(function(e){S(this).wrapInner(n.call(this,e))}):this.each(function(){var e=S(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=m(t);return this.each(function(e){S(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){S(this).replaceWith(this.childNodes)}),this}}),S.expr.pseudos.hidden=function(e){return!S.expr.pseudos.visible(e)},S.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},S.ajaxSettings.xhr=function(){try{return new C.XMLHttpRequest}catch(e){}};var Bt={0:200,1223:204},$t=S.ajaxSettings.xhr();y.cors=!!$t&&"withCredentials"in $t,y.ajax=$t=!!$t,S.ajaxTransport(function(i){var o,a;if(y.cors||$t&&!i.crossDomain)return{send:function(e,t){var n,r=i.xhr();if(r.open(i.type,i.url,i.async,i.username,i.password),i.xhrFields)for(n in i.xhrFields)r[n]=i.xhrFields[n];for(n in i.mimeType&&r.overrideMimeType&&r.overrideMimeType(i.mimeType),i.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)r.setRequestHeader(n,e[n]);o=function(e){return function(){o&&(o=a=r.onload=r.onerror=r.onabort=r.ontimeout=r.onreadystatechange=null,"abort"===e?r.abort():"error"===e?"number"!=typeof r.status?t(0,"error"):t(r.status,r.statusText):t(Bt[r.status]||r.status,r.statusText,"text"!==(r.responseType||"text")||"string"!=typeof r.responseText?{binary:r.response}:{text:r.responseText},r.getAllResponseHeaders()))}},r.onload=o(),a=r.onerror=r.ontimeout=o("error"),void 0!==r.onabort?r.onabort=a:r.onreadystatechange=function(){4===r.readyState&&C.setTimeout(function(){o&&a()})},o=o("abort");try{r.send(i.hasContent&&i.data||null)}catch(e){if(o)throw e}},abort:function(){o&&o()}}}),S.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),S.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return S.globalEval(e),e}}}),S.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),S.ajaxTransport("script",function(n){var r,i;if(n.crossDomain||n.scriptAttrs)return{send:function(e,t){r=S("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),E.head.appendChild(r[0])},abort:function(){i&&i()}}});var _t,zt=[],Ut=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=zt.pop()||S.expando+"_"+wt.guid++;return this[e]=!0,e}}),S.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Ut.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ut.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Ut,"$1"+r):!1!==e.jsonp&&(e.url+=(Tt.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||S.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=C[r],C[r]=function(){o=arguments},n.always(function(){void 0===i?S(C).removeProp(r):C[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,zt.push(r)),o&&m(i)&&i(o[0]),o=i=void 0}),"script"}),y.createHTMLDocument=((_t=E.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===_t.childNodes.length),S.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((r=(t=E.implementation.createHTMLDocument("")).createElement("base")).href=E.location.href,t.head.appendChild(r)):t=E),o=!n&&[],(i=N.exec(e))?[t.createElement(i[1])]:(i=xe([e],t,o),o&&o.length&&S(o).remove(),S.merge([],i.childNodes)));var r,i,o},S.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1<s&&(r=ht(e.slice(s)),e=e.slice(0,s)),m(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),0<a.length&&S.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?S("<div>").append(S.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},S.expr.pseudos.animated=function(t){return S.grep(S.timers,function(e){return t===e.elem}).length},S.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=S.css(e,"position"),c=S(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=S.css(e,"top"),u=S.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m(t)&&(t=t.call(e,n,S.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},S.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){S.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===S.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===S.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=S(e).offset()).top+=S.css(e,"borderTopWidth",!0),i.left+=S.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-S.css(r,"marginTop",!0),left:t.left-i.left-S.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===S.css(e,"position"))e=e.offsetParent;return e||re})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;S.fn[t]=function(e){return $(this,function(e,t,n){var r;if(x(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),S.each(["top","left"],function(e,n){S.cssHooks[n]=Fe(y.pixelPosition,function(e,t){if(t)return t=We(e,n),Pe.test(t)?S(e).position()[n]+"px":t})}),S.each({Height:"height",Width:"width"},function(a,s){S.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){S.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return $(this,function(e,t,n){var r;return x(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?S.css(e,t,i):S.style(e,t,n,i)},s,n?e:void 0,n)}})}),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){S.fn[t]=function(e){return this.on(t,e)}}),S.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),S.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){S.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}});var Xt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;S.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),m(e))return r=s.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(s.call(arguments)))}).guid=e.guid=e.guid||S.guid++,i},S.holdReady=function(e){e?S.readyWait++:S.ready(!0)},S.isArray=Array.isArray,S.parseJSON=JSON.parse,S.nodeName=A,S.isFunction=m,S.isWindow=x,S.camelCase=X,S.type=w,S.now=Date.now,S.isNumeric=function(e){var t=S.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},S.trim=function(e){return null==e?"":(e+"").replace(Xt,"")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return S});var Vt=C.jQuery,Gt=C.$;return S.noConflict=function(e){return C.$===S&&(C.$=Gt),e&&C.jQuery===S&&(C.jQuery=Vt),S},"undefined"==typeof e&&(C.jQuery=C.$=S),S}); +/*! jQuery v3.5.1 | (c) JS Foundation and other contributors | jquery.org/license */ +!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],r=Object.getPrototypeOf,s=t.slice,g=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},u=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},x=function(e){return null!=e&&e===e.window},E=C.document,c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.5.1",S=function(e,t){return new S.fn.init(e,t)};function p(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}S.fn=S.prototype={jquery:f,constructor:S,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=S.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return S.each(this,e)},map:function(n){return this.pushStack(S.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(S.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(S.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:t.sort,splice:t.splice},S.extend=S.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||m(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(S.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||S.isPlainObject(n)?n:{},i=!1,a[t]=S.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},S.extend({expando:"jQuery"+(f+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==o.call(e))&&(!(t=r(e))||"function"==typeof(n=v.call(t,"constructor")&&t.constructor)&&a.call(n)===l)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){b(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(p(e)){for(n=e.length;r<n;r++)if(!1===t.call(e[r],r,e[r]))break}else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(p(Object(e))?S.merge(n,"string"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:i.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(p(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return g(a)},guid:1,support:y}),"function"==typeof Symbol&&(S.fn[Symbol.iterator]=t[Symbol.iterator]),S.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var d=function(n){var e,d,b,o,i,h,f,g,w,u,l,T,C,a,E,v,s,c,y,S="sizzle"+1*new Date,p=n.document,k=0,r=0,m=ue(),x=ue(),A=ue(),N=ue(),D=function(e,t){return e===t&&(l=!0),0},j={}.hasOwnProperty,t=[],q=t.pop,L=t.push,H=t.push,O=t.slice,P=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",I="(?:\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",W="\\["+M+"*("+I+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+I+"))|)"+M+"*\\]",F=":("+I+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+W+")*)|.*)\\)|)",B=new RegExp(M+"+","g"),$=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),_=new RegExp("^"+M+"*,"+M+"*"),z=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp(F),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){T()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=O.call(p.childNodes),p.childNodes),t[p.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(T(e),e=e||C,E)){if(11!==p&&(u=Z.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&y(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n,e.getElementsByClassName(i)),n}if(d.qsa&&!N[t+" "]&&(!v||!v.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&(U.test(t)||z.test(t))){(f=ee.test(t)&&ye(e.parentNode)||e)===e&&d.scope||((s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=S)),o=(l=h(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+xe(l[o]);c=l.join(",")}try{return H.apply(n,f.querySelectorAll(c)),n}catch(e){N(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return g(t.replace($,"$1"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[S]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ve(a){return le(function(o){return o=+o,le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ye(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:p;return r!=C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,E=!i(C),p!=C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),d.scope=ce(function(e){return a.appendChild(e).appendChild(C.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(C.getElementsByClassName),d.getById=ce(function(e){return a.appendChild(e).id=S,!C.getElementsByName||!C.getElementsByName(S).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},b.find.CLASS=d.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&E)return t.getElementsByClassName(e)},s=[],v=[],(d.qsa=K.test(C.querySelectorAll))&&(ce(function(e){var t;a.appendChild(e).innerHTML="<a id='"+S+"'></a><select id='"+S+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+S+"-]").length||v.push("~="),(t=C.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||v.push("\\["+M+"*name"+M+"*="+M+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+S+"+*").length||v.push(".#.+[+~]"),e.querySelectorAll("\\\f"),v.push("[\\r\\n\\f]")}),ce(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",F)}),v=v.length&&new RegExp(v.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),y=t||K.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},D=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e==C||e.ownerDocument==p&&y(p,e)?-1:t==C||t.ownerDocument==p&&y(p,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==C?-1:t==C?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return pe(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?pe(a[r],s[r]):a[r]==p?-1:s[r]==p?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(T(e),d.matchesSelector&&E&&!N[t+" "]&&(!s||!s.test(t))&&(!v||!v.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){N(t,!0)}return 0<se(t,C,null,[e]).length},se.contains=function(e,t){return(e.ownerDocument||e)!=C&&T(e),y(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=C&&T(e);var n=b.attrHandle[t.toLowerCase()],r=n&&j.call(b.attrHandle,t.toLowerCase())?n(e,t,!E):void 0;return void 0!==r?r:d.attributes||!E?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},se.escape=function(e){return(e+"").replace(re,ie)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,n=[],r=0,i=0;if(l=!d.detectDuplicates,u=!d.sortStable&&e.slice(0),e.sort(D),l){while(t=e[i++])t===e[i]&&(r=n.push(i));while(r--)e.splice(n[r],1)}return u=null,e},o=se.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===i||4===i)return e.nodeValue}else while(t=e[r++])n+=o(t);return n},(b=se.selectors={cacheLength:50,createPseudo:le,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=m[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&m(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1<t.indexOf(i):"$="===r?i&&t.slice(-i.length)===i:"~="===r?-1<(" "+t.replace(B," ")+" ").indexOf(i):"|="===r&&(t===i||t.slice(0,i.length+1)===i+"-"))}},CHILD:function(h,e,t,g,v){var y="nth"!==h.slice(0,3),m="last"!==h.slice(-4),x="of-type"===e;return 1===g&&0===v?function(e){return!!e.parentNode}:function(e,t,n){var r,i,o,a,s,u,l=y!==m?"nextSibling":"previousSibling",c=e.parentNode,f=x&&e.nodeName.toLowerCase(),p=!n&&!x,d=!1;if(c){if(y){while(l){a=e;while(a=a[l])if(x?a.nodeName.toLowerCase()===f:1===a.nodeType)return!1;u=l="only"===h&&!u&&"nextSibling"}return!0}if(u=[m?c.firstChild:c.lastChild],m&&p){d=(s=(r=(i=(o=(a=c)[S]||(a[S]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]||[])[0]===k&&r[1])&&r[2],a=s&&c.childNodes[s];while(a=++s&&a&&a[l]||(d=s=0)||u.pop())if(1===a.nodeType&&++d&&a===e){i[h]=[k,s,d];break}}else if(p&&(d=s=(r=(i=(o=(a=e)[S]||(a[S]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]||[])[0]===k&&r[1]),!1===d)while(a=++s&&a&&a[l]||(d=s=0)||u.pop())if((x?a.nodeName.toLowerCase()===f:1===a.nodeType)&&++d&&(p&&((i=(o=a[S]||(a[S]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]=[k,d]),a===e))break;return(d-=v)===g||d%g==0&&0<=d/g}}},PSEUDO:function(e,o){var t,a=b.pseudos[e]||b.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return a[S]?a(o):1<a.length?(t=[e,e,"",o],b.setFilters.hasOwnProperty(e.toLowerCase())?le(function(e,t){var n,r=a(e,o),i=r.length;while(i--)e[n=P(e,r[i])]=!(t[n]=r[i])}):function(e){return a(e,0,t)}):a}},pseudos:{not:le(function(e){var r=[],i=[],s=f(e.replace($,"$1"));return s[S]?le(function(e,t,n,r){var i,o=s(e,null,r,[]),a=e.length;while(a--)(i=o[a])&&(e[a]=!(t[a]=i))}):function(e,t,n){return r[0]=e,s(r,null,n,i),r[0]=null,!i.pop()}}),has:le(function(t){return function(e){return 0<se(t,e).length}}),contains:le(function(t){return t=t.replace(te,ne),function(e){return-1<(e.textContent||o(e)).indexOf(t)}}),lang:le(function(n){return V.test(n||"")||se.error("unsupported lang: "+n),n=n.replace(te,ne).toLowerCase(),function(e){var t;do{if(t=E?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===a},focus:function(e){return e===C.activeElement&&(!C.hasFocus||C.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ge(!1),disabled:ge(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!b.pseudos.empty(e)},header:function(e){return J.test(e.nodeName)},input:function(e){return Q.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ve(function(){return[0]}),last:ve(function(e,t){return[t-1]}),eq:ve(function(e,t,n){return[n<0?n+t:n]}),even:ve(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:ve(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:ve(function(e,t,n){for(var r=n<0?n+t:t<n?t:n;0<=--r;)e.push(r);return e}),gt:ve(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=b.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[e]=de(e);for(e in{submit:!0,reset:!0})b.pseudos[e]=he(e);function me(){}function xe(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function be(s,e,t){var u=e.dir,l=e.next,c=l||u,f=t&&"parentNode"===c,p=r++;return e.first?function(e,t,n){while(e=e[u])if(1===e.nodeType||f)return s(e,t,n);return!1}:function(e,t,n){var r,i,o,a=[k,p];if(n){while(e=e[u])if((1===e.nodeType||f)&&s(e,t,n))return!0}else while(e=e[u])if(1===e.nodeType||f)if(i=(o=e[S]||(e[S]={}))[e.uniqueID]||(o[e.uniqueID]={}),l&&l===e.nodeName.toLowerCase())e=e[u]||e;else{if((r=i[c])&&r[0]===k&&r[1]===p)return a[2]=r[2];if((i[c]=a)[2]=s(e,t,n))return!0}return!1}}function we(i){return 1<i.length?function(e,t,n){var r=i.length;while(r--)if(!i[r](e,t,n))return!1;return!0}:i[0]}function Te(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function Ce(d,h,g,v,y,e){return v&&!v[S]&&(v=Ce(v)),y&&!y[S]&&(y=Ce(y,e)),le(function(e,t,n,r){var i,o,a,s=[],u=[],l=t.length,c=e||function(e,t,n){for(var r=0,i=t.length;r<i;r++)se(e,t[r],n);return n}(h||"*",n.nodeType?[n]:n,[]),f=!d||!e&&h?c:Te(c,s,d,n,r),p=g?y||(e?d:l||v)?[]:t:f;if(g&&g(f,p,n,r),v){i=Te(p,u),v(i,[],n,r),o=i.length;while(o--)(a=i[o])&&(p[u[o]]=!(f[u[o]]=a))}if(e){if(y||d){if(y){i=[],o=p.length;while(o--)(a=p[o])&&i.push(f[o]=a);y(null,p=[],i,r)}o=p.length;while(o--)(a=p[o])&&-1<(i=y?P(e,a):s[o])&&(e[i]=!(t[i]=a))}}else p=Te(p===t?p.splice(l,p.length):p),y?y(null,t,p,r):H.apply(t,p)})}function Ee(e){for(var i,t,n,r=e.length,o=b.relative[e[0].type],a=o||b.relative[" "],s=o?1:0,u=be(function(e){return e===i},a,!0),l=be(function(e){return-1<P(i,e)},a,!0),c=[function(e,t,n){var r=!o&&(n||t!==w)||((i=t).nodeType?u(e,t,n):l(e,t,n));return i=null,r}];s<r;s++)if(t=b.relative[e[s].type])c=[be(we(c),t)];else{if((t=b.filter[e[s].type].apply(null,e[s].matches))[S]){for(n=++s;n<r;n++)if(b.relative[e[n].type])break;return Ce(1<s&&we(c),1<s&&xe(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace($,"$1"),t,s<n&&Ee(e.slice(s,n)),n<r&&Ee(e=e.slice(n)),n<r&&xe(e))}c.push(t)}return we(c)}return me.prototype=b.filters=b.pseudos,b.setFilters=new me,h=se.tokenize=function(e,t){var n,r,i,o,a,s,u,l=x[e+" "];if(l)return t?0:l.slice(0);a=e,s=[],u=b.preFilter;while(a){for(o in n&&!(r=_.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=z.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace($," ")}),a=a.slice(n.length)),b.filter)!(r=G[o].exec(a))||u[o]&&!(r=u[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?se.error(e):x(e,s).slice(0)},f=se.compile=function(e,t){var n,v,y,m,x,r,i=[],o=[],a=A[e+" "];if(!a){t||(t=h(e)),n=t.length;while(n--)(a=Ee(t[n]))[S]?i.push(a):o.push(a);(a=A(e,(v=o,m=0<(y=i).length,x=0<v.length,r=function(e,t,n,r,i){var o,a,s,u=0,l="0",c=e&&[],f=[],p=w,d=e||x&&b.find.TAG("*",i),h=k+=null==p?1:Math.random()||.1,g=d.length;for(i&&(w=t==C||t||i);l!==g&&null!=(o=d[l]);l++){if(x&&o){a=0,t||o.ownerDocument==C||(T(o),n=!E);while(s=v[a++])if(s(o,t||C,n)){r.push(o);break}i&&(k=h)}m&&((o=!s&&o)&&u--,e&&c.push(o))}if(u+=l,m&&l!==u){a=0;while(s=y[a++])s(c,f,t,n);if(e){if(0<u)while(l--)c[l]||f[l]||(f[l]=q.call(r));f=Te(f)}H.apply(r,f),i&&!e&&0<f.length&&1<u+y.length&&se.uniqueSort(r)}return i&&(k=h,w=p),c},m?le(r):r))).selector=e}return a},g=se.select=function(e,t,n,r){var i,o,a,s,u,l="function"==typeof e&&e,c=!r&&h(e=l.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&E&&b.relative[o[1].type]){if(!(t=(b.find.ID(a.matches[0].replace(te,ne),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}i=G.needsContext.test(e)?0:o.length;while(i--){if(a=o[i],b.relative[s=a.type])break;if((u=b.find[s])&&(r=u(a.matches[0].replace(te,ne),ee.test(o[0].type)&&ye(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&xe(o)))return H.apply(n,r),n;break}}}return(l||f(e,c))(r,t,!E,n,!t||ee.test(e)&&ye(t.parentNode)||t),n},d.sortStable=S.split("").sort(D).join("")===S,d.detectDuplicates=!!l,T(),d.sortDetached=ce(function(e){return 1&e.compareDocumentPosition(C.createElement("fieldset"))}),ce(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||fe("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),d.attributes&&ce(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||fe("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ce(function(e){return null==e.getAttribute("disabled")})||fe(R,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),se}(C);S.find=d,S.expr=d.selectors,S.expr[":"]=S.expr.pseudos,S.uniqueSort=S.unique=d.uniqueSort,S.text=d.getText,S.isXMLDoc=d.isXML,S.contains=d.contains,S.escapeSelector=d.escape;var h=function(e,t,n){var r=[],i=void 0!==n;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(i&&S(e).is(n))break;r.push(e)}return r},T=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},k=S.expr.match.needsContext;function A(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var N=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function D(e,n,r){return m(n)?S.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?S.grep(e,function(e){return e===n!==r}):"string"!=typeof n?S.grep(e,function(e){return-1<i.call(n,e)!==r}):S.filter(n,e,r)}S.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?S.find.matchesSelector(r,e)?[r]:[]:S.find.matches(e,S.grep(t,function(e){return 1===e.nodeType}))},S.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(S(e).filter(function(){for(t=0;t<r;t++)if(S.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)S.find(e,i[t],n);return 1<r?S.uniqueSort(n):n},filter:function(e){return this.pushStack(D(this,e||[],!1))},not:function(e){return this.pushStack(D(this,e||[],!0))},is:function(e){return!!D(this,"string"==typeof e&&k.test(e)?S(e):e||[],!1).length}});var j,q=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(S.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||j,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:q.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof S?t[0]:t,S.merge(this,S.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),N.test(r[1])&&S.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=E.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(S):S.makeArray(e,this)}).prototype=S.fn,j=S(E);var L=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){while((e=e[t])&&1!==e.nodeType);return e}S.fn.extend({has:function(e){var t=S(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(S.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&S(e);if(!k.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&S.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?S.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?i.call(S(e),this[0]):i.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(S.uniqueSort(S.merge(this.get(),S(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),S.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return h(e,"parentNode")},parentsUntil:function(e,t,n){return h(e,"parentNode",n)},next:function(e){return O(e,"nextSibling")},prev:function(e){return O(e,"previousSibling")},nextAll:function(e){return h(e,"nextSibling")},prevAll:function(e){return h(e,"previousSibling")},nextUntil:function(e,t,n){return h(e,"nextSibling",n)},prevUntil:function(e,t,n){return h(e,"previousSibling",n)},siblings:function(e){return T((e.parentNode||{}).firstChild,e)},children:function(e){return T(e.firstChild)},contents:function(e){return null!=e.contentDocument&&r(e.contentDocument)?e.contentDocument:(A(e,"template")&&(e=e.content||e),S.merge([],e.childNodes))}},function(r,i){S.fn[r]=function(e,t){var n=S.map(this,i,e);return"Until"!==r.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=S.filter(t,n)),1<this.length&&(H[r]||S.uniqueSort(n),L.test(r)&&n.reverse()),this.pushStack(n)}});var P=/[^\x20\t\r\n\f]+/g;function R(e){return e}function M(e){throw e}function I(e,t,n,r){var i;try{e&&m(i=e.promise)?i.call(e).done(t).fail(n):e&&m(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}S.Callbacks=function(r){var e,n;r="string"==typeof r?(e=r,n={},S.each(e.match(P)||[],function(e,t){n[t]=!0}),n):S.extend({},r);var i,t,o,a,s=[],u=[],l=-1,c=function(){for(a=a||r.once,o=i=!0;u.length;l=-1){t=u.shift();while(++l<s.length)!1===s[l].apply(t[0],t[1])&&r.stopOnFalse&&(l=s.length,t=!1)}r.memory||(t=!1),i=!1,a&&(s=t?[]:"")},f={add:function(){return s&&(t&&!i&&(l=s.length-1,u.push(t)),function n(e){S.each(e,function(e,t){m(t)?r.unique&&f.has(t)||s.push(t):t&&t.length&&"string"!==w(t)&&n(t)})}(arguments),t&&!i&&c()),this},remove:function(){return S.each(arguments,function(e,t){var n;while(-1<(n=S.inArray(t,s,n)))s.splice(n,1),n<=l&&l--}),this},has:function(e){return e?-1<S.inArray(e,s):0<s.length},empty:function(){return s&&(s=[]),this},disable:function(){return a=u=[],s=t="",this},disabled:function(){return!s},lock:function(){return a=u=[],t||i||(s=t=""),this},locked:function(){return!!a},fireWith:function(e,t){return a||(t=[e,(t=t||[]).slice?t.slice():t],u.push(t),i||c()),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!o}};return f},S.extend({Deferred:function(e){var o=[["notify","progress",S.Callbacks("memory"),S.Callbacks("memory"),2],["resolve","done",S.Callbacks("once memory"),S.Callbacks("once memory"),0,"resolved"],["reject","fail",S.Callbacks("once memory"),S.Callbacks("once memory"),1,"rejected"]],i="pending",a={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},"catch":function(e){return a.then(null,e)},pipe:function(){var i=arguments;return S.Deferred(function(r){S.each(o,function(e,t){var n=m(i[t[4]])&&i[t[4]];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&m(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[t[0]+"With"](this,n?[e]:arguments)})}),i=null}).promise()},then:function(t,n,r){var u=0;function l(i,o,a,s){return function(){var n=this,r=arguments,e=function(){var e,t;if(!(i<u)){if((e=a.apply(n,r))===o.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,m(t)?s?t.call(e,l(u,o,R,s),l(u,o,M,s)):(u++,t.call(e,l(u,o,R,s),l(u,o,M,s),l(u,o,R,o.notifyWith))):(a!==R&&(n=void 0,r=[e]),(s||o.resolveWith)(n,r))}},t=s?e:function(){try{e()}catch(e){S.Deferred.exceptionHook&&S.Deferred.exceptionHook(e,t.stackTrace),u<=i+1&&(a!==M&&(n=void 0,r=[e]),o.rejectWith(n,r))}};i?t():(S.Deferred.getStackHook&&(t.stackTrace=S.Deferred.getStackHook()),C.setTimeout(t))}}return S.Deferred(function(e){o[0][3].add(l(0,e,m(r)?r:R,e.notifyWith)),o[1][3].add(l(0,e,m(t)?t:R)),o[2][3].add(l(0,e,m(n)?n:M))}).promise()},promise:function(e){return null!=e?S.extend(e,a):a}},s={};return S.each(o,function(e,t){var n=t[2],r=t[5];a[t[1]]=n.add,r&&n.add(function(){i=r},o[3-e][2].disable,o[3-e][3].disable,o[0][2].lock,o[0][3].lock),n.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?void 0:this,arguments),this},s[t[0]+"With"]=n.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){var n=arguments.length,t=n,r=Array(t),i=s.call(arguments),o=S.Deferred(),a=function(t){return function(e){r[t]=this,i[t]=1<arguments.length?s.call(arguments):e,--n||o.resolveWith(r,i)}};if(n<=1&&(I(e,o.done(a(t)).resolve,o.reject,!n),"pending"===o.state()||m(i[t]&&i[t].then)))return o.then();while(t--)I(i[t],a(t),o.reject);return o.promise()}});var W=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;S.Deferred.exceptionHook=function(e,t){C.console&&C.console.warn&&e&&W.test(e.name)&&C.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},S.readyException=function(e){C.setTimeout(function(){throw e})};var F=S.Deferred();function B(){E.removeEventListener("DOMContentLoaded",B),C.removeEventListener("load",B),S.ready()}S.fn.ready=function(e){return F.then(e)["catch"](function(e){S.readyException(e)}),this},S.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--S.readyWait:S.isReady)||(S.isReady=!0)!==e&&0<--S.readyWait||F.resolveWith(E,[S])}}),S.ready.then=F.then,"complete"===E.readyState||"loading"!==E.readyState&&!E.documentElement.doScroll?C.setTimeout(S.ready):(E.addEventListener("DOMContentLoaded",B),C.addEventListener("load",B));var $=function(e,t,n,r,i,o,a){var s=0,u=e.length,l=null==n;if("object"===w(n))for(s in i=!0,n)$(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,m(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(S(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):u?t(e[0],n):o},_=/^-ms-/,z=/-([a-z])/g;function U(e,t){return t.toUpperCase()}function X(e){return e.replace(_,"ms-").replace(z,U)}var V=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function G(){this.expando=S.expando+G.uid++}G.uid=1,G.prototype={cache:function(e){var t=e[this.expando];return t||(t={},V(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[X(t)]=n;else for(r in t)i[X(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][X(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(X):(t=X(t))in r?[t]:t.match(P)||[]).length;while(n--)delete r[t[n]]}(void 0===t||S.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!S.isEmptyObject(t)}};var Y=new G,Q=new G,J=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,K=/[A-Z]/g;function Z(e,t,n){var r,i;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(K,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===(i=n)||"false"!==i&&("null"===i?null:i===+i+""?+i:J.test(i)?JSON.parse(i):i)}catch(e){}Q.set(e,t,n)}else n=void 0;return n}S.extend({hasData:function(e){return Q.hasData(e)||Y.hasData(e)},data:function(e,t,n){return Q.access(e,t,n)},removeData:function(e,t){Q.remove(e,t)},_data:function(e,t,n){return Y.access(e,t,n)},_removeData:function(e,t){Y.remove(e,t)}}),S.fn.extend({data:function(n,e){var t,r,i,o=this[0],a=o&&o.attributes;if(void 0===n){if(this.length&&(i=Q.get(o),1===o.nodeType&&!Y.get(o,"hasDataAttrs"))){t=a.length;while(t--)a[t]&&0===(r=a[t].name).indexOf("data-")&&(r=X(r.slice(5)),Z(o,r,i[r]));Y.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof n?this.each(function(){Q.set(this,n)}):$(this,function(e){var t;if(o&&void 0===e)return void 0!==(t=Q.get(o,n))?t:void 0!==(t=Z(o,n))?t:void 0;this.each(function(){Q.set(this,n,e)})},null,e,1<arguments.length,null,!0)},removeData:function(e){return this.each(function(){Q.remove(this,e)})}}),S.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Y.get(e,t),n&&(!r||Array.isArray(n)?r=Y.access(e,t,S.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=S.queue(e,t),r=n.length,i=n.shift(),o=S._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){S.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Y.get(e,n)||Y.access(e,n,{empty:S.Callbacks("once memory").add(function(){Y.remove(e,[t+"queue",n])})})}}),S.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?S.queue(this[0],t):void 0===n?this:this.each(function(){var e=S.queue(this,t,n);S._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&S.dequeue(this,t)})},dequeue:function(e){return this.each(function(){S.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=S.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};"string"!=typeof e&&(t=e,e=void 0),e=e||"fx";while(a--)(n=Y.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var ee=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,te=new RegExp("^(?:([+-])=|)("+ee+")([a-z%]*)$","i"),ne=["Top","Right","Bottom","Left"],re=E.documentElement,ie=function(e){return S.contains(e.ownerDocument,e)},oe={composed:!0};re.getRootNode&&(ie=function(e){return S.contains(e.ownerDocument,e)||e.getRootNode(oe)===e.ownerDocument});var ae=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ie(e)&&"none"===S.css(e,"display")};function se(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return S.css(e,t,"")},u=s(),l=n&&n[3]||(S.cssNumber[t]?"":"px"),c=e.nodeType&&(S.cssNumber[t]||"px"!==l&&+u)&&te.exec(S.css(e,t));if(c&&c[3]!==l){u/=2,l=l||c[3],c=+u||1;while(a--)S.style(e,t,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;c*=2,S.style(e,t,c+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}var ue={};function le(e,t){for(var n,r,i,o,a,s,u,l=[],c=0,f=e.length;c<f;c++)(r=e[c]).style&&(n=r.style.display,t?("none"===n&&(l[c]=Y.get(r,"display")||null,l[c]||(r.style.display="")),""===r.style.display&&ae(r)&&(l[c]=(u=a=o=void 0,a=(i=r).ownerDocument,s=i.nodeName,(u=ue[s])||(o=a.body.appendChild(a.createElement(s)),u=S.css(o,"display"),o.parentNode.removeChild(o),"none"===u&&(u="block"),ue[s]=u)))):"none"!==n&&(l[c]="none",Y.set(r,"display",n)));for(c=0;c<f;c++)null!=l[c]&&(e[c].style.display=l[c]);return e}S.fn.extend({show:function(){return le(this,!0)},hide:function(){return le(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ae(this)?S(this).show():S(this).hide()})}});var ce,fe,pe=/^(?:checkbox|radio)$/i,de=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i;ce=E.createDocumentFragment().appendChild(E.createElement("div")),(fe=E.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),ce.appendChild(fe),y.checkClone=ce.cloneNode(!0).cloneNode(!0).lastChild.checked,ce.innerHTML="<textarea>x</textarea>",y.noCloneChecked=!!ce.cloneNode(!0).lastChild.defaultValue,ce.innerHTML="<option></option>",y.option=!!ce.lastChild;var ge={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ve(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?S.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;n<r;n++)Y.set(e[n],"globalEval",!t||Y.get(t[n],"globalEval"))}ge.tbody=ge.tfoot=ge.colgroup=ge.caption=ge.thead,ge.th=ge.td,y.option||(ge.optgroup=ge.option=[1,"<select multiple='multiple'>","</select>"]);var me=/<|&#?\w+;/;function xe(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d<h;d++)if((o=e[d])||0===o)if("object"===w(o))S.merge(p,o.nodeType?[o]:o);else if(me.test(o)){a=a||f.appendChild(t.createElement("div")),s=(de.exec(o)||["",""])[1].toLowerCase(),u=ge[s]||ge._default,a.innerHTML=u[1]+S.htmlPrefilter(o)+u[2],c=u[0];while(c--)a=a.lastChild;S.merge(p,a.childNodes),(a=f.firstChild).textContent=""}else p.push(t.createTextNode(o));f.textContent="",d=0;while(o=p[d++])if(r&&-1<S.inArray(o,r))i&&i.push(o);else if(l=ie(o),a=ve(f.appendChild(o),"script"),l&&ye(a),n){c=0;while(o=a[c++])he.test(o.type||"")&&n.push(o)}return f}var be=/^key/,we=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Te=/^([^.]*)(?:\.(.+)|)/;function Ce(){return!0}function Ee(){return!1}function Se(e,t){return e===function(){try{return E.activeElement}catch(e){}}()==("focus"===t)}function ke(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)ke(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Ee;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return S().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=S.guid++)),e.each(function(){S.event.add(this,t,i,r,n)})}function Ae(e,i,o){o?(Y.set(e,i,!1),S.event.add(e,i,{namespace:!1,handler:function(e){var t,n,r=Y.get(this,i);if(1&e.isTrigger&&this[i]){if(r.length)(S.event.special[i]||{}).delegateType&&e.stopPropagation();else if(r=s.call(arguments),Y.set(this,i,r),t=o(this,i),this[i](),r!==(n=Y.get(this,i))||t?Y.set(this,i,!1):n={},r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n.value}else r.length&&(Y.set(this,i,{value:S.event.trigger(S.extend(r[0],S.Event.prototype),r.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Y.get(e,i)&&S.event.add(e,i,Ce)}S.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Y.get(t);if(V(t)){n.handler&&(n=(o=n).handler,i=o.selector),i&&S.find.matchesSelector(re,i),n.guid||(n.guid=S.guid++),(u=v.events)||(u=v.events=Object.create(null)),(a=v.handle)||(a=v.handle=function(e){return"undefined"!=typeof S&&S.event.triggered!==e.type?S.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(P)||[""]).length;while(l--)d=g=(s=Te.exec(e[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=S.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=S.event.special[d]||{},c=S.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&S.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,h,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),S.event.global[d]=!0)}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Y.hasData(e)&&Y.get(e);if(v&&(u=v.events)){l=(t=(t||"").match(P)||[""]).length;while(l--)if(d=g=(s=Te.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){f=S.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;while(o--)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||S.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)S.event.remove(e,d+t[l],n,r,!0);S.isEmptyObject(u)&&Y.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),u=S.event.fix(e),l=(Y.get(this,"events")||Object.create(null))[u.type]||[],c=S.event.special[u.type]||{};for(s[0]=u,t=1;t<arguments.length;t++)s[t]=arguments[t];if(u.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,u)){a=S.event.handlers.call(this,u,l),t=0;while((i=a[t++])&&!u.isPropagationStopped()){u.currentTarget=i.elem,n=0;while((o=i.handlers[n++])&&!u.isImmediatePropagationStopped())u.rnamespace&&!1!==o.namespace&&!u.rnamespace.test(o.namespace)||(u.handleObj=o,u.data=o.data,void 0!==(r=((S.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(u.result=r)&&(u.preventDefault(),u.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,u),u.result}},handlers:function(e,t){var n,r,i,o,a,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&1<=e.button))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],a={},n=0;n<u;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?-1<S(i,this).index(l):S.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(t,e){Object.defineProperty(S.Event.prototype,t,{enumerable:!0,configurable:!0,get:m(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[S.expando]?e:new S.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return pe.test(t.type)&&t.click&&A(t,"input")&&Ae(t,"click",Ce),!1},trigger:function(e){var t=this||e;return pe.test(t.type)&&t.click&&A(t,"input")&&Ae(t,"click"),!0},_default:function(e){var t=e.target;return pe.test(t.type)&&t.click&&A(t,"input")&&Y.get(t,"click")||A(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},S.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},S.Event=function(e,t){if(!(this instanceof S.Event))return new S.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ce:Ee,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&S.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[S.expando]=!0},S.Event.prototype={constructor:S.Event,isDefaultPrevented:Ee,isPropagationStopped:Ee,isImmediatePropagationStopped:Ee,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ce,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ce,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ce,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},S.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&be.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&we.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},S.event.addProp),S.each({focus:"focusin",blur:"focusout"},function(e,t){S.event.special[e]={setup:function(){return Ae(this,e,Se),!1},trigger:function(){return Ae(this,e),!0},delegateType:t}}),S.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,i){S.event.special[e]={delegateType:i,bindType:i,handle:function(e){var t,n=e.relatedTarget,r=e.handleObj;return n&&(n===this||S.contains(this,n))||(e.type=r.origType,t=r.handler.apply(this,arguments),e.type=i),t}}}),S.fn.extend({on:function(e,t,n,r){return ke(this,e,t,n,r)},one:function(e,t,n,r){return ke(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,S(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Ee),this.each(function(){S.event.remove(this,e,n,t)})}});var Ne=/<script|<style|<link/i,De=/checked\s*(?:[^=]|=\s*.checked.)/i,je=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function qe(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&S(e).children("tbody")[0]||e}function Le(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function He(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Oe(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(Y.hasData(e)&&(s=Y.get(e).events))for(i in Y.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)S.event.add(t,i,s[i][n]);Q.hasData(e)&&(o=Q.access(e),a=S.extend({},o),Q.set(t,a))}}function Pe(n,r,i,o){r=g(r);var e,t,a,s,u,l,c=0,f=n.length,p=f-1,d=r[0],h=m(d);if(h||1<f&&"string"==typeof d&&!y.checkClone&&De.test(d))return n.each(function(e){var t=n.eq(e);h&&(r[0]=d.call(this,e,t.html())),Pe(t,r,i,o)});if(f&&(t=(e=xe(r,n[0].ownerDocument,!1,n,o)).firstChild,1===e.childNodes.length&&(e=t),t||o)){for(s=(a=S.map(ve(e,"script"),Le)).length;c<f;c++)u=e,c!==p&&(u=S.clone(u,!0,!0),s&&S.merge(a,ve(u,"script"))),i.call(n[c],u,c);if(s)for(l=a[a.length-1].ownerDocument,S.map(a,He),c=0;c<s;c++)u=a[c],he.test(u.type||"")&&!Y.access(u,"globalEval")&&S.contains(l,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?S._evalUrl&&!u.noModule&&S._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},l):b(u.textContent.replace(je,""),u,l))}return n}function Re(e,t,n){for(var r,i=t?S.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||S.cleanData(ve(r)),r.parentNode&&(n&&ie(r)&&ye(ve(r,"script")),r.parentNode.removeChild(r));return e}S.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s,u,l,c=e.cloneNode(!0),f=ie(e);if(!(y.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||S.isXMLDoc(e)))for(a=ve(c),r=0,i=(o=ve(e)).length;r<i;r++)s=o[r],u=a[r],void 0,"input"===(l=u.nodeName.toLowerCase())&&pe.test(s.type)?u.checked=s.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=s.defaultValue);if(t)if(n)for(o=o||ve(e),a=a||ve(c),r=0,i=o.length;r<i;r++)Oe(o[r],a[r]);else Oe(e,c);return 0<(a=ve(c,"script")).length&&ye(a,!f&&ve(e,"script")),c},cleanData:function(e){for(var t,n,r,i=S.event.special,o=0;void 0!==(n=e[o]);o++)if(V(n)){if(t=n[Y.expando]){if(t.events)for(r in t.events)i[r]?S.event.remove(n,r):S.removeEvent(n,r,t.handle);n[Y.expando]=void 0}n[Q.expando]&&(n[Q.expando]=void 0)}}}),S.fn.extend({detach:function(e){return Re(this,e,!0)},remove:function(e){return Re(this,e)},text:function(e){return $(this,function(e){return void 0===e?S.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Pe(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||qe(this,e).appendChild(e)})},prepend:function(){return Pe(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=qe(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Pe(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Pe(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(S.cleanData(ve(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return S.clone(this,e,t)})},html:function(e){return $(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ne.test(e)&&!ge[(de.exec(e)||["",""])[1].toLowerCase()]){e=S.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(S.cleanData(ve(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return Pe(this,arguments,function(e){var t=this.parentNode;S.inArray(this,n)<0&&(S.cleanData(ve(this)),t&&t.replaceChild(e,this))},n)}}),S.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){S.fn[e]=function(e){for(var t,n=[],r=S(e),i=r.length-1,o=0;o<=i;o++)t=o===i?this:this.clone(!0),S(r[o])[a](t),u.apply(n,t.get());return this.pushStack(n)}});var Me=new RegExp("^("+ee+")(?!px)[a-z%]+$","i"),Ie=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=C),t.getComputedStyle(e)},We=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},Fe=new RegExp(ne.join("|"),"i");function Be(e,t,n){var r,i,o,a,s=e.style;return(n=n||Ie(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||ie(e)||(a=S.style(e,t)),!y.pixelBoxStyles()&&Me.test(a)&&Fe.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function $e(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(l){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",re.appendChild(u).appendChild(l);var e=C.getComputedStyle(l);n="1%"!==e.top,s=12===t(e.marginLeft),l.style.right="60%",o=36===t(e.right),r=36===t(e.width),l.style.position="absolute",i=12===t(l.offsetWidth/3),re.removeChild(u),l=null}}function t(e){return Math.round(parseFloat(e))}var n,r,i,o,a,s,u=E.createElement("div"),l=E.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",y.clearCloneStyle="content-box"===l.style.backgroundClip,S.extend(y,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),s},scrollboxSize:function(){return e(),i},reliableTrDimensions:function(){var e,t,n,r;return null==a&&(e=E.createElement("table"),t=E.createElement("tr"),n=E.createElement("div"),e.style.cssText="position:absolute;left:-11111px",t.style.height="1px",n.style.height="9px",re.appendChild(e).appendChild(t).appendChild(n),r=C.getComputedStyle(t),a=3<parseInt(r.height),re.removeChild(e)),a}}))}();var _e=["Webkit","Moz","ms"],ze=E.createElement("div").style,Ue={};function Xe(e){var t=S.cssProps[e]||Ue[e];return t||(e in ze?e:Ue[e]=function(e){var t=e[0].toUpperCase()+e.slice(1),n=_e.length;while(n--)if((e=_e[n]+t)in ze)return e}(e)||e)}var Ve=/^(none|table(?!-c[ea]).+)/,Ge=/^--/,Ye={position:"absolute",visibility:"hidden",display:"block"},Qe={letterSpacing:"0",fontWeight:"400"};function Je(e,t,n){var r=te.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function Ke(e,t,n,r,i,o){var a="width"===t?1:0,s=0,u=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(u+=S.css(e,n+ne[a],!0,i)),r?("content"===n&&(u-=S.css(e,"padding"+ne[a],!0,i)),"margin"!==n&&(u-=S.css(e,"border"+ne[a]+"Width",!0,i))):(u+=S.css(e,"padding"+ne[a],!0,i),"padding"!==n?u+=S.css(e,"border"+ne[a]+"Width",!0,i):s+=S.css(e,"border"+ne[a]+"Width",!0,i));return!r&&0<=o&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))||0),u}function Ze(e,t,n){var r=Ie(e),i=(!y.boxSizingReliable()||n)&&"border-box"===S.css(e,"boxSizing",!1,r),o=i,a=Be(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(Me.test(a)){if(!n)return a;a="auto"}return(!y.boxSizingReliable()&&i||!y.reliableTrDimensions()&&A(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===S.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===S.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+Ke(e,t,n||(i?"border":"content"),o,r,a)+"px"}function et(e,t,n,r,i){return new et.prototype.init(e,t,n,r,i)}S.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Be(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=X(t),u=Ge.test(t),l=e.style;if(u||(t=Xe(s)),a=S.cssHooks[t]||S.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];"string"===(o=typeof n)&&(i=te.exec(n))&&i[1]&&(n=se(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=i&&i[3]||(S.cssNumber[s]?"":"px")),y.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=X(t);return Ge.test(t)||(t=Xe(s)),(a=S.cssHooks[t]||S.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=Be(e,t,r)),"normal"===i&&t in Qe&&(i=Qe[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),S.each(["height","width"],function(e,u){S.cssHooks[u]={get:function(e,t,n){if(t)return!Ve.test(S.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Ze(e,u,n):We(e,Ye,function(){return Ze(e,u,n)})},set:function(e,t,n){var r,i=Ie(e),o=!y.scrollboxSize()&&"absolute"===i.position,a=(o||n)&&"border-box"===S.css(e,"boxSizing",!1,i),s=n?Ke(e,u,n,a,i):0;return a&&o&&(s-=Math.ceil(e["offset"+u[0].toUpperCase()+u.slice(1)]-parseFloat(i[u])-Ke(e,u,"border",!1,i)-.5)),s&&(r=te.exec(t))&&"px"!==(r[3]||"px")&&(e.style[u]=t,t=S.css(e,u)),Je(0,t,s)}}}),S.cssHooks.marginLeft=$e(y.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Be(e,"marginLeft"))||e.getBoundingClientRect().left-We(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),S.each({margin:"",padding:"",border:"Width"},function(i,o){S.cssHooks[i+o]={expand:function(e){for(var t=0,n={},r="string"==typeof e?e.split(" "):[e];t<4;t++)n[i+ne[t]+o]=r[t]||r[t-2]||r[0];return n}},"margin"!==i&&(S.cssHooks[i+o].set=Je)}),S.fn.extend({css:function(e,t){return $(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Ie(e),i=t.length;a<i;a++)o[t[a]]=S.css(e,t[a],!1,r);return o}return void 0!==n?S.style(e,t,n):S.css(e,t)},e,t,1<arguments.length)}}),((S.Tween=et).prototype={constructor:et,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||S.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(S.cssNumber[n]?"":"px")},cur:function(){var e=et.propHooks[this.prop];return e&&e.get?e.get(this):et.propHooks._default.get(this)},run:function(e){var t,n=et.propHooks[this.prop];return this.options.duration?this.pos=t=S.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):et.propHooks._default.set(this),this}}).init.prototype=et.prototype,(et.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=S.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){S.fx.step[e.prop]?S.fx.step[e.prop](e):1!==e.elem.nodeType||!S.cssHooks[e.prop]&&null==e.elem.style[Xe(e.prop)]?e.elem[e.prop]=e.now:S.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=et.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},S.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},S.fx=et.prototype.init,S.fx.step={};var tt,nt,rt,it,ot=/^(?:toggle|show|hide)$/,at=/queueHooks$/;function st(){nt&&(!1===E.hidden&&C.requestAnimationFrame?C.requestAnimationFrame(st):C.setTimeout(st,S.fx.interval),S.fx.tick())}function ut(){return C.setTimeout(function(){tt=void 0}),tt=Date.now()}function lt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=ne[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function ct(e,t,n){for(var r,i=(ft.tweeners[t]||[]).concat(ft.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function ft(o,e,t){var n,a,r=0,i=ft.prefilters.length,s=S.Deferred().always(function(){delete u.elem}),u=function(){if(a)return!1;for(var e=tt||ut(),t=Math.max(0,l.startTime+l.duration-e),n=1-(t/l.duration||0),r=0,i=l.tweens.length;r<i;r++)l.tweens[r].run(n);return s.notifyWith(o,[l,n,t]),n<1&&i?t:(i||s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l]),!1)},l=s.promise({elem:o,props:S.extend({},e),opts:S.extend(!0,{specialEasing:{},easing:S.easing._default},t),originalProperties:e,originalOptions:t,startTime:tt||ut(),duration:t.duration,tweens:[],createTween:function(e,t){var n=S.Tween(o,l.opts,e,t,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(n),n},stop:function(e){var t=0,n=e?l.tweens.length:0;if(a)return this;for(a=!0;t<n;t++)l.tweens[t].run(1);return e?(s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l,e])):s.rejectWith(o,[l,e]),this}}),c=l.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=X(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=S.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,l.opts.specialEasing);r<i;r++)if(n=ft.prefilters[r].call(l,o,c,l.opts))return m(n.stop)&&(S._queueHooks(l.elem,l.opts.queue).stop=n.stop.bind(n)),n;return S.map(c,ct,l),m(l.opts.start)&&l.opts.start.call(o,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),S.fx.timer(S.extend(u,{elem:o,anim:l,queue:l.opts.queue})),l}S.Animation=S.extend(ft,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return se(n.elem,e,te.exec(t),n),n}]},tweener:function(e,t){m(e)?(t=e,e=["*"]):e=e.match(P);for(var n,r=0,i=e.length;r<i;r++)n=e[r],ft.tweeners[n]=ft.tweeners[n]||[],ft.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,u,l,c,f="width"in t||"height"in t,p=this,d={},h=e.style,g=e.nodeType&&ae(e),v=Y.get(e,"fxshow");for(r in n.queue||(null==(a=S._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always(function(){p.always(function(){a.unqueued--,S.queue(e,"fx").length||a.empty.fire()})})),t)if(i=t[r],ot.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;g=!0}d[r]=v&&v[r]||S.style(e,r)}if((u=!S.isEmptyObject(t))||!S.isEmptyObject(d))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=v&&v.display)&&(l=Y.get(e,"display")),"none"===(c=S.css(e,"display"))&&(l?c=l:(le([e],!0),l=e.style.display||l,c=S.css(e,"display"),le([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===S.css(e,"float")&&(u||(p.done(function(){h.display=l}),null==l&&(c=h.display,l="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1,d)u||(v?"hidden"in v&&(g=v.hidden):v=Y.access(e,"fxshow",{display:l}),o&&(v.hidden=!g),g&&le([e],!0),p.done(function(){for(r in g||le([e]),Y.remove(e,"fxshow"),d)S.style(e,r,d[r])})),u=ct(g?v[r]:0,r,p),r in v||(v[r]=u.start,g&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?ft.prefilters.unshift(e):ft.prefilters.push(e)}}),S.speed=function(e,t,n){var r=e&&"object"==typeof e?S.extend({},e):{complete:n||!n&&t||m(e)&&e,duration:e,easing:n&&t||t&&!m(t)&&t};return S.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in S.fx.speeds?r.duration=S.fx.speeds[r.duration]:r.duration=S.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){m(r.old)&&r.old.call(this),r.queue&&S.dequeue(this,r.queue)},r},S.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ae).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(t,e,n,r){var i=S.isEmptyObject(t),o=S.speed(e,n,r),a=function(){var e=ft(this,S.extend({},t),o);(i||Y.get(this,"finish"))&&e.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(i,e,o){var a=function(e){var t=e.stop;delete e.stop,t(o)};return"string"!=typeof i&&(o=e,e=i,i=void 0),e&&this.queue(i||"fx",[]),this.each(function(){var e=!0,t=null!=i&&i+"queueHooks",n=S.timers,r=Y.get(this);if(t)r[t]&&r[t].stop&&a(r[t]);else for(t in r)r[t]&&r[t].stop&&at.test(t)&&a(r[t]);for(t=n.length;t--;)n[t].elem!==this||null!=i&&n[t].queue!==i||(n[t].anim.stop(o),e=!1,n.splice(t,1));!e&&o||S.dequeue(this,i)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=Y.get(this),n=t[a+"queue"],r=t[a+"queueHooks"],i=S.timers,o=n?n.length:0;for(t.finish=!0,S.queue(this,a,[]),r&&r.stop&&r.stop.call(this,!0),e=i.length;e--;)i[e].elem===this&&i[e].queue===a&&(i[e].anim.stop(!0),i.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),S.each(["toggle","show","hide"],function(e,r){var i=S.fn[r];S.fn[r]=function(e,t,n){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(lt(r,!0),e,t,n)}}),S.each({slideDown:lt("show"),slideUp:lt("hide"),slideToggle:lt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,r){S.fn[e]=function(e,t,n){return this.animate(r,e,t,n)}}),S.timers=[],S.fx.tick=function(){var e,t=0,n=S.timers;for(tt=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||S.fx.stop(),tt=void 0},S.fx.timer=function(e){S.timers.push(e),S.fx.start()},S.fx.interval=13,S.fx.start=function(){nt||(nt=!0,st())},S.fx.stop=function(){nt=null},S.fx.speeds={slow:600,fast:200,_default:400},S.fn.delay=function(r,e){return r=S.fx&&S.fx.speeds[r]||r,e=e||"fx",this.queue(e,function(e,t){var n=C.setTimeout(e,r);t.stop=function(){C.clearTimeout(n)}})},rt=E.createElement("input"),it=E.createElement("select").appendChild(E.createElement("option")),rt.type="checkbox",y.checkOn=""!==rt.value,y.optSelected=it.selected,(rt=E.createElement("input")).value="t",rt.type="radio",y.radioValue="t"===rt.value;var pt,dt=S.expr.attrHandle;S.fn.extend({attr:function(e,t){return $(this,S.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){S.removeAttr(this,e)})}}),S.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?S.prop(e,t,n):(1===o&&S.isXMLDoc(e)||(i=S.attrHooks[t.toLowerCase()]||(S.expr.match.bool.test(t)?pt:void 0)),void 0!==n?null===n?void S.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=S.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!y.radioValue&&"radio"===t&&A(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(P);if(i&&1===e.nodeType)while(n=i[r++])e.removeAttribute(n)}}),pt={set:function(e,t,n){return!1===t?S.removeAttr(e,n):e.setAttribute(n,n),n}},S.each(S.expr.match.bool.source.match(/\w+/g),function(e,t){var a=dt[t]||S.find.attr;dt[t]=function(e,t,n){var r,i,o=t.toLowerCase();return n||(i=dt[o],dt[o]=r,r=null!=a(e,t,n)?o:null,dt[o]=i),r}});var ht=/^(?:input|select|textarea|button)$/i,gt=/^(?:a|area)$/i;function vt(e){return(e.match(P)||[]).join(" ")}function yt(e){return e.getAttribute&&e.getAttribute("class")||""}function mt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(P)||[]}S.fn.extend({prop:function(e,t){return $(this,S.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[S.propFix[e]||e]})}}),S.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&S.isXMLDoc(e)||(t=S.propFix[t]||t,i=S.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=S.find.attr(e,"tabindex");return t?parseInt(t,10):ht.test(e.nodeName)||gt.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),y.optSelected||(S.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),S.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){S.propFix[this.toLowerCase()]=this}),S.fn.extend({addClass:function(t){var e,n,r,i,o,a,s,u=0;if(m(t))return this.each(function(e){S(this).addClass(t.call(this,e,yt(this)))});if((e=mt(t)).length)while(n=this[u++])if(i=yt(n),r=1===n.nodeType&&" "+vt(i)+" "){a=0;while(o=e[a++])r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=vt(r))&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,r,i,o,a,s,u=0;if(m(t))return this.each(function(e){S(this).removeClass(t.call(this,e,yt(this)))});if(!arguments.length)return this.attr("class","");if((e=mt(t)).length)while(n=this[u++])if(i=yt(n),r=1===n.nodeType&&" "+vt(i)+" "){a=0;while(o=e[a++])while(-1<r.indexOf(" "+o+" "))r=r.replace(" "+o+" "," ");i!==(s=vt(r))&&n.setAttribute("class",s)}return this},toggleClass:function(i,t){var o=typeof i,a="string"===o||Array.isArray(i);return"boolean"==typeof t&&a?t?this.addClass(i):this.removeClass(i):m(i)?this.each(function(e){S(this).toggleClass(i.call(this,e,yt(this),t),t)}):this.each(function(){var e,t,n,r;if(a){t=0,n=S(this),r=mt(i);while(e=r[t++])n.hasClass(e)?n.removeClass(e):n.addClass(e)}else void 0!==i&&"boolean"!==o||((e=yt(this))&&Y.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===i?"":Y.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;t=" "+e+" ";while(n=this[r++])if(1===n.nodeType&&-1<(" "+vt(yt(n))+" ").indexOf(t))return!0;return!1}});var xt=/\r/g;S.fn.extend({val:function(n){var r,e,i,t=this[0];return arguments.length?(i=m(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=i?n.call(this,e,S(this).val()):n)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=S.map(t,function(e){return null==e?"":e+""})),(r=S.valHooks[this.type]||S.valHooks[this.nodeName.toLowerCase()])&&"set"in r&&void 0!==r.set(this,t,"value")||(this.value=t))})):t?(r=S.valHooks[t.type]||S.valHooks[t.nodeName.toLowerCase()])&&"get"in r&&void 0!==(e=r.get(t,"value"))?e:"string"==typeof(e=t.value)?e.replace(xt,""):null==e?"":e:void 0}}),S.extend({valHooks:{option:{get:function(e){var t=S.find.attr(e,"value");return null!=t?t:vt(S.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r<u;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!A(n.parentNode,"optgroup"))){if(t=S(n).val(),a)return t;s.push(t)}return s},set:function(e,t){var n,r,i=e.options,o=S.makeArray(t),a=i.length;while(a--)((r=i[a]).selected=-1<S.inArray(S.valHooks.option.get(r),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),S.each(["radio","checkbox"],function(){S.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<S.inArray(S(e).val(),t)}},y.checkOn||(S.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),y.focusin="onfocusin"in C;var bt=/^(?:focusinfocus|focusoutblur)$/,wt=function(e){e.stopPropagation()};S.extend(S.event,{trigger:function(e,t,n,r){var i,o,a,s,u,l,c,f,p=[n||E],d=v.call(e,"type")?e.type:e,h=v.call(e,"namespace")?e.namespace.split("."):[];if(o=f=a=n=n||E,3!==n.nodeType&&8!==n.nodeType&&!bt.test(d+S.event.triggered)&&(-1<d.indexOf(".")&&(d=(h=d.split(".")).shift(),h.sort()),u=d.indexOf(":")<0&&"on"+d,(e=e[S.expando]?e:new S.Event(d,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=h.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:S.makeArray(t,[e]),c=S.event.special[d]||{},r||!c.trigger||!1!==c.trigger.apply(n,t))){if(!r&&!c.noBubble&&!x(n)){for(s=c.delegateType||d,bt.test(s+d)||(o=o.parentNode);o;o=o.parentNode)p.push(o),a=o;a===(n.ownerDocument||E)&&p.push(a.defaultView||a.parentWindow||C)}i=0;while((o=p[i++])&&!e.isPropagationStopped())f=o,e.type=1<i?s:c.bindType||d,(l=(Y.get(o,"events")||Object.create(null))[e.type]&&Y.get(o,"handle"))&&l.apply(o,t),(l=u&&o[u])&&l.apply&&V(o)&&(e.result=l.apply(o,t),!1===e.result&&e.preventDefault());return e.type=d,r||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(p.pop(),t)||!V(n)||u&&m(n[d])&&!x(n)&&((a=n[u])&&(n[u]=null),S.event.triggered=d,e.isPropagationStopped()&&f.addEventListener(d,wt),n[d](),e.isPropagationStopped()&&f.removeEventListener(d,wt),S.event.triggered=void 0,a&&(n[u]=a)),e.result}},simulate:function(e,t,n){var r=S.extend(new S.Event,n,{type:e,isSimulated:!0});S.event.trigger(r,null,t)}}),S.fn.extend({trigger:function(e,t){return this.each(function(){S.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return S.event.trigger(e,t,n,!0)}}),y.focusin||S.each({focus:"focusin",blur:"focusout"},function(n,r){var i=function(e){S.event.simulate(r,e.target,S.event.fix(e))};S.event.special[r]={setup:function(){var e=this.ownerDocument||this.document||this,t=Y.access(e,r);t||e.addEventListener(n,i,!0),Y.access(e,r,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this.document||this,t=Y.access(e,r)-1;t?Y.access(e,r,t):(e.removeEventListener(n,i,!0),Y.remove(e,r))}}});var Tt=C.location,Ct={guid:Date.now()},Et=/\?/;S.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new C.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||S.error("Invalid XML: "+e),t};var St=/\[\]$/,kt=/\r?\n/g,At=/^(?:submit|button|image|reset|file)$/i,Nt=/^(?:input|select|textarea|keygen)/i;function Dt(n,e,r,i){var t;if(Array.isArray(e))S.each(e,function(e,t){r||St.test(n)?i(n,t):Dt(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,r,i)});else if(r||"object"!==w(e))i(n,e);else for(t in e)Dt(n+"["+t+"]",e[t],r,i)}S.param=function(e,t){var n,r=[],i=function(e,t){var n=m(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!S.isPlainObject(e))S.each(e,function(){i(this.name,this.value)});else for(n in e)Dt(n,e[n],t,i);return r.join("&")},S.fn.extend({serialize:function(){return S.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=S.prop(this,"elements");return e?S.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!S(this).is(":disabled")&&Nt.test(this.nodeName)&&!At.test(e)&&(this.checked||!pe.test(e))}).map(function(e,t){var n=S(this).val();return null==n?null:Array.isArray(n)?S.map(n,function(e){return{name:t.name,value:e.replace(kt,"\r\n")}}):{name:t.name,value:n.replace(kt,"\r\n")}}).get()}});var jt=/%20/g,qt=/#.*$/,Lt=/([?&])_=[^&]*/,Ht=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ot=/^(?:GET|HEAD)$/,Pt=/^\/\//,Rt={},Mt={},It="*/".concat("*"),Wt=E.createElement("a");function Ft(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,r=0,i=e.toLowerCase().match(P)||[];if(m(t))while(n=i[r++])"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function Bt(t,i,o,a){var s={},u=t===Mt;function l(e){var r;return s[e]=!0,S.each(t[e]||[],function(e,t){var n=t(i,o,a);return"string"!=typeof n||u||s[n]?u?!(r=n):void 0:(i.dataTypes.unshift(n),l(n),!1)}),r}return l(i.dataTypes[0])||!s["*"]&&l("*")}function $t(e,t){var n,r,i=S.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&S.extend(!0,e,r),e}Wt.href=Tt.href,S.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Tt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Tt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":It,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":S.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?$t($t(e,S.ajaxSettings),t):$t(S.ajaxSettings,e)},ajaxPrefilter:Ft(Rt),ajaxTransport:Ft(Mt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var c,f,p,n,d,r,h,g,i,o,v=S.ajaxSetup({},t),y=v.context||v,m=v.context&&(y.nodeType||y.jquery)?S(y):S.event,x=S.Deferred(),b=S.Callbacks("once memory"),w=v.statusCode||{},a={},s={},u="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(h){if(!n){n={};while(t=Ht.exec(p))n[t[1].toLowerCase()+" "]=(n[t[1].toLowerCase()+" "]||[]).concat(t[2])}t=n[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return h?p:null},setRequestHeader:function(e,t){return null==h&&(e=s[e.toLowerCase()]=s[e.toLowerCase()]||e,a[e]=t),this},overrideMimeType:function(e){return null==h&&(v.mimeType=e),this},statusCode:function(e){var t;if(e)if(h)T.always(e[T.status]);else for(t in e)w[t]=[w[t],e[t]];return this},abort:function(e){var t=e||u;return c&&c.abort(t),l(0,t),this}};if(x.promise(T),v.url=((e||v.url||Tt.href)+"").replace(Pt,Tt.protocol+"//"),v.type=t.method||t.type||v.method||v.type,v.dataTypes=(v.dataType||"*").toLowerCase().match(P)||[""],null==v.crossDomain){r=E.createElement("a");try{r.href=v.url,r.href=r.href,v.crossDomain=Wt.protocol+"//"+Wt.host!=r.protocol+"//"+r.host}catch(e){v.crossDomain=!0}}if(v.data&&v.processData&&"string"!=typeof v.data&&(v.data=S.param(v.data,v.traditional)),Bt(Rt,v,t,T),h)return T;for(i in(g=S.event&&v.global)&&0==S.active++&&S.event.trigger("ajaxStart"),v.type=v.type.toUpperCase(),v.hasContent=!Ot.test(v.type),f=v.url.replace(qt,""),v.hasContent?v.data&&v.processData&&0===(v.contentType||"").indexOf("application/x-www-form-urlencoded")&&(v.data=v.data.replace(jt,"+")):(o=v.url.slice(f.length),v.data&&(v.processData||"string"==typeof v.data)&&(f+=(Et.test(f)?"&":"?")+v.data,delete v.data),!1===v.cache&&(f=f.replace(Lt,"$1"),o=(Et.test(f)?"&":"?")+"_="+Ct.guid+++o),v.url=f+o),v.ifModified&&(S.lastModified[f]&&T.setRequestHeader("If-Modified-Since",S.lastModified[f]),S.etag[f]&&T.setRequestHeader("If-None-Match",S.etag[f])),(v.data&&v.hasContent&&!1!==v.contentType||t.contentType)&&T.setRequestHeader("Content-Type",v.contentType),T.setRequestHeader("Accept",v.dataTypes[0]&&v.accepts[v.dataTypes[0]]?v.accepts[v.dataTypes[0]]+("*"!==v.dataTypes[0]?", "+It+"; q=0.01":""):v.accepts["*"]),v.headers)T.setRequestHeader(i,v.headers[i]);if(v.beforeSend&&(!1===v.beforeSend.call(y,T,v)||h))return T.abort();if(u="abort",b.add(v.complete),T.done(v.success),T.fail(v.error),c=Bt(Mt,v,t,T)){if(T.readyState=1,g&&m.trigger("ajaxSend",[T,v]),h)return T;v.async&&0<v.timeout&&(d=C.setTimeout(function(){T.abort("timeout")},v.timeout));try{h=!1,c.send(a,l)}catch(e){if(h)throw e;l(-1,e)}}else l(-1,"No Transport");function l(e,t,n,r){var i,o,a,s,u,l=t;h||(h=!0,d&&C.clearTimeout(d),c=void 0,p=r||"",T.readyState=0<e?4:0,i=200<=e&&e<300||304===e,n&&(s=function(e,t,n){var r,i,o,a,s=e.contents,u=e.dataTypes;while("*"===u[0])u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(v,T,n)),!i&&-1<S.inArray("script",v.dataTypes)&&(v.converters["text script"]=function(){}),s=function(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];o=c.shift();while(o)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(v,s,T,i),i?(v.ifModified&&((u=T.getResponseHeader("Last-Modified"))&&(S.lastModified[f]=u),(u=T.getResponseHeader("etag"))&&(S.etag[f]=u)),204===e||"HEAD"===v.type?l="nocontent":304===e?l="notmodified":(l=s.state,o=s.data,i=!(a=s.error))):(a=l,!e&&l||(l="error",e<0&&(e=0))),T.status=e,T.statusText=(t||l)+"",i?x.resolveWith(y,[o,l,T]):x.rejectWith(y,[T,l,a]),T.statusCode(w),w=void 0,g&&m.trigger(i?"ajaxSuccess":"ajaxError",[T,v,i?o:a]),b.fireWith(y,[T,l]),g&&(m.trigger("ajaxComplete",[T,v]),--S.active||S.event.trigger("ajaxStop")))}return T},getJSON:function(e,t,n){return S.get(e,t,n,"json")},getScript:function(e,t){return S.get(e,void 0,t,"script")}}),S.each(["get","post"],function(e,i){S[i]=function(e,t,n,r){return m(t)&&(r=r||n,n=t,t=void 0),S.ajax(S.extend({url:e,type:i,dataType:r,data:t,success:n},S.isPlainObject(e)&&e))}}),S.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),S._evalUrl=function(e,t,n){return S.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){S.globalEval(e,t,n)}})},S.fn.extend({wrapAll:function(e){var t;return this[0]&&(m(e)&&(e=e.call(this[0])),t=S(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(n){return m(n)?this.each(function(e){S(this).wrapInner(n.call(this,e))}):this.each(function(){var e=S(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=m(t);return this.each(function(e){S(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){S(this).replaceWith(this.childNodes)}),this}}),S.expr.pseudos.hidden=function(e){return!S.expr.pseudos.visible(e)},S.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},S.ajaxSettings.xhr=function(){try{return new C.XMLHttpRequest}catch(e){}};var _t={0:200,1223:204},zt=S.ajaxSettings.xhr();y.cors=!!zt&&"withCredentials"in zt,y.ajax=zt=!!zt,S.ajaxTransport(function(i){var o,a;if(y.cors||zt&&!i.crossDomain)return{send:function(e,t){var n,r=i.xhr();if(r.open(i.type,i.url,i.async,i.username,i.password),i.xhrFields)for(n in i.xhrFields)r[n]=i.xhrFields[n];for(n in i.mimeType&&r.overrideMimeType&&r.overrideMimeType(i.mimeType),i.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)r.setRequestHeader(n,e[n]);o=function(e){return function(){o&&(o=a=r.onload=r.onerror=r.onabort=r.ontimeout=r.onreadystatechange=null,"abort"===e?r.abort():"error"===e?"number"!=typeof r.status?t(0,"error"):t(r.status,r.statusText):t(_t[r.status]||r.status,r.statusText,"text"!==(r.responseType||"text")||"string"!=typeof r.responseText?{binary:r.response}:{text:r.responseText},r.getAllResponseHeaders()))}},r.onload=o(),a=r.onerror=r.ontimeout=o("error"),void 0!==r.onabort?r.onabort=a:r.onreadystatechange=function(){4===r.readyState&&C.setTimeout(function(){o&&a()})},o=o("abort");try{r.send(i.hasContent&&i.data||null)}catch(e){if(o)throw e}},abort:function(){o&&o()}}}),S.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),S.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return S.globalEval(e),e}}}),S.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),S.ajaxTransport("script",function(n){var r,i;if(n.crossDomain||n.scriptAttrs)return{send:function(e,t){r=S("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),E.head.appendChild(r[0])},abort:function(){i&&i()}}});var Ut,Xt=[],Vt=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Xt.pop()||S.expando+"_"+Ct.guid++;return this[e]=!0,e}}),S.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Vt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Vt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Vt,"$1"+r):!1!==e.jsonp&&(e.url+=(Et.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||S.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=C[r],C[r]=function(){o=arguments},n.always(function(){void 0===i?S(C).removeProp(r):C[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Xt.push(r)),o&&m(i)&&i(o[0]),o=i=void 0}),"script"}),y.createHTMLDocument=((Ut=E.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Ut.childNodes.length),S.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((r=(t=E.implementation.createHTMLDocument("")).createElement("base")).href=E.location.href,t.head.appendChild(r)):t=E),o=!n&&[],(i=N.exec(e))?[t.createElement(i[1])]:(i=xe([e],t,o),o&&o.length&&S(o).remove(),S.merge([],i.childNodes)));var r,i,o},S.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1<s&&(r=vt(e.slice(s)),e=e.slice(0,s)),m(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),0<a.length&&S.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?S("<div>").append(S.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},S.expr.pseudos.animated=function(t){return S.grep(S.timers,function(e){return t===e.elem}).length},S.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=S.css(e,"position"),c=S(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=S.css(e,"top"),u=S.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m(t)&&(t=t.call(e,n,S.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):("number"==typeof f.top&&(f.top+="px"),"number"==typeof f.left&&(f.left+="px"),c.css(f))}},S.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){S.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===S.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===S.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=S(e).offset()).top+=S.css(e,"borderTopWidth",!0),i.left+=S.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-S.css(r,"marginTop",!0),left:t.left-i.left-S.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===S.css(e,"position"))e=e.offsetParent;return e||re})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;S.fn[t]=function(e){return $(this,function(e,t,n){var r;if(x(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),S.each(["top","left"],function(e,n){S.cssHooks[n]=$e(y.pixelPosition,function(e,t){if(t)return t=Be(e,n),Me.test(t)?S(e).position()[n]+"px":t})}),S.each({Height:"height",Width:"width"},function(a,s){S.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){S.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return $(this,function(e,t,n){var r;return x(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?S.css(e,t,i):S.style(e,t,n,i)},s,n?e:void 0,n)}})}),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){S.fn[t]=function(e){return this.on(t,e)}}),S.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),S.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){S.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}});var Gt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;S.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),m(e))return r=s.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(s.call(arguments)))}).guid=e.guid=e.guid||S.guid++,i},S.holdReady=function(e){e?S.readyWait++:S.ready(!0)},S.isArray=Array.isArray,S.parseJSON=JSON.parse,S.nodeName=A,S.isFunction=m,S.isWindow=x,S.camelCase=X,S.type=w,S.now=Date.now,S.isNumeric=function(e){var t=S.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},S.trim=function(e){return null==e?"":(e+"").replace(Gt,"")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return S});var Yt=C.jQuery,Qt=C.$;return S.noConflict=function(e){return C.$===S&&(C.$=Qt),e&&C.jQuery===S&&(C.jQuery=Yt),S},"undefined"==typeof e&&(C.jQuery=C.$=S),S}); diff --git a/docsrc/build/html/_static/language_data.js b/docsrc/build/html/_static/language_data.js index 2e22b06ab..ebe2f03bf 100644 --- a/docsrc/build/html/_static/language_data.js +++ b/docsrc/build/html/_static/language_data.js @@ -10,7 +10,7 @@ * */ -var stopwords = ["a", "and", "are", "as", "at", "be", "but", "by", "for", "if", "in", "into", "is", "it", "near", "no", "not", "of", "on", "or", "such", "that", "the", "their", "then", "there", "these", "they", "this", "to", "was", "will", "with"]; +var stopwords = ["a","and","are","as","at","be","but","by","for","if","in","into","is","it","near","no","not","of","on","or","such","that","the","their","then","there","these","they","this","to","was","will","with"]; /* Non-minified version is copied as a separate JS file, is available */ @@ -197,3 +197,101 @@ var Stemmer = function() { } } + + + +var splitChars = (function() { + var result = {}; + var singles = [96, 180, 187, 191, 215, 247, 749, 885, 903, 907, 909, 930, 1014, 1648, + 1748, 1809, 2416, 2473, 2481, 2526, 2601, 2609, 2612, 2615, 2653, 2702, + 2706, 2729, 2737, 2740, 2857, 2865, 2868, 2910, 2928, 2948, 2961, 2971, + 2973, 3085, 3089, 3113, 3124, 3213, 3217, 3241, 3252, 3295, 3341, 3345, + 3369, 3506, 3516, 3633, 3715, 3721, 3736, 3744, 3748, 3750, 3756, 3761, + 3781, 3912, 4239, 4347, 4681, 4695, 4697, 4745, 4785, 4799, 4801, 4823, + 4881, 5760, 5901, 5997, 6313, 7405, 8024, 8026, 8028, 8030, 8117, 8125, + 8133, 8181, 8468, 8485, 8487, 8489, 8494, 8527, 11311, 11359, 11687, 11695, + 11703, 11711, 11719, 11727, 11735, 12448, 12539, 43010, 43014, 43019, 43587, + 43696, 43713, 64286, 64297, 64311, 64317, 64319, 64322, 64325, 65141]; + var i, j, start, end; + for (i = 0; i < singles.length; i++) { + result[singles[i]] = true; + } + var ranges = [[0, 47], [58, 64], [91, 94], [123, 169], [171, 177], [182, 184], [706, 709], + [722, 735], [741, 747], [751, 879], [888, 889], [894, 901], [1154, 1161], + [1318, 1328], [1367, 1368], [1370, 1376], [1416, 1487], [1515, 1519], [1523, 1568], + [1611, 1631], [1642, 1645], [1750, 1764], [1767, 1773], [1789, 1790], [1792, 1807], + [1840, 1868], [1958, 1968], [1970, 1983], [2027, 2035], [2038, 2041], [2043, 2047], + [2070, 2073], [2075, 2083], [2085, 2087], [2089, 2307], [2362, 2364], [2366, 2383], + [2385, 2391], [2402, 2405], [2419, 2424], [2432, 2436], [2445, 2446], [2449, 2450], + [2483, 2485], [2490, 2492], [2494, 2509], [2511, 2523], [2530, 2533], [2546, 2547], + [2554, 2564], [2571, 2574], [2577, 2578], [2618, 2648], [2655, 2661], [2672, 2673], + [2677, 2692], [2746, 2748], [2750, 2767], [2769, 2783], [2786, 2789], [2800, 2820], + [2829, 2830], [2833, 2834], [2874, 2876], [2878, 2907], [2914, 2917], [2930, 2946], + [2955, 2957], [2966, 2968], [2976, 2978], [2981, 2983], [2987, 2989], [3002, 3023], + [3025, 3045], [3059, 3076], [3130, 3132], [3134, 3159], [3162, 3167], [3170, 3173], + [3184, 3191], [3199, 3204], [3258, 3260], [3262, 3293], [3298, 3301], [3312, 3332], + [3386, 3388], [3390, 3423], [3426, 3429], [3446, 3449], [3456, 3460], [3479, 3481], + [3518, 3519], [3527, 3584], [3636, 3647], [3655, 3663], [3674, 3712], [3717, 3718], + [3723, 3724], [3726, 3731], [3752, 3753], [3764, 3772], [3774, 3775], [3783, 3791], + [3802, 3803], [3806, 3839], [3841, 3871], [3892, 3903], [3949, 3975], [3980, 4095], + [4139, 4158], [4170, 4175], [4182, 4185], [4190, 4192], [4194, 4196], [4199, 4205], + [4209, 4212], [4226, 4237], [4250, 4255], [4294, 4303], [4349, 4351], [4686, 4687], + [4702, 4703], [4750, 4751], [4790, 4791], [4806, 4807], [4886, 4887], [4955, 4968], + [4989, 4991], [5008, 5023], [5109, 5120], [5741, 5742], [5787, 5791], [5867, 5869], + [5873, 5887], [5906, 5919], [5938, 5951], [5970, 5983], [6001, 6015], [6068, 6102], + [6104, 6107], [6109, 6111], [6122, 6127], [6138, 6159], [6170, 6175], [6264, 6271], + [6315, 6319], [6390, 6399], [6429, 6469], [6510, 6511], [6517, 6527], [6572, 6592], + [6600, 6607], [6619, 6655], [6679, 6687], [6741, 6783], [6794, 6799], [6810, 6822], + [6824, 6916], [6964, 6980], [6988, 6991], [7002, 7042], [7073, 7085], [7098, 7167], + [7204, 7231], [7242, 7244], [7294, 7400], [7410, 7423], [7616, 7679], [7958, 7959], + [7966, 7967], [8006, 8007], [8014, 8015], [8062, 8063], [8127, 8129], [8141, 8143], + [8148, 8149], [8156, 8159], [8173, 8177], [8189, 8303], [8306, 8307], [8314, 8318], + [8330, 8335], [8341, 8449], [8451, 8454], [8456, 8457], [8470, 8472], [8478, 8483], + [8506, 8507], [8512, 8516], [8522, 8525], [8586, 9311], [9372, 9449], [9472, 10101], + [10132, 11263], [11493, 11498], [11503, 11516], [11518, 11519], [11558, 11567], + [11622, 11630], [11632, 11647], [11671, 11679], [11743, 11822], [11824, 12292], + [12296, 12320], [12330, 12336], [12342, 12343], [12349, 12352], [12439, 12444], + [12544, 12548], [12590, 12592], [12687, 12689], [12694, 12703], [12728, 12783], + [12800, 12831], [12842, 12880], [12896, 12927], [12938, 12976], [12992, 13311], + [19894, 19967], [40908, 40959], [42125, 42191], [42238, 42239], [42509, 42511], + [42540, 42559], [42592, 42593], [42607, 42622], [42648, 42655], [42736, 42774], + [42784, 42785], [42889, 42890], [42893, 43002], [43043, 43055], [43062, 43071], + [43124, 43137], [43188, 43215], [43226, 43249], [43256, 43258], [43260, 43263], + [43302, 43311], [43335, 43359], [43389, 43395], [43443, 43470], [43482, 43519], + [43561, 43583], [43596, 43599], [43610, 43615], [43639, 43641], [43643, 43647], + [43698, 43700], [43703, 43704], [43710, 43711], [43715, 43738], [43742, 43967], + [44003, 44015], [44026, 44031], [55204, 55215], [55239, 55242], [55292, 55295], + [57344, 63743], [64046, 64047], [64110, 64111], [64218, 64255], [64263, 64274], + [64280, 64284], [64434, 64466], [64830, 64847], [64912, 64913], [64968, 65007], + [65020, 65135], [65277, 65295], [65306, 65312], [65339, 65344], [65371, 65381], + [65471, 65473], [65480, 65481], [65488, 65489], [65496, 65497]]; + for (i = 0; i < ranges.length; i++) { + start = ranges[i][0]; + end = ranges[i][1]; + for (j = start; j <= end; j++) { + result[j] = true; + } + } + return result; +})(); + +function splitQuery(query) { + var result = []; + var start = -1; + for (var i = 0; i < query.length; i++) { + if (splitChars[query.charCodeAt(i)]) { + if (start !== -1) { + result.push(query.slice(start, i)); + start = -1; + } + } else if (start === -1) { + start = i; + } + } + if (start !== -1) { + result.push(query.slice(start)); + } + return result; +} + + diff --git a/docsrc/build/html/_static/pygments.css b/docsrc/build/html/_static/pygments.css index 08bec689d..631bc92ff 100644 --- a/docsrc/build/html/_static/pygments.css +++ b/docsrc/build/html/_static/pygments.css @@ -1,26 +1,21 @@ -pre { line-height: 125%; } -td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } -span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } -td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } -span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } .highlight .hll { background-color: #ffffcc } -.highlight { background: #f8f8f8; } -.highlight .c { color: #3D7B7B; font-style: italic } /* Comment */ +.highlight { background: #f8f8f8; } +.highlight .c { color: #408080; font-style: italic } /* Comment */ .highlight .err { border: 1px solid #FF0000 } /* Error */ .highlight .k { color: #008000; font-weight: bold } /* Keyword */ .highlight .o { color: #666666 } /* Operator */ -.highlight .ch { color: #3D7B7B; font-style: italic } /* Comment.Hashbang */ -.highlight .cm { color: #3D7B7B; font-style: italic } /* Comment.Multiline */ -.highlight .cp { color: #9C6500 } /* Comment.Preproc */ -.highlight .cpf { color: #3D7B7B; font-style: italic } /* Comment.PreprocFile */ -.highlight .c1 { color: #3D7B7B; font-style: italic } /* Comment.Single */ -.highlight .cs { color: #3D7B7B; font-style: italic } /* Comment.Special */ +.highlight .ch { color: #408080; font-style: italic } /* Comment.Hashbang */ +.highlight .cm { color: #408080; font-style: italic } /* Comment.Multiline */ +.highlight .cp { color: #BC7A00 } /* Comment.Preproc */ +.highlight .cpf { color: #408080; font-style: italic } /* Comment.PreprocFile */ +.highlight .c1 { color: #408080; font-style: italic } /* Comment.Single */ +.highlight .cs { color: #408080; font-style: italic } /* Comment.Special */ .highlight .gd { color: #A00000 } /* Generic.Deleted */ .highlight .ge { font-style: italic } /* Generic.Emph */ -.highlight .gr { color: #E40000 } /* Generic.Error */ +.highlight .gr { color: #FF0000 } /* Generic.Error */ .highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ -.highlight .gi { color: #008400 } /* Generic.Inserted */ -.highlight .go { color: #717171 } /* Generic.Output */ +.highlight .gi { color: #00A000 } /* Generic.Inserted */ +.highlight .go { color: #888888 } /* Generic.Output */ .highlight .gp { color: #000080; font-weight: bold } /* Generic.Prompt */ .highlight .gs { font-weight: bold } /* Generic.Strong */ .highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ @@ -33,15 +28,15 @@ span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: .highlight .kt { color: #B00040 } /* Keyword.Type */ .highlight .m { color: #666666 } /* Literal.Number */ .highlight .s { color: #BA2121 } /* Literal.String */ -.highlight .na { color: #687822 } /* Name.Attribute */ +.highlight .na { color: #7D9029 } /* Name.Attribute */ .highlight .nb { color: #008000 } /* Name.Builtin */ .highlight .nc { color: #0000FF; font-weight: bold } /* Name.Class */ .highlight .no { color: #880000 } /* Name.Constant */ .highlight .nd { color: #AA22FF } /* Name.Decorator */ -.highlight .ni { color: #717171; font-weight: bold } /* Name.Entity */ -.highlight .ne { color: #CB3F38; font-weight: bold } /* Name.Exception */ +.highlight .ni { color: #999999; font-weight: bold } /* Name.Entity */ +.highlight .ne { color: #D2413A; font-weight: bold } /* Name.Exception */ .highlight .nf { color: #0000FF } /* Name.Function */ -.highlight .nl { color: #767600 } /* Name.Label */ +.highlight .nl { color: #A0A000 } /* Name.Label */ .highlight .nn { color: #0000FF; font-weight: bold } /* Name.Namespace */ .highlight .nt { color: #008000; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #19177C } /* Name.Variable */ @@ -58,11 +53,11 @@ span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: .highlight .dl { color: #BA2121 } /* Literal.String.Delimiter */ .highlight .sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */ .highlight .s2 { color: #BA2121 } /* Literal.String.Double */ -.highlight .se { color: #AA5D1F; font-weight: bold } /* Literal.String.Escape */ +.highlight .se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */ .highlight .sh { color: #BA2121 } /* Literal.String.Heredoc */ -.highlight .si { color: #A45A77; font-weight: bold } /* Literal.String.Interpol */ +.highlight .si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */ .highlight .sx { color: #008000 } /* Literal.String.Other */ -.highlight .sr { color: #A45A77 } /* Literal.String.Regex */ +.highlight .sr { color: #BB6688 } /* Literal.String.Regex */ .highlight .s1 { color: #BA2121 } /* Literal.String.Single */ .highlight .ss { color: #19177C } /* Literal.String.Symbol */ .highlight .bp { color: #008000 } /* Name.Builtin.Pseudo */ diff --git a/docsrc/build/html/_static/searchtools.js b/docsrc/build/html/_static/searchtools.js index ac4d5861f..0a44e8582 100644 --- a/docsrc/build/html/_static/searchtools.js +++ b/docsrc/build/html/_static/searchtools.js @@ -8,20 +8,18 @@ * :license: BSD, see LICENSE for details. * */ -"use strict"; -/** - * Simple result scoring code. - */ -if (typeof Scorer === "undefined") { +if (!Scorer) { + /** + * Simple result scoring code. + */ var Scorer = { // Implement the following function to further tweak the score for each result - // The function takes a result array [docname, title, anchor, descr, score, filename] + // The function takes a result array [filename, title, anchor, descr, score] // and returns the new score. /* - score: result => { - const [docname, title, anchor, descr, score, filename] = result - return score + score: function(result) { + return result[4]; }, */ @@ -30,11 +28,9 @@ if (typeof Scorer === "undefined") { // or matches in the last dotted part of the object name objPartialMatch: 6, // Additive scores depending on the priority of the object - objPrio: { - 0: 15, // used to be importantResults - 1: 5, // used to be objectResults - 2: -5, // used to be unimportantResults - }, + objPrio: {0: 15, // used to be importantResults + 1: 5, // used to be objectResults + 2: -5}, // used to be unimportantResults // Used when the priority is not in the mapping. objPrioDefault: 0, @@ -43,455 +39,452 @@ if (typeof Scorer === "undefined") { partialTitle: 7, // query found in terms term: 5, - partialTerm: 2, + partialTerm: 2 }; } -const _removeChildren = (element) => { - while (element && element.lastChild) element.removeChild(element.lastChild); -}; - -/** - * See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions#escaping - */ -const _escapeRegExp = (string) => - string.replace(/[.*+\-?^${}()|[\]\\]/g, "\\$&"); // $& means the whole matched string - -const _displayItem = (item, highlightTerms, searchTerms) => { - const docBuilder = DOCUMENTATION_OPTIONS.BUILDER; - const docUrlRoot = DOCUMENTATION_OPTIONS.URL_ROOT; - const docFileSuffix = DOCUMENTATION_OPTIONS.FILE_SUFFIX; - const docLinkSuffix = DOCUMENTATION_OPTIONS.LINK_SUFFIX; - const showSearchSummary = DOCUMENTATION_OPTIONS.SHOW_SEARCH_SUMMARY; - - const [docName, title, anchor, descr] = item; - - let listItem = document.createElement("li"); - let requestUrl; - let linkUrl; - if (docBuilder === "dirhtml") { - // dirhtml builder - let dirname = docName + "/"; - if (dirname.match(/\/index\/$/)) - dirname = dirname.substring(0, dirname.length - 6); - else if (dirname === "index/") dirname = ""; - requestUrl = docUrlRoot + dirname; - linkUrl = requestUrl; - } else { - // normal html builders - requestUrl = docUrlRoot + docName + docFileSuffix; - linkUrl = docName + docLinkSuffix; - } - const params = new URLSearchParams(); - params.set("highlight", [...highlightTerms].join(" ")); - let linkEl = listItem.appendChild(document.createElement("a")); - linkEl.href = linkUrl + "?" + params.toString() + anchor; - linkEl.innerHTML = title; - if (descr) - listItem.appendChild(document.createElement("span")).innerText = - " (" + descr + ")"; - else if (showSearchSummary) - fetch(requestUrl) - .then((responseData) => responseData.text()) - .then((data) => { - if (data) - listItem.appendChild( - Search.makeSearchSummary(data, searchTerms, highlightTerms) - ); - }); - Search.output.appendChild(listItem); -}; -const _finishSearch = (resultCount) => { - Search.stopPulse(); - Search.title.innerText = _("Search Results"); - if (!resultCount) - Search.status.innerText = Documentation.gettext( - "Your search did not match any documents. Please make sure that all words are spelled correctly and that you've selected enough categories." - ); - else - Search.status.innerText = _( - `Search finished, found ${resultCount} page(s) matching the search query.` - ); -}; -const _displayNextItem = ( - results, - resultCount, - highlightTerms, - searchTerms -) => { - // results left, load the summary and display it - // this is intended to be dynamic (don't sub resultsCount) - if (results.length) { - _displayItem(results.pop(), highlightTerms, searchTerms); - setTimeout( - () => _displayNextItem(results, resultCount, highlightTerms, searchTerms), - 5 - ); +if (!splitQuery) { + function splitQuery(query) { + return query.split(/\s+/); } - // search finished, update title and status message - else _finishSearch(resultCount); -}; - -/** - * Default splitQuery function. Can be overridden in ``sphinx.search`` with a - * custom function per language. - * - * The regular expression works by splitting the string on consecutive characters - * that are not Unicode letters, numbers, underscores, or emoji characters. - * This is the same as ``\W+`` in Python, preserving the surrogate pair area. - */ -if (typeof splitQuery === "undefined") { - var splitQuery = (query) => query - .split(/[^\p{Letter}\p{Number}_\p{Emoji_Presentation}]+/gu) - .filter(term => term) // remove remaining empty strings } /** * Search Module */ -const Search = { - _index: null, - _queued_query: null, - _pulse_status: -1, - - htmlToText: (htmlString) => { - const htmlElement = document - .createRange() - .createContextualFragment(htmlString); - _removeChildren(htmlElement.querySelectorAll(".headerlink")); - const docContent = htmlElement.querySelector('[role="main"]'); - if (docContent !== undefined) return docContent.textContent; - console.warn( - "Content block not found. Sphinx search tries to obtain it via '[role=main]'. Could you check your theme or template." - ); - return ""; +var Search = { + + _index : null, + _queued_query : null, + _pulse_status : -1, + + htmlToText : function(htmlString) { + var virtualDocument = document.implementation.createHTMLDocument('virtual'); + var htmlElement = $(htmlString, virtualDocument); + htmlElement.find('.headerlink').remove(); + docContent = htmlElement.find('[role=main]')[0]; + if(docContent === undefined) { + console.warn("Content block not found. Sphinx search tries to obtain it " + + "via '[role=main]'. Could you check your theme or template."); + return ""; + } + return docContent.textContent || docContent.innerText; }, - init: () => { - const query = new URLSearchParams(window.location.search).get("q"); - document - .querySelectorAll('input[name="q"]') - .forEach((el) => (el.value = query)); - if (query) Search.performSearch(query); + init : function() { + var params = $.getQueryParameters(); + if (params.q) { + var query = params.q[0]; + $('input[name="q"]')[0].value = query; + this.performSearch(query); + } }, - loadIndex: (url) => - (document.body.appendChild(document.createElement("script")).src = url), + loadIndex : function(url) { + $.ajax({type: "GET", url: url, data: null, + dataType: "script", cache: true, + complete: function(jqxhr, textstatus) { + if (textstatus != "success") { + document.getElementById("searchindexloader").src = url; + } + }}); + }, - setIndex: (index) => { - Search._index = index; - if (Search._queued_query !== null) { - const query = Search._queued_query; - Search._queued_query = null; - Search.query(query); + setIndex : function(index) { + var q; + this._index = index; + if ((q = this._queued_query) !== null) { + this._queued_query = null; + Search.query(q); } }, - hasIndex: () => Search._index !== null, - - deferQuery: (query) => (Search._queued_query = query), + hasIndex : function() { + return this._index !== null; + }, - stopPulse: () => (Search._pulse_status = -1), + deferQuery : function(query) { + this._queued_query = query; + }, - startPulse: () => { - if (Search._pulse_status >= 0) return; + stopPulse : function() { + this._pulse_status = 0; + }, - const pulse = () => { + startPulse : function() { + if (this._pulse_status >= 0) + return; + function pulse() { + var i; Search._pulse_status = (Search._pulse_status + 1) % 4; - Search.dots.innerText = ".".repeat(Search._pulse_status); - if (Search._pulse_status >= 0) window.setTimeout(pulse, 500); - }; + var dotString = ''; + for (i = 0; i < Search._pulse_status; i++) + dotString += '.'; + Search.dots.text(dotString); + if (Search._pulse_status > -1) + window.setTimeout(pulse, 500); + } pulse(); }, /** * perform a search for something (or wait until index is loaded) */ - performSearch: (query) => { + performSearch : function(query) { // create the required interface elements - const searchText = document.createElement("h2"); - searchText.textContent = _("Searching"); - const searchSummary = document.createElement("p"); - searchSummary.classList.add("search-summary"); - searchSummary.innerText = ""; - const searchList = document.createElement("ul"); - searchList.classList.add("search"); - - const out = document.getElementById("search-results"); - Search.title = out.appendChild(searchText); - Search.dots = Search.title.appendChild(document.createElement("span")); - Search.status = out.appendChild(searchSummary); - Search.output = out.appendChild(searchList); - - const searchProgress = document.getElementById("search-progress"); - // Some themes don't use the search progress node - if (searchProgress) { - searchProgress.innerText = _("Preparing search..."); - } - Search.startPulse(); + this.out = $('#search-results'); + this.title = $('<h2>' + _('Searching') + '</h2>').appendTo(this.out); + this.dots = $('<span></span>').appendTo(this.title); + this.status = $('<p class="search-summary"> </p>').appendTo(this.out); + this.output = $('<ul class="search"/>').appendTo(this.out); + + $('#search-progress').text(_('Preparing search...')); + this.startPulse(); // index already loaded, the browser was quick! - if (Search.hasIndex()) Search.query(query); - else Search.deferQuery(query); + if (this.hasIndex()) + this.query(query); + else + this.deferQuery(query); }, /** * execute search (requires search index to be loaded) */ - query: (query) => { - // stem the search terms and add them to the correct list - const stemmer = new Stemmer(); - const searchTerms = new Set(); - const excludedTerms = new Set(); - const highlightTerms = new Set(); - const objectTerms = new Set(splitQuery(query.toLowerCase().trim())); - splitQuery(query.trim()).forEach((queryTerm) => { - const queryTermLower = queryTerm.toLowerCase(); - - // maybe skip this "word" - // stopwords array is from language_data.js - if ( - stopwords.indexOf(queryTermLower) !== -1 || - queryTerm.match(/^\d+$/) - ) - return; + query : function(query) { + var i; + + // stem the searchterms and add them to the correct list + var stemmer = new Stemmer(); + var searchterms = []; + var excluded = []; + var hlterms = []; + var tmp = splitQuery(query); + var objectterms = []; + for (i = 0; i < tmp.length; i++) { + if (tmp[i] !== "") { + objectterms.push(tmp[i].toLowerCase()); + } + if ($u.indexOf(stopwords, tmp[i].toLowerCase()) != -1 || tmp[i] === "") { + // skip this "word" + continue; + } // stem the word - let word = stemmer.stemWord(queryTermLower); + var word = stemmer.stemWord(tmp[i].toLowerCase()); + var toAppend; // select the correct list - if (word[0] === "-") excludedTerms.add(word.substr(1)); + if (word[0] == '-') { + toAppend = excluded; + word = word.substr(1); + } else { - searchTerms.add(word); - highlightTerms.add(queryTermLower); + toAppend = searchterms; + hlterms.push(tmp[i].toLowerCase()); } - }); + // only add if not already in the list + if (!$u.contains(toAppend, word)) + toAppend.push(word); + } + var highlightstring = '?highlight=' + $.urlencode(hlterms.join(" ")); - // console.debug("SEARCH: searching for:"); - // console.info("required: ", [...searchTerms]); - // console.info("excluded: ", [...excludedTerms]); + // console.debug('SEARCH: searching for:'); + // console.info('required: ', searchterms); + // console.info('excluded: ', excluded); + + // prepare search + var terms = this._index.terms; + var titleterms = this._index.titleterms; - // array of [docname, title, anchor, descr, score, filename] - let results = []; - _removeChildren(document.getElementById("search-progress")); + // array of [filename, title, anchor, descr, score] + var results = []; + $('#search-progress').empty(); // lookup as object - objectTerms.forEach((term) => - results.push(...Search.performObjectSearch(term, objectTerms)) - ); + for (i = 0; i < objectterms.length; i++) { + var others = [].concat(objectterms.slice(0, i), + objectterms.slice(i+1, objectterms.length)); + results = results.concat(this.performObjectSearch(objectterms[i], others)); + } // lookup as search terms in fulltext - results.push(...Search.performTermsSearch(searchTerms, excludedTerms)); + results = results.concat(this.performTermsSearch(searchterms, excluded, terms, titleterms)); // let the scorer override scores with a custom scoring function - if (Scorer.score) results.forEach((item) => (item[4] = Scorer.score(item))); + if (Scorer.score) { + for (i = 0; i < results.length; i++) + results[i][4] = Scorer.score(results[i]); + } // now sort the results by score (in opposite order of appearance, since the // display function below uses pop() to retrieve items) and then // alphabetically - results.sort((a, b) => { - const leftScore = a[4]; - const rightScore = b[4]; - if (leftScore === rightScore) { + results.sort(function(a, b) { + var left = a[4]; + var right = b[4]; + if (left > right) { + return 1; + } else if (left < right) { + return -1; + } else { // same score: sort alphabetically - const leftTitle = a[1].toLowerCase(); - const rightTitle = b[1].toLowerCase(); - if (leftTitle === rightTitle) return 0; - return leftTitle > rightTitle ? -1 : 1; // inverted is intentional + left = a[1].toLowerCase(); + right = b[1].toLowerCase(); + return (left > right) ? -1 : ((left < right) ? 1 : 0); } - return leftScore > rightScore ? 1 : -1; }); - // remove duplicate search results - // note the reversing of results, so that in the case of duplicates, the highest-scoring entry is kept - let seen = new Set(); - results = results.reverse().reduce((acc, result) => { - let resultStr = result.slice(0, 4).concat([result[5]]).map(v => String(v)).join(','); - if (!seen.has(resultStr)) { - acc.push(result); - seen.add(resultStr); - } - return acc; - }, []); - - results = results.reverse(); - // for debugging //Search.lastresults = results.slice(); // a copy - // console.info("search results:", Search.lastresults); + //console.info('search results:', Search.lastresults); // print the results - _displayNextItem(results, results.length, highlightTerms, searchTerms); + var resultCount = results.length; + function displayNextItem() { + // results left, load the summary and display it + if (results.length) { + var item = results.pop(); + var listItem = $('<li></li>'); + var requestUrl = ""; + var linkUrl = ""; + if (DOCUMENTATION_OPTIONS.BUILDER === 'dirhtml') { + // dirhtml builder + var dirname = item[0] + '/'; + if (dirname.match(/\/index\/$/)) { + dirname = dirname.substring(0, dirname.length-6); + } else if (dirname == 'index/') { + dirname = ''; + } + requestUrl = DOCUMENTATION_OPTIONS.URL_ROOT + dirname; + linkUrl = requestUrl; + + } else { + // normal html builders + requestUrl = DOCUMENTATION_OPTIONS.URL_ROOT + item[0] + DOCUMENTATION_OPTIONS.FILE_SUFFIX; + linkUrl = item[0] + DOCUMENTATION_OPTIONS.LINK_SUFFIX; + } + listItem.append($('<a/>').attr('href', + linkUrl + + highlightstring + item[2]).html(item[1])); + if (item[3]) { + listItem.append($('<span> (' + item[3] + ')</span>')); + Search.output.append(listItem); + setTimeout(function() { + displayNextItem(); + }, 5); + } else if (DOCUMENTATION_OPTIONS.SHOW_SEARCH_SUMMARY) { + $.ajax({url: requestUrl, + dataType: "text", + complete: function(jqxhr, textstatus) { + var data = jqxhr.responseText; + if (data !== '' && data !== undefined) { + var summary = Search.makeSearchSummary(data, searchterms, hlterms); + if (summary) { + listItem.append(summary); + } + } + Search.output.append(listItem); + setTimeout(function() { + displayNextItem(); + }, 5); + }}); + } else { + // just display title + Search.output.append(listItem); + setTimeout(function() { + displayNextItem(); + }, 5); + } + } + // search finished, update title and status message + else { + Search.stopPulse(); + Search.title.text(_('Search Results')); + if (!resultCount) + Search.status.text(_('Your search did not match any documents. Please make sure that all words are spelled correctly and that you\'ve selected enough categories.')); + else + Search.status.text(_('Search finished, found %s page(s) matching the search query.').replace('%s', resultCount)); + Search.status.fadeIn(500); + } + } + displayNextItem(); }, /** * search for object names */ - performObjectSearch: (object, objectTerms) => { - const filenames = Search._index.filenames; - const docNames = Search._index.docnames; - const objects = Search._index.objects; - const objNames = Search._index.objnames; - const titles = Search._index.titles; - - const results = []; - - const objectSearchCallback = (prefix, match) => { - const name = match[4] - const fullname = (prefix ? prefix + "." : "") + name; - const fullnameLower = fullname.toLowerCase(); - if (fullnameLower.indexOf(object) < 0) return; - - let score = 0; - const parts = fullnameLower.split("."); - - // check for different match types: exact matches of full name or - // "last name" (i.e. last dotted part) - if (fullnameLower === object || parts.slice(-1)[0] === object) - score += Scorer.objNameMatch; - else if (parts.slice(-1)[0].indexOf(object) > -1) - score += Scorer.objPartialMatch; // matches in last name - - const objName = objNames[match[1]][2]; - const title = titles[match[0]]; - - // If more than one term searched for, we require other words to be - // found in the name/title/description - const otherTerms = new Set(objectTerms); - otherTerms.delete(object); - if (otherTerms.size > 0) { - const haystack = `${prefix} ${name} ${objName} ${title}`.toLowerCase(); - if ( - [...otherTerms].some((otherTerm) => haystack.indexOf(otherTerm) < 0) - ) - return; + performObjectSearch : function(object, otherterms) { + var filenames = this._index.filenames; + var docnames = this._index.docnames; + var objects = this._index.objects; + var objnames = this._index.objnames; + var titles = this._index.titles; + + var i; + var results = []; + + for (var prefix in objects) { + for (var iMatch = 0; iMatch != objects[prefix].length; ++iMatch) { + var match = objects[prefix][iMatch]; + var name = match[4]; + var fullname = (prefix ? prefix + '.' : '') + name; + var fullnameLower = fullname.toLowerCase() + if (fullnameLower.indexOf(object) > -1) { + var score = 0; + var parts = fullnameLower.split('.'); + // check for different match types: exact matches of full name or + // "last name" (i.e. last dotted part) + if (fullnameLower == object || parts[parts.length - 1] == object) { + score += Scorer.objNameMatch; + // matches in last name + } else if (parts[parts.length - 1].indexOf(object) > -1) { + score += Scorer.objPartialMatch; + } + var objname = objnames[match[1]][2]; + var title = titles[match[0]]; + // If more than one term searched for, we require other words to be + // found in the name/title/description + if (otherterms.length > 0) { + var haystack = (prefix + ' ' + name + ' ' + + objname + ' ' + title).toLowerCase(); + var allfound = true; + for (i = 0; i < otherterms.length; i++) { + if (haystack.indexOf(otherterms[i]) == -1) { + allfound = false; + break; + } + } + if (!allfound) { + continue; + } + } + var descr = objname + _(', in ') + title; + + var anchor = match[3]; + if (anchor === '') + anchor = fullname; + else if (anchor == '-') + anchor = objnames[match[1]][1] + '-' + fullname; + // add custom score for some objects according to scorer + if (Scorer.objPrio.hasOwnProperty(match[2])) { + score += Scorer.objPrio[match[2]]; + } else { + score += Scorer.objPrioDefault; + } + results.push([docnames[match[0]], fullname, '#'+anchor, descr, score, filenames[match[0]]]); + } } + } - let anchor = match[3]; - if (anchor === "") anchor = fullname; - else if (anchor === "-") anchor = objNames[match[1]][1] + "-" + fullname; - - const descr = objName + _(", in ") + title; - - // add custom score for some objects according to scorer - if (Scorer.objPrio.hasOwnProperty(match[2])) - score += Scorer.objPrio[match[2]]; - else score += Scorer.objPrioDefault; - - results.push([ - docNames[match[0]], - fullname, - "#" + anchor, - descr, - score, - filenames[match[0]], - ]); - }; - Object.keys(objects).forEach((prefix) => - objects[prefix].forEach((array) => - objectSearchCallback(prefix, array) - ) - ); return results; }, + /** + * See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions + */ + escapeRegExp : function(string) { + return string.replace(/[.*+\-?^${}()|[\]\\]/g, '\\$&'); // $& means the whole matched string + }, + /** * search for full-text terms in the index */ - performTermsSearch: (searchTerms, excludedTerms) => { - // prepare search - const terms = Search._index.terms; - const titleTerms = Search._index.titleterms; - const docNames = Search._index.docnames; - const filenames = Search._index.filenames; - const titles = Search._index.titles; + performTermsSearch : function(searchterms, excluded, terms, titleterms) { + var docnames = this._index.docnames; + var filenames = this._index.filenames; + var titles = this._index.titles; - const scoreMap = new Map(); - const fileMap = new Map(); + var i, j, file; + var fileMap = {}; + var scoreMap = {}; + var results = []; // perform the search on the required terms - searchTerms.forEach((word) => { - const files = []; - const arr = [ - { files: terms[word], score: Scorer.term }, - { files: titleTerms[word], score: Scorer.title }, + for (i = 0; i < searchterms.length; i++) { + var word = searchterms[i]; + var files = []; + var _o = [ + {files: terms[word], score: Scorer.term}, + {files: titleterms[word], score: Scorer.title} ]; // add support for partial matches if (word.length > 2) { - const escapedWord = _escapeRegExp(word); - Object.keys(terms).forEach((term) => { - if (term.match(escapedWord) && !terms[word]) - arr.push({ files: terms[term], score: Scorer.partialTerm }); - }); - Object.keys(titleTerms).forEach((term) => { - if (term.match(escapedWord) && !titleTerms[word]) - arr.push({ files: titleTerms[word], score: Scorer.partialTitle }); - }); + var word_regex = this.escapeRegExp(word); + for (var w in terms) { + if (w.match(word_regex) && !terms[word]) { + _o.push({files: terms[w], score: Scorer.partialTerm}) + } + } + for (var w in titleterms) { + if (w.match(word_regex) && !titleterms[word]) { + _o.push({files: titleterms[w], score: Scorer.partialTitle}) + } + } } // no match but word was a required one - if (arr.every((record) => record.files === undefined)) return; - + if ($u.every(_o, function(o){return o.files === undefined;})) { + break; + } // found search word in contents - arr.forEach((record) => { - if (record.files === undefined) return; - - let recordFiles = record.files; - if (recordFiles.length === undefined) recordFiles = [recordFiles]; - files.push(...recordFiles); - - // set score for the word in each file - recordFiles.forEach((file) => { - if (!scoreMap.has(file)) scoreMap.set(file, {}); - scoreMap.get(file)[word] = record.score; - }); + $u.each(_o, function(o) { + var _files = o.files; + if (_files === undefined) + return + + if (_files.length === undefined) + _files = [_files]; + files = files.concat(_files); + + // set score for the word in each file to Scorer.term + for (j = 0; j < _files.length; j++) { + file = _files[j]; + if (!(file in scoreMap)) + scoreMap[file] = {}; + scoreMap[file][word] = o.score; + } }); // create the mapping - files.forEach((file) => { - if (fileMap.has(file) && fileMap.get(file).indexOf(word) === -1) - fileMap.get(file).push(word); - else fileMap.set(file, [word]); - }); - }); + for (j = 0; j < files.length; j++) { + file = files[j]; + if (file in fileMap && fileMap[file].indexOf(word) === -1) + fileMap[file].push(word); + else + fileMap[file] = [word]; + } + } // now check if the files don't contain excluded terms - const results = []; - for (const [file, wordList] of fileMap) { - // check if all requirements are matched + for (file in fileMap) { + var valid = true; - // as search terms with length < 3 are discarded - const filteredTermCount = [...searchTerms].filter( - (term) => term.length > 2 - ).length; + // check if all requirements are matched + var filteredTermCount = // as search terms with length < 3 are discarded: ignore + searchterms.filter(function(term){return term.length > 2}).length if ( - wordList.length !== searchTerms.size && - wordList.length !== filteredTermCount - ) - continue; + fileMap[file].length != searchterms.length && + fileMap[file].length != filteredTermCount + ) continue; // ensure that none of the excluded terms is in the search result - if ( - [...excludedTerms].some( - (term) => - terms[term] === file || - titleTerms[term] === file || - (terms[term] || []).includes(file) || - (titleTerms[term] || []).includes(file) - ) - ) - break; + for (i = 0; i < excluded.length; i++) { + if (terms[excluded[i]] == file || + titleterms[excluded[i]] == file || + $u.contains(terms[excluded[i]] || [], file) || + $u.contains(titleterms[excluded[i]] || [], file)) { + valid = false; + break; + } + } - // select one (max) score for the file. - const score = Math.max(...wordList.map((w) => scoreMap.get(file)[w])); - // add result to the result list - results.push([ - docNames[file], - titles[file], - "", - null, - score, - filenames[file], - ]); + // if we have still a valid result we can add it to the result list + if (valid) { + // select one (max) score for the file. + // for better ranking, we should calculate ranking by using words statistics like basic tf-idf... + var score = $u.max($u.map(fileMap[file], function(w){return scoreMap[file][w]})); + results.push([docnames[file], titles[file], '', null, score, filenames[file]]); + } } return results; }, @@ -499,33 +492,34 @@ const Search = { /** * helper function to return a node containing the * search summary for a given text. keywords is a list - * of stemmed words, highlightWords is the list of normal, unstemmed + * of stemmed words, hlwords is the list of normal, unstemmed * words. the first one is used to find the occurrence, the * latter for highlighting it. */ - makeSearchSummary: (htmlText, keywords, highlightWords) => { - const text = Search.htmlToText(htmlText).toLowerCase(); - if (text === "") return null; - - const actualStartPosition = [...keywords] - .map((k) => text.indexOf(k.toLowerCase())) - .filter((i) => i > -1) - .slice(-1)[0]; - const startWithContext = Math.max(actualStartPosition - 120, 0); - - const top = startWithContext === 0 ? "" : "..."; - const tail = startWithContext + 240 < text.length ? "..." : ""; - - let summary = document.createElement("div"); - summary.classList.add("context"); - summary.innerText = top + text.substr(startWithContext, 240).trim() + tail; - - highlightWords.forEach((highlightWord) => - _highlightText(summary, highlightWord, "highlighted") - ); - - return summary; - }, + makeSearchSummary : function(htmlText, keywords, hlwords) { + var text = Search.htmlToText(htmlText); + if (text == "") { + return null; + } + var textLower = text.toLowerCase(); + var start = 0; + $.each(keywords, function() { + var i = textLower.indexOf(this.toLowerCase()); + if (i > -1) + start = i; + }); + start = Math.max(start - 120, 0); + var excerpt = ((start > 0) ? '...' : '') + + $.trim(text.substr(start, 240)) + + ((start + 240 - text.length) ? '...' : ''); + var rv = $('<p class="context"></p>').text(excerpt); + $.each(hlwords, function() { + rv = rv.highlightText(this, 'highlighted'); + }); + return rv; + } }; -_ready(Search.init); +$(document).ready(function() { + Search.init(); +}); diff --git a/docsrc/build/html/docs/install/Alveo_X11.html b/docsrc/build/html/docs/install/Alveo_X11.html index 4303cfa37..07cd63725 100644 --- a/docsrc/build/html/docs/install/Alveo_X11.html +++ b/docsrc/build/html/docs/install/Alveo_X11.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script> <script src="../../_static/jquery.js"></script> <script src="../../_static/underscore.js"></script> - <script src="../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../_static/doctools.js"></script> <script src="../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="x11-support-for-running-vitis-ai-docker-with-alveo"> -<h1>X11 Support for Running Vitis AI Docker with Alveo<a class="headerlink" href="#x11-support-for-running-vitis-ai-docker-with-alveo" title="Permalink to this heading">¶</a></h1> +<h1>X11 Support for Running Vitis AI Docker with Alveo<a class="headerlink" href="#x11-support-for-running-vitis-ai-docker-with-alveo" title="Permalink to this headline">¶</a></h1> <p>If you are running Vitis∣ AI docker with Alveo∣ card and want to use X11 support for graphics (for example, some demo applications in VART and Vitis AI Library for Alveo need to display images or video), add the following line into the <em>docker_run_params</em> variable definition in <code class="docutils literal notranslate"><span class="pre">docker_run.sh</span></code> script:</p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span>-e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -v $HOME/.Xauthority:/tmp/.Xauthority \ </pre></div> diff --git a/docsrc/build/html/docs/install/China_Ubuntu_servers.html b/docsrc/build/html/docs/install/China_Ubuntu_servers.html index 085e6066b..bc780ab06 100644 --- a/docsrc/build/html/docs/install/China_Ubuntu_servers.html +++ b/docsrc/build/html/docs/install/China_Ubuntu_servers.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script> <script src="../../_static/jquery.js"></script> <script src="../../_static/underscore.js"></script> - <script src="../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../_static/doctools.js"></script> <script src="../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="access-to-ubuntu-mirrors-from-within-china"> -<h1>Access to Ubuntu Mirrors from within China<a class="headerlink" href="#access-to-ubuntu-mirrors-from-within-china" title="Permalink to this heading">¶</a></h1> +<h1>Access to Ubuntu Mirrors from within China<a class="headerlink" href="#access-to-ubuntu-mirrors-from-within-china" title="Permalink to this headline">¶</a></h1> <p>Vitis™ AI Docker images leverage Ubuntu 20.04. In your Ubuntu installation, the file <strong>/etc/apt/sources.list</strong> specifies the default server location for Ubuntu packages. For example:</p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">deb</span> <span class="n">http</span><span class="p">:</span><span class="o">//</span><span class="n">us</span><span class="o">.</span><span class="n">archive</span><span class="o">.</span><span class="n">ubuntu</span><span class="o">.</span><span class="n">com</span><span class="o">/</span><span class="n">ubuntu</span><span class="o">/</span> <span class="n">focal</span> <span class="n">universe</span> </pre></div> diff --git a/docsrc/build/html/docs/install/Vitis AI 1.3.2 April 2021 Patch.html b/docsrc/build/html/docs/install/Vitis AI 1.3.2 April 2021 Patch.html index f0e8c16ee..e1e004f2c 100644 --- a/docsrc/build/html/docs/install/Vitis AI 1.3.2 April 2021 Patch.html +++ b/docsrc/build/html/docs/install/Vitis AI 1.3.2 April 2021 Patch.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script> <script src="../../_static/jquery.js"></script> <script src="../../_static/underscore.js"></script> - <script src="../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../_static/doctools.js"></script> <script src="../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../workflow.html">Overview</a></li> @@ -134,9 +138,9 @@ <div itemprop="articleBody"> <section id="april-2021-patch"> -<h1>April 2021 Patch<a class="headerlink" href="#april-2021-patch" title="Permalink to this heading">¶</a></h1> +<h1>April 2021 Patch<a class="headerlink" href="#april-2021-patch" title="Permalink to this headline">¶</a></h1> <section id="new-features-highlights"> -<h2>New Features/Highlights<a class="headerlink" href="#new-features-highlights" title="Permalink to this heading">¶</a></h2> +<h2>New Features/Highlights<a class="headerlink" href="#new-features-highlights" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p>Fixed a compiler bug about “XIR_REMOVE_OP_FAIL”</p></li> <li><p>Updated target description to support pool kernel=1 in DPUCZDX8G</p></li> @@ -149,7 +153,7 @@ <h2>New Features/Highlights<a class="headerlink" href="#new-features-highlights" </ul> </section> <section id="new-packages"> -<h2>New Packages<a class="headerlink" href="#new-packages" title="Permalink to this heading">¶</a></h2> +<h2>New Packages<a class="headerlink" href="#new-packages" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p><a class="reference external" href="https://www.xilinx.com/bin/public/openDownload?filename=unilog-1.3.2-h7b12538_35.tar.bz2">unilog-1.3.2-h7b12538_35.tar.bz2</a></p></li> <li><p><a class="reference external" href="https://www.xilinx.com/bin/public/openDownload?filename=target_factory-1.3.2-hf484d3e_35.tar.bz2">target_factory-1.3.2-hf484d3e_35.tar.bz2</a></p></li> @@ -161,7 +165,7 @@ <h2>New Packages<a class="headerlink" href="#new-packages" title="Permalink to t <li><p><a class="reference external" href="https://www.xilinx.com/bin/public/openDownload?filename=xnnc-1.3.2-py37_48.tar.bz2">xnnc-1.3.2-py37_48.tar.bz2</a></p></li> </ul> <section id="installation"> -<h3>Installation<a class="headerlink" href="#installation" title="Permalink to this heading">¶</a></h3> +<h3>Installation<a class="headerlink" href="#installation" title="Permalink to this headline">¶</a></h3> <p>Download the packages from the link above.</p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span>sudo env PATH=/opt/vitis_ai/conda/bin:$PATH CONDA_PREFIX=/opt/vitis_ai/conda/envs/YOUR_ENV_NAME conda install PATCH_PACKAGE.tar.bz2 </pre></div> diff --git a/docsrc/build/html/docs/install/Vitis AI 2.0 Feb 2022 Patch.html b/docsrc/build/html/docs/install/Vitis AI 2.0 Feb 2022 Patch.html index 59732526c..555f4b0ea 100644 --- a/docsrc/build/html/docs/install/Vitis AI 2.0 Feb 2022 Patch.html +++ b/docsrc/build/html/docs/install/Vitis AI 2.0 Feb 2022 Patch.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script> <script src="../../_static/jquery.js"></script> <script src="../../_static/underscore.js"></script> - <script src="../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../_static/doctools.js"></script> <script src="../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../workflow.html">Overview</a></li> @@ -134,9 +138,9 @@ <div itemprop="articleBody"> <section id="february-2022-patch"> -<h1>February 2022 Patch<a class="headerlink" href="#february-2022-patch" title="Permalink to this heading">¶</a></h1> +<h1>February 2022 Patch<a class="headerlink" href="#february-2022-patch" title="Permalink to this headline">¶</a></h1> <section id="new-features-highlights"> -<h2>New Features/Highlights<a class="headerlink" href="#new-features-highlights" title="Permalink to this heading">¶</a></h2> +<h2>New Features/Highlights<a class="headerlink" href="#new-features-highlights" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p>Fixed a compiler bug for pt_yolox_TT100K_640_640_73G_2.0 model</p></li> <li><p>Fixed a quantizer bug in QAT in tensorflow 1.15 models</p></li> @@ -145,7 +149,7 @@ <h2>New Features/Highlights<a class="headerlink" href="#new-features-highlights" </ul> </section> <section id="new-packages"> -<h2>New Packages<a class="headerlink" href="#new-packages" title="Permalink to this heading">¶</a></h2> +<h2>New Packages<a class="headerlink" href="#new-packages" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p><a class="reference external" href="https://www.xilinx.com/bin/public/openDownload?filename=unilog-2.0.1-hea4fdf2_32.tar.bz2">unilog-2.0.1-hea4fdf2_32.tar.bz2</a></p></li> <li><p><a class="reference external" href="https://www.xilinx.com/bin/public/openDownload?filename=target_factory-2.0.1-h680af44_32.tar.bz2">target_factory-2.0.1-h680af44_32.tar.bz2</a></p></li> @@ -165,7 +169,7 @@ <h2>New Packages<a class="headerlink" href="#new-packages" title="Permalink to t </ul> </section> <section id="installation"> -<h2>Installation<a class="headerlink" href="#installation" title="Permalink to this heading">¶</a></h2> +<h2>Installation<a class="headerlink" href="#installation" title="Permalink to this headline">¶</a></h2> <p>Download the packages from the link above. Apply the conda patch to the conda environment (Machine Learning framework) that you wish to update in this format</p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">sudo</span> <span class="n">conda</span> <span class="n">install</span> <span class="o">-</span><span class="n">n</span> <span class="o"><</span><span class="n">CONDA_ENVIRONMENT</span><span class="o">></span> <span class="o"><</span><span class="n">URL</span> <span class="ow">or</span> <span class="n">PATH</span> <span class="n">to</span> <span class="n">conda</span> <span class="n">package</span><span class="o">></span> diff --git a/docsrc/build/html/docs/install/Vitis AI 2.5 Aug 2022 Patch.html b/docsrc/build/html/docs/install/Vitis AI 2.5 Aug 2022 Patch.html index 4fcdce7fe..ca97306ee 100644 --- a/docsrc/build/html/docs/install/Vitis AI 2.5 Aug 2022 Patch.html +++ b/docsrc/build/html/docs/install/Vitis AI 2.5 Aug 2022 Patch.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script> <script src="../../_static/jquery.js"></script> <script src="../../_static/underscore.js"></script> - <script src="../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../_static/doctools.js"></script> <script src="../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../workflow.html">Overview</a></li> @@ -134,9 +138,9 @@ <div itemprop="articleBody"> <section id="august-2022-patch"> -<h1>August 2022 Patch<a class="headerlink" href="#august-2022-patch" title="Permalink to this heading">¶</a></h1> +<h1>August 2022 Patch<a class="headerlink" href="#august-2022-patch" title="Permalink to this headline">¶</a></h1> <section id="new-features-highlights"> -<h2>New Features/Highlights<a class="headerlink" href="#new-features-highlights" title="Permalink to this heading">¶</a></h2> +<h2>New Features/Highlights<a class="headerlink" href="#new-features-highlights" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p>Supported correlation 1d and correlation 2d operators with DPUCZDX8G and DPUCVDX8G</p></li> <li><p>Supported concatenate operator with multiple identical input tensors</p></li> @@ -144,7 +148,7 @@ <h2>New Features/Highlights<a class="headerlink" href="#new-features-highlights" </ul> </section> <section id="new-packages"> -<h2>New Packages<a class="headerlink" href="#new-packages" title="Permalink to this heading">¶</a></h2> +<h2>New Packages<a class="headerlink" href="#new-packages" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p><a class="reference external" href="https://www.xilinx.com/bin/public/openDownload?filename=target_factory-2.5.0-py36h680af44_202.tar.bz2">target_factory-2.5.0-py36h680af44_202.tar.bz2</a></p></li> <li><p><a class="reference external" href="https://www.xilinx.com/bin/public/openDownload?filename=target_factory-2.5.0-py37h680af44_202.tar.bz2">target_factory-2.5.0-py37h680af44_202.tar.bz2</a></p></li> @@ -157,7 +161,7 @@ <h2>New Packages<a class="headerlink" href="#new-packages" title="Permalink to t </ul> </section> <section id="installation"> -<h2>Installation<a class="headerlink" href="#installation" title="Permalink to this heading">¶</a></h2> +<h2>Installation<a class="headerlink" href="#installation" title="Permalink to this headline">¶</a></h2> <p>Download the packages from the link above. Apply the conda patch to the conda environment (Machine Learning framework) that you wish to update in this format.</p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">sudo</span> <span class="n">conda</span> <span class="n">install</span> <span class="o">-</span><span class="n">n</span> <span class="o"><</span><span class="n">CONDA_ENVIRONMENT</span><span class="o">></span> <span class="o"><</span><span class="n">URL</span> <span class="ow">or</span> <span class="n">PATH</span> <span class="n">to</span> <span class="n">conda</span> <span class="n">package</span><span class="o">></span> diff --git a/docsrc/build/html/docs/install/branching_tagging_strategy.html b/docsrc/build/html/docs/install/branching_tagging_strategy.html index 22c08d114..469ac3b67 100644 --- a/docsrc/build/html/docs/install/branching_tagging_strategy.html +++ b/docsrc/build/html/docs/install/branching_tagging_strategy.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script> <script src="../../_static/jquery.js"></script> <script src="../../_static/underscore.js"></script> - <script src="../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../_static/doctools.js"></script> <script src="../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../genindex.html" /> @@ -73,6 +72,11 @@ <li class="toctree-l1"><a class="reference internal" href="../quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../workflow.html">Overview</a></li> @@ -136,7 +140,7 @@ <div itemprop="articleBody"> <section id="branching-tagging-strategy"> -<h1>Branching / Tagging Strategy<a class="headerlink" href="#branching-tagging-strategy" title="Permalink to this heading">¶</a></h1> +<h1>Branching / Tagging Strategy<a class="headerlink" href="#branching-tagging-strategy" title="Permalink to this headline">¶</a></h1> <p>Each updated release of Vitis™ AI is pushed directly to <a class="reference external" href="https://github.com/Xilinx/Vitis-AI/tree/master">master</a> on the release day. In addition, at that time, a tag is created for the repository; for example, see the tag for <a class="reference external" href="https://github.com/Xilinx/Vitis-AI/tree/v3.0">v3.0</a>.</p> <p>Following the release, the tagged version remains static, and additional inter-version updates are pushed to the master branch. Thus, the master branch is always the latest release and will have the latest fixes and documentation. The branch associated with a specific release (which will be “master” during the lifecycle of that release) will become a branch at the time of the next release.</p> <p>Similarly, if you use a previous version of Vitis AI, the branch associated with that previous revision will contain updates to the tagged release for that same version. For instance, in the case of release 2.0, the <a class="reference external" href="https://github.com/Xilinx/Vitis-AI/tree/2.0">branch</a> contains updates that the <a class="reference external" href="https://github.com/Xilinx/Vitis-AI/tree/v2.0">tag</a> does not.</p> diff --git a/docsrc/build/html/docs/install/install.html b/docsrc/build/html/docs/install/install.html index 8d20a564b..c2a0d478f 100644 --- a/docsrc/build/html/docs/install/install.html +++ b/docsrc/build/html/docs/install/install.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script> <script src="../../_static/jquery.js"></script> <script src="../../_static/underscore.js"></script> - <script src="../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../_static/doctools.js"></script> <script src="../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../genindex.html" /> @@ -89,6 +88,11 @@ <li class="toctree-l1"><a class="reference internal" href="../quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../workflow.html">Overview</a></li> @@ -152,7 +156,7 @@ <div itemprop="articleBody"> <section id="host-installation-instructions"> -<h1>Host Installation Instructions<a class="headerlink" href="#host-installation-instructions" title="Permalink to this heading">¶</a></h1> +<h1>Host Installation Instructions<a class="headerlink" href="#host-installation-instructions" title="Permalink to this headline">¶</a></h1> <p>The purpose of this page is to provide the developer with guidance on the installation of Vitis™ AI tools on the development host PC. Instructions for installation of Vitis AI on the target are covered separately in the Quickstart tutorials.</p> <p>There are two primary options for installation:</p> <p><strong>[Option1]</strong> Directly leverage pre-built Docker containers available from Docker Hub: <a class="reference external" href="https://hub.docker.com/r/xilinx/">xilinx/vitis-ai</a>.</p> @@ -172,26 +176,26 @@ <h1>Host Installation Instructions<a class="headerlink" href="#host-installation </div> </div></blockquote> <section id="pre-requisites"> -<h2>Pre-requisites<a class="headerlink" href="#pre-requisites" title="Permalink to this heading">¶</a></h2> +<h2>Pre-requisites<a class="headerlink" href="#pre-requisites" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p>Confirm that your development machine meets the minimum <a class="reference internal" href="../reference/system_requirements.html"><span class="doc">Host System Requirements</span></a>.</p></li> <li><p>Confirm that you have at least <strong>100GB</strong> of free space in the target partition.</p></li> </ul> </section> <section id="preparing-for-the-installation"> -<h2>Preparing for the Installation<a class="headerlink" href="#preparing-for-the-installation" title="Permalink to this heading">¶</a></h2> +<h2>Preparing for the Installation<a class="headerlink" href="#preparing-for-the-installation" title="Permalink to this headline">¶</a></h2> <p>Refer to the relevant section (CPU-only, ROCm, CUDA) below to prepare your selected host for Docker installation.</p> <section id="cpu-only-host-initial-preparation"> -<h3>CPU-only Host Initial Preparation<a class="headerlink" href="#cpu-only-host-initial-preparation" title="Permalink to this heading">¶</a></h3> +<h3>CPU-only Host Initial Preparation<a class="headerlink" href="#cpu-only-host-initial-preparation" title="Permalink to this headline">¶</a></h3> <p>CPU hosts require no special preparation.</p> </section> <section id="rocm-gpu-host-initial-preparation"> -<h3>ROCm GPU Host Initial Preparation<a class="headerlink" href="#rocm-gpu-host-initial-preparation" title="Permalink to this heading">¶</a></h3> +<h3>ROCm GPU Host Initial Preparation<a class="headerlink" href="#rocm-gpu-host-initial-preparation" title="Permalink to this headline">¶</a></h3> <p>For ROCm hosts, developers need to install ROCm. Vitis AI 3.5 supports ROCm v5.5.</p> <p>The below steps describe the installation of ROCm for Ubuntu 20.04 hosts. If you are leveraging a different host operating systems, please refer to <a class="reference external" href="https://docs.amd.com/bundle/ROCm-Installation-Guide-v5.5/page/Introduction_to_ROCm_Installation_Guide_for_Linux.html">the ROCm Installation Guide</a> .</p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">sudo</span> <span class="n">apt</span><span class="o">-</span><span class="n">get</span> <span class="n">update</span> -<span class="n">wget</span> <span class="n">https</span><span class="p">:</span><span class="o">//</span><span class="n">repo</span><span class="o">.</span><span class="n">radeon</span><span class="o">.</span><span class="n">com</span><span class="o">/</span><span class="n">amdgpu</span><span class="o">-</span><span class="n">install</span><span class="o">/</span><span class="mf">5.5</span><span class="o">/</span><span class="n">ubuntu</span><span class="o">/</span><span class="n">focal</span><span class="o">/</span><span class="n">amdgpu</span><span class="o">-</span><span class="n">install_5</span><span class="mf">.5.50500</span><span class="o">-</span><span class="mi">1</span><span class="n">_all</span><span class="o">.</span><span class="n">deb</span> -<span class="n">sudo</span> <span class="n">apt</span><span class="o">-</span><span class="n">get</span> <span class="n">install</span> <span class="o">./</span><span class="n">amdgpu</span><span class="o">-</span><span class="n">install_5</span><span class="mf">.5.50500</span><span class="o">-</span><span class="mi">1</span><span class="n">_all</span><span class="o">.</span><span class="n">deb</span> +<span class="n">wget</span> <span class="n">https</span><span class="p">:</span><span class="o">//</span><span class="n">repo</span><span class="o">.</span><span class="n">radeon</span><span class="o">.</span><span class="n">com</span><span class="o">/</span><span class="n">amdgpu</span><span class="o">-</span><span class="n">install</span><span class="o">/</span><span class="mf">5.5</span><span class="o">/</span><span class="n">ubuntu</span><span class="o">/</span><span class="n">focal</span><span class="o">/</span><span class="n">amdgpu</span><span class="o">-</span><span class="n">install_5</span><span class="o">.</span><span class="mf">5.50500</span><span class="o">-</span><span class="mi">1</span><span class="n">_all</span><span class="o">.</span><span class="n">deb</span> +<span class="n">sudo</span> <span class="n">apt</span><span class="o">-</span><span class="n">get</span> <span class="n">install</span> <span class="o">./</span><span class="n">amdgpu</span><span class="o">-</span><span class="n">install_5</span><span class="o">.</span><span class="mf">5.50500</span><span class="o">-</span><span class="mi">1</span><span class="n">_all</span><span class="o">.</span><span class="n">deb</span> <span class="n">sudo</span> <span class="n">amdgpu</span><span class="o">-</span><span class="n">install</span> <span class="o">--</span><span class="n">usecase</span><span class="o">=</span><span class="n">hiplibsdk</span><span class="p">,</span><span class="n">rocm</span> </pre></div> </div> @@ -216,7 +220,7 @@ <h3>ROCm GPU Host Initial Preparation<a class="headerlink" href="#rocm-gpu-host- <p>You may also refer to the <a class="reference external" href="https://docs.amd.com/bundle/ROCm-Installation-Guide-v5.5/page/How_to_Install_ROCm.html">ROCm Docker installation documentation</a> for further details.</p> </section> <section id="cuda-gpu-host-initial-preparation"> -<h3>CUDA GPU Host Initial Preparation<a class="headerlink" href="#cuda-gpu-host-initial-preparation" title="Permalink to this heading">¶</a></h3> +<h3>CUDA GPU Host Initial Preparation<a class="headerlink" href="#cuda-gpu-host-initial-preparation" title="Permalink to this headline">¶</a></h3> <p>If you are leveraging a Vitis AI Docker Image with CUDA-capable GPU acceleration, you must install the NVIDIA Container Toolkit, which enables GPU support inside the Docker container. Please refer to the official NVIDIA <a class="reference external" href="https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html">documentation</a> for additional information.</p> <p>For Ubuntu distributions, NVIDIA driver and Container Toolkit installation can generally be accomplished as in the following example (use sudo for non-root users):</p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">apt</span> <span class="n">purge</span> <span class="n">nvidia</span><span class="o">*</span> <span class="n">libnvidia</span><span class="o">*</span> @@ -232,7 +236,7 @@ <h3>CUDA GPU Host Initial Preparation<a class="headerlink" href="#cuda-gpu-host- <p>The output should appear similar to the below, indicating the activation of the driver, and the successful installation of CUDA:</p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="o">/</span><span class="n">Thu</span> <span class="n">Dec</span> <span class="mi">8</span> <span class="mi">21</span><span class="p">:</span><span class="mi">39</span><span class="p">:</span><span class="mi">42</span> <span class="mi">2022</span> <span class="o">/+-----------------------------------------------------------------------------+</span> -<span class="o">/|</span> <span class="n">NVIDIA</span><span class="o">-</span><span class="n">SMI</span> <span class="mf">470.161.03</span> <span class="n">Driver</span> <span class="n">Version</span><span class="p">:</span> <span class="mf">470.161.03</span> <span class="n">CUDA</span> <span class="n">Version</span><span class="p">:</span> <span class="mf">11.4</span> <span class="o">|</span> +<span class="o">/|</span> <span class="n">NVIDIA</span><span class="o">-</span><span class="n">SMI</span> <span class="mf">470.161</span><span class="o">.</span><span class="mi">03</span> <span class="n">Driver</span> <span class="n">Version</span><span class="p">:</span> <span class="mf">470.161</span><span class="o">.</span><span class="mi">03</span> <span class="n">CUDA</span> <span class="n">Version</span><span class="p">:</span> <span class="mf">11.4</span> <span class="o">|</span> <span class="o">/|-------------------------------+----------------------+----------------------+</span> <span class="o">/|</span> <span class="n">GPU</span> <span class="n">Name</span> <span class="n">Persistence</span><span class="o">-</span><span class="n">M</span><span class="o">|</span> <span class="n">Bus</span><span class="o">-</span><span class="n">Id</span> <span class="n">Disp</span><span class="o">.</span><span class="n">A</span> <span class="o">|</span> <span class="n">Volatile</span> <span class="n">Uncorr</span><span class="o">.</span> <span class="n">ECC</span> <span class="o">|</span> <span class="o">/|</span> <span class="n">Fan</span> <span class="n">Temp</span> <span class="n">Perf</span> <span class="n">Pwr</span><span class="p">:</span><span class="n">Usage</span><span class="o">/</span><span class="n">Cap</span><span class="o">|</span> <span class="n">Memory</span><span class="o">-</span><span class="n">Usage</span> <span class="o">|</span> <span class="n">GPU</span><span class="o">-</span><span class="n">Util</span> <span class="n">Compute</span> <span class="n">M</span><span class="o">.</span> <span class="o">|</span> @@ -255,7 +259,7 @@ <h3>CUDA GPU Host Initial Preparation<a class="headerlink" href="#cuda-gpu-host- </section> </section> <section id="docker-install-and-verification"> -<h2>Docker Install and Verification<a class="headerlink" href="#docker-install-and-verification" title="Permalink to this heading">¶</a></h2> +<h2>Docker Install and Verification<a class="headerlink" href="#docker-install-and-verification" title="Permalink to this headline">¶</a></h2> <p>Once you are confident that your host has been prepared according to the above guidance refer to official Docker <a class="reference external" href="https://docs.docker.com/engine/install/">documentation</a> to install the Docker engine.</p> <blockquote> <div><div class="admonition important"> @@ -273,7 +277,7 @@ <h2>Docker Install and Verification<a class="headerlink" href="#docker-install-a </div> </section> <section id="clone-the-repository"> -<h2>Clone The Repository<a class="headerlink" href="#clone-the-repository" title="Permalink to this heading">¶</a></h2> +<h2>Clone The Repository<a class="headerlink" href="#clone-the-repository" title="Permalink to this headline">¶</a></h2> <p>If you have not already done so, you should now clone the Vitis AI repository to the host machine as follows:</p> <div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>git clone https://github.com/Xilinx/Vitis-AI <span class="nb">cd</span> Vitis-AI @@ -281,7 +285,7 @@ <h2>Clone The Repository<a class="headerlink" href="#clone-the-repository" title </div> </section> <section id="leverage-vitis-ai-containers"> -<h2>Leverage Vitis AI Containers<a class="headerlink" href="#leverage-vitis-ai-containers" title="Permalink to this heading">¶</a></h2> +<h2>Leverage Vitis AI Containers<a class="headerlink" href="#leverage-vitis-ai-containers" title="Permalink to this headline">¶</a></h2> <p>You are now ready to start working with the Vitis AI Docker container. At this stage you will choose whether you wish to use the pre-built container, or build the container from scripts.</p> <p>Starting with the Vitis AI 3.0 release, pre-built Docker containers are framework specific. Furthermore, we have extended support to include AMD ROCm enabled GPUs. Users thus now have three options for the host Docker:</p> @@ -292,13 +296,13 @@ <h2>Leverage Vitis AI Containers<a class="headerlink" href="#leverage-vitis-ai-c </ol> <p>CUDA-capable GPUs are not supported by pre-built containers, and thus the developer must <a class="reference internal" href="#build-docker-from-scripts"><span class="std std-ref">build the container from scripts</span></a>.</p> <section id="option-1-leverage-the-pre-built-docker"> -<h3>Option 1: Leverage the Pre-Built Docker<a class="headerlink" href="#option-1-leverage-the-pre-built-docker" title="Permalink to this heading">¶</a></h3> +<h3>Option 1: Leverage the Pre-Built Docker<a class="headerlink" href="#option-1-leverage-the-pre-built-docker" title="Permalink to this headline">¶</a></h3> <p>To download the most up-to-date version of the pre-built docker, you will need execute the appropriate command, using the following general format:</p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">docker</span> <span class="n">pull</span> <span class="n">xilinx</span><span class="o">/</span><span class="n">vitis</span><span class="o">-</span><span class="n">ai</span><span class="o">-<</span><span class="n">Framework</span><span class="o">>-<</span><span class="n">Arch</span><span class="o">></span><span class="p">:</span><span class="n">latest</span> </pre></div> </div> <p>Where <code class="docutils literal notranslate"><span class="pre"><Framework></span></code> and <code class="docutils literal notranslate"><span class="pre"><Arch></span></code> can be selected as in the table below:</p> -<table class="docutils align-default" id="id1"> +<table class="colwidths-given docutils align-default" id="id1"> <caption><span class="caption-text">Vitis AI Pre-built Container Options</span><a class="headerlink" href="#id1" title="Permalink to this table">¶</a></caption> <colgroup> <col style="width: 50%" /> @@ -354,7 +358,7 @@ <h3>Option 1: Leverage the Pre-Built Docker<a class="headerlink" href="#option-1 </div> </section> <section id="option-2-build-the-docker-container-from-xilinx-recipes"> -<span id="build-docker-from-scripts"></span><h3>Option 2: Build the Docker Container from Xilinx Recipes<a class="headerlink" href="#option-2-build-the-docker-container-from-xilinx-recipes" title="Permalink to this heading">¶</a></h3> +<span id="build-docker-from-scripts"></span><h3>Option 2: Build the Docker Container from Xilinx Recipes<a class="headerlink" href="#option-2-build-the-docker-container-from-xilinx-recipes" title="Permalink to this headline">¶</a></h3> <p>As of this release, a single unified docker build script is provided. This script enables developers to build a container for a specific framework. This single unified script supports CPU-only hosts, GPU-capable hosts, and AMD ROCm-capable hosts.</p> <p>In most cases, developers will want to leverage the GPU or ROCm-enabled Dockers as they provide support for accelerated quantization and pruning. For NVIDIA graphics cards that meet Vitis AI CUDA requirements (<a class="reference internal" href="../reference/system_requirements.html"><span class="doc">listed here</span></a>) you can leverage the <code class="docutils literal notranslate"><span class="pre">gpu</span></code> Docker.</p> <div class="admonition important"> @@ -370,7 +374,7 @@ <h3>Option 1: Leverage the Pre-Built Docker<a class="headerlink" href="#option-1 </div> <p>Here you will find the docker_build.sh script that will be used to build the container. Execute the script as follows: <code class="docutils literal notranslate"><span class="pre">./docker_build.sh</span> <span class="pre">-t</span> <span class="pre"><DOCKER_TYPE></span> <span class="pre">-f</span> <span class="pre"><FRAMEWORK></span></code></p> <p>The supported build options are:</p> -<table class="docutils align-default" id="id2"> +<table class="colwidths-given docutils align-default" id="id2"> <caption><span class="caption-text">Vitis AI Docker Container Build Options</span><a class="headerlink" href="#id2" title="Permalink to this table">¶</a></caption> <colgroup> <col style="width: 20%" /> @@ -441,13 +445,13 @@ <h3>Option 1: Leverage the Pre-Built Docker<a class="headerlink" href="#option-1 <p>The <code class="docutils literal notranslate"><span class="pre">docker_build</span></code> process may take several hours to complete. Assuming the build is successful, move on to the steps below. If the build was unsuccessful, inspect the log output for specifics. In many cases, a specific package could not be located, most likely due to remote server connectivity. Often, simply re-running the build script will result in success. In the event that you continue to run into problems, please reach out for support.</p> </div> <p>If the Docker has been enabled with CUDA-capable GPU support, do a final test to ensure that the GPU is visible by executing the following command:</p> -<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">docker</span> <span class="n">run</span> <span class="o">--</span><span class="n">gpus</span> <span class="nb">all</span> <span class="n">nvidia</span><span class="o">/</span><span class="n">cuda</span><span class="p">:</span><span class="mf">11.3.1</span><span class="o">-</span><span class="n">cudnn8</span><span class="o">-</span><span class="n">runtime</span><span class="o">-</span><span class="n">ubuntu20</span><span class="mf">.04</span> <span class="n">nvidia</span><span class="o">-</span><span class="n">smi</span> +<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">docker</span> <span class="n">run</span> <span class="o">--</span><span class="n">gpus</span> <span class="nb">all</span> <span class="n">nvidia</span><span class="o">/</span><span class="n">cuda</span><span class="p">:</span><span class="mf">11.3</span><span class="o">.</span><span class="mi">1</span><span class="o">-</span><span class="n">cudnn8</span><span class="o">-</span><span class="n">runtime</span><span class="o">-</span><span class="n">ubuntu20</span><span class="o">.</span><span class="mi">04</span> <span class="n">nvidia</span><span class="o">-</span><span class="n">smi</span> </pre></div> </div> <p>This should result in an output similar to the below:</p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="o">/</span><span class="n">Thu</span> <span class="n">Dec</span> <span class="mi">8</span> <span class="mi">21</span><span class="p">:</span><span class="mi">39</span><span class="p">:</span><span class="mi">42</span> <span class="mi">2022</span> <span class="o">/+-----------------------------------------------------------------------------+</span> -<span class="o">/|</span> <span class="n">NVIDIA</span><span class="o">-</span><span class="n">SMI</span> <span class="mf">470.161.03</span> <span class="n">Driver</span> <span class="n">Version</span><span class="p">:</span> <span class="mf">470.161.03</span> <span class="n">CUDA</span> <span class="n">Version</span><span class="p">:</span> <span class="mf">11.4</span> <span class="o">|</span> +<span class="o">/|</span> <span class="n">NVIDIA</span><span class="o">-</span><span class="n">SMI</span> <span class="mf">470.161</span><span class="o">.</span><span class="mi">03</span> <span class="n">Driver</span> <span class="n">Version</span><span class="p">:</span> <span class="mf">470.161</span><span class="o">.</span><span class="mi">03</span> <span class="n">CUDA</span> <span class="n">Version</span><span class="p">:</span> <span class="mf">11.4</span> <span class="o">|</span> <span class="o">/|-------------------------------+----------------------+----------------------+</span> <span class="o">/|</span> <span class="n">GPU</span> <span class="n">Name</span> <span class="n">Persistence</span><span class="o">-</span><span class="n">M</span><span class="o">|</span> <span class="n">Bus</span><span class="o">-</span><span class="n">Id</span> <span class="n">Disp</span><span class="o">.</span><span class="n">A</span> <span class="o">|</span> <span class="n">Volatile</span> <span class="n">Uncorr</span><span class="o">.</span> <span class="n">ECC</span> <span class="o">|</span> <span class="o">/|</span> <span class="n">Fan</span> <span class="n">Temp</span> <span class="n">Perf</span> <span class="n">Pwr</span><span class="p">:</span><span class="n">Usage</span><span class="o">/</span><span class="n">Cap</span><span class="o">|</span> <span class="n">Memory</span><span class="o">-</span><span class="n">Usage</span> <span class="o">|</span> <span class="n">GPU</span><span class="o">-</span><span class="n">Util</span> <span class="n">Compute</span> <span class="n">M</span><span class="o">.</span> <span class="o">|</span> diff --git a/docsrc/build/html/docs/install/install_docker.html b/docsrc/build/html/docs/install/install_docker.html index 62c2076f1..e756dbef6 100644 --- a/docsrc/build/html/docs/install/install_docker.html +++ b/docsrc/build/html/docs/install/install_docker.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script> <script src="../../_static/jquery.js"></script> <script src="../../_static/underscore.js"></script> - <script src="../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../_static/doctools.js"></script> <script src="../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="installing-docker"> -<h1>Installing Docker<a class="headerlink" href="#installing-docker" title="Permalink to this heading">¶</a></h1> +<h1>Installing Docker<a class="headerlink" href="#installing-docker" title="Permalink to this headline">¶</a></h1> <div class="admonition important"> <p class="admonition-title">Important</p> <p>In most cases, Developers will want to leverage the CUDA-capable or ROCm Dockers as they support accelerated quantization. Before installing Docker for CUDA-capable GPUs, ensure that you understand the NVIDIA driver, CUDA <a class="reference internal" href="../reference/system_requirements.html"><span class="doc">Host System Requirements</span></a> for Vitis AI.</p> @@ -144,7 +148,7 @@ <h1>Installing Docker<a class="headerlink" href="#installing-docker" title="Perm <p>For ROCm distributions, developers should reference <a class="reference external" href="https://github.com/RadeonOpenCompute/ROCm-docker/blob/master/quick-start.md">ROCm docker installation</a> for further details of docker installation.</p> </div> <section id="installing-nvidia-container-toolkit"> -<h2>Installing NVIDIA Container Toolkit<a class="headerlink" href="#installing-nvidia-container-toolkit" title="Permalink to this heading">¶</a></h2> +<h2>Installing NVIDIA Container Toolkit<a class="headerlink" href="#installing-nvidia-container-toolkit" title="Permalink to this headline">¶</a></h2> <p>If you are building the Vitis AI Docker Image with CUDA-capable GPU acceleration, you must install the NVIDIA Container Toolkit, which enables GPU support inside the Docker container. Please refer to the official NVIDIA <a class="reference external" href="https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html">documentation</a> for additional information.</p> <p>For Ubuntu distributions, NVIDIA driver and Container Toolkit installation can generally be accomplished as displayed in the following example (use sudo for non-root users):</p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">apt</span> <span class="n">purge</span> <span class="n">nvidia</span><span class="o">*</span> <span class="n">libnvidia</span><span class="o">*</span> @@ -160,7 +164,7 @@ <h2>Installing NVIDIA Container Toolkit<a class="headerlink" href="#installing-n <p>The output should appear similar to this:</p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="o">/</span><span class="n">Thu</span> <span class="n">Dec</span> <span class="mi">8</span> <span class="mi">21</span><span class="p">:</span><span class="mi">39</span><span class="p">:</span><span class="mi">42</span> <span class="mi">2022</span> <span class="o">/+-----------------------------------------------------------------------------+</span> -<span class="o">/|</span> <span class="n">NVIDIA</span><span class="o">-</span><span class="n">SMI</span> <span class="mf">470.161.03</span> <span class="n">Driver</span> <span class="n">Version</span><span class="p">:</span> <span class="mf">470.161.03</span> <span class="n">CUDA</span> <span class="n">Version</span><span class="p">:</span> <span class="mf">11.4</span> <span class="o">|</span> +<span class="o">/|</span> <span class="n">NVIDIA</span><span class="o">-</span><span class="n">SMI</span> <span class="mf">470.161</span><span class="o">.</span><span class="mi">03</span> <span class="n">Driver</span> <span class="n">Version</span><span class="p">:</span> <span class="mf">470.161</span><span class="o">.</span><span class="mi">03</span> <span class="n">CUDA</span> <span class="n">Version</span><span class="p">:</span> <span class="mf">11.4</span> <span class="o">|</span> <span class="o">/|-------------------------------+----------------------+----------------------+</span> <span class="o">/|</span> <span class="n">GPU</span> <span class="n">Name</span> <span class="n">Persistence</span><span class="o">-</span><span class="n">M</span><span class="o">|</span> <span class="n">Bus</span><span class="o">-</span><span class="n">Id</span> <span class="n">Disp</span><span class="o">.</span><span class="n">A</span> <span class="o">|</span> <span class="n">Volatile</span> <span class="n">Uncorr</span><span class="o">.</span> <span class="n">ECC</span> <span class="o">|</span> <span class="o">/|</span> <span class="n">Fan</span> <span class="n">Temp</span> <span class="n">Perf</span> <span class="n">Pwr</span><span class="p">:</span><span class="n">Usage</span><span class="o">/</span><span class="n">Cap</span><span class="o">|</span> <span class="n">Memory</span><span class="o">-</span><span class="n">Usage</span> <span class="o">|</span> <span class="n">GPU</span><span class="o">-</span><span class="n">Util</span> <span class="n">Compute</span> <span class="n">M</span><span class="o">.</span> <span class="o">|</span> @@ -182,7 +186,7 @@ <h2>Installing NVIDIA Container Toolkit<a class="headerlink" href="#installing-n <p>Refer <a class="reference external" href="https://docs.nvidia.com/datacenter/tesla/tesla-installation-notes/index.html">NVIDIA driver installation</a> for further details of driver installation.</p> </section> <section id="docker-install"> -<h2>Docker Install<a class="headerlink" href="#docker-install" title="Permalink to this heading">¶</a></h2> +<h2>Docker Install<a class="headerlink" href="#docker-install" title="Permalink to this headline">¶</a></h2> <p>Once you are confident that your system meets any pre-requisites for Vitis AI Docker CUDA or ROCm GPU support, refer to official Docker <a class="reference external" href="https://docs.docker.com/engine/install/">documentation</a> to install the Docker engine.</p> </section> </section> diff --git a/docsrc/build/html/docs/install/patch_instructions.html b/docsrc/build/html/docs/install/patch_instructions.html index 6f851a4db..98557a670 100644 --- a/docsrc/build/html/docs/install/patch_instructions.html +++ b/docsrc/build/html/docs/install/patch_instructions.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script> <script src="../../_static/jquery.js"></script> <script src="../../_static/underscore.js"></script> - <script src="../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../_static/doctools.js"></script> <script src="../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="installing-a-vitis-ai-patch"> -<h1>Installing a Vitis AI Patch<a class="headerlink" href="#installing-a-vitis-ai-patch" title="Permalink to this heading">¶</a></h1> +<h1>Installing a Vitis AI Patch<a class="headerlink" href="#installing-a-vitis-ai-patch" title="Permalink to this headline">¶</a></h1> <p>Most Vitis™ AI components consist of Anaconda packages. These packages are distributed as tarballs, for example <a class="reference external" href="https://www.xilinx.com/bin/public/openDownload?filename=unilog-1.3.2-h7b12538_35.tar.bz2">unilog-1.3.2-h7b12538_35.tar.bz2</a>.</p> <p>You can install the patches by starting the Vitis AI Docker container, and installing the package to a specific conda environment. For example patching the <code class="docutils literal notranslate"><span class="pre">unilog</span></code> package in the <code class="docutils literal notranslate"><span class="pre">vitis-ai-caffe</span></code> conda environment:</p> diff --git a/docsrc/build/html/docs/quickstart/v70.html b/docsrc/build/html/docs/quickstart/v70.html index 8672b426e..6ff85b02a 100644 --- a/docsrc/build/html/docs/quickstart/v70.html +++ b/docsrc/build/html/docs/quickstart/v70.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,12 +30,11 @@ <script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script> <script src="../../_static/jquery.js"></script> <script src="../../_static/underscore.js"></script> - <script src="../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../_static/doctools.js"></script> <script src="../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../genindex.html" /> <link rel="search" title="Search" href="../../search.html" /> - <link rel="next" title="Overview" href="../workflow.html" /> + <link rel="next" title="Vitis AI Model Zoo" href="../getting-started-model-zoo.html" /> <link rel="prev" title="Quick Start Guide for Versal™ AI Edge VEK280" href="vek280.html" /> </head> @@ -97,6 +96,11 @@ </ul> </li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../workflow.html">Overview</a></li> @@ -160,35 +164,35 @@ <div itemprop="articleBody"> <section id="quick-start-guide-for-alveo-v70"> -<h1>Quick Start Guide for Alveo V70<a class="headerlink" href="#quick-start-guide-for-alveo-v70" title="Permalink to this heading">¶</a></h1> +<h1>Quick Start Guide for Alveo V70<a class="headerlink" href="#quick-start-guide-for-alveo-v70" title="Permalink to this headline">¶</a></h1> <p>The AMD <strong>DPUCV2DX8G</strong> for the Alveo™ V70 is a configurable computation engine dedicated to convolutional neural networks. It supports a highly optimized instruction set, enabling the deployment of most convolutional neural networks. The following instructions will help you install the software and packages required to support V70.</p> -<a class="reference internal image-reference" href="../../_images/V70.PNG"><img alt="../../_images/V70.PNG" src="../../_images/V70.PNG" style="width: 1300px;" /></a> +<a class="reference internal image-reference" href="docs/reference/images/V70.PNG"><img alt="docs/reference/images/V70.PNG" src="docs/reference/images/V70.PNG" style="width: 1300px;" /></a> <section id="prerequisites"> -<h2>Prerequisites<a class="headerlink" href="#prerequisites" title="Permalink to this heading">¶</a></h2> +<h2>Prerequisites<a class="headerlink" href="#prerequisites" title="Permalink to this headline">¶</a></h2> <section id="system-requirements"> -<h3>System Requirements<a class="headerlink" href="#system-requirements" title="Permalink to this heading">¶</a></h3> +<h3>System Requirements<a class="headerlink" href="#system-requirements" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p>Confirm that your development machine meets the minimum <a class="reference internal" href="../reference/system_requirements.html"><span class="doc">Host System Requirements</span></a>.</p></li> <li><p>Confirm that you have at least <strong>100GB</strong> of free space in the target partition.</p></li> </ul> </section> <section id="applicable-targets"> -<h3>Applicable Targets<a class="headerlink" href="#applicable-targets" title="Permalink to this heading">¶</a></h3> +<h3>Applicable Targets<a class="headerlink" href="#applicable-targets" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p>This quickstart is applicable to the <a class="reference external" href="https://www.xilinx.com/applications/data-center/v70.html">V70</a></p></li> </ul> </section> </section> <section id="quickstart"> -<h2>Quickstart<a class="headerlink" href="#quickstart" title="Permalink to this heading">¶</a></h2> +<h2>Quickstart<a class="headerlink" href="#quickstart" title="Permalink to this headline">¶</a></h2> <section id="clone-the-vitis-ai-repository"> -<h3>Clone the Vitis AI Repository<a class="headerlink" href="#clone-the-vitis-ai-repository" title="Permalink to this heading">¶</a></h3> +<h3>Clone the Vitis AI Repository<a class="headerlink" href="#clone-the-vitis-ai-repository" title="Permalink to this headline">¶</a></h3> <div class="highlight-Bash notranslate"><div class="highlight"><pre><span></span><span class="o">[</span>Host<span class="o">]</span> $ git clone https://github.com/Xilinx/Vitis-AI </pre></div> </div> </section> <section id="alveo-v70-setup"> -<h3>Alveo V70 Setup<a class="headerlink" href="#alveo-v70-setup" title="Permalink to this heading">¶</a></h3> +<h3>Alveo V70 Setup<a class="headerlink" href="#alveo-v70-setup" title="Permalink to this headline">¶</a></h3> <p>A script is provided to drive the V70 card setup process.</p> <div class="admonition note"> <p class="admonition-title">Note</p> @@ -213,14 +217,14 @@ <h3>Alveo V70 Setup<a class="headerlink" href="#alveo-v70-setup" title="Permalin </div> </section> <section id="install-docker"> -<h3>Install Docker<a class="headerlink" href="#install-docker" title="Permalink to this heading">¶</a></h3> +<h3>Install Docker<a class="headerlink" href="#install-docker" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p>Make sure that the Docker engine is installed according to the official Docker <a class="reference external" href="https://docs.docker.com/engine/install/">documentation</a>.</p></li> <li><p>The Docker daemon always runs as the root user. Non-root users must be <a class="reference external" href="https://docs.docker.com/engine/install/linux-postinstall/">added</a> to the docker group. Do this now.</p></li> </ul> </section> <section id="verify-docker-installation"> -<h3>Verify Docker Installation<a class="headerlink" href="#verify-docker-installation" title="Permalink to this heading">¶</a></h3> +<h3>Verify Docker Installation<a class="headerlink" href="#verify-docker-installation" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p>Perform a quick and simple test of your Docker installation by executing the following command. This command will download a test image from Docker Hub and run it in a container. When the container runs successfully, it prints a “Hello World” message and exits.</p></li> </ul> @@ -235,7 +239,7 @@ <h3>Verify Docker Installation<a class="headerlink" href="#verify-docker-install </div> </section> <section id="pull-vitis-ai-docker"> -<h3>Pull Vitis AI Docker<a class="headerlink" href="#pull-vitis-ai-docker" title="Permalink to this heading">¶</a></h3> +<h3>Pull Vitis AI Docker<a class="headerlink" href="#pull-vitis-ai-docker" title="Permalink to this headline">¶</a></h3> <p>In order to simplify this quickstart tutorial, we will utilize the Vitis-AI PyTorch CPU Docker to assess pre-built Vitis-AI examples, and subsequently perform quantization and compilation of our own model. The CPU docker image is generic, does not require the user to build the container, and has no specific GPU enablement requirements. More advanced users can optionally skip this step and jump to the <a class="reference internal" href="../install/install.html"><span class="doc">Full Install Instructions</span></a> but we would recommend that new users start with this simpler first step. Pull and start the latest Vitis AI Docker using the following commands:</p> <div class="highlight-Bash notranslate"><div class="highlight"><pre><span></span><span class="o">[</span>Host<span class="o">]</span> $ docker pull xilinx/vitis-ai-pytorch-cpu:latest @@ -245,7 +249,7 @@ <h3>Pull Vitis AI Docker<a class="headerlink" href="#pull-vitis-ai-docker" title </div> </section> <section id="docker-container-environment-variable-setup"> -<h3>Docker Container Environment Variable Setup<a class="headerlink" href="#docker-container-environment-variable-setup" title="Permalink to this heading">¶</a></h3> +<h3>Docker Container Environment Variable Setup<a class="headerlink" href="#docker-container-environment-variable-setup" title="Permalink to this headline">¶</a></h3> <p>From inside the docker container, execute one of the following commands to set the required environment variables for the DPU. Note that the chosen xclbin file must be in the <code class="docutils literal notranslate"><span class="pre">/opt/xilinx/overlaybins</span></code> directory prior to execution. Select the xclbin that matches your chosen DPU configuration.</p> <div class="highlight-Bash notranslate"><div class="highlight"><pre><span></span><span class="o">[</span>Docker<span class="o">]</span> $ <span class="nb">source</span> /workspace/board_setup/v70/setup.sh DPUCV2DX8G_v70 </pre></div> @@ -256,7 +260,7 @@ <h3>Docker Container Environment Variable Setup<a class="headerlink" href="#dock </div> </section> <section id="vitis-ai-model-zoo"> -<h3>Vitis-AI Model Zoo<a class="headerlink" href="#vitis-ai-model-zoo" title="Permalink to this heading">¶</a></h3> +<h3>Vitis-AI Model Zoo<a class="headerlink" href="#vitis-ai-model-zoo" title="Permalink to this headline">¶</a></h3> <p>You can now select a model from the <a class="reference external" href="../workflow-model-zoo.html">Vitis AI Model Zoo</a>. Navigate to the <a class="reference external" href="https://github.com/Xilinx/Vitis-AI/tree/master/model_zoo/model-list">model-list subdirectory</a> and select the model that you wish to test. For each model, a YAML file provides key details of the model. In the YAML file there are separate hyperlinks to download the model for each supported target. Choose the correct link for your target platform and download the model.</p> <ul class="simple"> <li><p>Take the ResNet50 model as an example.</p></li> @@ -273,7 +277,7 @@ <h3>Vitis-AI Model Zoo<a class="headerlink" href="#vitis-ai-model-zoo" title="Pe </div> </section> <section id="run-the-vitis-ai-examples"> -<h3>Run the Vitis AI Examples<a class="headerlink" href="#run-the-vitis-ai-examples" title="Permalink to this heading">¶</a></h3> +<h3>Run the Vitis AI Examples<a class="headerlink" href="#run-the-vitis-ai-examples" title="Permalink to this headline">¶</a></h3> <ol class="arabic simple"> <li><p>Download <a class="reference external" href="https://www.xilinx.com/bin/public/openDownload?filename=vitis_ai_runtime_r3.5.0_image_video.tar.gz">vitis_ai_runtime_r3.5.0_image_video.tar.gz</a> to your host.</p></li> </ol> @@ -321,10 +325,10 @@ <h3>Run the Vitis AI Examples<a class="headerlink" href="#run-the-vitis-ai-examp </section> </section> <section id="pytorch-tutorial"> -<h2>PyTorch Tutorial<a class="headerlink" href="#pytorch-tutorial" title="Permalink to this heading">¶</a></h2> +<h2>PyTorch Tutorial<a class="headerlink" href="#pytorch-tutorial" title="Permalink to this headline">¶</a></h2> <p>This tutorial assumes that Vitis AI has been installed and that the board has been configured as explained in the installation instructions above. For additional information on the Vitis AI Quantizer, Optimizer, or Compiler, please refer to the Vitis AI User Guide.</p> <section id="quantizing-the-model"> -<h3>Quantizing the Model<a class="headerlink" href="#quantizing-the-model" title="Permalink to this heading">¶</a></h3> +<h3>Quantizing the Model<a class="headerlink" href="#quantizing-the-model" title="Permalink to this headline">¶</a></h3> <p>Quantization reduces the precision of network weights and activations to optimize memory usage and computational efficiency while maintaining acceptable levels of accuracy. Inference is computationally expensive and requires high memory bandwidths to satisfy the low-latency and high-throughput requirements of Edge applications. Quantization and channel pruning techniques are employed to address these issues while achieving high performance and high energy efficiency with little degradation in accuracy. The Vitis AI Quantizer takes a floating-point model as an input and performs pre-processing (folds batchnorms and removes nodes not required for inference), and finally quantizes the weights/biases and activations to the given bit width.</p> @@ -471,7 +475,7 @@ <h3>Quantizing the Model<a class="headerlink" href="#quantizing-the-model" title </div> </section> <section id="compile-the-model"> -<h3>Compile the Model<a class="headerlink" href="#compile-the-model" title="Permalink to this heading">¶</a></h3> +<h3>Compile the Model<a class="headerlink" href="#compile-the-model" title="Permalink to this headline">¶</a></h3> <p>The Vitis AI Compiler compiles the graph operators as a set of micro-coded instructions that are executed by the DPU. In this step, we will compile the ResNet18 model that we quantized in the previous step.</p> <ol class="arabic simple"> <li><p>The compiler takes the quantized <code class="docutils literal notranslate"><span class="pre">INT8.xmodel</span></code> and generates the deployable <code class="docutils literal notranslate"><span class="pre">DPU.xmodel</span></code> by running the command below. Note that you must modify the command to specify the appropriate <code class="docutils literal notranslate"><span class="pre">arch.json</span></code> file for your target. For V70 targets, these are located in the folder <code class="docutils literal notranslate"><span class="pre">/opt/vitis_ai/compiler/arch/DPUCV2DX8G</span></code> inside the Docker container.</p></li> @@ -512,7 +516,7 @@ <h3>Compile the Model<a class="headerlink" href="#compile-the-model" title="Perm </ul> </section> <section id="model-deployment"> -<h3>Model Deployment<a class="headerlink" href="#model-deployment" title="Permalink to this heading">¶</a></h3> +<h3>Model Deployment<a class="headerlink" href="#model-deployment" title="Permalink to this headline">¶</a></h3> <ol class="arabic simple"> <li><p>Copy the <code class="docutils literal notranslate"><span class="pre">resnet18_pt</span></code> folder into the <code class="docutils literal notranslate"><span class="pre">/usr/share/vitis_ai_library/models/</span></code> directory. This will locate your compiled model in the default Vitis AI Library example model directory, alongside the other Vitis AI example models. Our purpose in doing this is to simplify the commands that follow, in which we will execute the Vitis AI Library samples with our model.</p></li> </ol> @@ -573,7 +577,7 @@ <h3>Model Deployment<a class="headerlink" href="#model-deployment" title="Permal <footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer"> <a href="vek280.html" class="btn btn-neutral float-left" title="Quick Start Guide for Versal™ AI Edge VEK280" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a> - <a href="../workflow.html" class="btn btn-neutral float-right" title="Overview" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a> + <a href="../getting-started-model-zoo.html" class="btn btn-neutral float-right" title="Vitis AI Model Zoo" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a> </div> <hr/> diff --git a/docsrc/build/html/docs/quickstart/vek280.html b/docsrc/build/html/docs/quickstart/vek280.html index 941b35390..e7af5faa8 100644 --- a/docsrc/build/html/docs/quickstart/vek280.html +++ b/docsrc/build/html/docs/quickstart/vek280.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script> <script src="../../_static/jquery.js"></script> <script src="../../_static/underscore.js"></script> - <script src="../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../_static/doctools.js"></script> <script src="../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../genindex.html" /> @@ -98,6 +97,11 @@ </li> <li class="toctree-l1"><a class="reference internal" href="v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../workflow.html">Overview</a></li> @@ -161,26 +165,26 @@ <div itemprop="articleBody"> <section id="quick-start-guide-for-versal-trade-ai-edge-vek280"> -<h1>Quick Start Guide for Versal™ AI Edge VEK280<a class="headerlink" href="#quick-start-guide-for-versal-trade-ai-edge-vek280" title="Permalink to this heading">¶</a></h1> +<h1>Quick Start Guide for Versal™ AI Edge VEK280<a class="headerlink" href="#quick-start-guide-for-versal-trade-ai-edge-vek280" title="Permalink to this headline">¶</a></h1> <p>The AMD <strong>DPUCV2DX8G</strong> for Versal™ AI Edge is a configurable computation engine dedicated to convolutional neural networks. It supports a highly optimized instruction set, enabling the deployment of most convolutional neural networks. The following instructions will help you to install the software and packages required to support VEK280.</p> <a class="reference internal image-reference" href="../../_images/VEK280_Top_img.png"><img alt="../../_images/VEK280_Top_img.png" class="align-center" src="../../_images/VEK280_Top_img.png" style="width: 400px;" /></a> <section id="prerequisites"> -<h2>Prerequisites<a class="headerlink" href="#prerequisites" title="Permalink to this heading">¶</a></h2> +<h2>Prerequisites<a class="headerlink" href="#prerequisites" title="Permalink to this headline">¶</a></h2> <section id="host-requirements"> -<h3>Host Requirements<a class="headerlink" href="#host-requirements" title="Permalink to this heading">¶</a></h3> +<h3>Host Requirements<a class="headerlink" href="#host-requirements" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p>Confirm that your development machine meets the minimum <a class="reference internal" href="../reference/system_requirements.html"><span class="doc">Host System Requirements</span></a>.</p></li> <li><p>Confirm that you have at least <strong>100GB</strong> of free space in the target partition.</p></li> </ul> </section> <section id="applicable-targets"> -<h3>Applicable Targets<a class="headerlink" href="#applicable-targets" title="Permalink to this heading">¶</a></h3> +<h3>Applicable Targets<a class="headerlink" href="#applicable-targets" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p>This quickstart is applicable to the <a class="reference external" href="https://www.xilinx.com/vek280">VEK280</a></p></li> </ul> </section> <section id="wsl"> -<h3>WSL<a class="headerlink" href="#wsl" title="Permalink to this heading">¶</a></h3> +<h3>WSL<a class="headerlink" href="#wsl" title="Permalink to this headline">¶</a></h3> <p>This is an optional step intended to enable Windows users to evaluate Vitis™ AI.</p> <p>Although this is not a fully supported flow, in most cases users will be able to execute this basic tutorial on Windows. The Windows Subsystem for Linux (WSL) can be installed from the command line. Open a Powershell prompt as an Administrator and execute the following command:</p> <div class="highlight-Bash notranslate"><div class="highlight"><pre><span></span><span class="o">[</span>Powershell<span class="o">]</span> > wsl --install -d Ubuntu-20.04 @@ -197,15 +201,15 @@ <h3>WSL<a class="headerlink" href="#wsl" title="Permalink to this heading">¶</a </section> </section> <section id="quickstart"> -<h2>Quickstart<a class="headerlink" href="#quickstart" title="Permalink to this heading">¶</a></h2> +<h2>Quickstart<a class="headerlink" href="#quickstart" title="Permalink to this headline">¶</a></h2> <section id="clone-the-vitis-ai-repository"> -<h3>Clone the Vitis AI Repository<a class="headerlink" href="#clone-the-vitis-ai-repository" title="Permalink to this heading">¶</a></h3> +<h3>Clone the Vitis AI Repository<a class="headerlink" href="#clone-the-vitis-ai-repository" title="Permalink to this headline">¶</a></h3> <div class="highlight-Bash notranslate"><div class="highlight"><pre><span></span><span class="o">[</span>Host<span class="o">]</span> $ git clone https://github.com/Xilinx/Vitis-AI </pre></div> </div> </section> <section id="install-docker"> -<h3>Install Docker<a class="headerlink" href="#install-docker" title="Permalink to this heading">¶</a></h3> +<h3>Install Docker<a class="headerlink" href="#install-docker" title="Permalink to this headline">¶</a></h3> <div class="admonition note"> <p class="admonition-title">Note</p> <p>WSL users are advised to install Docker via <a class="reference external" href="https://docs.docker.com/desktop/wsl/">Docker desktop</a>. WSL users can optionally leverage Docker using the command line flow below, however it has been found that the docker daemon doesn’t start automatically in WSL. The instructions provided below may not work verbatim for WSL users.</p> @@ -216,7 +220,7 @@ <h3>Install Docker<a class="headerlink" href="#install-docker" title="Permalink </ul> </section> <section id="verify-docker-installation"> -<h3>Verify Docker Installation<a class="headerlink" href="#verify-docker-installation" title="Permalink to this heading">¶</a></h3> +<h3>Verify Docker Installation<a class="headerlink" href="#verify-docker-installation" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p>Perform a quick and simple test of your Docker installation by executing the following command. This command will download a test image from Docker Hub and run it in a container. When the container runs successfully, it prints a “Hello World” message and exits.</p></li> </ul> @@ -231,7 +235,7 @@ <h3>Verify Docker Installation<a class="headerlink" href="#verify-docker-install </div> </section> <section id="pull-vitis-ai-docker"> -<h3>Pull Vitis AI Docker<a class="headerlink" href="#pull-vitis-ai-docker" title="Permalink to this heading">¶</a></h3> +<h3>Pull Vitis AI Docker<a class="headerlink" href="#pull-vitis-ai-docker" title="Permalink to this headline">¶</a></h3> <p>In order to simplify this quickstart tutorial, we will utilize the Vitis-AI PyTorch CPU Docker to assess pre-built Vitis-AI examples, and subsequently perform quantization and compilation of our own model. It is generic, does not require the user to build the container, and has no specific GPU enablement requirements. More advanced users can optionally skip this step and jump to the <a class="reference internal" href="../install/install.html"><span class="doc">Full Install Instructions</span></a> but we would recommend that new users start with this simpler first step. Pull and start the latest Vitis AI Docker using the following commands:</p> <div class="highlight-Bash notranslate"><div class="highlight"><pre><span></span><span class="o">[</span>Host<span class="o">]</span> $ docker pull xilinx/vitis-ai-pytorch-cpu:latest @@ -239,7 +243,7 @@ <h3>Pull Vitis AI Docker<a class="headerlink" href="#pull-vitis-ai-docker" title </div> </section> <section id="setup-the-host"> -<h3>Setup the Host<a class="headerlink" href="#setup-the-host" title="Permalink to this heading">¶</a></h3> +<h3>Setup the Host<a class="headerlink" href="#setup-the-host" title="Permalink to this headline">¶</a></h3> <p>It will be useful to you later on to have the cross-compiler installed. This will allow you to compile target application code on your host machine inside Docker. Run the following commands to install the cross-compilation environment.</p> <div class="admonition note"> <p class="admonition-title">Note</p> @@ -277,7 +281,7 @@ <h3>Setup the Host<a class="headerlink" href="#setup-the-host" title="Permalink <p>If the compilation process does not report an error and the executable file <code class="docutils literal notranslate"><span class="pre">resnet50_pt</span></code> is generated, then the host environment is installed correctly. If an error is reported, double-check that you executed the <code class="docutils literal notranslate"><span class="pre">source</span> <span class="pre">~/petalinux....</span></code> command.</p> </section> <section id="setup-the-target"> -<h3>Setup the Target<a class="headerlink" href="#setup-the-target" title="Permalink to this heading">¶</a></h3> +<h3>Setup the Target<a class="headerlink" href="#setup-the-target" title="Permalink to this headline">¶</a></h3> <p>The Vitis AI Runtime packages, VART samples, Vitis-AI-Library samples, and models are built into the board image, enhancing the user experience. Therefore, the user need not install Vitis AI Runtime packages and model packages on the board separately.</p> <ol class="arabic simple"> <li><p>Make the target / host connections as shown in the images below. Plug in the power adapter, ethernet cable, an HDMI monitor (optional), and connect the USB-UART interface to the host. If one is available, connect a USB webcam to the target.</p></li> @@ -286,7 +290,7 @@ <h3>Setup the Target<a class="headerlink" href="#setup-the-target" title="Permal <p class="admonition-title">Note</p> <p>We recommend the Logitech BRIO for use with Vitis AI pre-built images. The Logitech BRIO is capable of streaming RAW video at higher resolutions than most low-cost webcams. When leveraging other low-cost webcams with the Vitis AI pre-built image, encoded video streams are actually decoded on the target’s ARM APU which can reduce inference performance.</p> </div> -<a class="reference internal image-reference" href="../../_images/vek280_setup.png"><img alt="../../_images/vek280_setup.png" src="../../_images/vek280_setup.png" style="width: 1300px;" /></a> +<a class="reference internal image-reference" href="docs/reference/images/vek280_setup.png"><img alt="docs/reference/images/vek280_setup.png" src="docs/reference/images/vek280_setup.png" style="width: 1300px;" /></a> <ul class="simple"> <li><p>Configure the Versal Boot Mode switch SW1 [1:4] to (ON,OFF,OFF,OFF).</p></li> </ul> @@ -348,7 +352,7 @@ <h3>Setup the Target<a class="headerlink" href="#setup-the-target" title="Permal </div> </section> <section id="vitis-ai-model-zoo"> -<h3>Vitis-AI Model Zoo<a class="headerlink" href="#vitis-ai-model-zoo" title="Permalink to this heading">¶</a></h3> +<h3>Vitis-AI Model Zoo<a class="headerlink" href="#vitis-ai-model-zoo" title="Permalink to this headline">¶</a></h3> <p>You can now select a model from the <a class="reference external" href="../workflow-model-zoo.html">Vitis AI Model Zoo</a>. Navigate to the <a class="reference external" href="https://github.com/Xilinx/Vitis-AI/tree/master/model_zoo/model-list">model-list subdirectory</a> and select the model that you wish to test. For each model, a YAML file provides key details of the model. In the YAML file there are separate hyperlinks to download the model for each supported target. Choose the correct link for your target platform and download the model.</p> <ol class="arabic simple"> <li><p>Take the ResNet50 model as an example.</p></li> @@ -372,7 +376,7 @@ <h3>Vitis-AI Model Zoo<a class="headerlink" href="#vitis-ai-model-zoo" title="Pe </div> </section> <section id="run-the-vitis-ai-examples"> -<span id="vek280-run-vitis-ai-examples"></span><h3>Run the Vitis AI Examples<a class="headerlink" href="#run-the-vitis-ai-examples" title="Permalink to this heading">¶</a></h3> +<span id="vek280-run-vitis-ai-examples"></span><h3>Run the Vitis AI Examples<a class="headerlink" href="#run-the-vitis-ai-examples" title="Permalink to this headline">¶</a></h3> <ol class="arabic simple"> <li><p>Download <a class="reference external" href="https://www.xilinx.com/bin/public/openDownload?filename=vitis_ai_runtime_r3.5.0_image_video.tar.gz">vitis_ai_runtime_r3.5.0_image_video.tar.gz</a> from host to the target using scp with the following command:</p></li> </ol> @@ -413,10 +417,10 @@ <h3>Vitis-AI Model Zoo<a class="headerlink" href="#vitis-ai-model-zoo" title="Pe </section> </section> <section id="pytorch-tutorial"> -<h2>PyTorch Tutorial<a class="headerlink" href="#pytorch-tutorial" title="Permalink to this heading">¶</a></h2> +<h2>PyTorch Tutorial<a class="headerlink" href="#pytorch-tutorial" title="Permalink to this headline">¶</a></h2> <p>This tutorial assumes that Vitis AI has been installed and that the board has been configured as explained in the installation instructions above. For additional information on the Vitis AI Quantizer, Optimizer, or Compiler, please refer to the Vitis AI User Guide.</p> <section id="quantizing-the-model"> -<h3>Quantizing the Model<a class="headerlink" href="#quantizing-the-model" title="Permalink to this heading">¶</a></h3> +<h3>Quantizing the Model<a class="headerlink" href="#quantizing-the-model" title="Permalink to this headline">¶</a></h3> <p>Quantization reduces the precision of network weights and activations to optimize memory usage and computational efficiency while maintaining acceptable levels of accuracy. Inference is computationally expensive and requires high memory bandwidths to satisfy the low-latency and high-throughput requirements of Edge applications. Quantization and channel pruning techniques are employed to address these issues while achieving high performance and high energy efficiency with little degradation in accuracy. The Vitis AI Quantizer takes a floating-point model as an input and performs pre-processing (folds batchnorms and removes nodes not required for inference), and finally quantizes the weights/biases and activations to the given bit width.</p> @@ -562,7 +566,7 @@ <h3>Quantizing the Model<a class="headerlink" href="#quantizing-the-model" title </div> </section> <section id="compile-the-model"> -<h3>Compile the Model<a class="headerlink" href="#compile-the-model" title="Permalink to this heading">¶</a></h3> +<h3>Compile the Model<a class="headerlink" href="#compile-the-model" title="Permalink to this headline">¶</a></h3> <p>The Vitis AI Compiler compiles the graph operators as a set of micro-coded instructions that are executed by the DPU. In this step, we will compile the ResNet18 model that we quantized in the previous step.</p> <ol class="arabic simple"> <li><p>The compiler takes the quantized <code class="docutils literal notranslate"><span class="pre">INT8.xmodel</span></code> and generates the deployable <code class="docutils literal notranslate"><span class="pre">DPU.xmodel</span></code> by running the command below. Note that you must modify the command to specify the appropriate <code class="docutils literal notranslate"><span class="pre">arch.json</span></code> file for your target. For MPSoC targets, these are located in the folder <code class="docutils literal notranslate"><span class="pre">/opt/vitis_ai/compiler/arch/DPUCZDX8G</span></code> inside the Docker container.</p></li> @@ -603,7 +607,7 @@ <h3>Compile the Model<a class="headerlink" href="#compile-the-model" title="Perm </ul> </section> <section id="model-deployment"> -<h3>Model Deployment<a class="headerlink" href="#model-deployment" title="Permalink to this heading">¶</a></h3> +<h3>Model Deployment<a class="headerlink" href="#model-deployment" title="Permalink to this headline">¶</a></h3> <ol class="arabic simple"> <li><p>Download the <code class="docutils literal notranslate"><span class="pre">resnet18_pt</span></code> folder from host to target using scp with the following command:</p></li> </ol> diff --git a/docsrc/build/html/docs/ref_design_docs/README_DPUCV2DX8G.html b/docsrc/build/html/docs/ref_design_docs/README_DPUCV2DX8G.html index faab24fce..8c73d3159 100644 --- a/docsrc/build/html/docs/ref_design_docs/README_DPUCV2DX8G.html +++ b/docsrc/build/html/docs/ref_design_docs/README_DPUCV2DX8G.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script> <script src="../../_static/jquery.js"></script> <script src="../../_static/underscore.js"></script> - <script src="../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../_static/doctools.js"></script> <script src="../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="vek280-dpucv2dx8g-reference-design"> -<h1>VEK280 DPUCV2DX8G Reference Design<a class="headerlink" href="#vek280-dpucv2dx8g-reference-design" title="Permalink to this heading">¶</a></h1> +<h1>VEK280 DPUCV2DX8G Reference Design<a class="headerlink" href="#vek280-dpucv2dx8g-reference-design" title="Permalink to this headline">¶</a></h1> <div class="admonition note"> <p class="admonition-title">Note</p> <p>Until the release of Versal™ AI Edge production speed files (currently targeted with release of Vivado 2023.2.1), PDI generation for Versal AI Edge will require an early enablement license that can be requested via the Versal AI Edge Errata Secure Site. Also, the reference design archive does include a pre-compiled AIE object <code class="docutils literal notranslate"><span class="pre">libadf.a</span></code> for this specific DPU configuration, however, if the user wishes to reconfigure and recompile the DPUCV2DX8G, access to an AIE-ML Compiler early enablement license is required and can be obtained from the AIE Compiler Early Access Lounge. Finally, the user will also want to have access to documentation such as the VEK280 schematics, user guide and BSPs which are provided in the VEK280 Early Access Lounge. Please contact your local AMD sales or FAE contact to request access.</p> @@ -146,7 +150,7 @@ <h1>VEK280 DPUCV2DX8G Reference Design<a class="headerlink" href="#vek280-dpucv2 <p>The reference design associated with this document <a class="reference external" href="https://www.xilinx.com/bin/public/openDownload?filename=DPUCV2DX8G_VAI_v3.5.tar.gz">is found here</a>.</p> <section id="table-of-contents"> -<h2>Table of Contents<a class="headerlink" href="#table-of-contents" title="Permalink to this heading">¶</a></h2> +<h2>Table of Contents<a class="headerlink" href="#table-of-contents" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p><a class="reference external" href="#1-revision-history">1 Revision History</a></p></li> <li><p><a class="reference external" href="#2-overview">2 Overview</a></p></li> @@ -193,14 +197,14 @@ <h2>Table of Contents<a class="headerlink" href="#table-of-contents" title="Perm </ul> </section> <section id="revision-history"> -<h2>1 Revision History<a class="headerlink" href="#revision-history" title="Permalink to this heading">¶</a></h2> +<h2>1 Revision History<a class="headerlink" href="#revision-history" title="Permalink to this headline">¶</a></h2> <p>Vitis AI 3.5 change log: - Update platform to B01 board with ES silicon, and support Vitis 2023.1. - Support multi-batch setting</p> <p>VitisAI 3.0 change log: - Initial early access version</p> </section> <hr class="docutils" /> <section id="overview"> -<h2>2 Overview<a class="headerlink" href="#overview" title="Permalink to this heading">¶</a></h2> +<h2>2 Overview<a class="headerlink" href="#overview" title="Permalink to this headline">¶</a></h2> <p>The Xilinx Versal Deep Learning Processing Unit (DPUCV2DX8G) is a computation engine optimized for convolutional neural networks. It includes a set of highly optimized instructions, and supports most @@ -216,9 +220,9 @@ <h2>2 Overview<a class="headerlink" href="#overview" title="Permalink to this he </ul> </section> <section id="software-tools-and-system-requirements"> -<h2>3 Software Tools and System Requirements<a class="headerlink" href="#software-tools-and-system-requirements" title="Permalink to this heading">¶</a></h2> +<h2>3 Software Tools and System Requirements<a class="headerlink" href="#software-tools-and-system-requirements" title="Permalink to this headline">¶</a></h2> <section id="hardware"> -<h3>3.1 Hardware<a class="headerlink" href="#hardware" title="Permalink to this heading">¶</a></h3> +<h3>3.1 Hardware<a class="headerlink" href="#hardware" title="Permalink to this headline">¶</a></h3> <p>Required:</p> <ul class="simple"> <li><p>Revision B01 VEK280 evaluation board</p></li> @@ -231,7 +235,7 @@ <h3>3.1 Hardware<a class="headerlink" href="#hardware" title="Permalink to this </div> </section> <section id="software"> -<h3>3.2 Software<a class="headerlink" href="#software" title="Permalink to this heading">¶</a></h3> +<h3>3.2 Software<a class="headerlink" href="#software" title="Permalink to this headline">¶</a></h3> <p>Required:</p> <ul class="simple"> <li><p>Vitis 2023.1</p></li> @@ -245,9 +249,9 @@ <h3>3.2 Software<a class="headerlink" href="#software" title="Permalink to this </section> </section> <section id="design-files"> -<h2>4 Design Files<a class="headerlink" href="#design-files" title="Permalink to this heading">¶</a></h2> +<h2>4 Design Files<a class="headerlink" href="#design-files" title="Permalink to this headline">¶</a></h2> <section id="design-components"> -<h3>4.1 Design Components<a class="headerlink" href="#design-components" title="Permalink to this heading">¶</a></h3> +<h3>4.1 Design Components<a class="headerlink" href="#design-components" title="Permalink to this headline">¶</a></h3> <p>The top-level directory structure shows the the major design components.</p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span>├── app ├── README.md @@ -273,9 +277,9 @@ <h3>4.1 Design Components<a class="headerlink" href="#design-components" title=" </section> <hr class="docutils" /> <section id="tutorials"> -<h2>5 Tutorials<a class="headerlink" href="#tutorials" title="Permalink to this heading">¶</a></h2> +<h2>5 Tutorials<a class="headerlink" href="#tutorials" title="Permalink to this headline">¶</a></h2> <section id="board-setup"> -<h3>5.1 Board Setup<a class="headerlink" href="#board-setup" title="Permalink to this heading">¶</a></h3> +<h3>5.1 Board Setup<a class="headerlink" href="#board-setup" title="Permalink to this headline">¶</a></h3> <p>Board jumper and switch settings:</p> <p>Configure the Versal Boot Mode switch SW1 to boot from SD Card:</p> <ul class="simple"> @@ -283,7 +287,7 @@ <h3>5.1 Board Setup<a class="headerlink" href="#board-setup" title="Permalink to </ul> </section> <section id="build-and-run-the-reference-design"> -<h3>5.2 Build and Run The Reference Design<a class="headerlink" href="#build-and-run-the-reference-design" title="Permalink to this heading">¶</a></h3> +<h3>5.2 Build and Run The Reference Design<a class="headerlink" href="#build-and-run-the-reference-design" title="Permalink to this headline">¶</a></h3> <p>The following tutorials assume that the <cite>$TRD_HOME</cite> environment variable is set as shown below.</p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="o">%</span> <span class="n">export</span> <span class="n">TRD_HOME</span> <span class="o">=<</span><span class="n">Vitis</span> <span class="n">AI</span> <span class="n">path</span><span class="o">>/</span><span class="n">reference_design</span><span class="o">/</span><span class="n">DPUCV2DX8G</span><span class="o">-</span><span class="n">TRD</span> @@ -306,7 +310,7 @@ <h3>5.2 Build and Run The Reference Design<a class="headerlink" href="#build-and </pre></div> </div> <section id="build-the-dpu"> -<h4>5.2.1 Build the DPU<a class="headerlink" href="#build-the-dpu" title="Permalink to this heading">¶</a></h4> +<h4>5.2.1 Build the DPU<a class="headerlink" href="#build-the-dpu" title="Permalink to this headline">¶</a></h4> <p>The default architecture of DPUCV2DX8G is C20B1 (<cite>CU_N=1</cite>, <cite>BATCH_SingleCU=1</cite>, 16 AIE-ML cores for Convolution, 4 AIE-ML cores for Non-Convolution), PL clock frequency is 300 MHz. This version of the @@ -338,7 +342,7 @@ <h4>5.2.1 Build the DPU<a class="headerlink" href="#build-the-dpu" title="Permal </div> </section> <section id="get-json-file"> -<h4>5.2.2 Get Json File<a class="headerlink" href="#get-json-file" title="Permalink to this heading">¶</a></h4> +<h4>5.2.2 Get Json File<a class="headerlink" href="#get-json-file" title="Permalink to this headline">¶</a></h4> <p>The <cite>arch.json</cite> file is an important file required by Vitis AI. It works together with the Vitis AI compiler to support model compilation with various DPUCV2DX8G configurations. The <cite>arch.json</cite> file will be @@ -350,7 +354,7 @@ <h4>5.2.2 Get Json File<a class="headerlink" href="#get-json-file" title="Permal </div> </section> <section id="run-resnet50-example"> -<h4>5.2.3 Run ResNet50 Example<a class="headerlink" href="#run-resnet50-example" title="Permalink to this heading">¶</a></h4> +<h4>5.2.3 Run ResNet50 Example<a class="headerlink" href="#run-resnet50-example" title="Permalink to this headline">¶</a></h4> <p>The reference design project has generated the matching model file in <cite>$TRD_HOME/app</cite> path, pre-configured with default settings. If the configuration of the DPUCV2DX8G is modified, the model needs to be @@ -385,7 +389,7 @@ <h4>5.2.3 Run ResNet50 Example<a class="headerlink" href="#run-resnet50-example" </section> </section> <section id="change-the-configuration"> -<h3>5.3 Change the Configuration<a class="headerlink" href="#change-the-configuration" title="Permalink to this heading">¶</a></h3> +<h3>5.3 Change the Configuration<a class="headerlink" href="#change-the-configuration" title="Permalink to this headline">¶</a></h3> <p>The DPUCV2DX8G IP provides some user-configurable parameters, refer to the document <a class="reference external" href="https://docs.xilinx.com/r/en-US/pg425-dpu">PG425</a>.</p> <p>In this reference design, user-configurable parameters are in the file <cite>$TRD_HOME/vitis_prj/xv2dpu_config.mk</cite>.</p> @@ -400,11 +404,15 @@ <h3>5.3 Change the Configuration<a class="headerlink" href="#change-the-configur </section> <hr class="docutils" /> <section id="instructions-for-changing-the-platform"> -<h2>6 Instructions for Changing the Platform<a class="headerlink" href="#instructions-for-changing-the-platform" title="Permalink to this heading">¶</a></h2> +<h2>6 Instructions for Changing the Platform<a class="headerlink" href="#instructions-for-changing-the-platform" title="Permalink to this headline">¶</a></h2> <section id="dpucv2dx8g-ports"> -<h3>6.1 DPUCV2DX8G Ports<a class="headerlink" href="#dpucv2dx8g-ports" title="Permalink to this heading">¶</a></h3> +<h3>6.1 DPUCV2DX8G Ports<a class="headerlink" href="#dpucv2dx8g-ports" title="Permalink to this headline">¶</a></h3> <p>The DPUCV2DX8G ports are listed as below.</p> <table class="docutils align-default"> +<colgroup> +<col style="width: 70%" /> +<col style="width: 30%" /> +</colgroup> <thead> <tr class="row-odd"><th class="head"><p>Ports</p></th> <th class="head"><p>Descriptions</p></th> @@ -486,7 +494,7 @@ <h3>6.1 DPUCV2DX8G Ports<a class="headerlink" href="#dpucv2dx8g-ports" title="Pe </ul> </section> <section id="changing-the-platform"> -<h3>6.2 Changing the Platform<a class="headerlink" href="#changing-the-platform" title="Permalink to this heading">¶</a></h3> +<h3>6.2 Changing the Platform<a class="headerlink" href="#changing-the-platform" title="Permalink to this headline">¶</a></h3> <p>Changing platform needs to modify 1 files: <cite>vitis_prj/Makefile</cite>.</p> <div class="admonition note"> <p class="admonition-title">Note</p> @@ -513,13 +521,13 @@ <h3>6.2 Changing the Platform<a class="headerlink" href="#changing-the-platform" </section> <hr class="docutils" /> <section id="instructions-for-adding-other-kernels"> -<h2>7 Instructions for Adding Other Kernels<a class="headerlink" href="#instructions-for-adding-other-kernels" title="Permalink to this heading">¶</a></h2> +<h2>7 Instructions for Adding Other Kernels<a class="headerlink" href="#instructions-for-adding-other-kernels" title="Permalink to this headline">¶</a></h2> <p>Vitis kernels developed for Versal devices, could be RTL kernel (only use PL resouces), AIE kernel (only uses AI Engine tiles), or kernel including both PL and AIE. The basic instructions for adding other kernels in this reference design are shown below.</p> <section id="rtl-kernel"> -<h3>7.1 RTL Kernel<a class="headerlink" href="#rtl-kernel" title="Permalink to this heading">¶</a></h3> +<h3>7.1 RTL Kernel<a class="headerlink" href="#rtl-kernel" title="Permalink to this headline">¶</a></h3> <p>Package the RTL kernel as XO file. Then modify 2 files: <cite>vitis_prj/Makefile</cite>, and <cite>vitis_prj/scripts/xv2dpu_aie_noc.py</cite>,</p> <ol class="arabic simple"> @@ -556,7 +564,7 @@ <h3>7.1 RTL Kernel<a class="headerlink" href="#rtl-kernel" title="Permalink to t </section> </section> <section id="known-issues"> -<h2>8 Known Issues<a class="headerlink" href="#known-issues" title="Permalink to this heading">¶</a></h2> +<h2>8 Known Issues<a class="headerlink" href="#known-issues" title="Permalink to this headline">¶</a></h2> <ol class="arabic simple"> <li><p>This reference design has updated to support rev-B ES vek280 board, if you want to use it on rev-A board, Ethernet will not work, however diff --git a/docsrc/build/html/docs/reference/ModelZoo_Github_web.htm b/docsrc/build/html/docs/reference/ModelZoo_Github_web.htm deleted file mode 100644 index 38c3cedc8..000000000 --- a/docsrc/build/html/docs/reference/ModelZoo_Github_web.htm +++ /dev/null @@ -1,449 +0,0 @@ -<!DOCTYPE html> -<html> - -<table class="sphinxhide"> - <tr> - <td align="center"><img src="https://raw.githubusercontent.com/Xilinx/Image-Collateral/main/xilinx-logo.png" width="20%"/><h2>Vitis AI 3.5 Model Zoo</h2><h0>Copyright (c) 2023 Advanced Micro Devices, Inc.</h0> - </td> - </tr> -</table> -<body> - -<head> - <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> - <title>Table</title> -</head> - <table id="table"> - <caption>Use the search function in the upper right to locate a model</caption> - </table> - - <script type="text/javascript">/*! jQuery v1.12.4 | (c) jQuery Foundation | jquery.org/license */ -!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=a.document,e=c.slice,f=c.concat,g=c.push,h=c.indexOf,i={},j=i.toString,k=i.hasOwnProperty,l={},m="1.12.4",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return e.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:e.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a){return n.each(this,a)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(e.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor()},push:g,sort:c.sort,splice:c.splice},n.extend=n.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||n.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(e=arguments[h]))for(d in e)a=g[d],c=e[d],g!==c&&(j&&c&&(n.isPlainObject(c)||(b=n.isArray(c)))?(b?(b=!1,f=a&&n.isArray(a)?a:[]):f=a&&n.isPlainObject(a)?a:{},g[d]=n.extend(j,f,c)):void 0!==c&&(g[d]=c));return g},n.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===n.type(a)},isArray:Array.isArray||function(a){return"array"===n.type(a)},isWindow:function(a){return null!=a&&a==a.window},isNumeric:function(a){var b=a&&a.toString();return!n.isArray(a)&&b-parseFloat(b)+1>=0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},isPlainObject:function(a){var b;if(!a||"object"!==n.type(a)||a.nodeType||n.isWindow(a))return!1;try{if(a.constructor&&!k.call(a,"constructor")&&!k.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}if(!l.ownFirst)for(b in a)return k.call(a,b);for(b in a);return void 0===b||k.call(a,b)},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?i[j.call(a)]||"object":typeof a},globalEval:function(b){b&&n.trim(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(p,"ms-").replace(q,r)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b){var c,d=0;if(s(a)){for(c=a.length;c>d;d++)if(b.call(a[d],d,a[d])===!1)break}else for(d in a)if(b.call(a[d],d,a[d])===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(o,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?n.merge(c,"string"==typeof a?[a]:a):g.call(c,a)),c},inArray:function(a,b,c){var d;if(b){if(h)return h.call(b,a,c);for(d=b.length,c=c?0>c?Math.max(0,d+c):c:0;d>c;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,b){var c=+b.length,d=0,e=a.length;while(c>d)a[e++]=b[d++];if(c!==c)while(void 0!==b[d])a[e++]=b[d++];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,e,g=0,h=[];if(s(a))for(d=a.length;d>g;g++)e=b(a[g],g,c),null!=e&&h.push(e);else for(g in a)e=b(a[g],g,c),null!=e&&h.push(e);return f.apply([],h)},guid:1,proxy:function(a,b){var c,d,f;return"string"==typeof b&&(f=a[b],b=a,a=f),n.isFunction(a)?(c=e.call(arguments,2),d=function(){return a.apply(b||this,c.concat(e.call(arguments)))},d.guid=a.guid=a.guid||n.guid++,d):void 0},now:function(){return+new Date},support:l}),"function"==typeof Symbol&&(n.fn[Symbol.iterator]=c[Symbol.iterator]),n.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(a,b){i["[object "+b+"]"]=b.toLowerCase()});function s(a){var b=!!a&&"length"in a&&a.length,c=n.type(a);return"function"===c||n.isWindow(a)?!1:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var t=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=ga(),z=ga(),A=ga(),B=function(a,b){return a===b&&(l=!0),0},C=1<<31,D={}.hasOwnProperty,E=[],F=E.pop,G=E.push,H=E.push,I=E.slice,J=function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},K="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",N="\\["+L+"*("+M+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+M+"))|)"+L+"*\\]",O=":("+M+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+N+")*)|.*)\\)|)",P=new RegExp(L+"+","g"),Q=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),R=new RegExp("^"+L+"*,"+L+"*"),S=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),T=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),U=new RegExp(O),V=new RegExp("^"+M+"$"),W={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M+"|[*])"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+O),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+K+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},X=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,$=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,_=/[+~]/,aa=/'|\\/g,ba=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),ca=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},da=function(){m()};try{H.apply(E=I.call(v.childNodes),v.childNodes),E[v.childNodes.length].nodeType}catch(ea){H={apply:E.length?function(a,b){G.apply(a,I.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function fa(a,b,d,e){var f,h,j,k,l,o,r,s,w=b&&b.ownerDocument,x=b?b.nodeType:9;if(d=d||[],"string"!=typeof a||!a||1!==x&&9!==x&&11!==x)return d;if(!e&&((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,p)){if(11!==x&&(o=$.exec(a)))if(f=o[1]){if(9===x){if(!(j=b.getElementById(f)))return d;if(j.id===f)return d.push(j),d}else if(w&&(j=w.getElementById(f))&&t(b,j)&&j.id===f)return d.push(j),d}else{if(o[2])return H.apply(d,b.getElementsByTagName(a)),d;if((f=o[3])&&c.getElementsByClassName&&b.getElementsByClassName)return H.apply(d,b.getElementsByClassName(f)),d}if(c.qsa&&!A[a+" "]&&(!q||!q.test(a))){if(1!==x)w=b,s=a;else if("object"!==b.nodeName.toLowerCase()){(k=b.getAttribute("id"))?k=k.replace(aa,"\\$&"):b.setAttribute("id",k=u),r=g(a),h=r.length,l=V.test(k)?"#"+k:"[id='"+k+"']";while(h--)r[h]=l+" "+qa(r[h]);s=r.join(","),w=_.test(a)&&oa(b.parentNode)||b}if(s)try{return H.apply(d,w.querySelectorAll(s)),d}catch(y){}finally{k===u&&b.removeAttribute("id")}}}return i(a.replace(Q,"$1"),b,d,e)}function ga(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ha(a){return a[u]=!0,a}function ia(a){var b=n.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ja(a,b){var c=a.split("|"),e=c.length;while(e--)d.attrHandle[c[e]]=b}function ka(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||C)-(~a.sourceIndex||C);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function la(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function ma(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function na(a){return ha(function(b){return b=+b,ha(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function oa(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=fa.support={},f=fa.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},m=fa.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=n.documentElement,p=!f(n),(e=n.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",da,!1):e.attachEvent&&e.attachEvent("onunload",da)),c.attributes=ia(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ia(function(a){return a.appendChild(n.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=Z.test(n.getElementsByClassName),c.getById=ia(function(a){return o.appendChild(a).id=u,!n.getElementsByName||!n.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c=b.getElementById(a);return c?[c]:[]}},d.filter.ID=function(a){var b=a.replace(ba,ca);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(ba,ca);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return"undefined"!=typeof b.getElementsByClassName&&p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=Z.test(n.querySelectorAll))&&(ia(function(a){o.appendChild(a).innerHTML="<a id='"+u+"'></a><select id='"+u+"-\r\\' msallowcapture=''><option selected=''></option></select>",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+L+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+L+"*(?:value|"+K+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),ia(function(a){var b=n.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+L+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=Z.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ia(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",O)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=Z.test(o.compareDocumentPosition),t=b||Z.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===n||a.ownerDocument===v&&t(v,a)?-1:b===n||b.ownerDocument===v&&t(v,b)?1:k?J(k,a)-J(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,g=[a],h=[b];if(!e||!f)return a===n?-1:b===n?1:e?-1:f?1:k?J(k,a)-J(k,b):0;if(e===f)return ka(a,b);c=a;while(c=c.parentNode)g.unshift(c);c=b;while(c=c.parentNode)h.unshift(c);while(g[d]===h[d])d++;return d?ka(g[d],h[d]):g[d]===v?-1:h[d]===v?1:0},n):n},fa.matches=function(a,b){return fa(a,null,null,b)},fa.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(T,"='$1']"),c.matchesSelector&&p&&!A[b+" "]&&(!r||!r.test(b))&&(!q||!q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return fa(b,n,null,[a]).length>0},fa.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},fa.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&D.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},fa.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},fa.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=fa.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=fa.selectors={cacheLength:50,createPseudo:ha,match:W,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(ba,ca),a[3]=(a[3]||a[4]||a[5]||"").replace(ba,ca),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||fa.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&fa.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return W.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&U.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(ba,ca).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+L+")"+a+"("+L+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=fa.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(P," ")+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h,t=!1;if(q){if(f){while(p){m=b;while(m=m[p])if(h?m.nodeName.toLowerCase()===r:1===m.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){m=q,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n&&j[2],m=n&&q.childNodes[n];while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if(1===m.nodeType&&++t&&m===b){k[a]=[w,n,t];break}}else if(s&&(m=b,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n),t===!1)while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if((h?m.nodeName.toLowerCase()===r:1===m.nodeType)&&++t&&(s&&(l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),k[a]=[w,t]),m===b))break;return t-=e,t===d||t%d===0&&t/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||fa.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ha(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=J(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ha(function(a){var b=[],c=[],d=h(a.replace(Q,"$1"));return d[u]?ha(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ha(function(a){return function(b){return fa(a,b).length>0}}),contains:ha(function(a){return a=a.replace(ba,ca),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ha(function(a){return V.test(a||"")||fa.error("unsupported lang: "+a),a=a.replace(ba,ca).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return Y.test(a.nodeName)},input:function(a){return X.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:na(function(){return[0]}),last:na(function(a,b){return[b-1]}),eq:na(function(a,b,c){return[0>c?c+b:c]}),even:na(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:na(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:na(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:na(function(a,b,c){for(var d=0>c?c+b:c;++d<b;)a.push(d);return a})}},d.pseudos.nth=d.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})d.pseudos[b]=la(b);for(b in{submit:!0,reset:!0})d.pseudos[b]=ma(b);function pa(){}pa.prototype=d.filters=d.pseudos,d.setFilters=new pa,g=fa.tokenize=function(a,b){var c,e,f,g,h,i,j,k=z[a+" "];if(k)return b?0:k.slice(0);h=a,i=[],j=d.preFilter;while(h){c&&!(e=R.exec(h))||(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=S.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(Q," ")}),h=h.slice(c.length));for(g in d.filter)!(e=W[g].exec(h))||j[g]&&!(e=j[g](e))||(c=e.shift(),f.push({value:c,type:g,matches:e}),h=h.slice(c.length));if(!c)break}return b?h.length:h?fa.error(a):z(a,i).slice(0)};function qa(a){for(var b=0,c=a.length,d="";c>b;b++)d+=a[b].value;return d}function ra(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=x++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j,k=[w,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(j=b[u]||(b[u]={}),i=j[b.uniqueID]||(j[b.uniqueID]={}),(h=i[d])&&h[0]===w&&h[1]===f)return k[2]=h[2];if(i[d]=k,k[2]=a(b,c,g))return!0}}}function sa(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function ta(a,b,c){for(var d=0,e=b.length;e>d;d++)fa(a,b[d],c);return c}function ua(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(c&&!c(f,d,e)||(g.push(f),j&&b.push(h)));return g}function va(a,b,c,d,e,f){return d&&!d[u]&&(d=va(d)),e&&!e[u]&&(e=va(e,f)),ha(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||ta(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:ua(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=ua(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?J(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=ua(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):H.apply(g,r)})}function wa(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=ra(function(a){return a===b},h,!0),l=ra(function(a){return J(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];f>i;i++)if(c=d.relative[a[i].type])m=[ra(sa(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;f>e;e++)if(d.relative[a[e].type])break;return va(i>1&&sa(m),i>1&&qa(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(Q,"$1"),c,e>i&&wa(a.slice(i,e)),f>e&&wa(a=a.slice(e)),f>e&&qa(a))}m.push(c)}return sa(m)}function xa(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,o,q,r=0,s="0",t=f&&[],u=[],v=j,x=f||e&&d.find.TAG("*",k),y=w+=null==v?1:Math.random()||.1,z=x.length;for(k&&(j=g===n||g||k);s!==z&&null!=(l=x[s]);s++){if(e&&l){o=0,g||l.ownerDocument===n||(m(l),h=!p);while(q=a[o++])if(q(l,g||n,h)){i.push(l);break}k&&(w=y)}c&&((l=!q&&l)&&r--,f&&t.push(l))}if(r+=s,c&&s!==r){o=0;while(q=b[o++])q(t,u,g,h);if(f){if(r>0)while(s--)t[s]||u[s]||(u[s]=F.call(i));u=ua(u)}H.apply(i,u),k&&!f&&u.length>0&&r+b.length>1&&fa.uniqueSort(i)}return k&&(w=y,j=v),t};return c?ha(f):f}return h=fa.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=wa(b[c]),f[u]?d.push(f):e.push(f);f=A(a,xa(e,d)),f.selector=a}return f},i=fa.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"ID"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(b=(d.find.ID(k.matches[0].replace(ba,ca),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=W.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&&(f=m(k.matches[0].replace(ba,ca),_.test(j[0].type)&&oa(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&qa(j),!a)return H.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,!b||_.test(a)&&oa(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ia(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),ia(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||ja("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ia(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||ja("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),ia(function(a){return null==a.getAttribute("disabled")})||ja(K,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),fa}(a);n.find=t,n.expr=t.selectors,n.expr[":"]=n.expr.pseudos,n.uniqueSort=n.unique=t.uniqueSort,n.text=t.getText,n.isXMLDoc=t.isXML,n.contains=t.contains;var u=function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&n(a).is(c))break;d.push(a)}return d},v=function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c},w=n.expr.match.needsContext,x=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,y=/^.[^:#\[\.,]*$/;function z(a,b,c){if(n.isFunction(b))return n.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return n.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(y.test(b))return n.filter(b,a,c);b=n.filter(b,a)}return n.grep(a,function(a){return n.inArray(a,b)>-1!==c})}n.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?n.find.matchesSelector(d,a)?[d]:[]:n.find.matches(a,n.grep(b,function(a){return 1===a.nodeType}))},n.fn.extend({find:function(a){var b,c=[],d=this,e=d.length;if("string"!=typeof a)return this.pushStack(n(a).filter(function(){for(b=0;e>b;b++)if(n.contains(d[b],this))return!0}));for(b=0;e>b;b++)n.find(a,d[b],c);return c=this.pushStack(e>1?n.unique(c):c),c.selector=this.selector?this.selector+" "+a:a,c},filter:function(a){return this.pushStack(z(this,a||[],!1))},not:function(a){return this.pushStack(z(this,a||[],!0))},is:function(a){return!!z(this,"string"==typeof a&&w.test(a)?n(a):a||[],!1).length}});var A,B=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,C=n.fn.init=function(a,b,c){var e,f;if(!a)return this;if(c=c||A,"string"==typeof a){if(e="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&a.length>=3?[null,a,null]:B.exec(a),!e||!e[1]&&b)return!b||b.jquery?(b||c).find(a):this.constructor(b).find(a);if(e[1]){if(b=b instanceof n?b[0]:b,n.merge(this,n.parseHTML(e[1],b&&b.nodeType?b.ownerDocument||b:d,!0)),x.test(e[1])&&n.isPlainObject(b))for(e in b)n.isFunction(this[e])?this[e](b[e]):this.attr(e,b[e]);return this}if(f=d.getElementById(e[2]),f&&f.parentNode){if(f.id!==e[2])return A.find(a);this.length=1,this[0]=f}return this.context=d,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):n.isFunction(a)?"undefined"!=typeof c.ready?c.ready(a):a(n):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),n.makeArray(a,this))};C.prototype=n.fn,A=n(d);var D=/^(?:parents|prev(?:Until|All))/,E={children:!0,contents:!0,next:!0,prev:!0};n.fn.extend({has:function(a){var b,c=n(a,this),d=c.length;return this.filter(function(){for(b=0;d>b;b++)if(n.contains(this,c[b]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=w.test(a)||"string"!=typeof a?n(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&n.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?n.uniqueSort(f):f)},index:function(a){return a?"string"==typeof a?n.inArray(this[0],n(a)):n.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(n.uniqueSort(n.merge(this.get(),n(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function F(a,b){do a=a[b];while(a&&1!==a.nodeType);return a}n.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return u(a,"parentNode")},parentsUntil:function(a,b,c){return u(a,"parentNode",c)},next:function(a){return F(a,"nextSibling")},prev:function(a){return F(a,"previousSibling")},nextAll:function(a){return u(a,"nextSibling")},prevAll:function(a){return u(a,"previousSibling")},nextUntil:function(a,b,c){return u(a,"nextSibling",c)},prevUntil:function(a,b,c){return u(a,"previousSibling",c)},siblings:function(a){return v((a.parentNode||{}).firstChild,a)},children:function(a){return v(a.firstChild)},contents:function(a){return n.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:n.merge([],a.childNodes)}},function(a,b){n.fn[a]=function(c,d){var e=n.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=n.filter(d,e)),this.length>1&&(E[a]||(e=n.uniqueSort(e)),D.test(a)&&(e=e.reverse())),this.pushStack(e)}});var G=/\S+/g;function H(a){var b={};return n.each(a.match(G)||[],function(a,c){b[c]=!0}),b}n.Callbacks=function(a){a="string"==typeof a?H(a):n.extend({},a);var b,c,d,e,f=[],g=[],h=-1,i=function(){for(e=a.once,d=b=!0;g.length;h=-1){c=g.shift();while(++h<f.length)f[h].apply(c[0],c[1])===!1&&a.stopOnFalse&&(h=f.length,c=!1)}a.memory||(c=!1),b=!1,e&&(f=c?[]:"")},j={add:function(){return f&&(c&&!b&&(h=f.length-1,g.push(c)),function d(b){n.each(b,function(b,c){n.isFunction(c)?a.unique&&j.has(c)||f.push(c):c&&c.length&&"string"!==n.type(c)&&d(c)})}(arguments),c&&!b&&i()),this},remove:function(){return n.each(arguments,function(a,b){var c;while((c=n.inArray(b,f,c))>-1)f.splice(c,1),h>=c&&h--}),this},has:function(a){return a?n.inArray(a,f)>-1:f.length>0},empty:function(){return f&&(f=[]),this},disable:function(){return e=g=[],f=c="",this},disabled:function(){return!f},lock:function(){return e=!0,c||j.disable(),this},locked:function(){return!!e},fireWith:function(a,c){return e||(c=c||[],c=[a,c.slice?c.slice():c],g.push(c),b||i()),this},fire:function(){return j.fireWith(this,arguments),this},fired:function(){return!!d}};return j},n.extend({Deferred:function(a){var b=[["resolve","done",n.Callbacks("once memory"),"resolved"],["reject","fail",n.Callbacks("once memory"),"rejected"],["notify","progress",n.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return n.Deferred(function(c){n.each(b,function(b,f){var g=n.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&n.isFunction(a.promise)?a.promise().progress(c.notify).done(c.resolve).fail(c.reject):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?n.extend(a,d):d}},e={};return d.pipe=d.then,n.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=e.call(arguments),d=c.length,f=1!==d||a&&n.isFunction(a.promise)?d:0,g=1===f?a:n.Deferred(),h=function(a,b,c){return function(d){b[a]=this,c[a]=arguments.length>1?e.call(arguments):d,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(d>1)for(i=new Array(d),j=new Array(d),k=new Array(d);d>b;b++)c[b]&&n.isFunction(c[b].promise)?c[b].promise().progress(h(b,j,i)).done(h(b,k,c)).fail(g.reject):--f;return f||g.resolveWith(k,c),g.promise()}});var I;n.fn.ready=function(a){return n.ready.promise().done(a),this},n.extend({isReady:!1,readyWait:1,holdReady:function(a){a?n.readyWait++:n.ready(!0)},ready:function(a){(a===!0?--n.readyWait:n.isReady)||(n.isReady=!0,a!==!0&&--n.readyWait>0||(I.resolveWith(d,[n]),n.fn.triggerHandler&&(n(d).triggerHandler("ready"),n(d).off("ready"))))}});function J(){d.addEventListener?(d.removeEventListener("DOMContentLoaded",K),a.removeEventListener("load",K)):(d.detachEvent("onreadystatechange",K),a.detachEvent("onload",K))}function K(){(d.addEventListener||"load"===a.event.type||"complete"===d.readyState)&&(J(),n.ready())}n.ready.promise=function(b){if(!I)if(I=n.Deferred(),"complete"===d.readyState||"loading"!==d.readyState&&!d.documentElement.doScroll)a.setTimeout(n.ready);else if(d.addEventListener)d.addEventListener("DOMContentLoaded",K),a.addEventListener("load",K);else{d.attachEvent("onreadystatechange",K),a.attachEvent("onload",K);var c=!1;try{c=null==a.frameElement&&d.documentElement}catch(e){}c&&c.doScroll&&!function f(){if(!n.isReady){try{c.doScroll("left")}catch(b){return a.setTimeout(f,50)}J(),n.ready()}}()}return I.promise(b)},n.ready.promise();var L;for(L in n(l))break;l.ownFirst="0"===L,l.inlineBlockNeedsLayout=!1,n(function(){var a,b,c,e;c=d.getElementsByTagName("body")[0],c&&c.style&&(b=d.createElement("div"),e=d.createElement("div"),e.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(e).appendChild(b),"undefined"!=typeof b.style.zoom&&(b.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",l.inlineBlockNeedsLayout=a=3===b.offsetWidth,a&&(c.style.zoom=1)),c.removeChild(e))}),function(){var a=d.createElement("div");l.deleteExpando=!0;try{delete a.test}catch(b){l.deleteExpando=!1}a=null}();var M=function(a){var b=n.noData[(a.nodeName+" ").toLowerCase()],c=+a.nodeType||1;return 1!==c&&9!==c?!1:!b||b!==!0&&a.getAttribute("classid")===b},N=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,O=/([A-Z])/g;function P(a,b,c){if(void 0===c&&1===a.nodeType){var d="data-"+b.replace(O,"-$1").toLowerCase();if(c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:N.test(c)?n.parseJSON(c):c}catch(e){}n.data(a,b,c)}else c=void 0; -}return c}function Q(a){var b;for(b in a)if(("data"!==b||!n.isEmptyObject(a[b]))&&"toJSON"!==b)return!1;return!0}function R(a,b,d,e){if(M(a)){var f,g,h=n.expando,i=a.nodeType,j=i?n.cache:a,k=i?a[h]:a[h]&&h;if(k&&j[k]&&(e||j[k].data)||void 0!==d||"string"!=typeof b)return k||(k=i?a[h]=c.pop()||n.guid++:h),j[k]||(j[k]=i?{}:{toJSON:n.noop}),"object"!=typeof b&&"function"!=typeof b||(e?j[k]=n.extend(j[k],b):j[k].data=n.extend(j[k].data,b)),g=j[k],e||(g.data||(g.data={}),g=g.data),void 0!==d&&(g[n.camelCase(b)]=d),"string"==typeof b?(f=g[b],null==f&&(f=g[n.camelCase(b)])):f=g,f}}function S(a,b,c){if(M(a)){var d,e,f=a.nodeType,g=f?n.cache:a,h=f?a[n.expando]:n.expando;if(g[h]){if(b&&(d=c?g[h]:g[h].data)){n.isArray(b)?b=b.concat(n.map(b,n.camelCase)):b in d?b=[b]:(b=n.camelCase(b),b=b in d?[b]:b.split(" ")),e=b.length;while(e--)delete d[b[e]];if(c?!Q(d):!n.isEmptyObject(d))return}(c||(delete g[h].data,Q(g[h])))&&(f?n.cleanData([a],!0):l.deleteExpando||g!=g.window?delete g[h]:g[h]=void 0)}}}n.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(a){return a=a.nodeType?n.cache[a[n.expando]]:a[n.expando],!!a&&!Q(a)},data:function(a,b,c){return R(a,b,c)},removeData:function(a,b){return S(a,b)},_data:function(a,b,c){return R(a,b,c,!0)},_removeData:function(a,b){return S(a,b,!0)}}),n.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=n.data(f),1===f.nodeType&&!n._data(f,"parsedAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=n.camelCase(d.slice(5)),P(f,d,e[d])));n._data(f,"parsedAttrs",!0)}return e}return"object"==typeof a?this.each(function(){n.data(this,a)}):arguments.length>1?this.each(function(){n.data(this,a,b)}):f?P(f,a,n.data(f,a)):void 0},removeData:function(a){return this.each(function(){n.removeData(this,a)})}}),n.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=n._data(a,b),c&&(!d||n.isArray(c)?d=n._data(a,b,n.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=n.queue(a,b),d=c.length,e=c.shift(),f=n._queueHooks(a,b),g=function(){n.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return n._data(a,c)||n._data(a,c,{empty:n.Callbacks("once memory").add(function(){n._removeData(a,b+"queue"),n._removeData(a,c)})})}}),n.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?n.queue(this[0],a):void 0===b?this:this.each(function(){var c=n.queue(this,a,b);n._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&n.dequeue(this,a)})},dequeue:function(a){return this.each(function(){n.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=n.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};"string"!=typeof a&&(b=a,a=void 0),a=a||"fx";while(g--)c=n._data(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}}),function(){var a;l.shrinkWrapBlocks=function(){if(null!=a)return a;a=!1;var b,c,e;return c=d.getElementsByTagName("body")[0],c&&c.style?(b=d.createElement("div"),e=d.createElement("div"),e.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(e).appendChild(b),"undefined"!=typeof b.style.zoom&&(b.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",b.appendChild(d.createElement("div")).style.width="5px",a=3!==b.offsetWidth),c.removeChild(e),a):void 0}}();var T=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,U=new RegExp("^(?:([+-])=|)("+T+")([a-z%]*)$","i"),V=["Top","Right","Bottom","Left"],W=function(a,b){return a=b||a,"none"===n.css(a,"display")||!n.contains(a.ownerDocument,a)};function X(a,b,c,d){var e,f=1,g=20,h=d?function(){return d.cur()}:function(){return n.css(a,b,"")},i=h(),j=c&&c[3]||(n.cssNumber[b]?"":"px"),k=(n.cssNumber[b]||"px"!==j&&+i)&&U.exec(n.css(a,b));if(k&&k[3]!==j){j=j||k[3],c=c||[],k=+i||1;do f=f||".5",k/=f,n.style(a,b,k+j);while(f!==(f=h()/i)&&1!==f&&--g)}return c&&(k=+k||+i||0,e=c[1]?k+(c[1]+1)*c[2]:+c[2],d&&(d.unit=j,d.start=k,d.end=e)),e}var Y=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===n.type(c)){e=!0;for(h in c)Y(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,n.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(n(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},Z=/^(?:checkbox|radio)$/i,$=/<([\w:-]+)/,_=/^$|\/(?:java|ecma)script/i,aa=/^\s+/,ba="abbr|article|aside|audio|bdi|canvas|data|datalist|details|dialog|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|picture|progress|section|summary|template|time|video";function ca(a){var b=ba.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}!function(){var a=d.createElement("div"),b=d.createDocumentFragment(),c=d.createElement("input");a.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",l.leadingWhitespace=3===a.firstChild.nodeType,l.tbody=!a.getElementsByTagName("tbody").length,l.htmlSerialize=!!a.getElementsByTagName("link").length,l.html5Clone="<:nav></:nav>"!==d.createElement("nav").cloneNode(!0).outerHTML,c.type="checkbox",c.checked=!0,b.appendChild(c),l.appendChecked=c.checked,a.innerHTML="<textarea>x</textarea>",l.noCloneChecked=!!a.cloneNode(!0).lastChild.defaultValue,b.appendChild(a),c=d.createElement("input"),c.setAttribute("type","radio"),c.setAttribute("checked","checked"),c.setAttribute("name","t"),a.appendChild(c),l.checkClone=a.cloneNode(!0).cloneNode(!0).lastChild.checked,l.noCloneEvent=!!a.addEventListener,a[n.expando]=1,l.attributes=!a.getAttribute(n.expando)}();var da={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:l.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]};da.optgroup=da.option,da.tbody=da.tfoot=da.colgroup=da.caption=da.thead,da.th=da.td;function ea(a,b){var c,d,e=0,f="undefined"!=typeof a.getElementsByTagName?a.getElementsByTagName(b||"*"):"undefined"!=typeof a.querySelectorAll?a.querySelectorAll(b||"*"):void 0;if(!f)for(f=[],c=a.childNodes||a;null!=(d=c[e]);e++)!b||n.nodeName(d,b)?f.push(d):n.merge(f,ea(d,b));return void 0===b||b&&n.nodeName(a,b)?n.merge([a],f):f}function fa(a,b){for(var c,d=0;null!=(c=a[d]);d++)n._data(c,"globalEval",!b||n._data(b[d],"globalEval"))}var ga=/<|&#?\w+;/,ha=/<tbody/i;function ia(a){Z.test(a.type)&&(a.defaultChecked=a.checked)}function ja(a,b,c,d,e){for(var f,g,h,i,j,k,m,o=a.length,p=ca(b),q=[],r=0;o>r;r++)if(g=a[r],g||0===g)if("object"===n.type(g))n.merge(q,g.nodeType?[g]:g);else if(ga.test(g)){i=i||p.appendChild(b.createElement("div")),j=($.exec(g)||["",""])[1].toLowerCase(),m=da[j]||da._default,i.innerHTML=m[1]+n.htmlPrefilter(g)+m[2],f=m[0];while(f--)i=i.lastChild;if(!l.leadingWhitespace&&aa.test(g)&&q.push(b.createTextNode(aa.exec(g)[0])),!l.tbody){g="table"!==j||ha.test(g)?"<table>"!==m[1]||ha.test(g)?0:i:i.firstChild,f=g&&g.childNodes.length;while(f--)n.nodeName(k=g.childNodes[f],"tbody")&&!k.childNodes.length&&g.removeChild(k)}n.merge(q,i.childNodes),i.textContent="";while(i.firstChild)i.removeChild(i.firstChild);i=p.lastChild}else q.push(b.createTextNode(g));i&&p.removeChild(i),l.appendChecked||n.grep(ea(q,"input"),ia),r=0;while(g=q[r++])if(d&&n.inArray(g,d)>-1)e&&e.push(g);else if(h=n.contains(g.ownerDocument,g),i=ea(p.appendChild(g),"script"),h&&fa(i),c){f=0;while(g=i[f++])_.test(g.type||"")&&c.push(g)}return i=null,p}!function(){var b,c,e=d.createElement("div");for(b in{submit:!0,change:!0,focusin:!0})c="on"+b,(l[b]=c in a)||(e.setAttribute(c,"t"),l[b]=e.attributes[c].expando===!1);e=null}();var ka=/^(?:input|select|textarea)$/i,la=/^key/,ma=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,na=/^(?:focusinfocus|focusoutblur)$/,oa=/^([^.]*)(?:\.(.+)|)/;function pa(){return!0}function qa(){return!1}function ra(){try{return d.activeElement}catch(a){}}function sa(a,b,c,d,e,f){var g,h;if("object"==typeof b){"string"!=typeof c&&(d=d||c,c=void 0);for(h in b)sa(a,h,c,d,b[h],f);return a}if(null==d&&null==e?(e=c,d=c=void 0):null==e&&("string"==typeof c?(e=d,d=void 0):(e=d,d=c,c=void 0)),e===!1)e=qa;else if(!e)return a;return 1===f&&(g=e,e=function(a){return n().off(a),g.apply(this,arguments)},e.guid=g.guid||(g.guid=n.guid++)),a.each(function(){n.event.add(this,b,e,d,c)})}n.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=n._data(a);if(r){c.handler&&(i=c,c=i.handler,e=i.selector),c.guid||(c.guid=n.guid++),(g=r.events)||(g=r.events={}),(k=r.handle)||(k=r.handle=function(a){return"undefined"==typeof n||a&&n.event.triggered===a.type?void 0:n.event.dispatch.apply(k.elem,arguments)},k.elem=a),b=(b||"").match(G)||[""],h=b.length;while(h--)f=oa.exec(b[h])||[],o=q=f[1],p=(f[2]||"").split(".").sort(),o&&(j=n.event.special[o]||{},o=(e?j.delegateType:j.bindType)||o,j=n.event.special[o]||{},l=n.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&n.expr.match.needsContext.test(e),namespace:p.join(".")},i),(m=g[o])||(m=g[o]=[],m.delegateCount=0,j.setup&&j.setup.call(a,d,p,k)!==!1||(a.addEventListener?a.addEventListener(o,k,!1):a.attachEvent&&a.attachEvent("on"+o,k))),j.add&&(j.add.call(a,l),l.handler.guid||(l.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,l):m.push(l),n.event.global[o]=!0);a=null}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=n.hasData(a)&&n._data(a);if(r&&(k=r.events)){b=(b||"").match(G)||[""],j=b.length;while(j--)if(h=oa.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=n.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,m=k[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=f=m.length;while(f--)g=m[f],!e&&q!==g.origType||c&&c.guid!==g.guid||h&&!h.test(g.namespace)||d&&d!==g.selector&&("**"!==d||!g.selector)||(m.splice(f,1),g.selector&&m.delegateCount--,l.remove&&l.remove.call(a,g));i&&!m.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||n.removeEvent(a,o,r.handle),delete k[o])}else for(o in k)n.event.remove(a,o+b[j],c,d,!0);n.isEmptyObject(k)&&(delete r.handle,n._removeData(a,"events"))}},trigger:function(b,c,e,f){var g,h,i,j,l,m,o,p=[e||d],q=k.call(b,"type")?b.type:b,r=k.call(b,"namespace")?b.namespace.split("."):[];if(i=m=e=e||d,3!==e.nodeType&&8!==e.nodeType&&!na.test(q+n.event.triggered)&&(q.indexOf(".")>-1&&(r=q.split("."),q=r.shift(),r.sort()),h=q.indexOf(":")<0&&"on"+q,b=b[n.expando]?b:new n.Event(q,"object"==typeof b&&b),b.isTrigger=f?2:3,b.namespace=r.join("."),b.rnamespace=b.namespace?new RegExp("(^|\\.)"+r.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=e),c=null==c?[b]:n.makeArray(c,[b]),l=n.event.special[q]||{},f||!l.trigger||l.trigger.apply(e,c)!==!1)){if(!f&&!l.noBubble&&!n.isWindow(e)){for(j=l.delegateType||q,na.test(j+q)||(i=i.parentNode);i;i=i.parentNode)p.push(i),m=i;m===(e.ownerDocument||d)&&p.push(m.defaultView||m.parentWindow||a)}o=0;while((i=p[o++])&&!b.isPropagationStopped())b.type=o>1?j:l.bindType||q,g=(n._data(i,"events")||{})[b.type]&&n._data(i,"handle"),g&&g.apply(i,c),g=h&&i[h],g&&g.apply&&M(i)&&(b.result=g.apply(i,c),b.result===!1&&b.preventDefault());if(b.type=q,!f&&!b.isDefaultPrevented()&&(!l._default||l._default.apply(p.pop(),c)===!1)&&M(e)&&h&&e[q]&&!n.isWindow(e)){m=e[h],m&&(e[h]=null),n.event.triggered=q;try{e[q]()}catch(s){}n.event.triggered=void 0,m&&(e[h]=m)}return b.result}},dispatch:function(a){a=n.event.fix(a);var b,c,d,f,g,h=[],i=e.call(arguments),j=(n._data(this,"events")||{})[a.type]||[],k=n.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=n.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,c=0;while((g=f.handlers[c++])&&!a.isImmediatePropagationStopped())a.rnamespace&&!a.rnamespace.test(g.namespace)||(a.handleObj=g,a.data=g.data,d=((n.event.special[g.origType]||{}).handle||g.handler).apply(f.elem,i),void 0!==d&&(a.result=d)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&("click"!==a.type||isNaN(a.button)||a.button<1))for(;i!=this;i=i.parentNode||this)if(1===i.nodeType&&(i.disabled!==!0||"click"!==a.type)){for(d=[],c=0;h>c;c++)f=b[c],e=f.selector+" ",void 0===d[e]&&(d[e]=f.needsContext?n(e,this).index(i)>-1:n.find(e,this,null,[i]).length),d[e]&&d.push(f);d.length&&g.push({elem:i,handlers:d})}return h<b.length&&g.push({elem:this,handlers:b.slice(h)}),g},fix:function(a){if(a[n.expando])return a;var b,c,e,f=a.type,g=a,h=this.fixHooks[f];h||(this.fixHooks[f]=h=ma.test(f)?this.mouseHooks:la.test(f)?this.keyHooks:{}),e=h.props?this.props.concat(h.props):this.props,a=new n.Event(g),b=e.length;while(b--)c=e[b],a[c]=g[c];return a.target||(a.target=g.srcElement||d),3===a.target.nodeType&&(a.target=a.target.parentNode),a.metaKey=!!a.metaKey,h.filter?h.filter(a,g):a},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){return null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode),a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var c,e,f,g=b.button,h=b.fromElement;return null==a.pageX&&null!=b.clientX&&(e=a.target.ownerDocument||d,f=e.documentElement,c=e.body,a.pageX=b.clientX+(f&&f.scrollLeft||c&&c.scrollLeft||0)-(f&&f.clientLeft||c&&c.clientLeft||0),a.pageY=b.clientY+(f&&f.scrollTop||c&&c.scrollTop||0)-(f&&f.clientTop||c&&c.clientTop||0)),!a.relatedTarget&&h&&(a.relatedTarget=h===a.target?b.toElement:h),a.which||void 0===g||(a.which=1&g?1:2&g?3:4&g?2:0),a}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==ra()&&this.focus)try{return this.focus(),!1}catch(a){}},delegateType:"focusin"},blur:{trigger:function(){return this===ra()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return n.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):void 0},_default:function(a){return n.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}},simulate:function(a,b,c){var d=n.extend(new n.Event,c,{type:a,isSimulated:!0});n.event.trigger(d,null,b),d.isDefaultPrevented()&&c.preventDefault()}},n.removeEvent=d.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c)}:function(a,b,c){var d="on"+b;a.detachEvent&&("undefined"==typeof a[d]&&(a[d]=null),a.detachEvent(d,c))},n.Event=function(a,b){return this instanceof n.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&a.returnValue===!1?pa:qa):this.type=a,b&&n.extend(this,b),this.timeStamp=a&&a.timeStamp||n.now(),void(this[n.expando]=!0)):new n.Event(a,b)},n.Event.prototype={constructor:n.Event,isDefaultPrevented:qa,isPropagationStopped:qa,isImmediatePropagationStopped:qa,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=pa,a&&(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=pa,a&&!this.isSimulated&&(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=pa,a&&a.stopImmediatePropagation&&a.stopImmediatePropagation(),this.stopPropagation()}},n.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,b){n.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return e&&(e===d||n.contains(d,e))||(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),l.submit||(n.event.special.submit={setup:function(){return n.nodeName(this,"form")?!1:void n.event.add(this,"click._submit keypress._submit",function(a){var b=a.target,c=n.nodeName(b,"input")||n.nodeName(b,"button")?n.prop(b,"form"):void 0;c&&!n._data(c,"submit")&&(n.event.add(c,"submit._submit",function(a){a._submitBubble=!0}),n._data(c,"submit",!0))})},postDispatch:function(a){a._submitBubble&&(delete a._submitBubble,this.parentNode&&!a.isTrigger&&n.event.simulate("submit",this.parentNode,a))},teardown:function(){return n.nodeName(this,"form")?!1:void n.event.remove(this,"._submit")}}),l.change||(n.event.special.change={setup:function(){return ka.test(this.nodeName)?("checkbox"!==this.type&&"radio"!==this.type||(n.event.add(this,"propertychange._change",function(a){"checked"===a.originalEvent.propertyName&&(this._justChanged=!0)}),n.event.add(this,"click._change",function(a){this._justChanged&&!a.isTrigger&&(this._justChanged=!1),n.event.simulate("change",this,a)})),!1):void n.event.add(this,"beforeactivate._change",function(a){var b=a.target;ka.test(b.nodeName)&&!n._data(b,"change")&&(n.event.add(b,"change._change",function(a){!this.parentNode||a.isSimulated||a.isTrigger||n.event.simulate("change",this.parentNode,a)}),n._data(b,"change",!0))})},handle:function(a){var b=a.target;return this!==b||a.isSimulated||a.isTrigger||"radio"!==b.type&&"checkbox"!==b.type?a.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return n.event.remove(this,"._change"),!ka.test(this.nodeName)}}),l.focusin||n.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){n.event.simulate(b,a.target,n.event.fix(a))};n.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=n._data(d,b);e||d.addEventListener(a,c,!0),n._data(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=n._data(d,b)-1;e?n._data(d,b,e):(d.removeEventListener(a,c,!0),n._removeData(d,b))}}}),n.fn.extend({on:function(a,b,c,d){return sa(this,a,b,c,d)},one:function(a,b,c,d){return sa(this,a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,n(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if("object"==typeof a){for(e in a)this.off(e,b,a[e]);return this}return b!==!1&&"function"!=typeof b||(c=b,b=void 0),c===!1&&(c=qa),this.each(function(){n.event.remove(this,a,c,b)})},trigger:function(a,b){return this.each(function(){n.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];return c?n.event.trigger(a,b,c,!0):void 0}});var ta=/ jQuery\d+="(?:null|\d+)"/g,ua=new RegExp("<(?:"+ba+")[\\s/>]","i"),va=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,wa=/<script|<style|<link/i,xa=/checked\s*(?:[^=]|=\s*.checked.)/i,ya=/^true\/(.*)/,za=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Aa=ca(d),Ba=Aa.appendChild(d.createElement("div"));function Ca(a,b){return n.nodeName(a,"table")&&n.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function Da(a){return a.type=(null!==n.find.attr(a,"type"))+"/"+a.type,a}function Ea(a){var b=ya.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function Fa(a,b){if(1===b.nodeType&&n.hasData(a)){var c,d,e,f=n._data(a),g=n._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h)for(d=0,e=h[c].length;e>d;d++)n.event.add(b,c,h[c][d])}g.data&&(g.data=n.extend({},g.data))}}function Ga(a,b){var c,d,e;if(1===b.nodeType){if(c=b.nodeName.toLowerCase(),!l.noCloneEvent&&b[n.expando]){e=n._data(b);for(d in e.events)n.removeEvent(b,d,e.handle);b.removeAttribute(n.expando)}"script"===c&&b.text!==a.text?(Da(b).text=a.text,Ea(b)):"object"===c?(b.parentNode&&(b.outerHTML=a.outerHTML),l.html5Clone&&a.innerHTML&&!n.trim(b.innerHTML)&&(b.innerHTML=a.innerHTML)):"input"===c&&Z.test(a.type)?(b.defaultChecked=b.checked=a.checked,b.value!==a.value&&(b.value=a.value)):"option"===c?b.defaultSelected=b.selected=a.defaultSelected:"input"!==c&&"textarea"!==c||(b.defaultValue=a.defaultValue)}}function Ha(a,b,c,d){b=f.apply([],b);var e,g,h,i,j,k,m=0,o=a.length,p=o-1,q=b[0],r=n.isFunction(q);if(r||o>1&&"string"==typeof q&&!l.checkClone&&xa.test(q))return a.each(function(e){var f=a.eq(e);r&&(b[0]=q.call(this,e,f.html())),Ha(f,b,c,d)});if(o&&(k=ja(b,a[0].ownerDocument,!1,a,d),e=k.firstChild,1===k.childNodes.length&&(k=e),e||d)){for(i=n.map(ea(k,"script"),Da),h=i.length;o>m;m++)g=k,m!==p&&(g=n.clone(g,!0,!0),h&&n.merge(i,ea(g,"script"))),c.call(a[m],g,m);if(h)for(j=i[i.length-1].ownerDocument,n.map(i,Ea),m=0;h>m;m++)g=i[m],_.test(g.type||"")&&!n._data(g,"globalEval")&&n.contains(j,g)&&(g.src?n._evalUrl&&n._evalUrl(g.src):n.globalEval((g.text||g.textContent||g.innerHTML||"").replace(za,"")));k=e=null}return a}function Ia(a,b,c){for(var d,e=b?n.filter(b,a):a,f=0;null!=(d=e[f]);f++)c||1!==d.nodeType||n.cleanData(ea(d)),d.parentNode&&(c&&n.contains(d.ownerDocument,d)&&fa(ea(d,"script")),d.parentNode.removeChild(d));return a}n.extend({htmlPrefilter:function(a){return a.replace(va,"<$1></$2>")},clone:function(a,b,c){var d,e,f,g,h,i=n.contains(a.ownerDocument,a);if(l.html5Clone||n.isXMLDoc(a)||!ua.test("<"+a.nodeName+">")?f=a.cloneNode(!0):(Ba.innerHTML=a.outerHTML,Ba.removeChild(f=Ba.firstChild)),!(l.noCloneEvent&&l.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||n.isXMLDoc(a)))for(d=ea(f),h=ea(a),g=0;null!=(e=h[g]);++g)d[g]&&Ga(e,d[g]);if(b)if(c)for(h=h||ea(a),d=d||ea(f),g=0;null!=(e=h[g]);g++)Fa(e,d[g]);else Fa(a,f);return d=ea(f,"script"),d.length>0&&fa(d,!i&&ea(a,"script")),d=h=e=null,f},cleanData:function(a,b){for(var d,e,f,g,h=0,i=n.expando,j=n.cache,k=l.attributes,m=n.event.special;null!=(d=a[h]);h++)if((b||M(d))&&(f=d[i],g=f&&j[f])){if(g.events)for(e in g.events)m[e]?n.event.remove(d,e):n.removeEvent(d,e,g.handle);j[f]&&(delete j[f],k||"undefined"==typeof d.removeAttribute?d[i]=void 0:d.removeAttribute(i),c.push(f))}}}),n.fn.extend({domManip:Ha,detach:function(a){return Ia(this,a,!0)},remove:function(a){return Ia(this,a)},text:function(a){return Y(this,function(a){return void 0===a?n.text(this):this.empty().append((this[0]&&this[0].ownerDocument||d).createTextNode(a))},null,a,arguments.length)},append:function(){return Ha(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=Ca(this,a);b.appendChild(a)}})},prepend:function(){return Ha(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=Ca(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return Ha(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return Ha(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},empty:function(){for(var a,b=0;null!=(a=this[b]);b++){1===a.nodeType&&n.cleanData(ea(a,!1));while(a.firstChild)a.removeChild(a.firstChild);a.options&&n.nodeName(a,"select")&&(a.options.length=0)}return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return n.clone(this,a,b)})},html:function(a){return Y(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a)return 1===b.nodeType?b.innerHTML.replace(ta,""):void 0;if("string"==typeof a&&!wa.test(a)&&(l.htmlSerialize||!ua.test(a))&&(l.leadingWhitespace||!aa.test(a))&&!da[($.exec(a)||["",""])[1].toLowerCase()]){a=n.htmlPrefilter(a);try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(n.cleanData(ea(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=[];return Ha(this,arguments,function(b){var c=this.parentNode;n.inArray(this,a)<0&&(n.cleanData(ea(this)),c&&c.replaceChild(b,this))},a)}}),n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){n.fn[a]=function(a){for(var c,d=0,e=[],f=n(a),h=f.length-1;h>=d;d++)c=d===h?this:this.clone(!0),n(f[d])[b](c),g.apply(e,c.get());return this.pushStack(e)}});var Ja,Ka={HTML:"block",BODY:"block"};function La(a,b){var c=n(b.createElement(a)).appendTo(b.body),d=n.css(c[0],"display");return c.detach(),d}function Ma(a){var b=d,c=Ka[a];return c||(c=La(a,b),"none"!==c&&c||(Ja=(Ja||n("<iframe frameborder='0' width='0' height='0'/>")).appendTo(b.documentElement),b=(Ja[0].contentWindow||Ja[0].contentDocument).document,b.write(),b.close(),c=La(a,b),Ja.detach()),Ka[a]=c),c}var Na=/^margin/,Oa=new RegExp("^("+T+")(?!px)[a-z%]+$","i"),Pa=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e},Qa=d.documentElement;!function(){var b,c,e,f,g,h,i=d.createElement("div"),j=d.createElement("div");if(j.style){j.style.cssText="float:left;opacity:.5",l.opacity="0.5"===j.style.opacity,l.cssFloat=!!j.style.cssFloat,j.style.backgroundClip="content-box",j.cloneNode(!0).style.backgroundClip="",l.clearCloneStyle="content-box"===j.style.backgroundClip,i=d.createElement("div"),i.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",j.innerHTML="",i.appendChild(j),l.boxSizing=""===j.style.boxSizing||""===j.style.MozBoxSizing||""===j.style.WebkitBoxSizing,n.extend(l,{reliableHiddenOffsets:function(){return null==b&&k(),f},boxSizingReliable:function(){return null==b&&k(),e},pixelMarginRight:function(){return null==b&&k(),c},pixelPosition:function(){return null==b&&k(),b},reliableMarginRight:function(){return null==b&&k(),g},reliableMarginLeft:function(){return null==b&&k(),h}});function k(){var k,l,m=d.documentElement;m.appendChild(i),j.style.cssText="-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",b=e=h=!1,c=g=!0,a.getComputedStyle&&(l=a.getComputedStyle(j),b="1%"!==(l||{}).top,h="2px"===(l||{}).marginLeft,e="4px"===(l||{width:"4px"}).width,j.style.marginRight="50%",c="4px"===(l||{marginRight:"4px"}).marginRight,k=j.appendChild(d.createElement("div")),k.style.cssText=j.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",k.style.marginRight=k.style.width="0",j.style.width="1px",g=!parseFloat((a.getComputedStyle(k)||{}).marginRight),j.removeChild(k)),j.style.display="none",f=0===j.getClientRects().length,f&&(j.style.display="",j.innerHTML="<table><tr><td></td><td>t</td></tr></table>",j.childNodes[0].style.borderCollapse="separate",k=j.getElementsByTagName("td"),k[0].style.cssText="margin:0;border:0;padding:0;display:none",f=0===k[0].offsetHeight,f&&(k[0].style.display="",k[1].style.display="none",f=0===k[0].offsetHeight)),m.removeChild(i)}}}();var Ra,Sa,Ta=/^(top|right|bottom|left)$/;a.getComputedStyle?(Ra=function(b){var c=b.ownerDocument.defaultView;return c&&c.opener||(c=a),c.getComputedStyle(b)},Sa=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Ra(a),g=c?c.getPropertyValue(b)||c[b]:void 0,""!==g&&void 0!==g||n.contains(a.ownerDocument,a)||(g=n.style(a,b)),c&&!l.pixelMarginRight()&&Oa.test(g)&&Na.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f),void 0===g?g:g+""}):Qa.currentStyle&&(Ra=function(a){return a.currentStyle},Sa=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Ra(a),g=c?c[b]:void 0,null==g&&h&&h[b]&&(g=h[b]),Oa.test(g)&&!Ta.test(b)&&(d=h.left,e=a.runtimeStyle,f=e&&e.left,f&&(e.left=a.currentStyle.left),h.left="fontSize"===b?"1em":g,g=h.pixelLeft+"px",h.left=d,f&&(e.left=f)),void 0===g?g:g+""||"auto"});function Ua(a,b){return{get:function(){return a()?void delete this.get:(this.get=b).apply(this,arguments)}}}var Va=/alpha\([^)]*\)/i,Wa=/opacity\s*=\s*([^)]*)/i,Xa=/^(none|table(?!-c[ea]).+)/,Ya=new RegExp("^("+T+")(.*)$","i"),Za={position:"absolute",visibility:"hidden",display:"block"},$a={letterSpacing:"0",fontWeight:"400"},_a=["Webkit","O","Moz","ms"],ab=d.createElement("div").style;function bb(a){if(a in ab)return a;var b=a.charAt(0).toUpperCase()+a.slice(1),c=_a.length;while(c--)if(a=_a[c]+b,a in ab)return a}function cb(a,b){for(var c,d,e,f=[],g=0,h=a.length;h>g;g++)d=a[g],d.style&&(f[g]=n._data(d,"olddisplay"),c=d.style.display,b?(f[g]||"none"!==c||(d.style.display=""),""===d.style.display&&W(d)&&(f[g]=n._data(d,"olddisplay",Ma(d.nodeName)))):(e=W(d),(c&&"none"!==c||!e)&&n._data(d,"olddisplay",e?c:n.css(d,"display"))));for(g=0;h>g;g++)d=a[g],d.style&&(b&&"none"!==d.style.display&&""!==d.style.display||(d.style.display=b?f[g]||"":"none"));return a}function db(a,b,c){var d=Ya.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||"px"):b}function eb(a,b,c,d,e){for(var f=c===(d?"border":"content")?4:"width"===b?1:0,g=0;4>f;f+=2)"margin"===c&&(g+=n.css(a,c+V[f],!0,e)),d?("content"===c&&(g-=n.css(a,"padding"+V[f],!0,e)),"margin"!==c&&(g-=n.css(a,"border"+V[f]+"Width",!0,e))):(g+=n.css(a,"padding"+V[f],!0,e),"padding"!==c&&(g+=n.css(a,"border"+V[f]+"Width",!0,e)));return g}function fb(a,b,c){var d=!0,e="width"===b?a.offsetWidth:a.offsetHeight,f=Ra(a),g=l.boxSizing&&"border-box"===n.css(a,"boxSizing",!1,f);if(0>=e||null==e){if(e=Sa(a,b,f),(0>e||null==e)&&(e=a.style[b]),Oa.test(e))return e;d=g&&(l.boxSizingReliable()||e===a.style[b]),e=parseFloat(e)||0}return e+eb(a,b,c||(g?"border":"content"),d,f)+"px"}n.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=Sa(a,"opacity");return""===c?"1":c}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":l.cssFloat?"cssFloat":"styleFloat"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=n.camelCase(b),i=a.style;if(b=n.cssProps[h]||(n.cssProps[h]=bb(h)||h),g=n.cssHooks[b]||n.cssHooks[h],void 0===c)return g&&"get"in g&&void 0!==(e=g.get(a,!1,d))?e:i[b];if(f=typeof c,"string"===f&&(e=U.exec(c))&&e[1]&&(c=X(a,b,e),f="number"),null!=c&&c===c&&("number"===f&&(c+=e&&e[3]||(n.cssNumber[h]?"":"px")),l.clearCloneStyle||""!==c||0!==b.indexOf("background")||(i[b]="inherit"),!(g&&"set"in g&&void 0===(c=g.set(a,c,d)))))try{i[b]=c}catch(j){}}},css:function(a,b,c,d){var e,f,g,h=n.camelCase(b);return b=n.cssProps[h]||(n.cssProps[h]=bb(h)||h),g=n.cssHooks[b]||n.cssHooks[h],g&&"get"in g&&(f=g.get(a,!0,c)),void 0===f&&(f=Sa(a,b,d)),"normal"===f&&b in $a&&(f=$a[b]),""===c||c?(e=parseFloat(f),c===!0||isFinite(e)?e||0:f):f}}),n.each(["height","width"],function(a,b){n.cssHooks[b]={get:function(a,c,d){return c?Xa.test(n.css(a,"display"))&&0===a.offsetWidth?Pa(a,Za,function(){return fb(a,b,d)}):fb(a,b,d):void 0},set:function(a,c,d){var e=d&&Ra(a);return db(a,c,d?eb(a,b,d,l.boxSizing&&"border-box"===n.css(a,"boxSizing",!1,e),e):0)}}}),l.opacity||(n.cssHooks.opacity={get:function(a,b){return Wa.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=n.isNumeric(b)?"alpha(opacity="+100*b+")":"",f=d&&d.filter||c.filter||"";c.zoom=1,(b>=1||""===b)&&""===n.trim(f.replace(Va,""))&&c.removeAttribute&&(c.removeAttribute("filter"),""===b||d&&!d.filter)||(c.filter=Va.test(f)?f.replace(Va,e):f+" "+e)}}),n.cssHooks.marginRight=Ua(l.reliableMarginRight,function(a,b){return b?Pa(a,{display:"inline-block"},Sa,[a,"marginRight"]):void 0}),n.cssHooks.marginLeft=Ua(l.reliableMarginLeft,function(a,b){return b?(parseFloat(Sa(a,"marginLeft"))||(n.contains(a.ownerDocument,a)?a.getBoundingClientRect().left-Pa(a,{ -marginLeft:0},function(){return a.getBoundingClientRect().left}):0))+"px":void 0}),n.each({margin:"",padding:"",border:"Width"},function(a,b){n.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];4>d;d++)e[a+V[d]+b]=f[d]||f[d-2]||f[0];return e}},Na.test(a)||(n.cssHooks[a+b].set=db)}),n.fn.extend({css:function(a,b){return Y(this,function(a,b,c){var d,e,f={},g=0;if(n.isArray(b)){for(d=Ra(a),e=b.length;e>g;g++)f[b[g]]=n.css(a,b[g],!1,d);return f}return void 0!==c?n.style(a,b,c):n.css(a,b)},a,b,arguments.length>1)},show:function(){return cb(this,!0)},hide:function(){return cb(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){W(this)?n(this).show():n(this).hide()})}});function gb(a,b,c,d,e){return new gb.prototype.init(a,b,c,d,e)}n.Tween=gb,gb.prototype={constructor:gb,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||n.easing._default,this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(n.cssNumber[c]?"":"px")},cur:function(){var a=gb.propHooks[this.prop];return a&&a.get?a.get(this):gb.propHooks._default.get(this)},run:function(a){var b,c=gb.propHooks[this.prop];return this.options.duration?this.pos=b=n.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):gb.propHooks._default.set(this),this}},gb.prototype.init.prototype=gb.prototype,gb.propHooks={_default:{get:function(a){var b;return 1!==a.elem.nodeType||null!=a.elem[a.prop]&&null==a.elem.style[a.prop]?a.elem[a.prop]:(b=n.css(a.elem,a.prop,""),b&&"auto"!==b?b:0)},set:function(a){n.fx.step[a.prop]?n.fx.step[a.prop](a):1!==a.elem.nodeType||null==a.elem.style[n.cssProps[a.prop]]&&!n.cssHooks[a.prop]?a.elem[a.prop]=a.now:n.style(a.elem,a.prop,a.now+a.unit)}}},gb.propHooks.scrollTop=gb.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},n.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2},_default:"swing"},n.fx=gb.prototype.init,n.fx.step={};var hb,ib,jb=/^(?:toggle|show|hide)$/,kb=/queueHooks$/;function lb(){return a.setTimeout(function(){hb=void 0}),hb=n.now()}function mb(a,b){var c,d={height:a},e=0;for(b=b?1:0;4>e;e+=2-b)c=V[e],d["margin"+c]=d["padding"+c]=a;return b&&(d.opacity=d.width=a),d}function nb(a,b,c){for(var d,e=(qb.tweeners[b]||[]).concat(qb.tweeners["*"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function ob(a,b,c){var d,e,f,g,h,i,j,k,m=this,o={},p=a.style,q=a.nodeType&&W(a),r=n._data(a,"fxshow");c.queue||(h=n._queueHooks(a,"fx"),null==h.unqueued&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,m.always(function(){m.always(function(){h.unqueued--,n.queue(a,"fx").length||h.empty.fire()})})),1===a.nodeType&&("height"in b||"width"in b)&&(c.overflow=[p.overflow,p.overflowX,p.overflowY],j=n.css(a,"display"),k="none"===j?n._data(a,"olddisplay")||Ma(a.nodeName):j,"inline"===k&&"none"===n.css(a,"float")&&(l.inlineBlockNeedsLayout&&"inline"!==Ma(a.nodeName)?p.zoom=1:p.display="inline-block")),c.overflow&&(p.overflow="hidden",l.shrinkWrapBlocks()||m.always(function(){p.overflow=c.overflow[0],p.overflowX=c.overflow[1],p.overflowY=c.overflow[2]}));for(d in b)if(e=b[d],jb.exec(e)){if(delete b[d],f=f||"toggle"===e,e===(q?"hide":"show")){if("show"!==e||!r||void 0===r[d])continue;q=!0}o[d]=r&&r[d]||n.style(a,d)}else j=void 0;if(n.isEmptyObject(o))"inline"===("none"===j?Ma(a.nodeName):j)&&(p.display=j);else{r?"hidden"in r&&(q=r.hidden):r=n._data(a,"fxshow",{}),f&&(r.hidden=!q),q?n(a).show():m.done(function(){n(a).hide()}),m.done(function(){var b;n._removeData(a,"fxshow");for(b in o)n.style(a,b,o[b])});for(d in o)g=nb(q?r[d]:0,d,m),d in r||(r[d]=g.start,q&&(g.end=g.start,g.start="width"===d||"height"===d?1:0))}}function pb(a,b){var c,d,e,f,g;for(c in a)if(d=n.camelCase(c),e=b[d],f=a[c],n.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=n.cssHooks[d],g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function qb(a,b,c){var d,e,f=0,g=qb.prefilters.length,h=n.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=hb||lb(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;i>g;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),1>f&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:n.extend({},b),opts:n.extend(!0,{specialEasing:{},easing:n.easing._default},c),originalProperties:b,originalOptions:c,startTime:hb||lb(),duration:c.duration,tweens:[],createTween:function(b,c){var d=n.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;d>c;c++)j.tweens[c].run(1);return b?(h.notifyWith(a,[j,1,0]),h.resolveWith(a,[j,b])):h.rejectWith(a,[j,b]),this}}),k=j.props;for(pb(k,j.opts.specialEasing);g>f;f++)if(d=qb.prefilters[f].call(j,a,k,j.opts))return n.isFunction(d.stop)&&(n._queueHooks(j.elem,j.opts.queue).stop=n.proxy(d.stop,d)),d;return n.map(k,nb,j),n.isFunction(j.opts.start)&&j.opts.start.call(a,j),n.fx.timer(n.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}n.Animation=n.extend(qb,{tweeners:{"*":[function(a,b){var c=this.createTween(a,b);return X(c.elem,a,U.exec(b),c),c}]},tweener:function(a,b){n.isFunction(a)?(b=a,a=["*"]):a=a.match(G);for(var c,d=0,e=a.length;e>d;d++)c=a[d],qb.tweeners[c]=qb.tweeners[c]||[],qb.tweeners[c].unshift(b)},prefilters:[ob],prefilter:function(a,b){b?qb.prefilters.unshift(a):qb.prefilters.push(a)}}),n.speed=function(a,b,c){var d=a&&"object"==typeof a?n.extend({},a):{complete:c||!c&&b||n.isFunction(a)&&a,duration:a,easing:c&&b||b&&!n.isFunction(b)&&b};return d.duration=n.fx.off?0:"number"==typeof d.duration?d.duration:d.duration in n.fx.speeds?n.fx.speeds[d.duration]:n.fx.speeds._default,null!=d.queue&&d.queue!==!0||(d.queue="fx"),d.old=d.complete,d.complete=function(){n.isFunction(d.old)&&d.old.call(this),d.queue&&n.dequeue(this,d.queue)},d},n.fn.extend({fadeTo:function(a,b,c,d){return this.filter(W).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=n.isEmptyObject(a),f=n.speed(b,c,d),g=function(){var b=qb(this,n.extend({},a),f);(e||n._data(this,"finish"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=n.timers,g=n._data(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&kb.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));!b&&c||n.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=n._data(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=n.timers,g=d?d.length:0;for(c.finish=!0,n.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;g>b;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),n.each(["toggle","show","hide"],function(a,b){var c=n.fn[b];n.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(mb(b,!0),a,d,e)}}),n.each({slideDown:mb("show"),slideUp:mb("hide"),slideToggle:mb("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){n.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),n.timers=[],n.fx.tick=function(){var a,b=n.timers,c=0;for(hb=n.now();c<b.length;c++)a=b[c],a()||b[c]!==a||b.splice(c--,1);b.length||n.fx.stop(),hb=void 0},n.fx.timer=function(a){n.timers.push(a),a()?n.fx.start():n.timers.pop()},n.fx.interval=13,n.fx.start=function(){ib||(ib=a.setInterval(n.fx.tick,n.fx.interval))},n.fx.stop=function(){a.clearInterval(ib),ib=null},n.fx.speeds={slow:600,fast:200,_default:400},n.fn.delay=function(b,c){return b=n.fx?n.fx.speeds[b]||b:b,c=c||"fx",this.queue(c,function(c,d){var e=a.setTimeout(c,b);d.stop=function(){a.clearTimeout(e)}})},function(){var a,b=d.createElement("input"),c=d.createElement("div"),e=d.createElement("select"),f=e.appendChild(d.createElement("option"));c=d.createElement("div"),c.setAttribute("className","t"),c.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",a=c.getElementsByTagName("a")[0],b.setAttribute("type","checkbox"),c.appendChild(b),a=c.getElementsByTagName("a")[0],a.style.cssText="top:1px",l.getSetAttribute="t"!==c.className,l.style=/top/.test(a.getAttribute("style")),l.hrefNormalized="/a"===a.getAttribute("href"),l.checkOn=!!b.value,l.optSelected=f.selected,l.enctype=!!d.createElement("form").enctype,e.disabled=!0,l.optDisabled=!f.disabled,b=d.createElement("input"),b.setAttribute("value",""),l.input=""===b.getAttribute("value"),b.value="t",b.setAttribute("type","radio"),l.radioValue="t"===b.value}();var rb=/\r/g,sb=/[\x20\t\r\n\f]+/g;n.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=n.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,n(this).val()):a,null==e?e="":"number"==typeof e?e+="":n.isArray(e)&&(e=n.map(e,function(a){return null==a?"":a+""})),b=n.valHooks[this.type]||n.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=n.valHooks[e.type]||n.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(rb,""):null==c?"":c)}}}),n.extend({valHooks:{option:{get:function(a){var b=n.find.attr(a,"value");return null!=b?b:n.trim(n.text(a)).replace(sb," ")}},select:{get:function(a){for(var b,c,d=a.options,e=a.selectedIndex,f="select-one"===a.type||0>e,g=f?null:[],h=f?e+1:d.length,i=0>e?h:f?e:0;h>i;i++)if(c=d[i],(c.selected||i===e)&&(l.optDisabled?!c.disabled:null===c.getAttribute("disabled"))&&(!c.parentNode.disabled||!n.nodeName(c.parentNode,"optgroup"))){if(b=n(c).val(),f)return b;g.push(b)}return g},set:function(a,b){var c,d,e=a.options,f=n.makeArray(b),g=e.length;while(g--)if(d=e[g],n.inArray(n.valHooks.option.get(d),f)>-1)try{d.selected=c=!0}catch(h){d.scrollHeight}else d.selected=!1;return c||(a.selectedIndex=-1),e}}}}),n.each(["radio","checkbox"],function(){n.valHooks[this]={set:function(a,b){return n.isArray(b)?a.checked=n.inArray(n(a).val(),b)>-1:void 0}},l.checkOn||(n.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var tb,ub,vb=n.expr.attrHandle,wb=/^(?:checked|selected)$/i,xb=l.getSetAttribute,yb=l.input;n.fn.extend({attr:function(a,b){return Y(this,n.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){n.removeAttr(this,a)})}}),n.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return"undefined"==typeof a.getAttribute?n.prop(a,b,c):(1===f&&n.isXMLDoc(a)||(b=b.toLowerCase(),e=n.attrHooks[b]||(n.expr.match.bool.test(b)?ub:tb)),void 0!==c?null===c?void n.removeAttr(a,b):e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:(a.setAttribute(b,c+""),c):e&&"get"in e&&null!==(d=e.get(a,b))?d:(d=n.find.attr(a,b),null==d?void 0:d))},attrHooks:{type:{set:function(a,b){if(!l.radioValue&&"radio"===b&&n.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}},removeAttr:function(a,b){var c,d,e=0,f=b&&b.match(G);if(f&&1===a.nodeType)while(c=f[e++])d=n.propFix[c]||c,n.expr.match.bool.test(c)?yb&&xb||!wb.test(c)?a[d]=!1:a[n.camelCase("default-"+c)]=a[d]=!1:n.attr(a,c,""),a.removeAttribute(xb?c:d)}}),ub={set:function(a,b,c){return b===!1?n.removeAttr(a,c):yb&&xb||!wb.test(c)?a.setAttribute(!xb&&n.propFix[c]||c,c):a[n.camelCase("default-"+c)]=a[c]=!0,c}},n.each(n.expr.match.bool.source.match(/\w+/g),function(a,b){var c=vb[b]||n.find.attr;yb&&xb||!wb.test(b)?vb[b]=function(a,b,d){var e,f;return d||(f=vb[b],vb[b]=e,e=null!=c(a,b,d)?b.toLowerCase():null,vb[b]=f),e}:vb[b]=function(a,b,c){return c?void 0:a[n.camelCase("default-"+b)]?b.toLowerCase():null}}),yb&&xb||(n.attrHooks.value={set:function(a,b,c){return n.nodeName(a,"input")?void(a.defaultValue=b):tb&&tb.set(a,b,c)}}),xb||(tb={set:function(a,b,c){var d=a.getAttributeNode(c);return d||a.setAttributeNode(d=a.ownerDocument.createAttribute(c)),d.value=b+="","value"===c||b===a.getAttribute(c)?b:void 0}},vb.id=vb.name=vb.coords=function(a,b,c){var d;return c?void 0:(d=a.getAttributeNode(b))&&""!==d.value?d.value:null},n.valHooks.button={get:function(a,b){var c=a.getAttributeNode(b);return c&&c.specified?c.value:void 0},set:tb.set},n.attrHooks.contenteditable={set:function(a,b,c){tb.set(a,""===b?!1:b,c)}},n.each(["width","height"],function(a,b){n.attrHooks[b]={set:function(a,c){return""===c?(a.setAttribute(b,"auto"),c):void 0}}})),l.style||(n.attrHooks.style={get:function(a){return a.style.cssText||void 0},set:function(a,b){return a.style.cssText=b+""}});var zb=/^(?:input|select|textarea|button|object)$/i,Ab=/^(?:a|area)$/i;n.fn.extend({prop:function(a,b){return Y(this,n.prop,a,b,arguments.length>1)},removeProp:function(a){return a=n.propFix[a]||a,this.each(function(){try{this[a]=void 0,delete this[a]}catch(b){}})}}),n.extend({prop:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return 1===f&&n.isXMLDoc(a)||(b=n.propFix[b]||b,e=n.propHooks[b]),void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){var b=n.find.attr(a,"tabindex");return b?parseInt(b,10):zb.test(a.nodeName)||Ab.test(a.nodeName)&&a.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),l.hrefNormalized||n.each(["href","src"],function(a,b){n.propHooks[b]={get:function(a){return a.getAttribute(b,4)}}}),l.optSelected||(n.propHooks.selected={get:function(a){var b=a.parentNode;return b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex),null},set:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex)}}),n.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){n.propFix[this.toLowerCase()]=this}),l.enctype||(n.propFix.enctype="encoding");var Bb=/[\t\r\n\f]/g;function Cb(a){return n.attr(a,"class")||""}n.fn.extend({addClass:function(a){var b,c,d,e,f,g,h,i=0;if(n.isFunction(a))return this.each(function(b){n(this).addClass(a.call(this,b,Cb(this)))});if("string"==typeof a&&a){b=a.match(G)||[];while(c=this[i++])if(e=Cb(c),d=1===c.nodeType&&(" "+e+" ").replace(Bb," ")){g=0;while(f=b[g++])d.indexOf(" "+f+" ")<0&&(d+=f+" ");h=n.trim(d),e!==h&&n.attr(c,"class",h)}}return this},removeClass:function(a){var b,c,d,e,f,g,h,i=0;if(n.isFunction(a))return this.each(function(b){n(this).removeClass(a.call(this,b,Cb(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof a&&a){b=a.match(G)||[];while(c=this[i++])if(e=Cb(c),d=1===c.nodeType&&(" "+e+" ").replace(Bb," ")){g=0;while(f=b[g++])while(d.indexOf(" "+f+" ")>-1)d=d.replace(" "+f+" "," ");h=n.trim(d),e!==h&&n.attr(c,"class",h)}}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):n.isFunction(a)?this.each(function(c){n(this).toggleClass(a.call(this,c,Cb(this),b),b)}):this.each(function(){var b,d,e,f;if("string"===c){d=0,e=n(this),f=a.match(G)||[];while(b=f[d++])e.hasClass(b)?e.removeClass(b):e.addClass(b)}else void 0!==a&&"boolean"!==c||(b=Cb(this),b&&n._data(this,"__className__",b),n.attr(this,"class",b||a===!1?"":n._data(this,"__className__")||""))})},hasClass:function(a){var b,c,d=0;b=" "+a+" ";while(c=this[d++])if(1===c.nodeType&&(" "+Cb(c)+" ").replace(Bb," ").indexOf(b)>-1)return!0;return!1}}),n.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){n.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),n.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var Db=a.location,Eb=n.now(),Fb=/\?/,Gb=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;n.parseJSON=function(b){if(a.JSON&&a.JSON.parse)return a.JSON.parse(b+"");var c,d=null,e=n.trim(b+"");return e&&!n.trim(e.replace(Gb,function(a,b,e,f){return c&&b&&(d=0),0===d?a:(c=e||b,d+=!f-!e,"")}))?Function("return "+e)():n.error("Invalid JSON: "+b)},n.parseXML=function(b){var c,d;if(!b||"string"!=typeof b)return null;try{a.DOMParser?(d=new a.DOMParser,c=d.parseFromString(b,"text/xml")):(c=new a.ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b))}catch(e){c=void 0}return c&&c.documentElement&&!c.getElementsByTagName("parsererror").length||n.error("Invalid XML: "+b),c};var Hb=/#.*$/,Ib=/([?&])_=[^&]*/,Jb=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Kb=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Lb=/^(?:GET|HEAD)$/,Mb=/^\/\//,Nb=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Ob={},Pb={},Qb="*/".concat("*"),Rb=Db.href,Sb=Nb.exec(Rb.toLowerCase())||[];function Tb(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(G)||[];if(n.isFunction(c))while(d=f[e++])"+"===d.charAt(0)?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function Ub(a,b,c,d){var e={},f=a===Pb;function g(h){var i;return e[h]=!0,n.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||f||e[j]?f?!(i=j):void 0:(b.dataTypes.unshift(j),g(j),!1)}),i}return g(b.dataTypes[0])||!e["*"]&&g("*")}function Vb(a,b){var c,d,e=n.ajaxSettings.flatOptions||{};for(d in b)void 0!==b[d]&&((e[d]?a:c||(c={}))[d]=b[d]);return c&&n.extend(!0,a,c),a}function Wb(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while("*"===i[0])i.shift(),void 0===e&&(e=a.mimeType||b.getResponseHeader("Content-Type"));if(e)for(g in h)if(h[g]&&h[g].test(e)){i.unshift(g);break}if(i[0]in c)f=i[0];else{for(g in c){if(!i[0]||a.converters[g+" "+i[0]]){f=g;break}d||(d=g)}f=f||d}return f?(f!==i[0]&&i.unshift(f),c[f]):void 0}function Xb(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];f=k.shift();while(f)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(g=j[i+" "+f]||j["* "+f],!g)for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==!0)if(g&&a["throws"])b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}n.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Rb,type:"GET",isLocal:Kb.test(Sb[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Qb,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":n.parseJSON,"text xml":n.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?Vb(Vb(a,n.ajaxSettings),b):Vb(n.ajaxSettings,a)},ajaxPrefilter:Tb(Ob),ajaxTransport:Tb(Pb),ajax:function(b,c){"object"==typeof b&&(c=b,b=void 0),c=c||{};var d,e,f,g,h,i,j,k,l=n.ajaxSetup({},c),m=l.context||l,o=l.context&&(m.nodeType||m.jquery)?n(m):n.event,p=n.Deferred(),q=n.Callbacks("once memory"),r=l.statusCode||{},s={},t={},u=0,v="canceled",w={readyState:0,getResponseHeader:function(a){var b;if(2===u){if(!k){k={};while(b=Jb.exec(g))k[b[1].toLowerCase()]=b[2]}b=k[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===u?g:null},setRequestHeader:function(a,b){var c=a.toLowerCase();return u||(a=t[c]=t[c]||a,s[a]=b),this},overrideMimeType:function(a){return u||(l.mimeType=a),this},statusCode:function(a){var b;if(a)if(2>u)for(b in a)r[b]=[r[b],a[b]];else w.always(a[w.status]);return this},abort:function(a){var b=a||v;return j&&j.abort(b),y(0,b),this}};if(p.promise(w).complete=q.add,w.success=w.done,w.error=w.fail,l.url=((b||l.url||Rb)+"").replace(Hb,"").replace(Mb,Sb[1]+"//"),l.type=c.method||c.type||l.method||l.type,l.dataTypes=n.trim(l.dataType||"*").toLowerCase().match(G)||[""],null==l.crossDomain&&(d=Nb.exec(l.url.toLowerCase()),l.crossDomain=!(!d||d[1]===Sb[1]&&d[2]===Sb[2]&&(d[3]||("http:"===d[1]?"80":"443"))===(Sb[3]||("http:"===Sb[1]?"80":"443")))),l.data&&l.processData&&"string"!=typeof l.data&&(l.data=n.param(l.data,l.traditional)),Ub(Ob,l,c,w),2===u)return w;i=n.event&&l.global,i&&0===n.active++&&n.event.trigger("ajaxStart"),l.type=l.type.toUpperCase(),l.hasContent=!Lb.test(l.type),f=l.url,l.hasContent||(l.data&&(f=l.url+=(Fb.test(f)?"&":"?")+l.data,delete l.data),l.cache===!1&&(l.url=Ib.test(f)?f.replace(Ib,"$1_="+Eb++):f+(Fb.test(f)?"&":"?")+"_="+Eb++)),l.ifModified&&(n.lastModified[f]&&w.setRequestHeader("If-Modified-Since",n.lastModified[f]),n.etag[f]&&w.setRequestHeader("If-None-Match",n.etag[f])),(l.data&&l.hasContent&&l.contentType!==!1||c.contentType)&&w.setRequestHeader("Content-Type",l.contentType),w.setRequestHeader("Accept",l.dataTypes[0]&&l.accepts[l.dataTypes[0]]?l.accepts[l.dataTypes[0]]+("*"!==l.dataTypes[0]?", "+Qb+"; q=0.01":""):l.accepts["*"]);for(e in l.headers)w.setRequestHeader(e,l.headers[e]);if(l.beforeSend&&(l.beforeSend.call(m,w,l)===!1||2===u))return w.abort();v="abort";for(e in{success:1,error:1,complete:1})w[e](l[e]);if(j=Ub(Pb,l,c,w)){if(w.readyState=1,i&&o.trigger("ajaxSend",[w,l]),2===u)return w;l.async&&l.timeout>0&&(h=a.setTimeout(function(){w.abort("timeout")},l.timeout));try{u=1,j.send(s,y)}catch(x){if(!(2>u))throw x;y(-1,x)}}else y(-1,"No Transport");function y(b,c,d,e){var k,s,t,v,x,y=c;2!==u&&(u=2,h&&a.clearTimeout(h),j=void 0,g=e||"",w.readyState=b>0?4:0,k=b>=200&&300>b||304===b,d&&(v=Wb(l,w,d)),v=Xb(l,v,w,k),k?(l.ifModified&&(x=w.getResponseHeader("Last-Modified"),x&&(n.lastModified[f]=x),x=w.getResponseHeader("etag"),x&&(n.etag[f]=x)),204===b||"HEAD"===l.type?y="nocontent":304===b?y="notmodified":(y=v.state,s=v.data,t=v.error,k=!t)):(t=y,!b&&y||(y="error",0>b&&(b=0))),w.status=b,w.statusText=(c||y)+"",k?p.resolveWith(m,[s,y,w]):p.rejectWith(m,[w,y,t]),w.statusCode(r),r=void 0,i&&o.trigger(k?"ajaxSuccess":"ajaxError",[w,l,k?s:t]),q.fireWith(m,[w,y]),i&&(o.trigger("ajaxComplete",[w,l]),--n.active||n.event.trigger("ajaxStop")))}return w},getJSON:function(a,b,c){return n.get(a,b,c,"json")},getScript:function(a,b){return n.get(a,void 0,b,"script")}}),n.each(["get","post"],function(a,b){n[b]=function(a,c,d,e){return n.isFunction(c)&&(e=e||d,d=c,c=void 0),n.ajax(n.extend({url:a,type:b,dataType:e,data:c,success:d},n.isPlainObject(a)&&a))}}),n._evalUrl=function(a){return n.ajax({url:a,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,"throws":!0})},n.fn.extend({wrapAll:function(a){if(n.isFunction(a))return this.each(function(b){n(this).wrapAll(a.call(this,b))});if(this[0]){var b=n(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&1===a.firstChild.nodeType)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return n.isFunction(a)?this.each(function(b){n(this).wrapInner(a.call(this,b))}):this.each(function(){var b=n(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=n.isFunction(a);return this.each(function(c){n(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){n.nodeName(this,"body")||n(this).replaceWith(this.childNodes)}).end()}});function Yb(a){return a.style&&a.style.display||n.css(a,"display")}function Zb(a){if(!n.contains(a.ownerDocument||d,a))return!0;while(a&&1===a.nodeType){if("none"===Yb(a)||"hidden"===a.type)return!0;a=a.parentNode}return!1}n.expr.filters.hidden=function(a){return l.reliableHiddenOffsets()?a.offsetWidth<=0&&a.offsetHeight<=0&&!a.getClientRects().length:Zb(a)},n.expr.filters.visible=function(a){return!n.expr.filters.hidden(a)};var $b=/%20/g,_b=/\[\]$/,ac=/\r?\n/g,bc=/^(?:submit|button|image|reset|file)$/i,cc=/^(?:input|select|textarea|keygen)/i;function dc(a,b,c,d){var e;if(n.isArray(b))n.each(b,function(b,e){c||_b.test(a)?d(a,e):dc(a+"["+("object"==typeof e&&null!=e?b:"")+"]",e,c,d)});else if(c||"object"!==n.type(b))d(a,b);else for(e in b)dc(a+"["+e+"]",b[e],c,d)}n.param=function(a,b){var c,d=[],e=function(a,b){b=n.isFunction(b)?b():null==b?"":b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(void 0===b&&(b=n.ajaxSettings&&n.ajaxSettings.traditional),n.isArray(a)||a.jquery&&!n.isPlainObject(a))n.each(a,function(){e(this.name,this.value)});else for(c in a)dc(c,a[c],b,e);return d.join("&").replace($b,"+")},n.fn.extend({serialize:function(){return n.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=n.prop(this,"elements");return a?n.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!n(this).is(":disabled")&&cc.test(this.nodeName)&&!bc.test(a)&&(this.checked||!Z.test(a))}).map(function(a,b){var c=n(this).val();return null==c?null:n.isArray(c)?n.map(c,function(a){return{name:b.name,value:a.replace(ac,"\r\n")}}):{name:b.name,value:c.replace(ac,"\r\n")}}).get()}}),n.ajaxSettings.xhr=void 0!==a.ActiveXObject?function(){return this.isLocal?ic():d.documentMode>8?hc():/^(get|post|head|put|delete|options)$/i.test(this.type)&&hc()||ic()}:hc;var ec=0,fc={},gc=n.ajaxSettings.xhr();a.attachEvent&&a.attachEvent("onunload",function(){for(var a in fc)fc[a](void 0,!0)}),l.cors=!!gc&&"withCredentials"in gc,gc=l.ajax=!!gc,gc&&n.ajaxTransport(function(b){if(!b.crossDomain||l.cors){var c;return{send:function(d,e){var f,g=b.xhr(),h=++ec;if(g.open(b.type,b.url,b.async,b.username,b.password),b.xhrFields)for(f in b.xhrFields)g[f]=b.xhrFields[f];b.mimeType&&g.overrideMimeType&&g.overrideMimeType(b.mimeType),b.crossDomain||d["X-Requested-With"]||(d["X-Requested-With"]="XMLHttpRequest");for(f in d)void 0!==d[f]&&g.setRequestHeader(f,d[f]+"");g.send(b.hasContent&&b.data||null),c=function(a,d){var f,i,j;if(c&&(d||4===g.readyState))if(delete fc[h],c=void 0,g.onreadystatechange=n.noop,d)4!==g.readyState&&g.abort();else{j={},f=g.status,"string"==typeof g.responseText&&(j.text=g.responseText);try{i=g.statusText}catch(k){i=""}f||!b.isLocal||b.crossDomain?1223===f&&(f=204):f=j.text?200:404}j&&e(f,i,j,g.getAllResponseHeaders())},b.async?4===g.readyState?a.setTimeout(c):g.onreadystatechange=fc[h]=c:c()},abort:function(){c&&c(void 0,!0)}}}});function hc(){try{return new a.XMLHttpRequest}catch(b){}}function ic(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}n.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(a){return n.globalEval(a),a}}}),n.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),n.ajaxTransport("script",function(a){if(a.crossDomain){var b,c=d.head||n("head")[0]||d.documentElement;return{send:function(e,f){b=d.createElement("script"),b.async=!0,a.scriptCharset&&(b.charset=a.scriptCharset),b.src=a.url,b.onload=b.onreadystatechange=function(a,c){(c||!b.readyState||/loaded|complete/.test(b.readyState))&&(b.onload=b.onreadystatechange=null,b.parentNode&&b.parentNode.removeChild(b),b=null,c||f(200,"success"))},c.insertBefore(b,c.firstChild)},abort:function(){b&&b.onload(void 0,!0)}}}});var jc=[],kc=/(=)\?(?=&|$)|\?\?/;n.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=jc.pop()||n.expando+"_"+Eb++;return this[a]=!0,a}}),n.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=b.jsonp!==!1&&(kc.test(b.url)?"url":"string"==typeof b.data&&0===(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&kc.test(b.data)&&"data");return h||"jsonp"===b.dataTypes[0]?(e=b.jsonpCallback=n.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(kc,"$1"+e):b.jsonp!==!1&&(b.url+=(Fb.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||n.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){void 0===f?n(a).removeProp(e):a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,jc.push(e)),g&&n.isFunction(f)&&f(g[0]),g=f=void 0}),"script"):void 0}),n.parseHTML=function(a,b,c){if(!a||"string"!=typeof a)return null;"boolean"==typeof b&&(c=b,b=!1),b=b||d;var e=x.exec(a),f=!c&&[];return e?[b.createElement(e[1])]:(e=ja([a],b,f),f&&f.length&&n(f).remove(),n.merge([],e.childNodes))};var lc=n.fn.load;n.fn.load=function(a,b,c){if("string"!=typeof a&&lc)return lc.apply(this,arguments);var d,e,f,g=this,h=a.indexOf(" ");return h>-1&&(d=n.trim(a.slice(h,a.length)),a=a.slice(0,h)),n.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(e="POST"),g.length>0&&n.ajax({url:a,type:e||"GET",dataType:"html",data:b}).done(function(a){f=arguments,g.html(d?n("<div>").append(n.parseHTML(a)).find(d):a)}).always(c&&function(a,b){g.each(function(){c.apply(this,f||[a.responseText,b,a])})}),this},n.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){n.fn[b]=function(a){return this.on(b,a)}}),n.expr.filters.animated=function(a){return n.grep(n.timers,function(b){return a===b.elem}).length};function mc(a){return n.isWindow(a)?a:9===a.nodeType?a.defaultView||a.parentWindow:!1}n.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=n.css(a,"position"),l=n(a),m={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=n.css(a,"top"),i=n.css(a,"left"),j=("absolute"===k||"fixed"===k)&&n.inArray("auto",[f,i])>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),n.isFunction(b)&&(b=b.call(a,c,n.extend({},h))),null!=b.top&&(m.top=b.top-h.top+g),null!=b.left&&(m.left=b.left-h.left+e),"using"in b?b.using.call(a,m):l.css(m)}},n.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){n.offset.setOffset(this,a,b)});var b,c,d={top:0,left:0},e=this[0],f=e&&e.ownerDocument;if(f)return b=f.documentElement,n.contains(b,e)?("undefined"!=typeof e.getBoundingClientRect&&(d=e.getBoundingClientRect()),c=mc(f),{top:d.top+(c.pageYOffset||b.scrollTop)-(b.clientTop||0),left:d.left+(c.pageXOffset||b.scrollLeft)-(b.clientLeft||0)}):d},position:function(){if(this[0]){var a,b,c={top:0,left:0},d=this[0];return"fixed"===n.css(d,"position")?b=d.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),n.nodeName(a[0],"html")||(c=a.offset()),c.top+=n.css(a[0],"borderTopWidth",!0),c.left+=n.css(a[0],"borderLeftWidth",!0)),{top:b.top-c.top-n.css(d,"marginTop",!0),left:b.left-c.left-n.css(d,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent;while(a&&!n.nodeName(a,"html")&&"static"===n.css(a,"position"))a=a.offsetParent;return a||Qa})}}),n.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c=/Y/.test(b);n.fn[a]=function(d){return Y(this,function(a,d,e){var f=mc(a);return void 0===e?f?b in f?f[b]:f.document.documentElement[d]:a[d]:void(f?f.scrollTo(c?n(f).scrollLeft():e,c?e:n(f).scrollTop()):a[d]=e)},a,d,arguments.length,null)}}),n.each(["top","left"],function(a,b){n.cssHooks[b]=Ua(l.pixelPosition,function(a,c){return c?(c=Sa(a,b),Oa.test(c)?n(a).position()[b]+"px":c):void 0})}),n.each({Height:"height",Width:"width"},function(a,b){n.each({ -padding:"inner"+a,content:b,"":"outer"+a},function(c,d){n.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(d===!0||e===!0?"margin":"border");return Y(this,function(b,c,d){var e;return n.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?n.css(b,c,g):n.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),n.fn.extend({bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)}}),n.fn.size=function(){return this.length},n.fn.andSelf=n.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return n});var nc=a.jQuery,oc=a.$;return n.noConflict=function(b){return a.$===n&&(a.$=oc),b&&a.jQuery===n&&(a.jQuery=nc),n},b||(a.jQuery=a.$=n),n}); -</script> - <script type="text/javascript">/*! - DataTables 1.10.15 - ©2008-2017 SpryMedia Ltd - datatables.net/license -*/ -(function(h){"function"===typeof define&&define.amd?define(["jquery"],function(E){return h(E,window,document)}):"object"===typeof exports?module.exports=function(E,H){E||(E=window);H||(H="undefined"!==typeof window?require("jquery"):require("jquery")(E));return h(H,E,E.document)}:h(jQuery,window,document)})(function(h,E,H,k){function Y(a){var b,c,d={};h.each(a,function(e){if((b=e.match(/^([^A-Z]+?)([A-Z])/))&&-1!=="a aa ai ao as b fn i m o s ".indexOf(b[1]+" "))c=e.replace(b[0],b[2].toLowerCase()), -d[c]=e,"o"===b[1]&&Y(a[e])});a._hungarianMap=d}function J(a,b,c){a._hungarianMap||Y(a);var d;h.each(b,function(e){d=a._hungarianMap[e];if(d!==k&&(c||b[d]===k))"o"===d.charAt(0)?(b[d]||(b[d]={}),h.extend(!0,b[d],b[e]),J(a[d],b[d],c)):b[d]=b[e]})}function Fa(a){var b=m.defaults.oLanguage,c=a.sZeroRecords;!a.sEmptyTable&&(c&&"No data available in table"===b.sEmptyTable)&&F(a,a,"sZeroRecords","sEmptyTable");!a.sLoadingRecords&&(c&&"Loading..."===b.sLoadingRecords)&&F(a,a,"sZeroRecords","sLoadingRecords"); -a.sInfoThousands&&(a.sThousands=a.sInfoThousands);(a=a.sDecimal)&&fb(a)}function gb(a){A(a,"ordering","bSort");A(a,"orderMulti","bSortMulti");A(a,"orderClasses","bSortClasses");A(a,"orderCellsTop","bSortCellsTop");A(a,"order","aaSorting");A(a,"orderFixed","aaSortingFixed");A(a,"paging","bPaginate");A(a,"pagingType","sPaginationType");A(a,"pageLength","iDisplayLength");A(a,"searching","bFilter");"boolean"===typeof a.sScrollX&&(a.sScrollX=a.sScrollX?"100%":"");"boolean"===typeof a.scrollX&&(a.scrollX= -a.scrollX?"100%":"");if(a=a.aoSearchCols)for(var b=0,c=a.length;b<c;b++)a[b]&&J(m.models.oSearch,a[b])}function hb(a){A(a,"orderable","bSortable");A(a,"orderData","aDataSort");A(a,"orderSequence","asSorting");A(a,"orderDataType","sortDataType");var b=a.aDataSort;"number"===typeof b&&!h.isArray(b)&&(a.aDataSort=[b])}function ib(a){if(!m.__browser){var b={};m.__browser=b;var c=h("<div/>").css({position:"fixed",top:0,left:-1*h(E).scrollLeft(),height:1,width:1,overflow:"hidden"}).append(h("<div/>").css({position:"absolute", -top:1,left:1,width:100,overflow:"scroll"}).append(h("<div/>").css({width:"100%",height:10}))).appendTo("body"),d=c.children(),e=d.children();b.barWidth=d[0].offsetWidth-d[0].clientWidth;b.bScrollOversize=100===e[0].offsetWidth&&100!==d[0].clientWidth;b.bScrollbarLeft=1!==Math.round(e.offset().left);b.bBounding=c[0].getBoundingClientRect().width?!0:!1;c.remove()}h.extend(a.oBrowser,m.__browser);a.oScroll.iBarWidth=m.__browser.barWidth}function jb(a,b,c,d,e,f){var g,j=!1;c!==k&&(g=c,j=!0);for(;d!== -e;)a.hasOwnProperty(d)&&(g=j?b(g,a[d],d,a):a[d],j=!0,d+=f);return g}function Ga(a,b){var c=m.defaults.column,d=a.aoColumns.length,c=h.extend({},m.models.oColumn,c,{nTh:b?b:H.createElement("th"),sTitle:c.sTitle?c.sTitle:b?b.innerHTML:"",aDataSort:c.aDataSort?c.aDataSort:[d],mData:c.mData?c.mData:d,idx:d});a.aoColumns.push(c);c=a.aoPreSearchCols;c[d]=h.extend({},m.models.oSearch,c[d]);la(a,d,h(b).data())}function la(a,b,c){var b=a.aoColumns[b],d=a.oClasses,e=h(b.nTh);if(!b.sWidthOrig){b.sWidthOrig= -e.attr("width")||null;var f=(e.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/);f&&(b.sWidthOrig=f[1])}c!==k&&null!==c&&(hb(c),J(m.defaults.column,c),c.mDataProp!==k&&!c.mData&&(c.mData=c.mDataProp),c.sType&&(b._sManualType=c.sType),c.className&&!c.sClass&&(c.sClass=c.className),h.extend(b,c),F(b,c,"sWidth","sWidthOrig"),c.iDataSort!==k&&(b.aDataSort=[c.iDataSort]),F(b,c,"aDataSort"));var g=b.mData,j=R(g),i=b.mRender?R(b.mRender):null,c=function(a){return"string"===typeof a&&-1!==a.indexOf("@")}; -b._bAttrSrc=h.isPlainObject(g)&&(c(g.sort)||c(g.type)||c(g.filter));b._setter=null;b.fnGetData=function(a,b,c){var d=j(a,b,k,c);return i&&b?i(d,b,a,c):d};b.fnSetData=function(a,b,c){return S(g)(a,b,c)};"number"!==typeof g&&(a._rowReadObject=!0);a.oFeatures.bSort||(b.bSortable=!1,e.addClass(d.sSortableNone));a=-1!==h.inArray("asc",b.asSorting);c=-1!==h.inArray("desc",b.asSorting);!b.bSortable||!a&&!c?(b.sSortingClass=d.sSortableNone,b.sSortingClassJUI=""):a&&!c?(b.sSortingClass=d.sSortableAsc,b.sSortingClassJUI= -d.sSortJUIAscAllowed):!a&&c?(b.sSortingClass=d.sSortableDesc,b.sSortingClassJUI=d.sSortJUIDescAllowed):(b.sSortingClass=d.sSortable,b.sSortingClassJUI=d.sSortJUI)}function Z(a){if(!1!==a.oFeatures.bAutoWidth){var b=a.aoColumns;Ha(a);for(var c=0,d=b.length;c<d;c++)b[c].nTh.style.width=b[c].sWidth}b=a.oScroll;(""!==b.sY||""!==b.sX)&&ma(a);s(a,null,"column-sizing",[a])}function $(a,b){var c=na(a,"bVisible");return"number"===typeof c[b]?c[b]:null}function aa(a,b){var c=na(a,"bVisible"),c=h.inArray(b, -c);return-1!==c?c:null}function ba(a){var b=0;h.each(a.aoColumns,function(a,d){d.bVisible&&"none"!==h(d.nTh).css("display")&&b++});return b}function na(a,b){var c=[];h.map(a.aoColumns,function(a,e){a[b]&&c.push(e)});return c}function Ia(a){var b=a.aoColumns,c=a.aoData,d=m.ext.type.detect,e,f,g,j,i,h,l,q,r;e=0;for(f=b.length;e<f;e++)if(l=b[e],r=[],!l.sType&&l._sManualType)l.sType=l._sManualType;else if(!l.sType){g=0;for(j=d.length;g<j;g++){i=0;for(h=c.length;i<h;i++){r[i]===k&&(r[i]=B(a,i,e,"type")); -q=d[g](r[i],a);if(!q&&g!==d.length-1)break;if("html"===q)break}if(q){l.sType=q;break}}l.sType||(l.sType="string")}}function kb(a,b,c,d){var e,f,g,j,i,n,l=a.aoColumns;if(b)for(e=b.length-1;0<=e;e--){n=b[e];var q=n.targets!==k?n.targets:n.aTargets;h.isArray(q)||(q=[q]);f=0;for(g=q.length;f<g;f++)if("number"===typeof q[f]&&0<=q[f]){for(;l.length<=q[f];)Ga(a);d(q[f],n)}else if("number"===typeof q[f]&&0>q[f])d(l.length+q[f],n);else if("string"===typeof q[f]){j=0;for(i=l.length;j<i;j++)("_all"==q[f]||h(l[j].nTh).hasClass(q[f]))&& -d(j,n)}}if(c){e=0;for(a=c.length;e<a;e++)d(e,c[e])}}function N(a,b,c,d){var e=a.aoData.length,f=h.extend(!0,{},m.models.oRow,{src:c?"dom":"data",idx:e});f._aData=b;a.aoData.push(f);for(var g=a.aoColumns,j=0,i=g.length;j<i;j++)g[j].sType=null;a.aiDisplayMaster.push(e);b=a.rowIdFn(b);b!==k&&(a.aIds[b]=f);(c||!a.oFeatures.bDeferRender)&&Ja(a,e,c,d);return e}function oa(a,b){var c;b instanceof h||(b=h(b));return b.map(function(b,e){c=Ka(a,e);return N(a,c.data,e,c.cells)})}function B(a,b,c,d){var e=a.iDraw, -f=a.aoColumns[c],g=a.aoData[b]._aData,j=f.sDefaultContent,i=f.fnGetData(g,d,{settings:a,row:b,col:c});if(i===k)return a.iDrawError!=e&&null===j&&(K(a,0,"Requested unknown parameter "+("function"==typeof f.mData?"{function}":"'"+f.mData+"'")+" for row "+b+", column "+c,4),a.iDrawError=e),j;if((i===g||null===i)&&null!==j&&d!==k)i=j;else if("function"===typeof i)return i.call(g);return null===i&&"display"==d?"":i}function lb(a,b,c,d){a.aoColumns[c].fnSetData(a.aoData[b]._aData,d,{settings:a,row:b,col:c})} -function La(a){return h.map(a.match(/(\\.|[^\.])+/g)||[""],function(a){return a.replace(/\\\./g,".")})}function R(a){if(h.isPlainObject(a)){var b={};h.each(a,function(a,c){c&&(b[a]=R(c))});return function(a,c,f,g){var j=b[c]||b._;return j!==k?j(a,c,f,g):a}}if(null===a)return function(a){return a};if("function"===typeof a)return function(b,c,f,g){return a(b,c,f,g)};if("string"===typeof a&&(-1!==a.indexOf(".")||-1!==a.indexOf("[")||-1!==a.indexOf("("))){var c=function(a,b,f){var g,j;if(""!==f){j=La(f); -for(var i=0,n=j.length;i<n;i++){f=j[i].match(ca);g=j[i].match(V);if(f){j[i]=j[i].replace(ca,"");""!==j[i]&&(a=a[j[i]]);g=[];j.splice(0,i+1);j=j.join(".");if(h.isArray(a)){i=0;for(n=a.length;i<n;i++)g.push(c(a[i],b,j))}a=f[0].substring(1,f[0].length-1);a=""===a?g:g.join(a);break}else if(g){j[i]=j[i].replace(V,"");a=a[j[i]]();continue}if(null===a||a[j[i]]===k)return k;a=a[j[i]]}}return a};return function(b,e){return c(b,e,a)}}return function(b){return b[a]}}function S(a){if(h.isPlainObject(a))return S(a._); -if(null===a)return function(){};if("function"===typeof a)return function(b,d,e){a(b,"set",d,e)};if("string"===typeof a&&(-1!==a.indexOf(".")||-1!==a.indexOf("[")||-1!==a.indexOf("("))){var b=function(a,d,e){var e=La(e),f;f=e[e.length-1];for(var g,j,i=0,n=e.length-1;i<n;i++){g=e[i].match(ca);j=e[i].match(V);if(g){e[i]=e[i].replace(ca,"");a[e[i]]=[];f=e.slice();f.splice(0,i+1);g=f.join(".");if(h.isArray(d)){j=0;for(n=d.length;j<n;j++)f={},b(f,d[j],g),a[e[i]].push(f)}else a[e[i]]=d;return}j&&(e[i]=e[i].replace(V, -""),a=a[e[i]](d));if(null===a[e[i]]||a[e[i]]===k)a[e[i]]={};a=a[e[i]]}if(f.match(V))a[f.replace(V,"")](d);else a[f.replace(ca,"")]=d};return function(c,d){return b(c,d,a)}}return function(b,d){b[a]=d}}function Ma(a){return D(a.aoData,"_aData")}function pa(a){a.aoData.length=0;a.aiDisplayMaster.length=0;a.aiDisplay.length=0;a.aIds={}}function qa(a,b,c){for(var d=-1,e=0,f=a.length;e<f;e++)a[e]==b?d=e:a[e]>b&&a[e]--; -1!=d&&c===k&&a.splice(d,1)}function da(a,b,c,d){var e=a.aoData[b],f,g=function(c,d){for(;c.childNodes.length;)c.removeChild(c.firstChild); -c.innerHTML=B(a,b,d,"display")};if("dom"===c||(!c||"auto"===c)&&"dom"===e.src)e._aData=Ka(a,e,d,d===k?k:e._aData).data;else{var j=e.anCells;if(j)if(d!==k)g(j[d],d);else{c=0;for(f=j.length;c<f;c++)g(j[c],c)}}e._aSortData=null;e._aFilterData=null;g=a.aoColumns;if(d!==k)g[d].sType=null;else{c=0;for(f=g.length;c<f;c++)g[c].sType=null;Na(a,e)}}function Ka(a,b,c,d){var e=[],f=b.firstChild,g,j,i=0,n,l=a.aoColumns,q=a._rowReadObject,d=d!==k?d:q?{}:[],r=function(a,b){if("string"===typeof a){var c=a.indexOf("@"); --1!==c&&(c=a.substring(c+1),S(a)(d,b.getAttribute(c)))}},m=function(a){if(c===k||c===i)j=l[i],n=h.trim(a.innerHTML),j&&j._bAttrSrc?(S(j.mData._)(d,n),r(j.mData.sort,a),r(j.mData.type,a),r(j.mData.filter,a)):q?(j._setter||(j._setter=S(j.mData)),j._setter(d,n)):d[i]=n;i++};if(f)for(;f;){g=f.nodeName.toUpperCase();if("TD"==g||"TH"==g)m(f),e.push(f);f=f.nextSibling}else{e=b.anCells;f=0;for(g=e.length;f<g;f++)m(e[f])}if(b=b.firstChild?b:b.nTr)(b=b.getAttribute("id"))&&S(a.rowId)(d,b);return{data:d,cells:e}} -function Ja(a,b,c,d){var e=a.aoData[b],f=e._aData,g=[],j,i,n,l,q;if(null===e.nTr){j=c||H.createElement("tr");e.nTr=j;e.anCells=g;j._DT_RowIndex=b;Na(a,e);l=0;for(q=a.aoColumns.length;l<q;l++){n=a.aoColumns[l];i=c?d[l]:H.createElement(n.sCellType);i._DT_CellIndex={row:b,column:l};g.push(i);if((!c||n.mRender||n.mData!==l)&&(!h.isPlainObject(n.mData)||n.mData._!==l+".display"))i.innerHTML=B(a,b,l,"display");n.sClass&&(i.className+=" "+n.sClass);n.bVisible&&!c?j.appendChild(i):!n.bVisible&&c&&i.parentNode.removeChild(i); -n.fnCreatedCell&&n.fnCreatedCell.call(a.oInstance,i,B(a,b,l),f,b,l)}s(a,"aoRowCreatedCallback",null,[j,f,b])}e.nTr.setAttribute("role","row")}function Na(a,b){var c=b.nTr,d=b._aData;if(c){var e=a.rowIdFn(d);e&&(c.id=e);d.DT_RowClass&&(e=d.DT_RowClass.split(" "),b.__rowc=b.__rowc?sa(b.__rowc.concat(e)):e,h(c).removeClass(b.__rowc.join(" ")).addClass(d.DT_RowClass));d.DT_RowAttr&&h(c).attr(d.DT_RowAttr);d.DT_RowData&&h(c).data(d.DT_RowData)}}function mb(a){var b,c,d,e,f,g=a.nTHead,j=a.nTFoot,i=0=== -h("th, td",g).length,n=a.oClasses,l=a.aoColumns;i&&(e=h("<tr/>").appendTo(g));b=0;for(c=l.length;b<c;b++)f=l[b],d=h(f.nTh).addClass(f.sClass),i&&d.appendTo(e),a.oFeatures.bSort&&(d.addClass(f.sSortingClass),!1!==f.bSortable&&(d.attr("tabindex",a.iTabIndex).attr("aria-controls",a.sTableId),Oa(a,f.nTh,b))),f.sTitle!=d[0].innerHTML&&d.html(f.sTitle),Pa(a,"header")(a,d,f,n);i&&ea(a.aoHeader,g);h(g).find(">tr").attr("role","row");h(g).find(">tr>th, >tr>td").addClass(n.sHeaderTH);h(j).find(">tr>th, >tr>td").addClass(n.sFooterTH); -if(null!==j){a=a.aoFooter[0];b=0;for(c=a.length;b<c;b++)f=l[b],f.nTf=a[b].cell,f.sClass&&h(f.nTf).addClass(f.sClass)}}function fa(a,b,c){var d,e,f,g=[],j=[],i=a.aoColumns.length,n;if(b){c===k&&(c=!1);d=0;for(e=b.length;d<e;d++){g[d]=b[d].slice();g[d].nTr=b[d].nTr;for(f=i-1;0<=f;f--)!a.aoColumns[f].bVisible&&!c&&g[d].splice(f,1);j.push([])}d=0;for(e=g.length;d<e;d++){if(a=g[d].nTr)for(;f=a.firstChild;)a.removeChild(f);f=0;for(b=g[d].length;f<b;f++)if(n=i=1,j[d][f]===k){a.appendChild(g[d][f].cell); -for(j[d][f]=1;g[d+i]!==k&&g[d][f].cell==g[d+i][f].cell;)j[d+i][f]=1,i++;for(;g[d][f+n]!==k&&g[d][f].cell==g[d][f+n].cell;){for(c=0;c<i;c++)j[d+c][f+n]=1;n++}h(g[d][f].cell).attr("rowspan",i).attr("colspan",n)}}}}function O(a){var b=s(a,"aoPreDrawCallback","preDraw",[a]);if(-1!==h.inArray(!1,b))C(a,!1);else{var b=[],c=0,d=a.asStripeClasses,e=d.length,f=a.oLanguage,g=a.iInitDisplayStart,j="ssp"==y(a),i=a.aiDisplay;a.bDrawing=!0;g!==k&&-1!==g&&(a._iDisplayStart=j?g:g>=a.fnRecordsDisplay()?0:g,a.iInitDisplayStart= --1);var g=a._iDisplayStart,n=a.fnDisplayEnd();if(a.bDeferLoading)a.bDeferLoading=!1,a.iDraw++,C(a,!1);else if(j){if(!a.bDestroying&&!nb(a))return}else a.iDraw++;if(0!==i.length){f=j?a.aoData.length:n;for(j=j?0:g;j<f;j++){var l=i[j],q=a.aoData[l];null===q.nTr&&Ja(a,l);l=q.nTr;if(0!==e){var r=d[c%e];q._sRowStripe!=r&&(h(l).removeClass(q._sRowStripe).addClass(r),q._sRowStripe=r)}s(a,"aoRowCallback",null,[l,q._aData,c,j]);b.push(l);c++}}else c=f.sZeroRecords,1==a.iDraw&&"ajax"==y(a)?c=f.sLoadingRecords: -f.sEmptyTable&&0===a.fnRecordsTotal()&&(c=f.sEmptyTable),b[0]=h("<tr/>",{"class":e?d[0]:""}).append(h("<td />",{valign:"top",colSpan:ba(a),"class":a.oClasses.sRowEmpty}).html(c))[0];s(a,"aoHeaderCallback","header",[h(a.nTHead).children("tr")[0],Ma(a),g,n,i]);s(a,"aoFooterCallback","footer",[h(a.nTFoot).children("tr")[0],Ma(a),g,n,i]);d=h(a.nTBody);d.children().detach();d.append(h(b));s(a,"aoDrawCallback","draw",[a]);a.bSorted=!1;a.bFiltered=!1;a.bDrawing=!1}}function T(a,b){var c=a.oFeatures,d=c.bFilter; -c.bSort&&ob(a);d?ga(a,a.oPreviousSearch):a.aiDisplay=a.aiDisplayMaster.slice();!0!==b&&(a._iDisplayStart=0);a._drawHold=b;O(a);a._drawHold=!1}function pb(a){var b=a.oClasses,c=h(a.nTable),c=h("<div/>").insertBefore(c),d=a.oFeatures,e=h("<div/>",{id:a.sTableId+"_wrapper","class":b.sWrapper+(a.nTFoot?"":" "+b.sNoFooter)});a.nHolding=c[0];a.nTableWrapper=e[0];a.nTableReinsertBefore=a.nTable.nextSibling;for(var f=a.sDom.split(""),g,j,i,n,l,q,k=0;k<f.length;k++){g=null;j=f[k];if("<"==j){i=h("<div/>")[0]; -n=f[k+1];if("'"==n||'"'==n){l="";for(q=2;f[k+q]!=n;)l+=f[k+q],q++;"H"==l?l=b.sJUIHeader:"F"==l&&(l=b.sJUIFooter);-1!=l.indexOf(".")?(n=l.split("."),i.id=n[0].substr(1,n[0].length-1),i.className=n[1]):"#"==l.charAt(0)?i.id=l.substr(1,l.length-1):i.className=l;k+=q}e.append(i);e=h(i)}else if(">"==j)e=e.parent();else if("l"==j&&d.bPaginate&&d.bLengthChange)g=qb(a);else if("f"==j&&d.bFilter)g=rb(a);else if("r"==j&&d.bProcessing)g=sb(a);else if("t"==j)g=tb(a);else if("i"==j&&d.bInfo)g=ub(a);else if("p"== -j&&d.bPaginate)g=vb(a);else if(0!==m.ext.feature.length){i=m.ext.feature;q=0;for(n=i.length;q<n;q++)if(j==i[q].cFeature){g=i[q].fnInit(a);break}}g&&(i=a.aanFeatures,i[j]||(i[j]=[]),i[j].push(g),e.append(g))}c.replaceWith(e);a.nHolding=null}function ea(a,b){var c=h(b).children("tr"),d,e,f,g,j,i,n,l,q,k;a.splice(0,a.length);f=0;for(i=c.length;f<i;f++)a.push([]);f=0;for(i=c.length;f<i;f++){d=c[f];for(e=d.firstChild;e;){if("TD"==e.nodeName.toUpperCase()||"TH"==e.nodeName.toUpperCase()){l=1*e.getAttribute("colspan"); -q=1*e.getAttribute("rowspan");l=!l||0===l||1===l?1:l;q=!q||0===q||1===q?1:q;g=0;for(j=a[f];j[g];)g++;n=g;k=1===l?!0:!1;for(j=0;j<l;j++)for(g=0;g<q;g++)a[f+g][n+j]={cell:e,unique:k},a[f+g].nTr=d}e=e.nextSibling}}}function ta(a,b,c){var d=[];c||(c=a.aoHeader,b&&(c=[],ea(c,b)));for(var b=0,e=c.length;b<e;b++)for(var f=0,g=c[b].length;f<g;f++)if(c[b][f].unique&&(!d[f]||!a.bSortCellsTop))d[f]=c[b][f].cell;return d}function ua(a,b,c){s(a,"aoServerParams","serverParams",[b]);if(b&&h.isArray(b)){var d={}, -e=/(.*?)\[\]$/;h.each(b,function(a,b){var c=b.name.match(e);c?(c=c[0],d[c]||(d[c]=[]),d[c].push(b.value)):d[b.name]=b.value});b=d}var f,g=a.ajax,j=a.oInstance,i=function(b){s(a,null,"xhr",[a,b,a.jqXHR]);c(b)};if(h.isPlainObject(g)&&g.data){f=g.data;var n=h.isFunction(f)?f(b,a):f,b=h.isFunction(f)&&n?n:h.extend(!0,b,n);delete g.data}n={data:b,success:function(b){var c=b.error||b.sError;c&&K(a,0,c);a.json=b;i(b)},dataType:"json",cache:!1,type:a.sServerMethod,error:function(b,c){var d=s(a,null,"xhr", -[a,null,a.jqXHR]);-1===h.inArray(!0,d)&&("parsererror"==c?K(a,0,"Invalid JSON response",1):4===b.readyState&&K(a,0,"Ajax error",7));C(a,!1)}};a.oAjaxData=b;s(a,null,"preXhr",[a,b]);a.fnServerData?a.fnServerData.call(j,a.sAjaxSource,h.map(b,function(a,b){return{name:b,value:a}}),i,a):a.sAjaxSource||"string"===typeof g?a.jqXHR=h.ajax(h.extend(n,{url:g||a.sAjaxSource})):h.isFunction(g)?a.jqXHR=g.call(j,b,i,a):(a.jqXHR=h.ajax(h.extend(n,g)),g.data=f)}function nb(a){return a.bAjaxDataGet?(a.iDraw++,C(a, -!0),ua(a,wb(a),function(b){xb(a,b)}),!1):!0}function wb(a){var b=a.aoColumns,c=b.length,d=a.oFeatures,e=a.oPreviousSearch,f=a.aoPreSearchCols,g,j=[],i,n,l,k=W(a);g=a._iDisplayStart;i=!1!==d.bPaginate?a._iDisplayLength:-1;var r=function(a,b){j.push({name:a,value:b})};r("sEcho",a.iDraw);r("iColumns",c);r("sColumns",D(b,"sName").join(","));r("iDisplayStart",g);r("iDisplayLength",i);var ra={draw:a.iDraw,columns:[],order:[],start:g,length:i,search:{value:e.sSearch,regex:e.bRegex}};for(g=0;g<c;g++)n=b[g], -l=f[g],i="function"==typeof n.mData?"function":n.mData,ra.columns.push({data:i,name:n.sName,searchable:n.bSearchable,orderable:n.bSortable,search:{value:l.sSearch,regex:l.bRegex}}),r("mDataProp_"+g,i),d.bFilter&&(r("sSearch_"+g,l.sSearch),r("bRegex_"+g,l.bRegex),r("bSearchable_"+g,n.bSearchable)),d.bSort&&r("bSortable_"+g,n.bSortable);d.bFilter&&(r("sSearch",e.sSearch),r("bRegex",e.bRegex));d.bSort&&(h.each(k,function(a,b){ra.order.push({column:b.col,dir:b.dir});r("iSortCol_"+a,b.col);r("sSortDir_"+ -a,b.dir)}),r("iSortingCols",k.length));b=m.ext.legacy.ajax;return null===b?a.sAjaxSource?j:ra:b?j:ra}function xb(a,b){var c=va(a,b),d=b.sEcho!==k?b.sEcho:b.draw,e=b.iTotalRecords!==k?b.iTotalRecords:b.recordsTotal,f=b.iTotalDisplayRecords!==k?b.iTotalDisplayRecords:b.recordsFiltered;if(d){if(1*d<a.iDraw)return;a.iDraw=1*d}pa(a);a._iRecordsTotal=parseInt(e,10);a._iRecordsDisplay=parseInt(f,10);d=0;for(e=c.length;d<e;d++)N(a,c[d]);a.aiDisplay=a.aiDisplayMaster.slice();a.bAjaxDataGet=!1;O(a);a._bInitComplete|| -wa(a,b);a.bAjaxDataGet=!0;C(a,!1)}function va(a,b){var c=h.isPlainObject(a.ajax)&&a.ajax.dataSrc!==k?a.ajax.dataSrc:a.sAjaxDataProp;return"data"===c?b.aaData||b[c]:""!==c?R(c)(b):b}function rb(a){var b=a.oClasses,c=a.sTableId,d=a.oLanguage,e=a.oPreviousSearch,f=a.aanFeatures,g='<input type="search" class="'+b.sFilterInput+'"/>',j=d.sSearch,j=j.match(/_INPUT_/)?j.replace("_INPUT_",g):j+g,b=h("<div/>",{id:!f.f?c+"_filter":null,"class":b.sFilter}).append(h("<label/>").append(j)),f=function(){var b=!this.value? -"":this.value;b!=e.sSearch&&(ga(a,{sSearch:b,bRegex:e.bRegex,bSmart:e.bSmart,bCaseInsensitive:e.bCaseInsensitive}),a._iDisplayStart=0,O(a))},g=null!==a.searchDelay?a.searchDelay:"ssp"===y(a)?400:0,i=h("input",b).val(e.sSearch).attr("placeholder",d.sSearchPlaceholder).on("keyup.DT search.DT input.DT paste.DT cut.DT",g?Qa(f,g):f).on("keypress.DT",function(a){if(13==a.keyCode)return!1}).attr("aria-controls",c);h(a.nTable).on("search.dt.DT",function(b,c){if(a===c)try{i[0]!==H.activeElement&&i.val(e.sSearch)}catch(d){}}); -return b[0]}function ga(a,b,c){var d=a.oPreviousSearch,e=a.aoPreSearchCols,f=function(a){d.sSearch=a.sSearch;d.bRegex=a.bRegex;d.bSmart=a.bSmart;d.bCaseInsensitive=a.bCaseInsensitive};Ia(a);if("ssp"!=y(a)){yb(a,b.sSearch,c,b.bEscapeRegex!==k?!b.bEscapeRegex:b.bRegex,b.bSmart,b.bCaseInsensitive);f(b);for(b=0;b<e.length;b++)zb(a,e[b].sSearch,b,e[b].bEscapeRegex!==k?!e[b].bEscapeRegex:e[b].bRegex,e[b].bSmart,e[b].bCaseInsensitive);Ab(a)}else f(b);a.bFiltered=!0;s(a,null,"search",[a])}function Ab(a){for(var b= -m.ext.search,c=a.aiDisplay,d,e,f=0,g=b.length;f<g;f++){for(var j=[],i=0,n=c.length;i<n;i++)e=c[i],d=a.aoData[e],b[f](a,d._aFilterData,e,d._aData,i)&&j.push(e);c.length=0;h.merge(c,j)}}function zb(a,b,c,d,e,f){if(""!==b){for(var g=[],j=a.aiDisplay,d=Ra(b,d,e,f),e=0;e<j.length;e++)b=a.aoData[j[e]]._aFilterData[c],d.test(b)&&g.push(j[e]);a.aiDisplay=g}}function yb(a,b,c,d,e,f){var d=Ra(b,d,e,f),f=a.oPreviousSearch.sSearch,g=a.aiDisplayMaster,j,e=[];0!==m.ext.search.length&&(c=!0);j=Bb(a);if(0>=b.length)a.aiDisplay= -g.slice();else{if(j||c||f.length>b.length||0!==b.indexOf(f)||a.bSorted)a.aiDisplay=g.slice();b=a.aiDisplay;for(c=0;c<b.length;c++)d.test(a.aoData[b[c]]._sFilterRow)&&e.push(b[c]);a.aiDisplay=e}}function Ra(a,b,c,d){a=b?a:Sa(a);c&&(a="^(?=.*?"+h.map(a.match(/"[^"]+"|[^ ]+/g)||[""],function(a){if('"'===a.charAt(0))var b=a.match(/^"(.*)"$/),a=b?b[1]:a;return a.replace('"',"")}).join(")(?=.*?")+").*$");return RegExp(a,d?"i":"")}function Bb(a){var b=a.aoColumns,c,d,e,f,g,j,i,h,l=m.ext.type.search;c=!1; -d=0;for(f=a.aoData.length;d<f;d++)if(h=a.aoData[d],!h._aFilterData){j=[];e=0;for(g=b.length;e<g;e++)c=b[e],c.bSearchable?(i=B(a,d,e,"filter"),l[c.sType]&&(i=l[c.sType](i)),null===i&&(i=""),"string"!==typeof i&&i.toString&&(i=i.toString())):i="",i.indexOf&&-1!==i.indexOf("&")&&(xa.innerHTML=i,i=$b?xa.textContent:xa.innerText),i.replace&&(i=i.replace(/[\r\n]/g,"")),j.push(i);h._aFilterData=j;h._sFilterRow=j.join(" ");c=!0}return c}function Cb(a){return{search:a.sSearch,smart:a.bSmart,regex:a.bRegex, -caseInsensitive:a.bCaseInsensitive}}function Db(a){return{sSearch:a.search,bSmart:a.smart,bRegex:a.regex,bCaseInsensitive:a.caseInsensitive}}function ub(a){var b=a.sTableId,c=a.aanFeatures.i,d=h("<div/>",{"class":a.oClasses.sInfo,id:!c?b+"_info":null});c||(a.aoDrawCallback.push({fn:Eb,sName:"information"}),d.attr("role","status").attr("aria-live","polite"),h(a.nTable).attr("aria-describedby",b+"_info"));return d[0]}function Eb(a){var b=a.aanFeatures.i;if(0!==b.length){var c=a.oLanguage,d=a._iDisplayStart+ -1,e=a.fnDisplayEnd(),f=a.fnRecordsTotal(),g=a.fnRecordsDisplay(),j=g?c.sInfo:c.sInfoEmpty;g!==f&&(j+=" "+c.sInfoFiltered);j+=c.sInfoPostFix;j=Fb(a,j);c=c.fnInfoCallback;null!==c&&(j=c.call(a.oInstance,a,d,e,f,g,j));h(b).html(j)}}function Fb(a,b){var c=a.fnFormatNumber,d=a._iDisplayStart+1,e=a._iDisplayLength,f=a.fnRecordsDisplay(),g=-1===e;return b.replace(/_START_/g,c.call(a,d)).replace(/_END_/g,c.call(a,a.fnDisplayEnd())).replace(/_MAX_/g,c.call(a,a.fnRecordsTotal())).replace(/_TOTAL_/g,c.call(a, -f)).replace(/_PAGE_/g,c.call(a,g?1:Math.ceil(d/e))).replace(/_PAGES_/g,c.call(a,g?1:Math.ceil(f/e)))}function ha(a){var b,c,d=a.iInitDisplayStart,e=a.aoColumns,f;c=a.oFeatures;var g=a.bDeferLoading;if(a.bInitialised){pb(a);mb(a);fa(a,a.aoHeader);fa(a,a.aoFooter);C(a,!0);c.bAutoWidth&&Ha(a);b=0;for(c=e.length;b<c;b++)f=e[b],f.sWidth&&(f.nTh.style.width=v(f.sWidth));s(a,null,"preInit",[a]);T(a);e=y(a);if("ssp"!=e||g)"ajax"==e?ua(a,[],function(c){var f=va(a,c);for(b=0;b<f.length;b++)N(a,f[b]);a.iInitDisplayStart= -d;T(a);C(a,!1);wa(a,c)},a):(C(a,!1),wa(a))}else setTimeout(function(){ha(a)},200)}function wa(a,b){a._bInitComplete=!0;(b||a.oInit.aaData)&&Z(a);s(a,null,"plugin-init",[a,b]);s(a,"aoInitComplete","init",[a,b])}function Ta(a,b){var c=parseInt(b,10);a._iDisplayLength=c;Ua(a);s(a,null,"length",[a,c])}function qb(a){for(var b=a.oClasses,c=a.sTableId,d=a.aLengthMenu,e=h.isArray(d[0]),f=e?d[0]:d,d=e?d[1]:d,e=h("<select/>",{name:c+"_length","aria-controls":c,"class":b.sLengthSelect}),g=0,j=f.length;g<j;g++)e[0][g]= -new Option(d[g],f[g]);var i=h("<div><label/></div>").addClass(b.sLength);a.aanFeatures.l||(i[0].id=c+"_length");i.children().append(a.oLanguage.sLengthMenu.replace("_MENU_",e[0].outerHTML));h("select",i).val(a._iDisplayLength).on("change.DT",function(){Ta(a,h(this).val());O(a)});h(a.nTable).on("length.dt.DT",function(b,c,d){a===c&&h("select",i).val(d)});return i[0]}function vb(a){var b=a.sPaginationType,c=m.ext.pager[b],d="function"===typeof c,e=function(a){O(a)},b=h("<div/>").addClass(a.oClasses.sPaging+ -b)[0],f=a.aanFeatures;d||c.fnInit(a,b,e);f.p||(b.id=a.sTableId+"_paginate",a.aoDrawCallback.push({fn:function(a){if(d){var b=a._iDisplayStart,i=a._iDisplayLength,h=a.fnRecordsDisplay(),l=-1===i,b=l?0:Math.ceil(b/i),i=l?1:Math.ceil(h/i),h=c(b,i),k,l=0;for(k=f.p.length;l<k;l++)Pa(a,"pageButton")(a,f.p[l],l,h,b,i)}else c.fnUpdate(a,e)},sName:"pagination"}));return b}function Va(a,b,c){var d=a._iDisplayStart,e=a._iDisplayLength,f=a.fnRecordsDisplay();0===f||-1===e?d=0:"number"===typeof b?(d=b*e,d>f&& -(d=0)):"first"==b?d=0:"previous"==b?(d=0<=e?d-e:0,0>d&&(d=0)):"next"==b?d+e<f&&(d+=e):"last"==b?d=Math.floor((f-1)/e)*e:K(a,0,"Unknown paging action: "+b,5);b=a._iDisplayStart!==d;a._iDisplayStart=d;b&&(s(a,null,"page",[a]),c&&O(a));return b}function sb(a){return h("<div/>",{id:!a.aanFeatures.r?a.sTableId+"_processing":null,"class":a.oClasses.sProcessing}).html(a.oLanguage.sProcessing).insertBefore(a.nTable)[0]}function C(a,b){a.oFeatures.bProcessing&&h(a.aanFeatures.r).css("display",b?"block":"none"); -s(a,null,"processing",[a,b])}function tb(a){var b=h(a.nTable);b.attr("role","grid");var c=a.oScroll;if(""===c.sX&&""===c.sY)return a.nTable;var d=c.sX,e=c.sY,f=a.oClasses,g=b.children("caption"),j=g.length?g[0]._captionSide:null,i=h(b[0].cloneNode(!1)),n=h(b[0].cloneNode(!1)),l=b.children("tfoot");l.length||(l=null);i=h("<div/>",{"class":f.sScrollWrapper}).append(h("<div/>",{"class":f.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:d?!d?null:v(d):"100%"}).append(h("<div/>", -{"class":f.sScrollHeadInner}).css({"box-sizing":"content-box",width:c.sXInner||"100%"}).append(i.removeAttr("id").css("margin-left",0).append("top"===j?g:null).append(b.children("thead"))))).append(h("<div/>",{"class":f.sScrollBody}).css({position:"relative",overflow:"auto",width:!d?null:v(d)}).append(b));l&&i.append(h("<div/>",{"class":f.sScrollFoot}).css({overflow:"hidden",border:0,width:d?!d?null:v(d):"100%"}).append(h("<div/>",{"class":f.sScrollFootInner}).append(n.removeAttr("id").css("margin-left", -0).append("bottom"===j?g:null).append(b.children("tfoot")))));var b=i.children(),k=b[0],f=b[1],r=l?b[2]:null;if(d)h(f).on("scroll.DT",function(){var a=this.scrollLeft;k.scrollLeft=a;l&&(r.scrollLeft=a)});h(f).css(e&&c.bCollapse?"max-height":"height",e);a.nScrollHead=k;a.nScrollBody=f;a.nScrollFoot=r;a.aoDrawCallback.push({fn:ma,sName:"scrolling"});return i[0]}function ma(a){var b=a.oScroll,c=b.sX,d=b.sXInner,e=b.sY,b=b.iBarWidth,f=h(a.nScrollHead),g=f[0].style,j=f.children("div"),i=j[0].style,n=j.children("table"), -j=a.nScrollBody,l=h(j),q=j.style,r=h(a.nScrollFoot).children("div"),m=r.children("table"),p=h(a.nTHead),o=h(a.nTable),t=o[0],s=t.style,u=a.nTFoot?h(a.nTFoot):null,x=a.oBrowser,U=x.bScrollOversize,ac=D(a.aoColumns,"nTh"),P,L,Q,w,Wa=[],y=[],z=[],A=[],B,C=function(a){a=a.style;a.paddingTop="0";a.paddingBottom="0";a.borderTopWidth="0";a.borderBottomWidth="0";a.height=0};L=j.scrollHeight>j.clientHeight;if(a.scrollBarVis!==L&&a.scrollBarVis!==k)a.scrollBarVis=L,Z(a);else{a.scrollBarVis=L;o.children("thead, tfoot").remove(); -u&&(Q=u.clone().prependTo(o),P=u.find("tr"),Q=Q.find("tr"));w=p.clone().prependTo(o);p=p.find("tr");L=w.find("tr");w.find("th, td").removeAttr("tabindex");c||(q.width="100%",f[0].style.width="100%");h.each(ta(a,w),function(b,c){B=$(a,b);c.style.width=a.aoColumns[B].sWidth});u&&I(function(a){a.style.width=""},Q);f=o.outerWidth();if(""===c){s.width="100%";if(U&&(o.find("tbody").height()>j.offsetHeight||"scroll"==l.css("overflow-y")))s.width=v(o.outerWidth()-b);f=o.outerWidth()}else""!==d&&(s.width= -v(d),f=o.outerWidth());I(C,L);I(function(a){z.push(a.innerHTML);Wa.push(v(h(a).css("width")))},L);I(function(a,b){if(h.inArray(a,ac)!==-1)a.style.width=Wa[b]},p);h(L).height(0);u&&(I(C,Q),I(function(a){A.push(a.innerHTML);y.push(v(h(a).css("width")))},Q),I(function(a,b){a.style.width=y[b]},P),h(Q).height(0));I(function(a,b){a.innerHTML='<div class="dataTables_sizing" style="height:0;overflow:hidden;">'+z[b]+"</div>";a.style.width=Wa[b]},L);u&&I(function(a,b){a.innerHTML='<div class="dataTables_sizing" style="height:0;overflow:hidden;">'+ -A[b]+"</div>";a.style.width=y[b]},Q);if(o.outerWidth()<f){P=j.scrollHeight>j.offsetHeight||"scroll"==l.css("overflow-y")?f+b:f;if(U&&(j.scrollHeight>j.offsetHeight||"scroll"==l.css("overflow-y")))s.width=v(P-b);(""===c||""!==d)&&K(a,1,"Possible column misalignment",6)}else P="100%";q.width=v(P);g.width=v(P);u&&(a.nScrollFoot.style.width=v(P));!e&&U&&(q.height=v(t.offsetHeight+b));c=o.outerWidth();n[0].style.width=v(c);i.width=v(c);d=o.height()>j.clientHeight||"scroll"==l.css("overflow-y");e="padding"+ -(x.bScrollbarLeft?"Left":"Right");i[e]=d?b+"px":"0px";u&&(m[0].style.width=v(c),r[0].style.width=v(c),r[0].style[e]=d?b+"px":"0px");o.children("colgroup").insertBefore(o.children("thead"));l.scroll();if((a.bSorted||a.bFiltered)&&!a._drawHold)j.scrollTop=0}}function I(a,b,c){for(var d=0,e=0,f=b.length,g,j;e<f;){g=b[e].firstChild;for(j=c?c[e].firstChild:null;g;)1===g.nodeType&&(c?a(g,j,d):a(g,d),d++),g=g.nextSibling,j=c?j.nextSibling:null;e++}}function Ha(a){var b=a.nTable,c=a.aoColumns,d=a.oScroll, -e=d.sY,f=d.sX,g=d.sXInner,j=c.length,i=na(a,"bVisible"),n=h("th",a.nTHead),l=b.getAttribute("width"),k=b.parentNode,r=!1,m,p,o=a.oBrowser,d=o.bScrollOversize;(m=b.style.width)&&-1!==m.indexOf("%")&&(l=m);for(m=0;m<i.length;m++)p=c[i[m]],null!==p.sWidth&&(p.sWidth=Gb(p.sWidthOrig,k),r=!0);if(d||!r&&!f&&!e&&j==ba(a)&&j==n.length)for(m=0;m<j;m++)i=$(a,m),null!==i&&(c[i].sWidth=v(n.eq(m).width()));else{j=h(b).clone().css("visibility","hidden").removeAttr("id");j.find("tbody tr").remove();var t=h("<tr/>").appendTo(j.find("tbody")); -j.find("thead, tfoot").remove();j.append(h(a.nTHead).clone()).append(h(a.nTFoot).clone());j.find("tfoot th, tfoot td").css("width","");n=ta(a,j.find("thead")[0]);for(m=0;m<i.length;m++)p=c[i[m]],n[m].style.width=null!==p.sWidthOrig&&""!==p.sWidthOrig?v(p.sWidthOrig):"",p.sWidthOrig&&f&&h(n[m]).append(h("<div/>").css({width:p.sWidthOrig,margin:0,padding:0,border:0,height:1}));if(a.aoData.length)for(m=0;m<i.length;m++)r=i[m],p=c[r],h(Hb(a,r)).clone(!1).append(p.sContentPadding).appendTo(t);h("[name]", -j).removeAttr("name");p=h("<div/>").css(f||e?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(j).appendTo(k);f&&g?j.width(g):f?(j.css("width","auto"),j.removeAttr("width"),j.width()<k.clientWidth&&l&&j.width(k.clientWidth)):e?j.width(k.clientWidth):l&&j.width(l);for(m=e=0;m<i.length;m++)k=h(n[m]),g=k.outerWidth()-k.width(),k=o.bBounding?Math.ceil(n[m].getBoundingClientRect().width):k.outerWidth(),e+=k,c[i[m]].sWidth=v(k-g);b.style.width=v(e);p.remove()}l&&(b.style.width= -v(l));if((l||f)&&!a._reszEvt)b=function(){h(E).on("resize.DT-"+a.sInstance,Qa(function(){Z(a)}))},d?setTimeout(b,1E3):b(),a._reszEvt=!0}function Gb(a,b){if(!a)return 0;var c=h("<div/>").css("width",v(a)).appendTo(b||H.body),d=c[0].offsetWidth;c.remove();return d}function Hb(a,b){var c=Ib(a,b);if(0>c)return null;var d=a.aoData[c];return!d.nTr?h("<td/>").html(B(a,c,b,"display"))[0]:d.anCells[b]}function Ib(a,b){for(var c,d=-1,e=-1,f=0,g=a.aoData.length;f<g;f++)c=B(a,f,b,"display")+"",c=c.replace(bc, -""),c=c.replace(/ /g," "),c.length>d&&(d=c.length,e=f);return e}function v(a){return null===a?"0px":"number"==typeof a?0>a?"0px":a+"px":a.match(/\d$/)?a+"px":a}function W(a){var b,c,d=[],e=a.aoColumns,f,g,j,i;b=a.aaSortingFixed;c=h.isPlainObject(b);var n=[];f=function(a){a.length&&!h.isArray(a[0])?n.push(a):h.merge(n,a)};h.isArray(b)&&f(b);c&&b.pre&&f(b.pre);f(a.aaSorting);c&&b.post&&f(b.post);for(a=0;a<n.length;a++){i=n[a][0];f=e[i].aDataSort;b=0;for(c=f.length;b<c;b++)g=f[b],j=e[g].sType|| -"string",n[a]._idx===k&&(n[a]._idx=h.inArray(n[a][1],e[g].asSorting)),d.push({src:i,col:g,dir:n[a][1],index:n[a]._idx,type:j,formatter:m.ext.type.order[j+"-pre"]})}return d}function ob(a){var b,c,d=[],e=m.ext.type.order,f=a.aoData,g=0,j,i=a.aiDisplayMaster,h;Ia(a);h=W(a);b=0;for(c=h.length;b<c;b++)j=h[b],j.formatter&&g++,Jb(a,j.col);if("ssp"!=y(a)&&0!==h.length){b=0;for(c=i.length;b<c;b++)d[i[b]]=b;g===h.length?i.sort(function(a,b){var c,e,g,j,i=h.length,k=f[a]._aSortData,m=f[b]._aSortData;for(g= -0;g<i;g++)if(j=h[g],c=k[j.col],e=m[j.col],c=c<e?-1:c>e?1:0,0!==c)return"asc"===j.dir?c:-c;c=d[a];e=d[b];return c<e?-1:c>e?1:0}):i.sort(function(a,b){var c,g,j,i,k=h.length,m=f[a]._aSortData,p=f[b]._aSortData;for(j=0;j<k;j++)if(i=h[j],c=m[i.col],g=p[i.col],i=e[i.type+"-"+i.dir]||e["string-"+i.dir],c=i(c,g),0!==c)return c;c=d[a];g=d[b];return c<g?-1:c>g?1:0})}a.bSorted=!0}function Kb(a){for(var b,c,d=a.aoColumns,e=W(a),a=a.oLanguage.oAria,f=0,g=d.length;f<g;f++){c=d[f];var j=c.asSorting;b=c.sTitle.replace(/<.*?>/g, -"");var i=c.nTh;i.removeAttribute("aria-sort");c.bSortable&&(0<e.length&&e[0].col==f?(i.setAttribute("aria-sort","asc"==e[0].dir?"ascending":"descending"),c=j[e[0].index+1]||j[0]):c=j[0],b+="asc"===c?a.sSortAscending:a.sSortDescending);i.setAttribute("aria-label",b)}}function Xa(a,b,c,d){var e=a.aaSorting,f=a.aoColumns[b].asSorting,g=function(a,b){var c=a._idx;c===k&&(c=h.inArray(a[1],f));return c+1<f.length?c+1:b?null:0};"number"===typeof e[0]&&(e=a.aaSorting=[e]);c&&a.oFeatures.bSortMulti?(c=h.inArray(b, -D(e,"0")),-1!==c?(b=g(e[c],!0),null===b&&1===e.length&&(b=0),null===b?e.splice(c,1):(e[c][1]=f[b],e[c]._idx=b)):(e.push([b,f[0],0]),e[e.length-1]._idx=0)):e.length&&e[0][0]==b?(b=g(e[0]),e.length=1,e[0][1]=f[b],e[0]._idx=b):(e.length=0,e.push([b,f[0]]),e[0]._idx=0);T(a);"function"==typeof d&&d(a)}function Oa(a,b,c,d){var e=a.aoColumns[c];Ya(b,{},function(b){!1!==e.bSortable&&(a.oFeatures.bProcessing?(C(a,!0),setTimeout(function(){Xa(a,c,b.shiftKey,d);"ssp"!==y(a)&&C(a,!1)},0)):Xa(a,c,b.shiftKey,d))})} -function ya(a){var b=a.aLastSort,c=a.oClasses.sSortColumn,d=W(a),e=a.oFeatures,f,g;if(e.bSort&&e.bSortClasses){e=0;for(f=b.length;e<f;e++)g=b[e].src,h(D(a.aoData,"anCells",g)).removeClass(c+(2>e?e+1:3));e=0;for(f=d.length;e<f;e++)g=d[e].src,h(D(a.aoData,"anCells",g)).addClass(c+(2>e?e+1:3))}a.aLastSort=d}function Jb(a,b){var c=a.aoColumns[b],d=m.ext.order[c.sSortDataType],e;d&&(e=d.call(a.oInstance,a,b,aa(a,b)));for(var f,g=m.ext.type.order[c.sType+"-pre"],j=0,i=a.aoData.length;j<i;j++)if(c=a.aoData[j], -c._aSortData||(c._aSortData=[]),!c._aSortData[b]||d)f=d?e[j]:B(a,j,b,"sort"),c._aSortData[b]=g?g(f):f}function za(a){if(a.oFeatures.bStateSave&&!a.bDestroying){var b={time:+new Date,start:a._iDisplayStart,length:a._iDisplayLength,order:h.extend(!0,[],a.aaSorting),search:Cb(a.oPreviousSearch),columns:h.map(a.aoColumns,function(b,d){return{visible:b.bVisible,search:Cb(a.aoPreSearchCols[d])}})};s(a,"aoStateSaveParams","stateSaveParams",[a,b]);a.oSavedState=b;a.fnStateSaveCallback.call(a.oInstance,a, -b)}}function Lb(a,b,c){var d,e,f=a.aoColumns,b=function(b){if(b&&b.time){var g=s(a,"aoStateLoadParams","stateLoadParams",[a,b]);if(-1===h.inArray(!1,g)&&(g=a.iStateDuration,!(0<g&&b.time<+new Date-1E3*g)&&!(b.columns&&f.length!==b.columns.length))){a.oLoadedState=h.extend(!0,{},b);b.start!==k&&(a._iDisplayStart=b.start,a.iInitDisplayStart=b.start);b.length!==k&&(a._iDisplayLength=b.length);b.order!==k&&(a.aaSorting=[],h.each(b.order,function(b,c){a.aaSorting.push(c[0]>=f.length?[0,c[1]]:c)}));b.search!== -k&&h.extend(a.oPreviousSearch,Db(b.search));if(b.columns){d=0;for(e=b.columns.length;d<e;d++)g=b.columns[d],g.visible!==k&&(f[d].bVisible=g.visible),g.search!==k&&h.extend(a.aoPreSearchCols[d],Db(g.search))}s(a,"aoStateLoaded","stateLoaded",[a,b])}}c()};if(a.oFeatures.bStateSave){var g=a.fnStateLoadCallback.call(a.oInstance,a,b);g!==k&&b(g)}else c()}function Aa(a){var b=m.settings,a=h.inArray(a,D(b,"nTable"));return-1!==a?b[a]:null}function K(a,b,c,d){c="DataTables warning: "+(a?"table id="+a.sTableId+ -" - ":"")+c;d&&(c+=". For more information about this error, please see http://datatables.net/tn/"+d);if(b)E.console&&console.log&&console.log(c);else if(b=m.ext,b=b.sErrMode||b.errMode,a&&s(a,null,"error",[a,d,c]),"alert"==b)alert(c);else{if("throw"==b)throw Error(c);"function"==typeof b&&b(a,d,c)}}function F(a,b,c,d){h.isArray(c)?h.each(c,function(c,d){h.isArray(d)?F(a,b,d[0],d[1]):F(a,b,d)}):(d===k&&(d=c),b[c]!==k&&(a[d]=b[c]))}function Mb(a,b,c){var d,e;for(e in b)b.hasOwnProperty(e)&&(d=b[e], -h.isPlainObject(d)?(h.isPlainObject(a[e])||(a[e]={}),h.extend(!0,a[e],d)):a[e]=c&&"data"!==e&&"aaData"!==e&&h.isArray(d)?d.slice():d);return a}function Ya(a,b,c){h(a).on("click.DT",b,function(b){a.blur();c(b)}).on("keypress.DT",b,function(a){13===a.which&&(a.preventDefault(),c(a))}).on("selectstart.DT",function(){return!1})}function z(a,b,c,d){c&&a[b].push({fn:c,sName:d})}function s(a,b,c,d){var e=[];b&&(e=h.map(a[b].slice().reverse(),function(b){return b.fn.apply(a.oInstance,d)}));null!==c&&(b=h.Event(c+ -".dt"),h(a.nTable).trigger(b,d),e.push(b.result));return e}function Ua(a){var b=a._iDisplayStart,c=a.fnDisplayEnd(),d=a._iDisplayLength;b>=c&&(b=c-d);b-=b%d;if(-1===d||0>b)b=0;a._iDisplayStart=b}function Pa(a,b){var c=a.renderer,d=m.ext.renderer[b];return h.isPlainObject(c)&&c[b]?d[c[b]]||d._:"string"===typeof c?d[c]||d._:d._}function y(a){return a.oFeatures.bServerSide?"ssp":a.ajax||a.sAjaxSource?"ajax":"dom"}function ia(a,b){var c=[],c=Nb.numbers_length,d=Math.floor(c/2);b<=c?c=X(0,b):a<=d?(c=X(0, -c-2),c.push("ellipsis"),c.push(b-1)):(a>=b-1-d?c=X(b-(c-2),b):(c=X(a-d+2,a+d-1),c.push("ellipsis"),c.push(b-1)),c.splice(0,0,"ellipsis"),c.splice(0,0,0));c.DT_el="span";return c}function fb(a){h.each({num:function(b){return Ba(b,a)},"num-fmt":function(b){return Ba(b,a,Za)},"html-num":function(b){return Ba(b,a,Ca)},"html-num-fmt":function(b){return Ba(b,a,Ca,Za)}},function(b,c){x.type.order[b+a+"-pre"]=c;b.match(/^html\-/)&&(x.type.search[b+a]=x.type.search.html)})}function Ob(a){return function(){var b= -[Aa(this[m.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return m.ext.internal[a].apply(this,b)}}var m=function(a){this.$=function(a,b){return this.api(!0).$(a,b)};this._=function(a,b){return this.api(!0).rows(a,b).data()};this.api=function(a){return a?new t(Aa(this[x.iApiIndex])):new t(this)};this.fnAddData=function(a,b){var c=this.api(!0),d=h.isArray(a)&&(h.isArray(a[0])||h.isPlainObject(a[0]))?c.rows.add(a):c.row.add(a);(b===k||b)&&c.draw();return d.flatten().toArray()};this.fnAdjustColumnSizing= -function(a){var b=this.api(!0).columns.adjust(),c=b.settings()[0],d=c.oScroll;a===k||a?b.draw(!1):(""!==d.sX||""!==d.sY)&&ma(c)};this.fnClearTable=function(a){var b=this.api(!0).clear();(a===k||a)&&b.draw()};this.fnClose=function(a){this.api(!0).row(a).child.hide()};this.fnDeleteRow=function(a,b,c){var d=this.api(!0),a=d.rows(a),e=a.settings()[0],h=e.aoData[a[0][0]];a.remove();b&&b.call(this,e,h);(c===k||c)&&d.draw();return h};this.fnDestroy=function(a){this.api(!0).destroy(a)};this.fnDraw=function(a){this.api(!0).draw(a)}; -this.fnFilter=function(a,b,c,d,e,h){e=this.api(!0);null===b||b===k?e.search(a,c,d,h):e.column(b).search(a,c,d,h);e.draw()};this.fnGetData=function(a,b){var c=this.api(!0);if(a!==k){var d=a.nodeName?a.nodeName.toLowerCase():"";return b!==k||"td"==d||"th"==d?c.cell(a,b).data():c.row(a).data()||null}return c.data().toArray()};this.fnGetNodes=function(a){var b=this.api(!0);return a!==k?b.row(a).node():b.rows().nodes().flatten().toArray()};this.fnGetPosition=function(a){var b=this.api(!0),c=a.nodeName.toUpperCase(); -return"TR"==c?b.row(a).index():"TD"==c||"TH"==c?(a=b.cell(a).index(),[a.row,a.columnVisible,a.column]):null};this.fnIsOpen=function(a){return this.api(!0).row(a).child.isShown()};this.fnOpen=function(a,b,c){return this.api(!0).row(a).child(b,c).show().child()[0]};this.fnPageChange=function(a,b){var c=this.api(!0).page(a);(b===k||b)&&c.draw(!1)};this.fnSetColumnVis=function(a,b,c){a=this.api(!0).column(a).visible(b);(c===k||c)&&a.columns.adjust().draw()};this.fnSettings=function(){return Aa(this[x.iApiIndex])}; -this.fnSort=function(a){this.api(!0).order(a).draw()};this.fnSortListener=function(a,b,c){this.api(!0).order.listener(a,b,c)};this.fnUpdate=function(a,b,c,d,e){var h=this.api(!0);c===k||null===c?h.row(b).data(a):h.cell(b,c).data(a);(e===k||e)&&h.columns.adjust();(d===k||d)&&h.draw();return 0};this.fnVersionCheck=x.fnVersionCheck;var b=this,c=a===k,d=this.length;c&&(a={});this.oApi=this.internal=x.internal;for(var e in m.ext.internal)e&&(this[e]=Ob(e));this.each(function(){var e={},g=1<d?Mb(e,a,!0): -a,j=0,i,e=this.getAttribute("id"),n=!1,l=m.defaults,q=h(this);if("table"!=this.nodeName.toLowerCase())K(null,0,"Non-table node initialisation ("+this.nodeName+")",2);else{gb(l);hb(l.column);J(l,l,!0);J(l.column,l.column,!0);J(l,h.extend(g,q.data()));var r=m.settings,j=0;for(i=r.length;j<i;j++){var p=r[j];if(p.nTable==this||p.nTHead.parentNode==this||p.nTFoot&&p.nTFoot.parentNode==this){var t=g.bRetrieve!==k?g.bRetrieve:l.bRetrieve;if(c||t)return p.oInstance;if(g.bDestroy!==k?g.bDestroy:l.bDestroy){p.oInstance.fnDestroy(); -break}else{K(p,0,"Cannot reinitialise DataTable",3);return}}if(p.sTableId==this.id){r.splice(j,1);break}}if(null===e||""===e)this.id=e="DataTables_Table_"+m.ext._unique++;var o=h.extend(!0,{},m.models.oSettings,{sDestroyWidth:q[0].style.width,sInstance:e,sTableId:e});o.nTable=this;o.oApi=b.internal;o.oInit=g;r.push(o);o.oInstance=1===b.length?b:q.dataTable();gb(g);g.oLanguage&&Fa(g.oLanguage);g.aLengthMenu&&!g.iDisplayLength&&(g.iDisplayLength=h.isArray(g.aLengthMenu[0])?g.aLengthMenu[0][0]:g.aLengthMenu[0]); -g=Mb(h.extend(!0,{},l),g);F(o.oFeatures,g,"bPaginate bLengthChange bFilter bSort bSortMulti bInfo bProcessing bAutoWidth bSortClasses bServerSide bDeferRender".split(" "));F(o,g,["asStripeClasses","ajax","fnServerData","fnFormatNumber","sServerMethod","aaSorting","aaSortingFixed","aLengthMenu","sPaginationType","sAjaxSource","sAjaxDataProp","iStateDuration","sDom","bSortCellsTop","iTabIndex","fnStateLoadCallback","fnStateSaveCallback","renderer","searchDelay","rowId",["iCookieDuration","iStateDuration"], -["oSearch","oPreviousSearch"],["aoSearchCols","aoPreSearchCols"],["iDisplayLength","_iDisplayLength"],["bJQueryUI","bJUI"]]);F(o.oScroll,g,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]);F(o.oLanguage,g,"fnInfoCallback");z(o,"aoDrawCallback",g.fnDrawCallback,"user");z(o,"aoServerParams",g.fnServerParams,"user");z(o,"aoStateSaveParams",g.fnStateSaveParams,"user");z(o,"aoStateLoadParams",g.fnStateLoadParams,"user");z(o,"aoStateLoaded",g.fnStateLoaded, -"user");z(o,"aoRowCallback",g.fnRowCallback,"user");z(o,"aoRowCreatedCallback",g.fnCreatedRow,"user");z(o,"aoHeaderCallback",g.fnHeaderCallback,"user");z(o,"aoFooterCallback",g.fnFooterCallback,"user");z(o,"aoInitComplete",g.fnInitComplete,"user");z(o,"aoPreDrawCallback",g.fnPreDrawCallback,"user");o.rowIdFn=R(g.rowId);ib(o);var u=o.oClasses;g.bJQueryUI?(h.extend(u,m.ext.oJUIClasses,g.oClasses),g.sDom===l.sDom&&"lfrtip"===l.sDom&&(o.sDom='<"H"lfr>t<"F"ip>'),o.renderer)?h.isPlainObject(o.renderer)&& -!o.renderer.header&&(o.renderer.header="jqueryui"):o.renderer="jqueryui":h.extend(u,m.ext.classes,g.oClasses);q.addClass(u.sTable);o.iInitDisplayStart===k&&(o.iInitDisplayStart=g.iDisplayStart,o._iDisplayStart=g.iDisplayStart);null!==g.iDeferLoading&&(o.bDeferLoading=!0,e=h.isArray(g.iDeferLoading),o._iRecordsDisplay=e?g.iDeferLoading[0]:g.iDeferLoading,o._iRecordsTotal=e?g.iDeferLoading[1]:g.iDeferLoading);var v=o.oLanguage;h.extend(!0,v,g.oLanguage);v.sUrl&&(h.ajax({dataType:"json",url:v.sUrl,success:function(a){Fa(a); -J(l.oLanguage,a);h.extend(true,v,a);ha(o)},error:function(){ha(o)}}),n=!0);null===g.asStripeClasses&&(o.asStripeClasses=[u.sStripeOdd,u.sStripeEven]);var e=o.asStripeClasses,x=q.children("tbody").find("tr").eq(0);-1!==h.inArray(!0,h.map(e,function(a){return x.hasClass(a)}))&&(h("tbody tr",this).removeClass(e.join(" ")),o.asDestroyStripes=e.slice());e=[];r=this.getElementsByTagName("thead");0!==r.length&&(ea(o.aoHeader,r[0]),e=ta(o));if(null===g.aoColumns){r=[];j=0;for(i=e.length;j<i;j++)r.push(null)}else r= -g.aoColumns;j=0;for(i=r.length;j<i;j++)Ga(o,e?e[j]:null);kb(o,g.aoColumnDefs,r,function(a,b){la(o,a,b)});if(x.length){var w=function(a,b){return a.getAttribute("data-"+b)!==null?b:null};h(x[0]).children("th, td").each(function(a,b){var c=o.aoColumns[a];if(c.mData===a){var d=w(b,"sort")||w(b,"order"),e=w(b,"filter")||w(b,"search");if(d!==null||e!==null){c.mData={_:a+".display",sort:d!==null?a+".@data-"+d:k,type:d!==null?a+".@data-"+d:k,filter:e!==null?a+".@data-"+e:k};la(o,a)}}})}var U=o.oFeatures, -e=function(){if(g.aaSorting===k){var a=o.aaSorting;j=0;for(i=a.length;j<i;j++)a[j][1]=o.aoColumns[j].asSorting[0]}ya(o);U.bSort&&z(o,"aoDrawCallback",function(){if(o.bSorted){var a=W(o),b={};h.each(a,function(a,c){b[c.src]=c.dir});s(o,null,"order",[o,a,b]);Kb(o)}});z(o,"aoDrawCallback",function(){(o.bSorted||y(o)==="ssp"||U.bDeferRender)&&ya(o)},"sc");var a=q.children("caption").each(function(){this._captionSide=h(this).css("caption-side")}),b=q.children("thead");b.length===0&&(b=h("<thead/>").appendTo(q)); -o.nTHead=b[0];b=q.children("tbody");b.length===0&&(b=h("<tbody/>").appendTo(q));o.nTBody=b[0];b=q.children("tfoot");if(b.length===0&&a.length>0&&(o.oScroll.sX!==""||o.oScroll.sY!==""))b=h("<tfoot/>").appendTo(q);if(b.length===0||b.children().length===0)q.addClass(u.sNoFooter);else if(b.length>0){o.nTFoot=b[0];ea(o.aoFooter,o.nTFoot)}if(g.aaData)for(j=0;j<g.aaData.length;j++)N(o,g.aaData[j]);else(o.bDeferLoading||y(o)=="dom")&&oa(o,h(o.nTBody).children("tr"));o.aiDisplay=o.aiDisplayMaster.slice(); -o.bInitialised=true;n===false&&ha(o)};g.bStateSave?(U.bStateSave=!0,z(o,"aoDrawCallback",za,"state_save"),Lb(o,g,e)):e()}});b=null;return this},x,t,p,u,$a={},Pb=/[\r\n]/g,Ca=/<.*?>/g,cc=/^\d{2,4}[\.\/\-]\d{1,2}[\.\/\-]\d{1,2}([T ]{1}\d{1,2}[:\.]\d{2}([\.:]\d{2})?)?$/,dc=RegExp("(\\/|\\.|\\*|\\+|\\?|\\||\\(|\\)|\\[|\\]|\\{|\\}|\\\\|\\$|\\^|\\-)","g"),Za=/[',$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfk]/gi,M=function(a){return!a||!0===a||"-"===a?!0:!1},Qb=function(a){var b=parseInt(a,10);return!isNaN(b)&& -isFinite(a)?b:null},Rb=function(a,b){$a[b]||($a[b]=RegExp(Sa(b),"g"));return"string"===typeof a&&"."!==b?a.replace(/\./g,"").replace($a[b],"."):a},ab=function(a,b,c){var d="string"===typeof a;if(M(a))return!0;b&&d&&(a=Rb(a,b));c&&d&&(a=a.replace(Za,""));return!isNaN(parseFloat(a))&&isFinite(a)},Sb=function(a,b,c){return M(a)?!0:!(M(a)||"string"===typeof a)?null:ab(a.replace(Ca,""),b,c)?!0:null},D=function(a,b,c){var d=[],e=0,f=a.length;if(c!==k)for(;e<f;e++)a[e]&&a[e][b]&&d.push(a[e][b][c]);else for(;e< -f;e++)a[e]&&d.push(a[e][b]);return d},ja=function(a,b,c,d){var e=[],f=0,g=b.length;if(d!==k)for(;f<g;f++)a[b[f]][c]&&e.push(a[b[f]][c][d]);else for(;f<g;f++)e.push(a[b[f]][c]);return e},X=function(a,b){var c=[],d;b===k?(b=0,d=a):(d=b,b=a);for(var e=b;e<d;e++)c.push(e);return c},Tb=function(a){for(var b=[],c=0,d=a.length;c<d;c++)a[c]&&b.push(a[c]);return b},sa=function(a){var b;a:{if(!(2>a.length)){b=a.slice().sort();for(var c=b[0],d=1,e=b.length;d<e;d++){if(b[d]===c){b=!1;break a}c=b[d]}}b=!0}if(b)return a.slice(); -b=[];var e=a.length,f,g=0,d=0;a:for(;d<e;d++){c=a[d];for(f=0;f<g;f++)if(b[f]===c)continue a;b.push(c);g++}return b};m.util={throttle:function(a,b){var c=b!==k?b:200,d,e;return function(){var b=this,g=+new Date,h=arguments;d&&g<d+c?(clearTimeout(e),e=setTimeout(function(){d=k;a.apply(b,h)},c)):(d=g,a.apply(b,h))}},escapeRegex:function(a){return a.replace(dc,"\\$1")}};var A=function(a,b,c){a[b]!==k&&(a[c]=a[b])},ca=/\[.*?\]$/,V=/\(\)$/,Sa=m.util.escapeRegex,xa=h("<div>")[0],$b=xa.textContent!==k,bc= -/<.*?>/g,Qa=m.util.throttle,Ub=[],w=Array.prototype,ec=function(a){var b,c,d=m.settings,e=h.map(d,function(a){return a.nTable});if(a){if(a.nTable&&a.oApi)return[a];if(a.nodeName&&"table"===a.nodeName.toLowerCase())return b=h.inArray(a,e),-1!==b?[d[b]]:null;if(a&&"function"===typeof a.settings)return a.settings().toArray();"string"===typeof a?c=h(a):a instanceof h&&(c=a)}else return[];if(c)return c.map(function(){b=h.inArray(this,e);return-1!==b?d[b]:null}).toArray()};t=function(a,b){if(!(this instanceof -t))return new t(a,b);var c=[],d=function(a){(a=ec(a))&&(c=c.concat(a))};if(h.isArray(a))for(var e=0,f=a.length;e<f;e++)d(a[e]);else d(a);this.context=sa(c);b&&h.merge(this,b);this.selector={rows:null,cols:null,opts:null};t.extend(this,this,Ub)};m.Api=t;h.extend(t.prototype,{any:function(){return 0!==this.count()},concat:w.concat,context:[],count:function(){return this.flatten().length},each:function(a){for(var b=0,c=this.length;b<c;b++)a.call(this,this[b],b,this);return this},eq:function(a){var b= -this.context;return b.length>a?new t(b[a],this[a]):null},filter:function(a){var b=[];if(w.filter)b=w.filter.call(this,a,this);else for(var c=0,d=this.length;c<d;c++)a.call(this,this[c],c,this)&&b.push(this[c]);return new t(this.context,b)},flatten:function(){var a=[];return new t(this.context,a.concat.apply(a,this.toArray()))},join:w.join,indexOf:w.indexOf||function(a,b){for(var c=b||0,d=this.length;c<d;c++)if(this[c]===a)return c;return-1},iterator:function(a,b,c,d){var e=[],f,g,h,i,n,l=this.context, -m,p,u=this.selector;"string"===typeof a&&(d=c,c=b,b=a,a=!1);g=0;for(h=l.length;g<h;g++){var s=new t(l[g]);if("table"===b)f=c.call(s,l[g],g),f!==k&&e.push(f);else if("columns"===b||"rows"===b)f=c.call(s,l[g],this[g],g),f!==k&&e.push(f);else if("column"===b||"column-rows"===b||"row"===b||"cell"===b){p=this[g];"column-rows"===b&&(m=Da(l[g],u.opts));i=0;for(n=p.length;i<n;i++)f=p[i],f="cell"===b?c.call(s,l[g],f.row,f.column,g,i):c.call(s,l[g],f,g,i,m),f!==k&&e.push(f)}}return e.length||d?(a=new t(l,a? -e.concat.apply([],e):e),b=a.selector,b.rows=u.rows,b.cols=u.cols,b.opts=u.opts,a):this},lastIndexOf:w.lastIndexOf||function(a,b){return this.indexOf.apply(this.toArray.reverse(),arguments)},length:0,map:function(a){var b=[];if(w.map)b=w.map.call(this,a,this);else for(var c=0,d=this.length;c<d;c++)b.push(a.call(this,this[c],c));return new t(this.context,b)},pluck:function(a){return this.map(function(b){return b[a]})},pop:w.pop,push:w.push,reduce:w.reduce||function(a,b){return jb(this,a,b,0,this.length, -1)},reduceRight:w.reduceRight||function(a,b){return jb(this,a,b,this.length-1,-1,-1)},reverse:w.reverse,selector:null,shift:w.shift,slice:function(){return new t(this.context,this)},sort:w.sort,splice:w.splice,toArray:function(){return w.slice.call(this)},to$:function(){return h(this)},toJQuery:function(){return h(this)},unique:function(){return new t(this.context,sa(this))},unshift:w.unshift});t.extend=function(a,b,c){if(c.length&&b&&(b instanceof t||b.__dt_wrapper)){var d,e,f,g=function(a,b,c){return function(){var d= -b.apply(a,arguments);t.extend(d,d,c.methodExt);return d}};d=0;for(e=c.length;d<e;d++)f=c[d],b[f.name]="function"===typeof f.val?g(a,f.val,f):h.isPlainObject(f.val)?{}:f.val,b[f.name].__dt_wrapper=!0,t.extend(a,b[f.name],f.propExt)}};t.register=p=function(a,b){if(h.isArray(a))for(var c=0,d=a.length;c<d;c++)t.register(a[c],b);else for(var e=a.split("."),f=Ub,g,j,c=0,d=e.length;c<d;c++){g=(j=-1!==e[c].indexOf("()"))?e[c].replace("()",""):e[c];var i;a:{i=0;for(var n=f.length;i<n;i++)if(f[i].name===g){i= -f[i];break a}i=null}i||(i={name:g,val:{},methodExt:[],propExt:[]},f.push(i));c===d-1?i.val=b:f=j?i.methodExt:i.propExt}};t.registerPlural=u=function(a,b,c){t.register(a,c);t.register(b,function(){var a=c.apply(this,arguments);return a===this?this:a instanceof t?a.length?h.isArray(a[0])?new t(a.context,a[0]):a[0]:k:a})};p("tables()",function(a){var b;if(a){b=t;var c=this.context;if("number"===typeof a)a=[c[a]];else var d=h.map(c,function(a){return a.nTable}),a=h(d).filter(a).map(function(){var a=h.inArray(this, -d);return c[a]}).toArray();b=new b(a)}else b=this;return b});p("table()",function(a){var a=this.tables(a),b=a.context;return b.length?new t(b[0]):a});u("tables().nodes()","table().node()",function(){return this.iterator("table",function(a){return a.nTable},1)});u("tables().body()","table().body()",function(){return this.iterator("table",function(a){return a.nTBody},1)});u("tables().header()","table().header()",function(){return this.iterator("table",function(a){return a.nTHead},1)});u("tables().footer()", -"table().footer()",function(){return this.iterator("table",function(a){return a.nTFoot},1)});u("tables().containers()","table().container()",function(){return this.iterator("table",function(a){return a.nTableWrapper},1)});p("draw()",function(a){return this.iterator("table",function(b){"page"===a?O(b):("string"===typeof a&&(a="full-hold"===a?!1:!0),T(b,!1===a))})});p("page()",function(a){return a===k?this.page.info().page:this.iterator("table",function(b){Va(b,a)})});p("page.info()",function(){if(0=== -this.context.length)return k;var a=this.context[0],b=a._iDisplayStart,c=a.oFeatures.bPaginate?a._iDisplayLength:-1,d=a.fnRecordsDisplay(),e=-1===c;return{page:e?0:Math.floor(b/c),pages:e?1:Math.ceil(d/c),start:b,end:a.fnDisplayEnd(),length:c,recordsTotal:a.fnRecordsTotal(),recordsDisplay:d,serverSide:"ssp"===y(a)}});p("page.len()",function(a){return a===k?0!==this.context.length?this.context[0]._iDisplayLength:k:this.iterator("table",function(b){Ta(b,a)})});var Vb=function(a,b,c){if(c){var d=new t(a); -d.one("draw",function(){c(d.ajax.json())})}if("ssp"==y(a))T(a,b);else{C(a,!0);var e=a.jqXHR;e&&4!==e.readyState&&e.abort();ua(a,[],function(c){pa(a);for(var c=va(a,c),d=0,e=c.length;d<e;d++)N(a,c[d]);T(a,b);C(a,!1)})}};p("ajax.json()",function(){var a=this.context;if(0<a.length)return a[0].json});p("ajax.params()",function(){var a=this.context;if(0<a.length)return a[0].oAjaxData});p("ajax.reload()",function(a,b){return this.iterator("table",function(c){Vb(c,!1===b,a)})});p("ajax.url()",function(a){var b= -this.context;if(a===k){if(0===b.length)return k;b=b[0];return b.ajax?h.isPlainObject(b.ajax)?b.ajax.url:b.ajax:b.sAjaxSource}return this.iterator("table",function(b){h.isPlainObject(b.ajax)?b.ajax.url=a:b.ajax=a})});p("ajax.url().load()",function(a,b){return this.iterator("table",function(c){Vb(c,!1===b,a)})});var bb=function(a,b,c,d,e){var f=[],g,j,i,n,l,m;i=typeof b;if(!b||"string"===i||"function"===i||b.length===k)b=[b];i=0;for(n=b.length;i<n;i++){j=b[i]&&b[i].split&&!b[i].match(/[\[\(:]/)?b[i].split(","): -[b[i]];l=0;for(m=j.length;l<m;l++)(g=c("string"===typeof j[l]?h.trim(j[l]):j[l]))&&g.length&&(f=f.concat(g))}a=x.selector[a];if(a.length){i=0;for(n=a.length;i<n;i++)f=a[i](d,e,f)}return sa(f)},cb=function(a){a||(a={});a.filter&&a.search===k&&(a.search=a.filter);return h.extend({search:"none",order:"current",page:"all"},a)},db=function(a){for(var b=0,c=a.length;b<c;b++)if(0<a[b].length)return a[0]=a[b],a[0].length=1,a.length=1,a.context=[a.context[b]],a;a.length=0;return a},Da=function(a,b){var c, -d,e,f=[],g=a.aiDisplay;c=a.aiDisplayMaster;var j=b.search;d=b.order;e=b.page;if("ssp"==y(a))return"removed"===j?[]:X(0,c.length);if("current"==e){c=a._iDisplayStart;for(d=a.fnDisplayEnd();c<d;c++)f.push(g[c])}else if("current"==d||"applied"==d)f="none"==j?c.slice():"applied"==j?g.slice():h.map(c,function(a){return-1===h.inArray(a,g)?a:null});else if("index"==d||"original"==d){c=0;for(d=a.aoData.length;c<d;c++)"none"==j?f.push(c):(e=h.inArray(c,g),(-1===e&&"removed"==j||0<=e&&"applied"==j)&&f.push(c))}return f}; -p("rows()",function(a,b){a===k?a="":h.isPlainObject(a)&&(b=a,a="");var b=cb(b),c=this.iterator("table",function(c){var e=b,f;return bb("row",a,function(a){var b=Qb(a);if(b!==null&&!e)return[b];f||(f=Da(c,e));if(b!==null&&h.inArray(b,f)!==-1)return[b];if(a===null||a===k||a==="")return f;if(typeof a==="function")return h.map(f,function(b){var e=c.aoData[b];return a(b,e._aData,e.nTr)?b:null});b=Tb(ja(c.aoData,f,"nTr"));if(a.nodeName){if(a._DT_RowIndex!==k)return[a._DT_RowIndex];if(a._DT_CellIndex)return[a._DT_CellIndex.row]; -b=h(a).closest("*[data-dt-row]");return b.length?[b.data("dt-row")]:[]}if(typeof a==="string"&&a.charAt(0)==="#"){var i=c.aIds[a.replace(/^#/,"")];if(i!==k)return[i.idx]}return h(b).filter(a).map(function(){return this._DT_RowIndex}).toArray()},c,e)},1);c.selector.rows=a;c.selector.opts=b;return c});p("rows().nodes()",function(){return this.iterator("row",function(a,b){return a.aoData[b].nTr||k},1)});p("rows().data()",function(){return this.iterator(!0,"rows",function(a,b){return ja(a.aoData,b,"_aData")}, -1)});u("rows().cache()","row().cache()",function(a){return this.iterator("row",function(b,c){var d=b.aoData[c];return"search"===a?d._aFilterData:d._aSortData},1)});u("rows().invalidate()","row().invalidate()",function(a){return this.iterator("row",function(b,c){da(b,c,a)})});u("rows().indexes()","row().index()",function(){return this.iterator("row",function(a,b){return b},1)});u("rows().ids()","row().id()",function(a){for(var b=[],c=this.context,d=0,e=c.length;d<e;d++)for(var f=0,g=this[d].length;f< -g;f++){var h=c[d].rowIdFn(c[d].aoData[this[d][f]]._aData);b.push((!0===a?"#":"")+h)}return new t(c,b)});u("rows().remove()","row().remove()",function(){var a=this;this.iterator("row",function(b,c,d){var e=b.aoData,f=e[c],g,h,i,n,l;e.splice(c,1);g=0;for(h=e.length;g<h;g++)if(i=e[g],l=i.anCells,null!==i.nTr&&(i.nTr._DT_RowIndex=g),null!==l){i=0;for(n=l.length;i<n;i++)l[i]._DT_CellIndex.row=g}qa(b.aiDisplayMaster,c);qa(b.aiDisplay,c);qa(a[d],c,!1);Ua(b);c=b.rowIdFn(f._aData);c!==k&&delete b.aIds[c]}); -this.iterator("table",function(a){for(var c=0,d=a.aoData.length;c<d;c++)a.aoData[c].idx=c});return this});p("rows.add()",function(a){var b=this.iterator("table",function(b){var c,f,g,h=[];f=0;for(g=a.length;f<g;f++)c=a[f],c.nodeName&&"TR"===c.nodeName.toUpperCase()?h.push(oa(b,c)[0]):h.push(N(b,c));return h},1),c=this.rows(-1);c.pop();h.merge(c,b);return c});p("row()",function(a,b){return db(this.rows(a,b))});p("row().data()",function(a){var b=this.context;if(a===k)return b.length&&this.length?b[0].aoData[this[0]]._aData: -k;b[0].aoData[this[0]]._aData=a;da(b[0],this[0],"data");return this});p("row().node()",function(){var a=this.context;return a.length&&this.length?a[0].aoData[this[0]].nTr||null:null});p("row.add()",function(a){a instanceof h&&a.length&&(a=a[0]);var b=this.iterator("table",function(b){return a.nodeName&&"TR"===a.nodeName.toUpperCase()?oa(b,a)[0]:N(b,a)});return this.row(b[0])});var eb=function(a,b){var c=a.context;if(c.length&&(c=c[0].aoData[b!==k?b:a[0]])&&c._details)c._details.remove(),c._detailsShow= -k,c._details=k},Wb=function(a,b){var c=a.context;if(c.length&&a.length){var d=c[0].aoData[a[0]];if(d._details){(d._detailsShow=b)?d._details.insertAfter(d.nTr):d._details.detach();var e=c[0],f=new t(e),g=e.aoData;f.off("draw.dt.DT_details column-visibility.dt.DT_details destroy.dt.DT_details");0<D(g,"_details").length&&(f.on("draw.dt.DT_details",function(a,b){e===b&&f.rows({page:"current"}).eq(0).each(function(a){a=g[a];a._detailsShow&&a._details.insertAfter(a.nTr)})}),f.on("column-visibility.dt.DT_details", -function(a,b){if(e===b)for(var c,d=ba(b),f=0,h=g.length;f<h;f++)c=g[f],c._details&&c._details.children("td[colspan]").attr("colspan",d)}),f.on("destroy.dt.DT_details",function(a,b){if(e===b)for(var c=0,d=g.length;c<d;c++)g[c]._details&&eb(f,c)}))}}};p("row().child()",function(a,b){var c=this.context;if(a===k)return c.length&&this.length?c[0].aoData[this[0]]._details:k;if(!0===a)this.child.show();else if(!1===a)eb(this);else if(c.length&&this.length){var d=c[0],c=c[0].aoData[this[0]],e=[],f=function(a, -b){if(h.isArray(a)||a instanceof h)for(var c=0,k=a.length;c<k;c++)f(a[c],b);else a.nodeName&&"tr"===a.nodeName.toLowerCase()?e.push(a):(c=h("<tr><td/></tr>").addClass(b),h("td",c).addClass(b).html(a)[0].colSpan=ba(d),e.push(c[0]))};f(a,b);c._details&&c._details.detach();c._details=h(e);c._detailsShow&&c._details.insertAfter(c.nTr)}return this});p(["row().child.show()","row().child().show()"],function(){Wb(this,!0);return this});p(["row().child.hide()","row().child().hide()"],function(){Wb(this,!1); -return this});p(["row().child.remove()","row().child().remove()"],function(){eb(this);return this});p("row().child.isShown()",function(){var a=this.context;return a.length&&this.length?a[0].aoData[this[0]]._detailsShow||!1:!1});var fc=/^([^:]+):(name|visIdx|visible)$/,Xb=function(a,b,c,d,e){for(var c=[],d=0,f=e.length;d<f;d++)c.push(B(a,e[d],b));return c};p("columns()",function(a,b){a===k?a="":h.isPlainObject(a)&&(b=a,a="");var b=cb(b),c=this.iterator("table",function(c){var e=a,f=b,g=c.aoColumns, -j=D(g,"sName"),i=D(g,"nTh");return bb("column",e,function(a){var b=Qb(a);if(a==="")return X(g.length);if(b!==null)return[b>=0?b:g.length+b];if(typeof a==="function"){var e=Da(c,f);return h.map(g,function(b,f){return a(f,Xb(c,f,0,0,e),i[f])?f:null})}var k=typeof a==="string"?a.match(fc):"";if(k)switch(k[2]){case "visIdx":case "visible":b=parseInt(k[1],10);if(b<0){var m=h.map(g,function(a,b){return a.bVisible?b:null});return[m[m.length+b]]}return[$(c,b)];case "name":return h.map(j,function(a,b){return a=== -k[1]?b:null});default:return[]}if(a.nodeName&&a._DT_CellIndex)return[a._DT_CellIndex.column];b=h(i).filter(a).map(function(){return h.inArray(this,i)}).toArray();if(b.length||!a.nodeName)return b;b=h(a).closest("*[data-dt-column]");return b.length?[b.data("dt-column")]:[]},c,f)},1);c.selector.cols=a;c.selector.opts=b;return c});u("columns().header()","column().header()",function(){return this.iterator("column",function(a,b){return a.aoColumns[b].nTh},1)});u("columns().footer()","column().footer()", -function(){return this.iterator("column",function(a,b){return a.aoColumns[b].nTf},1)});u("columns().data()","column().data()",function(){return this.iterator("column-rows",Xb,1)});u("columns().dataSrc()","column().dataSrc()",function(){return this.iterator("column",function(a,b){return a.aoColumns[b].mData},1)});u("columns().cache()","column().cache()",function(a){return this.iterator("column-rows",function(b,c,d,e,f){return ja(b.aoData,f,"search"===a?"_aFilterData":"_aSortData",c)},1)});u("columns().nodes()", -"column().nodes()",function(){return this.iterator("column-rows",function(a,b,c,d,e){return ja(a.aoData,e,"anCells",b)},1)});u("columns().visible()","column().visible()",function(a,b){var c=this.iterator("column",function(b,c){if(a===k)return b.aoColumns[c].bVisible;var f=b.aoColumns,g=f[c],j=b.aoData,i,n,l;if(a!==k&&g.bVisible!==a){if(a){var m=h.inArray(!0,D(f,"bVisible"),c+1);i=0;for(n=j.length;i<n;i++)l=j[i].nTr,f=j[i].anCells,l&&l.insertBefore(f[c],f[m]||null)}else h(D(b.aoData,"anCells",c)).detach(); -g.bVisible=a;fa(b,b.aoHeader);fa(b,b.aoFooter);za(b)}});a!==k&&(this.iterator("column",function(c,e){s(c,null,"column-visibility",[c,e,a,b])}),(b===k||b)&&this.columns.adjust());return c});u("columns().indexes()","column().index()",function(a){return this.iterator("column",function(b,c){return"visible"===a?aa(b,c):c},1)});p("columns.adjust()",function(){return this.iterator("table",function(a){Z(a)},1)});p("column.index()",function(a,b){if(0!==this.context.length){var c=this.context[0];if("fromVisible"=== -a||"toData"===a)return $(c,b);if("fromData"===a||"toVisible"===a)return aa(c,b)}});p("column()",function(a,b){return db(this.columns(a,b))});p("cells()",function(a,b,c){h.isPlainObject(a)&&(a.row===k?(c=a,a=null):(c=b,b=null));h.isPlainObject(b)&&(c=b,b=null);if(null===b||b===k)return this.iterator("table",function(b){var d=a,e=cb(c),f=b.aoData,g=Da(b,e),j=Tb(ja(f,g,"anCells")),i=h([].concat.apply([],j)),l,n=b.aoColumns.length,m,p,u,t,s,v;return bb("cell",d,function(a){var c=typeof a==="function"; -if(a===null||a===k||c){m=[];p=0;for(u=g.length;p<u;p++){l=g[p];for(t=0;t<n;t++){s={row:l,column:t};if(c){v=f[l];a(s,B(b,l,t),v.anCells?v.anCells[t]:null)&&m.push(s)}else m.push(s)}}return m}if(h.isPlainObject(a))return[a];c=i.filter(a).map(function(a,b){return{row:b._DT_CellIndex.row,column:b._DT_CellIndex.column}}).toArray();if(c.length||!a.nodeName)return c;v=h(a).closest("*[data-dt-row]");return v.length?[{row:v.data("dt-row"),column:v.data("dt-column")}]:[]},b,e)});var d=this.columns(b,c),e=this.rows(a, -c),f,g,j,i,n,l=this.iterator("table",function(a,b){f=[];g=0;for(j=e[b].length;g<j;g++){i=0;for(n=d[b].length;i<n;i++)f.push({row:e[b][g],column:d[b][i]})}return f},1);h.extend(l.selector,{cols:b,rows:a,opts:c});return l});u("cells().nodes()","cell().node()",function(){return this.iterator("cell",function(a,b,c){return(a=a.aoData[b])&&a.anCells?a.anCells[c]:k},1)});p("cells().data()",function(){return this.iterator("cell",function(a,b,c){return B(a,b,c)},1)});u("cells().cache()","cell().cache()",function(a){a= -"search"===a?"_aFilterData":"_aSortData";return this.iterator("cell",function(b,c,d){return b.aoData[c][a][d]},1)});u("cells().render()","cell().render()",function(a){return this.iterator("cell",function(b,c,d){return B(b,c,d,a)},1)});u("cells().indexes()","cell().index()",function(){return this.iterator("cell",function(a,b,c){return{row:b,column:c,columnVisible:aa(a,c)}},1)});u("cells().invalidate()","cell().invalidate()",function(a){return this.iterator("cell",function(b,c,d){da(b,c,a,d)})});p("cell()", -function(a,b,c){return db(this.cells(a,b,c))});p("cell().data()",function(a){var b=this.context,c=this[0];if(a===k)return b.length&&c.length?B(b[0],c[0].row,c[0].column):k;lb(b[0],c[0].row,c[0].column,a);da(b[0],c[0].row,"data",c[0].column);return this});p("order()",function(a,b){var c=this.context;if(a===k)return 0!==c.length?c[0].aaSorting:k;"number"===typeof a?a=[[a,b]]:a.length&&!h.isArray(a[0])&&(a=Array.prototype.slice.call(arguments));return this.iterator("table",function(b){b.aaSorting=a.slice()})}); -p("order.listener()",function(a,b,c){return this.iterator("table",function(d){Oa(d,a,b,c)})});p("order.fixed()",function(a){if(!a){var b=this.context,b=b.length?b[0].aaSortingFixed:k;return h.isArray(b)?{pre:b}:b}return this.iterator("table",function(b){b.aaSortingFixed=h.extend(!0,{},a)})});p(["columns().order()","column().order()"],function(a){var b=this;return this.iterator("table",function(c,d){var e=[];h.each(b[d],function(b,c){e.push([c,a])});c.aaSorting=e})});p("search()",function(a,b,c,d){var e= -this.context;return a===k?0!==e.length?e[0].oPreviousSearch.sSearch:k:this.iterator("table",function(e){e.oFeatures.bFilter&&ga(e,h.extend({},e.oPreviousSearch,{sSearch:a+"",bRegex:null===b?!1:b,bSmart:null===c?!0:c,bCaseInsensitive:null===d?!0:d}),1)})});u("columns().search()","column().search()",function(a,b,c,d){return this.iterator("column",function(e,f){var g=e.aoPreSearchCols;if(a===k)return g[f].sSearch;e.oFeatures.bFilter&&(h.extend(g[f],{sSearch:a+"",bRegex:null===b?!1:b,bSmart:null===c? -!0:c,bCaseInsensitive:null===d?!0:d}),ga(e,e.oPreviousSearch,1))})});p("state()",function(){return this.context.length?this.context[0].oSavedState:null});p("state.clear()",function(){return this.iterator("table",function(a){a.fnStateSaveCallback.call(a.oInstance,a,{})})});p("state.loaded()",function(){return this.context.length?this.context[0].oLoadedState:null});p("state.save()",function(){return this.iterator("table",function(a){za(a)})});m.versionCheck=m.fnVersionCheck=function(a){for(var b=m.version.split("."), -a=a.split("."),c,d,e=0,f=a.length;e<f;e++)if(c=parseInt(b[e],10)||0,d=parseInt(a[e],10)||0,c!==d)return c>d;return!0};m.isDataTable=m.fnIsDataTable=function(a){var b=h(a).get(0),c=!1;if(a instanceof m.Api)return!0;h.each(m.settings,function(a,e){var f=e.nScrollHead?h("table",e.nScrollHead)[0]:null,g=e.nScrollFoot?h("table",e.nScrollFoot)[0]:null;if(e.nTable===b||f===b||g===b)c=!0});return c};m.tables=m.fnTables=function(a){var b=!1;h.isPlainObject(a)&&(b=a.api,a=a.visible);var c=h.map(m.settings, -function(b){if(!a||a&&h(b.nTable).is(":visible"))return b.nTable});return b?new t(c):c};m.camelToHungarian=J;p("$()",function(a,b){var c=this.rows(b).nodes(),c=h(c);return h([].concat(c.filter(a).toArray(),c.find(a).toArray()))});h.each(["on","one","off"],function(a,b){p(b+"()",function(){var a=Array.prototype.slice.call(arguments);a[0]=h.map(a[0].split(/\s/),function(a){return!a.match(/\.dt\b/)?a+".dt":a}).join(" ");var d=h(this.tables().nodes());d[b].apply(d,a);return this})});p("clear()",function(){return this.iterator("table", -function(a){pa(a)})});p("settings()",function(){return new t(this.context,this.context)});p("init()",function(){var a=this.context;return a.length?a[0].oInit:null});p("data()",function(){return this.iterator("table",function(a){return D(a.aoData,"_aData")}).flatten()});p("destroy()",function(a){a=a||!1;return this.iterator("table",function(b){var c=b.nTableWrapper.parentNode,d=b.oClasses,e=b.nTable,f=b.nTBody,g=b.nTHead,j=b.nTFoot,i=h(e),f=h(f),k=h(b.nTableWrapper),l=h.map(b.aoData,function(a){return a.nTr}), -p;b.bDestroying=!0;s(b,"aoDestroyCallback","destroy",[b]);a||(new t(b)).columns().visible(!0);k.off(".DT").find(":not(tbody *)").off(".DT");h(E).off(".DT-"+b.sInstance);e!=g.parentNode&&(i.children("thead").detach(),i.append(g));j&&e!=j.parentNode&&(i.children("tfoot").detach(),i.append(j));b.aaSorting=[];b.aaSortingFixed=[];ya(b);h(l).removeClass(b.asStripeClasses.join(" "));h("th, td",g).removeClass(d.sSortable+" "+d.sSortableAsc+" "+d.sSortableDesc+" "+d.sSortableNone);b.bJUI&&(h("th span."+d.sSortIcon+ -", td span."+d.sSortIcon,g).detach(),h("th, td",g).each(function(){var a=h("div."+d.sSortJUIWrapper,this);h(this).append(a.contents());a.detach()}));f.children().detach();f.append(l);g=a?"remove":"detach";i[g]();k[g]();!a&&c&&(c.insertBefore(e,b.nTableReinsertBefore),i.css("width",b.sDestroyWidth).removeClass(d.sTable),(p=b.asDestroyStripes.length)&&f.children().each(function(a){h(this).addClass(b.asDestroyStripes[a%p])}));c=h.inArray(b,m.settings);-1!==c&&m.settings.splice(c,1)})});h.each(["column", -"row","cell"],function(a,b){p(b+"s().every()",function(a){var d=this.selector.opts,e=this;return this.iterator(b,function(f,g,h,i,m){a.call(e[b](g,"cell"===b?h:d,"cell"===b?d:k),g,h,i,m)})})});p("i18n()",function(a,b,c){var d=this.context[0],a=R(a)(d.oLanguage);a===k&&(a=b);c!==k&&h.isPlainObject(a)&&(a=a[c]!==k?a[c]:a._);return a.replace("%d",c)});m.version="1.10.15";m.settings=[];m.models={};m.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0};m.models.oRow={nTr:null,anCells:null, -_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null,idx:-1};m.models.oColumn={idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,_sManualType:null,_bAttrSrc:!1,fnCreatedCell:null,fnGetData:null,fnSetData:null,mData:null,mRender:null,nTh:null,nTf:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null};m.defaults= -{aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],asStripeClasses:null,bAutoWidth:!0,bDeferRender:!1,bDestroy:!1,bFilter:!0,bInfo:!0,bJQueryUI:!1,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:!1,bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(a){return a.toString().replace(/\B(?=(\d{3})+(?!\d))/g, -this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnServerData:null,fnServerParams:null,fnStateLoadCallback:function(a){try{return JSON.parse((-1===a.iStateDuration?sessionStorage:localStorage).getItem("DataTables_"+a.sInstance+"_"+location.pathname))}catch(b){}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(a,b){try{(-1===a.iStateDuration?sessionStorage:localStorage).setItem("DataTables_"+a.sInstance+ -"_"+location.pathname,JSON.stringify(b))}catch(c){}},fnStateSaveParams:null,iStateDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{sSortAscending:": activate to sort column ascending",sSortDescending:": activate to sort column descending"},oPaginate:{sFirst:"First",sLast:"Last",sNext:"Next",sPrevious:"Previous"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries", -sInfoFiltered:"(filtered from _MAX_ total entries)",sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"Loading...",sProcessing:"Processing...",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},oSearch:h.extend({},m.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId"}; -Y(m.defaults);m.defaults.column={aDataSort:null,iDataSort:-1,asSorting:["asc","desc"],bSearchable:!0,bSortable:!0,bVisible:!0,fnCreatedCell:null,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null};Y(m.defaults.column);m.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null, -bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollOversize:!1,bScrollbarLeft:!1,bBounding:!1,barWidth:0},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aIds:{},aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],asStripeClasses:null,asDestroyStripes:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[], -aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bDeferLoading:!1,bInitialised:!1,aoOpenRows:[],sDom:null,searchDelay:null,sPaginationType:"two_button",iStateDuration:0,aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null,bAjaxDataGet:!0,jqXHR:null,json:k,oAjaxData:k,fnServerData:null, -aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,bJUI:null,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return"ssp"==y(this)?1*this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==y(this)?1*this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var a= -this._iDisplayLength,b=this._iDisplayStart,c=b+a,d=this.aiDisplay.length,e=this.oFeatures,f=e.bPaginate;return e.bServerSide?!1===f||-1===a?b+d:Math.min(b+a,this._iRecordsDisplay):!f||c>d||-1===a?d:c},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null};m.ext=x={buttons:{},classes:{},builder:"-source-",errMode:"alert",feature:[],search:[],selector:{cell:[],column:[],row:[]},internal:{},legacy:{ajax:null},pager:{},renderer:{pageButton:{}, -header:{}},order:{},type:{detect:[],search:{},order:{}},_unique:0,fnVersionCheck:m.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:m.version};h.extend(x,{afnFiltering:x.search,aTypes:x.type.detect,ofnSearch:x.type.search,oSort:x.type.order,afnSortData:x.order,aoFeatures:x.feature,oApi:x.internal,oStdClasses:x.classes,oPagination:x.pager});h.extend(m.ext.classes,{sTable:"dataTable",sNoFooter:"no-footer",sPageButton:"paginate_button",sPageButtonActive:"current",sPageButtonDisabled:"disabled",sStripeOdd:"odd", -sStripeEven:"even",sRowEmpty:"dataTables_empty",sWrapper:"dataTables_wrapper",sFilter:"dataTables_filter",sInfo:"dataTables_info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_asc_disabled",sSortableDesc:"sorting_desc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_",sFilterInput:"",sLengthSelect:"",sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead", -sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sHeaderTH:"",sFooterTH:"",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",sJUIHeader:"",sJUIFooter:""});var Ea="",Ea="",G=Ea+"ui-state-default",ka=Ea+"css_right ui-icon ui-icon-",Yb=Ea+"fg-toolbar ui-toolbar ui-widget-header ui-helper-clearfix";h.extend(m.ext.oJUIClasses, -m.ext.classes,{sPageButton:"fg-button ui-button "+G,sPageButtonActive:"ui-state-disabled",sPageButtonDisabled:"ui-state-disabled",sPaging:"dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi ui-buttonset-multi paging_",sSortAsc:G+" sorting_asc",sSortDesc:G+" sorting_desc",sSortable:G+" sorting",sSortableAsc:G+" sorting_asc_disabled",sSortableDesc:G+" sorting_desc_disabled",sSortableNone:G+" sorting_disabled",sSortJUIAsc:ka+"triangle-1-n",sSortJUIDesc:ka+"triangle-1-s",sSortJUI:ka+"carat-2-n-s", -sSortJUIAscAllowed:ka+"carat-1-n",sSortJUIDescAllowed:ka+"carat-1-s",sSortJUIWrapper:"DataTables_sort_wrapper",sSortIcon:"DataTables_sort_icon",sScrollHead:"dataTables_scrollHead "+G,sScrollFoot:"dataTables_scrollFoot "+G,sHeaderTH:G,sFooterTH:G,sJUIHeader:Yb+" ui-corner-tl ui-corner-tr",sJUIFooter:Yb+" ui-corner-bl ui-corner-br"});var Nb=m.ext.pager;h.extend(Nb,{simple:function(){return["previous","next"]},full:function(){return["first","previous","next","last"]},numbers:function(a,b){return[ia(a, -b)]},simple_numbers:function(a,b){return["previous",ia(a,b),"next"]},full_numbers:function(a,b){return["first","previous",ia(a,b),"next","last"]},first_last_numbers:function(a,b){return["first",ia(a,b),"last"]},_numbers:ia,numbers_length:7});h.extend(!0,m.ext.renderer,{pageButton:{_:function(a,b,c,d,e,f){var g=a.oClasses,j=a.oLanguage.oPaginate,i=a.oLanguage.oAria.paginate||{},m,l,p=0,r=function(b,d){var k,t,u,s,v=function(b){Va(a,b.data.action,true)};k=0;for(t=d.length;k<t;k++){s=d[k];if(h.isArray(s)){u= -h("<"+(s.DT_el||"div")+"/>").appendTo(b);r(u,s)}else{m=null;l="";switch(s){case "ellipsis":b.append('<span class="ellipsis">…</span>');break;case "first":m=j.sFirst;l=s+(e>0?"":" "+g.sPageButtonDisabled);break;case "previous":m=j.sPrevious;l=s+(e>0?"":" "+g.sPageButtonDisabled);break;case "next":m=j.sNext;l=s+(e<f-1?"":" "+g.sPageButtonDisabled);break;case "last":m=j.sLast;l=s+(e<f-1?"":" "+g.sPageButtonDisabled);break;default:m=s+1;l=e===s?g.sPageButtonActive:""}if(m!==null){u=h("<a>",{"class":g.sPageButton+ -" "+l,"aria-controls":a.sTableId,"aria-label":i[s],"data-dt-idx":p,tabindex:a.iTabIndex,id:c===0&&typeof s==="string"?a.sTableId+"_"+s:null}).html(m).appendTo(b);Ya(u,{action:s},v);p++}}}},t;try{t=h(b).find(H.activeElement).data("dt-idx")}catch(u){}r(h(b).empty(),d);t!==k&&h(b).find("[data-dt-idx="+t+"]").focus()}}});h.extend(m.ext.type.detect,[function(a,b){var c=b.oLanguage.sDecimal;return ab(a,c)?"num"+c:null},function(a){if(a&&!(a instanceof Date)&&!cc.test(a))return null;var b=Date.parse(a); -return null!==b&&!isNaN(b)||M(a)?"date":null},function(a,b){var c=b.oLanguage.sDecimal;return ab(a,c,!0)?"num-fmt"+c:null},function(a,b){var c=b.oLanguage.sDecimal;return Sb(a,c)?"html-num"+c:null},function(a,b){var c=b.oLanguage.sDecimal;return Sb(a,c,!0)?"html-num-fmt"+c:null},function(a){return M(a)||"string"===typeof a&&-1!==a.indexOf("<")?"html":null}]);h.extend(m.ext.type.search,{html:function(a){return M(a)?a:"string"===typeof a?a.replace(Pb," ").replace(Ca,""):""},string:function(a){return M(a)? -a:"string"===typeof a?a.replace(Pb," "):a}});var Ba=function(a,b,c,d){if(0!==a&&(!a||"-"===a))return-Infinity;b&&(a=Rb(a,b));a.replace&&(c&&(a=a.replace(c,"")),d&&(a=a.replace(d,"")));return 1*a};h.extend(x.type.order,{"date-pre":function(a){return Date.parse(a)||-Infinity},"html-pre":function(a){return M(a)?"":a.replace?a.replace(/<.*?>/g,"").toLowerCase():a+""},"string-pre":function(a){return M(a)?"":"string"===typeof a?a.toLowerCase():!a.toString?"":a.toString()},"string-asc":function(a,b){return a< -b?-1:a>b?1:0},"string-desc":function(a,b){return a<b?1:a>b?-1:0}});fb("");h.extend(!0,m.ext.renderer,{header:{_:function(a,b,c,d){h(a.nTable).on("order.dt.DT",function(e,f,g,h){if(a===f){e=c.idx;b.removeClass(c.sSortingClass+" "+d.sSortAsc+" "+d.sSortDesc).addClass(h[e]=="asc"?d.sSortAsc:h[e]=="desc"?d.sSortDesc:c.sSortingClass)}})},jqueryui:function(a,b,c,d){h("<div/>").addClass(d.sSortJUIWrapper).append(b.contents()).append(h("<span/>").addClass(d.sSortIcon+" "+c.sSortingClassJUI)).appendTo(b); -h(a.nTable).on("order.dt.DT",function(e,f,g,h){if(a===f){e=c.idx;b.removeClass(d.sSortAsc+" "+d.sSortDesc).addClass(h[e]=="asc"?d.sSortAsc:h[e]=="desc"?d.sSortDesc:c.sSortingClass);b.find("span."+d.sSortIcon).removeClass(d.sSortJUIAsc+" "+d.sSortJUIDesc+" "+d.sSortJUI+" "+d.sSortJUIAscAllowed+" "+d.sSortJUIDescAllowed).addClass(h[e]=="asc"?d.sSortJUIAsc:h[e]=="desc"?d.sSortJUIDesc:c.sSortingClassJUI)}})}}});var Zb=function(a){return"string"===typeof a?a.replace(/</g,"<").replace(/>/g,">").replace(/"/g, -"""):a};m.render={number:function(a,b,c,d,e){return{display:function(f){if("number"!==typeof f&&"string"!==typeof f)return f;var g=0>f?"-":"",h=parseFloat(f);if(isNaN(h))return Zb(f);h=h.toFixed(c);f=Math.abs(h);h=parseInt(f,10);f=c?b+(f-h).toFixed(c).substring(2):"";return g+(d||"")+h.toString().replace(/\B(?=(\d{3})+(?!\d))/g,a)+f+(e||"")}}},text:function(){return{display:Zb}}};h.extend(m.ext.internal,{_fnExternApiFunc:Ob,_fnBuildAjax:ua,_fnAjaxUpdate:nb,_fnAjaxParameters:wb,_fnAjaxUpdateDraw:xb, -_fnAjaxDataSrc:va,_fnAddColumn:Ga,_fnColumnOptions:la,_fnAdjustColumnSizing:Z,_fnVisibleToColumnIndex:$,_fnColumnIndexToVisible:aa,_fnVisbleColumns:ba,_fnGetColumns:na,_fnColumnTypes:Ia,_fnApplyColumnDefs:kb,_fnHungarianMap:Y,_fnCamelToHungarian:J,_fnLanguageCompat:Fa,_fnBrowserDetect:ib,_fnAddData:N,_fnAddTr:oa,_fnNodeToDataIndex:function(a,b){return b._DT_RowIndex!==k?b._DT_RowIndex:null},_fnNodeToColumnIndex:function(a,b,c){return h.inArray(c,a.aoData[b].anCells)},_fnGetCellData:B,_fnSetCellData:lb, -_fnSplitObjNotation:La,_fnGetObjectDataFn:R,_fnSetObjectDataFn:S,_fnGetDataMaster:Ma,_fnClearTable:pa,_fnDeleteIndex:qa,_fnInvalidate:da,_fnGetRowElements:Ka,_fnCreateTr:Ja,_fnBuildHead:mb,_fnDrawHead:fa,_fnDraw:O,_fnReDraw:T,_fnAddOptionsHtml:pb,_fnDetectHeader:ea,_fnGetUniqueThs:ta,_fnFeatureHtmlFilter:rb,_fnFilterComplete:ga,_fnFilterCustom:Ab,_fnFilterColumn:zb,_fnFilter:yb,_fnFilterCreateSearch:Ra,_fnEscapeRegex:Sa,_fnFilterData:Bb,_fnFeatureHtmlInfo:ub,_fnUpdateInfo:Eb,_fnInfoMacros:Fb,_fnInitialise:ha, -_fnInitComplete:wa,_fnLengthChange:Ta,_fnFeatureHtmlLength:qb,_fnFeatureHtmlPaginate:vb,_fnPageChange:Va,_fnFeatureHtmlProcessing:sb,_fnProcessingDisplay:C,_fnFeatureHtmlTable:tb,_fnScrollDraw:ma,_fnApplyToChildren:I,_fnCalculateColumnWidths:Ha,_fnThrottle:Qa,_fnConvertToWidth:Gb,_fnGetWidestNode:Hb,_fnGetMaxLenString:Ib,_fnStringToCss:v,_fnSortFlatten:W,_fnSort:ob,_fnSortAria:Kb,_fnSortListener:Xa,_fnSortAttachListener:Oa,_fnSortingClasses:ya,_fnSortData:Jb,_fnSaveState:za,_fnLoadState:Lb,_fnSettingsFromNode:Aa, -_fnLog:K,_fnMap:F,_fnBindAction:Ya,_fnCallbackReg:z,_fnCallbackFire:s,_fnLengthOverflow:Ua,_fnRenderer:Pa,_fnDataSource:y,_fnRowAttributes:Na,_fnCalculateEnd:function(){}});h.fn.dataTable=m;m.$=h;h.fn.dataTableSettings=m.settings;h.fn.dataTableExt=m.ext;h.fn.DataTable=function(a){return h(this).dataTable(a).api()};h.each(m,function(a,b){h.fn.DataTable[a]=b});return h.fn.dataTable}); -</script> - <script type="text/javascript">/*! - Buttons for DataTables 1.3.1 - ©2016 SpryMedia Ltd - datatables.net/license -*/ -(function(d){"function"===typeof define&&define.amd?define(["jquery","datatables.net"],function(n){return d(n,window,document)}):"object"===typeof exports?module.exports=function(n,o){n||(n=window);if(!o||!o.fn.dataTable)o=require("datatables.net")(n,o).$;return d(o,n,n.document)}:d(jQuery,window,document)})(function(d,n,o,l){var i=d.fn.dataTable,u=0,v=0,j=i.ext.buttons,m=function(a,b){"undefined"===typeof b&&(b={});!0===b&&(b={});d.isArray(b)&&(b={buttons:b});this.c=d.extend(!0,{},m.defaults,b); -b.buttons&&(this.c.buttons=b.buttons);this.s={dt:new i.Api(a),buttons:[],listenKeys:"",namespace:"dtb"+u++};this.dom={container:d("<"+this.c.dom.container.tag+"/>").addClass(this.c.dom.container.className)};this._constructor()};d.extend(m.prototype,{action:function(a,b){var c=this._nodeToButton(a);if(b===l)return c.conf.action;c.conf.action=b;return this},active:function(a,b){var c=this._nodeToButton(a),e=this.c.dom.button.active,c=d(c.node);if(b===l)return c.hasClass(e);c.toggleClass(e,b===l?!0: -b);return this},add:function(a,b){var c=this.s.buttons;if("string"===typeof b){for(var e=b.split("-"),c=this.s,d=0,h=e.length-1;d<h;d++)c=c.buttons[1*e[d]];c=c.buttons;b=1*e[e.length-1]}this._expandButton(c,a,!1,b);this._draw();return this},container:function(){return this.dom.container},disable:function(a){a=this._nodeToButton(a);d(a.node).addClass(this.c.dom.button.disabled);return this},destroy:function(){d("body").off("keyup."+this.s.namespace);var a=this.s.buttons.slice(),b,c;b=0;for(c=a.length;b< -c;b++)this.remove(a[b].node);this.dom.container.remove();a=this.s.dt.settings()[0];b=0;for(c=a.length;b<c;b++)if(a.inst===this){a.splice(b,1);break}return this},enable:function(a,b){if(!1===b)return this.disable(a);var c=this._nodeToButton(a);d(c.node).removeClass(this.c.dom.button.disabled);return this},name:function(){return this.c.name},node:function(a){a=this._nodeToButton(a);return d(a.node)},processing:function(a,b){var c=this._nodeToButton(a);if(b===l)return d(c.node).hasClass("processing"); -d(c.node).toggleClass("processing",b);return this},remove:function(a){var b=this._nodeToButton(a),c=this._nodeToHost(a),e=this.s.dt;if(b.buttons.length)for(var g=b.buttons.length-1;0<=g;g--)this.remove(b.buttons[g].node);b.conf.destroy&&b.conf.destroy.call(e.button(a),e,d(a),b.conf);this._removeKey(b.conf);d(b.node).remove();a=d.inArray(b,c);c.splice(a,1);return this},text:function(a,b){var c=this._nodeToButton(a),e=this.c.dom.collection.buttonLiner,e=c.inCollection&&e&&e.tag?e.tag:this.c.dom.buttonLiner.tag, -g=this.s.dt,h=d(c.node),f=function(a){return"function"===typeof a?a(g,h,c.conf):a};if(b===l)return f(c.conf.text);c.conf.text=b;e?h.children(e).html(f(b)):h.html(f(b));return this},_constructor:function(){var a=this,b=this.s.dt,c=b.settings()[0],e=this.c.buttons;c._buttons||(c._buttons=[]);c._buttons.push({inst:this,name:this.c.name});for(var c=0,g=e.length;c<g;c++)this.add(e[c]);b.on("destroy",function(){a.destroy()});d("body").on("keyup."+this.s.namespace,function(b){if(!o.activeElement||o.activeElement=== -o.body){var c=String.fromCharCode(b.keyCode).toLowerCase();a.s.listenKeys.toLowerCase().indexOf(c)!==-1&&a._keypress(c,b)}})},_addKey:function(a){a.key&&(this.s.listenKeys+=d.isPlainObject(a.key)?a.key.key:a.key)},_draw:function(a,b){a||(a=this.dom.container,b=this.s.buttons);a.children().detach();for(var c=0,e=b.length;c<e;c++)a.append(b[c].inserter),b[c].buttons&&b[c].buttons.length&&this._draw(b[c].collection,b[c].buttons)},_expandButton:function(a,b,c,e){for(var g=this.s.dt,h=0,b=!d.isArray(b)? -[b]:b,f=0,r=b.length;f<r;f++){var k=this._resolveExtends(b[f]);if(k)if(d.isArray(k))this._expandButton(a,k,c,e);else{var p=this._buildButton(k,c);if(p){e!==l?(a.splice(e,0,p),e++):a.push(p);if(p.conf.buttons){var s=this.c.dom.collection;p.collection=d("<"+s.tag+"/>").addClass(s.className).attr("role","menu");p.conf._collection=p.collection;this._expandButton(p.buttons,p.conf.buttons,!0,e)}k.init&&k.init.call(g.button(p.node),g,d(p.node),k);h++}}}},_buildButton:function(a,b){var c=this.c.dom.button, -e=this.c.dom.buttonLiner,g=this.c.dom.collection,h=this.s.dt,f=function(b){return"function"===typeof b?b(h,k,a):b};b&&g.button&&(c=g.button);b&&g.buttonLiner&&(e=g.buttonLiner);if(a.available&&!a.available(h,a))return!1;var r=function(a,b,c,e){e.action.call(b.button(c),a,b,c,e);d(b.table().node()).triggerHandler("buttons-action.dt",[b.button(c),b,c,e])},k=d("<"+c.tag+"/>").addClass(c.className).attr("tabindex",this.s.dt.settings()[0].iTabIndex).attr("aria-controls",this.s.dt.table().node().id).on("click.dtb", -function(b){b.preventDefault();!k.hasClass(c.disabled)&&a.action&&r(b,h,k,a);k.blur()}).on("keyup.dtb",function(b){b.keyCode===13&&!k.hasClass(c.disabled)&&a.action&&r(b,h,k,a)});"a"===c.tag.toLowerCase()&&k.attr("href","#");e.tag?(g=d("<"+e.tag+"/>").html(f(a.text)).addClass(e.className),"a"===e.tag.toLowerCase()&&g.attr("href","#"),k.append(g)):k.html(f(a.text));!1===a.enabled&&k.addClass(c.disabled);a.className&&k.addClass(a.className);a.titleAttr&&k.attr("title",f(a.titleAttr));a.namespace||(a.namespace= -".dt-button-"+v++);e=(e=this.c.dom.buttonContainer)&&e.tag?d("<"+e.tag+"/>").addClass(e.className).append(k):k;this._addKey(a);return{conf:a,node:k.get(0),inserter:e,buttons:[],inCollection:b,collection:null}},_nodeToButton:function(a,b){b||(b=this.s.buttons);for(var c=0,e=b.length;c<e;c++){if(b[c].node===a)return b[c];if(b[c].buttons.length){var d=this._nodeToButton(a,b[c].buttons);if(d)return d}}},_nodeToHost:function(a,b){b||(b=this.s.buttons);for(var c=0,e=b.length;c<e;c++){if(b[c].node===a)return b; -if(b[c].buttons.length){var d=this._nodeToHost(a,b[c].buttons);if(d)return d}}},_keypress:function(a,b){var c=function(e){for(var g=0,h=e.length;g<h;g++){var f=e[g].conf,r=e[g].node;if(f.key)if(f.key===a)d(r).click();else if(d.isPlainObject(f.key)&&f.key.key===a&&(!f.key.shiftKey||b.shiftKey))if(!f.key.altKey||b.altKey)if(!f.key.ctrlKey||b.ctrlKey)(!f.key.metaKey||b.metaKey)&&d(r).click();e[g].buttons.length&&c(e[g].buttons)}};c(this.s.buttons)},_removeKey:function(a){if(a.key){var b=d.isPlainObject(a.key)? -a.key.key:a.key,a=this.s.listenKeys.split(""),b=d.inArray(b,a);a.splice(b,1);this.s.listenKeys=a.join("")}},_resolveExtends:function(a){for(var b=this.s.dt,c,e,g=function(c){for(var e=0;!d.isPlainObject(c)&&!d.isArray(c);){if(c===l)return;if("function"===typeof c){if(c=c(b,a),!c)return!1}else if("string"===typeof c){if(!j[c])throw"Unknown button type: "+c;c=j[c]}e++;if(30<e)throw"Buttons: Too many iterations";}return d.isArray(c)?c:d.extend({},c)},a=g(a);a&&a.extend;){if(!j[a.extend])throw"Cannot extend unknown button type: "+ -a.extend;var h=g(j[a.extend]);if(d.isArray(h))return h;if(!h)return!1;c=h.className;a=d.extend({},h,a);c&&a.className!==c&&(a.className=c+" "+a.className);var f=a.postfixButtons;if(f){a.buttons||(a.buttons=[]);c=0;for(e=f.length;c<e;c++)a.buttons.push(f[c]);a.postfixButtons=null}if(f=a.prefixButtons){a.buttons||(a.buttons=[]);c=0;for(e=f.length;c<e;c++)a.buttons.splice(c,0,f[c]);a.prefixButtons=null}a.extend=h.extend}return a}});m.background=function(a,b,c){c===l&&(c=400);a?d("<div/>").addClass(b).css("display", -"none").appendTo("body").fadeIn(c):d("body > div."+b).fadeOut(c,function(){d(this).removeClass(b).remove()})};m.instanceSelector=function(a,b){if(!a)return d.map(b,function(a){return a.inst});var c=[],e=d.map(b,function(a){return a.name}),g=function(a){if(d.isArray(a))for(var f=0,r=a.length;f<r;f++)g(a[f]);else"string"===typeof a?-1!==a.indexOf(",")?g(a.split(",")):(a=d.inArray(d.trim(a),e),-1!==a&&c.push(b[a].inst)):"number"===typeof a&&c.push(b[a].inst)};g(a);return c};m.buttonSelector=function(a, -b){for(var c=[],e=function(a,b,c){for(var d,g,f=0,h=b.length;f<h;f++)if(d=b[f])g=c!==l?c+f:f+"",a.push({node:d.node,name:d.conf.name,idx:g}),d.buttons&&e(a,d.buttons,g+"-")},g=function(a,b){var f,h,i=[];e(i,b.s.buttons);f=d.map(i,function(a){return a.node});if(d.isArray(a)||a instanceof d){f=0;for(h=a.length;f<h;f++)g(a[f],b)}else if(null===a||a===l||"*"===a){f=0;for(h=i.length;f<h;f++)c.push({inst:b,node:i[f].node})}else if("number"===typeof a)c.push({inst:b,node:b.s.buttons[a].node});else if("string"=== -typeof a)if(-1!==a.indexOf(",")){i=a.split(",");f=0;for(h=i.length;f<h;f++)g(d.trim(i[f]),b)}else if(a.match(/^\d+(\-\d+)*$/))f=d.map(i,function(a){return a.idx}),c.push({inst:b,node:i[d.inArray(a,f)].node});else if(-1!==a.indexOf(":name")){var j=a.replace(":name","");f=0;for(h=i.length;f<h;f++)i[f].name===j&&c.push({inst:b,node:i[f].node})}else d(f).filter(a).each(function(){c.push({inst:b,node:this})});else"object"===typeof a&&a.nodeName&&(i=d.inArray(a,f),-1!==i&&c.push({inst:b,node:f[i]}))},h= -0,f=a.length;h<f;h++)g(b,a[h]);return c};m.defaults={buttons:["copy","excel","csv","pdf","print"],name:"main",tabIndex:0,dom:{container:{tag:"div",className:"dt-buttons"},collection:{tag:"div",className:"dt-button-collection"},button:{tag:"a",className:"dt-button",active:"active",disabled:"disabled"},buttonLiner:{tag:"span",className:""}}};m.version="1.3.1";d.extend(j,{collection:{text:function(a){return a.i18n("buttons.collection","Collection")},className:"buttons-collection",action:function(a,b, -c,e){var a=c.offset(),g=d(b.table().container()),h=!1;d("div.dt-button-background").length&&(h=d(".dt-button-collection").offset(),d("body").trigger("click.dtb-collection"));e._collection.addClass(e.collectionLayout).css("display","none").appendTo("body").fadeIn(e.fade);var f=e._collection.css("position");h&&"absolute"===f?e._collection.css({top:h.top,left:h.left}):"absolute"===f?(e._collection.css({top:a.top+c.outerHeight(),left:a.left}),c=a.left+e._collection.outerWidth(),g=g.offset().left+g.width(), -c>g&&e._collection.css("left",a.left-(c-g))):(a=e._collection.height()/2,a>d(n).height()/2&&(a=d(n).height()/2),e._collection.css("marginTop",-1*a));e.background&&m.background(!0,e.backgroundClassName,e.fade);setTimeout(function(){d("div.dt-button-background").on("click.dtb-collection",function(){});d("body").on("click.dtb-collection",function(a){var c=d.fn.addBack?"addBack":"andSelf";if(!d(a.target).parents()[c]().filter(e._collection).length){e._collection.fadeOut(e.fade,function(){e._collection.detach()}); -d("div.dt-button-background").off("click.dtb-collection");m.background(false,e.backgroundClassName,e.fade);d("body").off("click.dtb-collection");b.off("buttons-action.b-internal")}})},10);if(e.autoClose)b.on("buttons-action.b-internal",function(){d("div.dt-button-background").click()})},background:!0,collectionLayout:"",backgroundClassName:"dt-button-background",autoClose:!1,fade:400},copy:function(a,b){if(j.copyHtml5)return"copyHtml5";if(j.copyFlash&&j.copyFlash.available(a,b))return"copyFlash"}, -csv:function(a,b){if(j.csvHtml5&&j.csvHtml5.available(a,b))return"csvHtml5";if(j.csvFlash&&j.csvFlash.available(a,b))return"csvFlash"},excel:function(a,b){if(j.excelHtml5&&j.excelHtml5.available(a,b))return"excelHtml5";if(j.excelFlash&&j.excelFlash.available(a,b))return"excelFlash"},pdf:function(a,b){if(j.pdfHtml5&&j.pdfHtml5.available(a,b))return"pdfHtml5";if(j.pdfFlash&&j.pdfFlash.available(a,b))return"pdfFlash"},pageLength:function(a){var a=a.settings()[0].aLengthMenu,b=d.isArray(a[0])?a[0]:a, -c=d.isArray(a[0])?a[1]:a,e=function(a){return a.i18n("buttons.pageLength",{"-1":"Show all rows",_:"Show %d rows"},a.page.len())};return{extend:"collection",text:e,className:"buttons-page-length",autoClose:!0,buttons:d.map(b,function(a,b){return{text:c[b],className:"button-page-length",action:function(b,c){c.page.len(a).draw()},init:function(b,c,d){var e=this,c=function(){e.active(b.page.len()===a)};b.on("length.dt"+d.namespace,c);c()},destroy:function(a,b,c){a.off("length.dt"+c.namespace)}}}),init:function(a, -b,c){var d=this;a.on("length.dt"+c.namespace,function(){d.text(e(a))})},destroy:function(a,b,c){a.off("length.dt"+c.namespace)}}}});i.Api.register("buttons()",function(a,b){b===l&&(b=a,a=l);this.selector.buttonGroup=a;var c=this.iterator(!0,"table",function(c){if(c._buttons)return m.buttonSelector(m.instanceSelector(a,c._buttons),b)},!0);c._groupSelector=a;return c});i.Api.register("button()",function(a,b){var c=this.buttons(a,b);1<c.length&&c.splice(1,c.length);return c});i.Api.registerPlural("buttons().active()", -"button().active()",function(a){return a===l?this.map(function(a){return a.inst.active(a.node)}):this.each(function(b){b.inst.active(b.node,a)})});i.Api.registerPlural("buttons().action()","button().action()",function(a){return a===l?this.map(function(a){return a.inst.action(a.node)}):this.each(function(b){b.inst.action(b.node,a)})});i.Api.register(["buttons().enable()","button().enable()"],function(a){return this.each(function(b){b.inst.enable(b.node,a)})});i.Api.register(["buttons().disable()", -"button().disable()"],function(){return this.each(function(a){a.inst.disable(a.node)})});i.Api.registerPlural("buttons().nodes()","button().node()",function(){var a=d();d(this.each(function(b){a=a.add(b.inst.node(b.node))}));return a});i.Api.registerPlural("buttons().processing()","button().processing()",function(a){return a===l?this.map(function(a){return a.inst.processing(a.node)}):this.each(function(b){b.inst.processing(b.node,a)})});i.Api.registerPlural("buttons().text()","button().text()",function(a){return a=== -l?this.map(function(a){return a.inst.text(a.node)}):this.each(function(b){b.inst.text(b.node,a)})});i.Api.registerPlural("buttons().trigger()","button().trigger()",function(){return this.each(function(a){a.inst.node(a.node).trigger("click")})});i.Api.registerPlural("buttons().containers()","buttons().container()",function(){var a=d(),b=this._groupSelector;this.iterator(!0,"table",function(c){if(c._buttons)for(var c=m.instanceSelector(b,c._buttons),d=0,g=c.length;d<g;d++)a=a.add(c[d].container())}); -return a});i.Api.register("button().add()",function(a,b){var c=this.context;c.length&&(c=m.instanceSelector(this._groupSelector,c[0]._buttons),c.length&&c[0].add(b,a));return this.button(this._groupSelector,a)});i.Api.register("buttons().destroy()",function(){this.pluck("inst").unique().each(function(a){a.destroy()});return this});i.Api.registerPlural("buttons().remove()","buttons().remove()",function(){this.each(function(a){a.inst.remove(a.node)});return this});var q;i.Api.register("buttons.info()", -function(a,b,c){var e=this;if(!1===a)return d("#datatables_buttons_info").fadeOut(function(){d(this).remove()}),clearTimeout(q),q=null,this;q&&clearTimeout(q);d("#datatables_buttons_info").length&&d("#datatables_buttons_info").remove();d('<div id="datatables_buttons_info" class="dt-button-info"/>').html(a?"<h2>"+a+"</h2>":"").append(d("<div/>")["string"===typeof b?"html":"append"](b)).css("display","none").appendTo("body").fadeIn();c!==l&&0!==c&&(q=setTimeout(function(){e.buttons.info(!1)},c));return this}); -i.Api.register("buttons.exportData()",function(a){if(this.context.length){for(var b=new i.Api(this.context[0]),c=d.extend(!0,{},{rows:null,columns:"",modifier:{search:"applied",order:"applied"},orthogonal:"display",stripHtml:!0,stripNewlines:!0,decodeEntities:!0,trim:!0,format:{header:function(a){return e(a)},footer:function(a){return e(a)},body:function(a){return e(a)}}},a),e=function(a){if("string"!==typeof a)return a;a=a.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,"");c.stripHtml&& -(a=a.replace(/<[^>]*>/g,""));c.trim&&(a=a.replace(/^\s+|\s+$/g,""));c.stripNewlines&&(a=a.replace(/\n/g," "));c.decodeEntities&&(t.innerHTML=a,a=t.value);return a},a=b.columns(c.columns).indexes().map(function(a){var d=b.column(a).header();return c.format.header(d.innerHTML,a,d)}).toArray(),g=b.table().footer()?b.columns(c.columns).indexes().map(function(a){var d=b.column(a).footer();return c.format.footer(d?d.innerHTML:"",a,d)}).toArray():null,h=b.rows(c.rows,c.modifier).indexes().toArray(),f=b.cells(h, -c.columns),h=f.render(c.orthogonal).toArray(),f=f.nodes().toArray(),j=a.length,k=0<j?h.length/j:0,m=Array(k),l=0,n=0;n<k;n++){for(var o=Array(j),q=0;q<j;q++)o[q]=c.format.body(h[l],n,q,f[l]),l++;m[n]=o}return{header:a,footer:g,body:m}}});var t=d("<textarea/>")[0];d.fn.dataTable.Buttons=m;d.fn.DataTable.Buttons=m;d(o).on("init.dt plugin-init.dt",function(a,b){if("dt"===a.namespace){var c=b.oInit.buttons||i.defaults.buttons;c&&!b._buttons&&(new m(b,c)).container()}});i.ext.feature.push({fnInit:function(a){var a= -new i.Api(a),b=a.init().buttons||i.defaults.buttons;return(new m(a,b)).container()},cFeature:"B"});return m}); -</script> - <script type="text/javascript">!function(t){"function"==typeof define&&define.amd?define(["jquery","datatables.net","datatables.net-buttons"],function(e){return t(e,window,document)}):"object"==typeof exports?module.exports=function(e,o,l,n){return e||(e=window),o&&o.fn.dataTable||(o=require("datatables.net")(e,o).$),o.fn.dataTable.Buttons||require("datatables.net-buttons")(e,o),t(o,e,e.document,l,n)}:t(jQuery,window,document)}(function(t,e,o,l,n,r){"use strict";function a(){return l||e.JSZip}function d(){return n||e.pdfMake}function p(t){for(var e="A".charCodeAt(0),o="Z".charCodeAt(0),l=o-e+1,n="";t>=0;)n=String.fromCharCode(t%l+e)+n,t=Math.floor(t/l)-1;return n}function i(e,o){h===r&&(h=-1===g.serializeToString(t.parseXML(w["xl/worksheets/sheet1.xml"])).indexOf("xmlns:r")),t.each(o,function(o,l){if(t.isPlainObject(l)){var n=e.folder(o);i(n,l)}else{if(h){var r,a,d=l.childNodes[0],p=[];for(r=d.attributes.length-1;r>=0;r--){var f=d.attributes[r].nodeName,s=d.attributes[r].nodeValue;-1!==f.indexOf(":")&&(p.push({name:f,value:s}),d.removeAttribute(f))}for(r=0,a=p.length;a>r;r++){var m=l.createAttribute(p[r].name.replace(":","_dt_b_namespace_token_"));m.value=p[r].value,d.setAttributeNode(m)}}var y=g.serializeToString(l);h&&(-1===y.indexOf("<?xml")&&(y='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'+y),y=y.replace(/_dt_b_namespace_token_/g,":")),y=y.replace(/<([^<>]*?) xmlns=""([^<>]*?)>/g,"<$1 $2>"),e.file(o,y)}})}function f(e,o,l){var n=e.createElement(o);return l&&(l.attr&&t(n).attr(l.attr),l.children&&t.each(l.children,function(t,e){n.appendChild(e)}),l.text&&n.appendChild(e.createTextNode(l.text))),n}function s(t,e){var o,l,n,a=t.header[e].length;t.footer&&t.footer[e].length>a&&(a=t.footer[e].length);for(var d=0,p=t.body.length;p>d;d++){var i=t.body[d][e];if(n=null!==i&&i!==r?i.toString():"",-1!==n.indexOf("\n")?(l=n.split("\n"),l.sort(function(t,e){return e.length-t.length}),o=l[0].length):o=n.length,o>a&&(a=o),a>40)return 52}return a*=1.3,a>6?a:6}var m=t.fn.dataTable,y=function(t){if(!("undefined"==typeof t||"undefined"!=typeof navigator&&/MSIE [1-9]\./.test(navigator.userAgent))){var e=t.document,o=function(){return t.URL||t.webkitURL||t},l=e.createElementNS("http://www.w3.org/1999/xhtml","a"),n="download"in l,a=function(t){var e=new MouseEvent("click");t.dispatchEvent(e)},d=/constructor/i.test(t.HTMLElement)||t.safari,p=/CriOS\/[\d]+/.test(navigator.userAgent),i=function(e){(t.setImmediate||t.setTimeout)(function(){throw e},0)},f="application/octet-stream",s=4e4,m=function(t){var e=function(){"string"==typeof t?o().revokeObjectURL(t):t.remove()};setTimeout(e,s)},y=function(t,e,o){e=[].concat(e);for(var l=e.length;l--;){var n=t["on"+e[l]];if("function"==typeof n)try{n.call(t,o||t)}catch(r){i(r)}}},u=function(t){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t},c=function(e,i,s){s||(e=u(e));var c,I=this,F=e.type,x=F===f,b=function(){y(I,"writestart progress write writeend".split(" "))},h=function(){if((p||x&&d)&&t.FileReader){var l=new FileReader;return l.onloadend=function(){var e=p?l.result:l.result.replace(/^data:[^;]*;/,"data:attachment/file;"),o=t.open(e,"_blank");o||(t.location.href=e),e=r,I.readyState=I.DONE,b()},l.readAsDataURL(e),void(I.readyState=I.INIT)}if(c||(c=o().createObjectURL(e)),x)t.location.href=c;else{var n=t.open(c,"_blank");n||(t.location.href=c)}I.readyState=I.DONE,b(),m(c)};return I.readyState=I.INIT,n?(c=o().createObjectURL(e),void setTimeout(function(){l.href=c,l.download=i,a(l),b(),m(c),I.readyState=I.DONE})):void h()},I=c.prototype,F=function(t,e,o){return new c(t,e||t.name||"download",o)};return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(t,e,o){return e=e||t.name||"download",o||(t=u(t)),navigator.msSaveOrOpenBlob(t,e)}:(I.abort=function(){},I.readyState=I.INIT=0,I.WRITING=1,I.DONE=2,I.error=I.onwritestart=I.onprogress=I.onwrite=I.onabort=I.onerror=I.onwriteend=null,F)}}("undefined"!=typeof self&&self||"undefined"!=typeof e&&e||this.content);m.fileSave=y;var u=function(e,o){var l="*"===e.filename&&"*"!==e.title&&e.title!==r?e.title:e.filename;return"function"==typeof l&&(l=l()),-1!==l.indexOf("*")&&(l=t.trim(l.replace("*",t("title").text()))),l=l.replace(/[^a-zA-Z0-9_\u00A1-\uFFFF\.,\-_ !\(\)]/g,""),o===r||o===!0?l+e.extension:l},c=function(t){var e="Sheet1";return t.sheetName&&(e=t.sheetName.replace(/[\[\]\*\/\\\?\:]/g,"")),e},I=function(e){var o=e.title;return"function"==typeof o&&(o=o()),-1!==o.indexOf("*")?o.replace("*",t("title").text()||"Exported data"):o},F=function(t){return t.newline?t.newline:navigator.userAgent.match(/Windows/)?"\r\n":"\n"},x=function(t,e){for(var o=F(e),l=t.buttons.exportData(e.exportOptions),n=e.fieldBoundary,a=e.fieldSeparator,d=new RegExp(n,"g"),p=e.escapeChar!==r?e.escapeChar:"\\",i=function(t){for(var e="",o=0,l=t.length;l>o;o++)o>0&&(e+=a),e+=n?n+(""+t[o]).replace(d,p+n)+n:t[o];return e},f=e.header?i(l.header)+o:"",s=e.footer&&l.footer?o+i(l.footer):"",m=[],y=0,u=l.body.length;u>y;y++)m.push(i(l.body[y]));return{str:f+m.join(o)+s,rows:m.length}},b=function(){var t=-1!==navigator.userAgent.indexOf("Safari")&&-1===navigator.userAgent.indexOf("Chrome")&&-1===navigator.userAgent.indexOf("Opera");if(!t)return!1;var e=navigator.userAgent.match(/AppleWebKit\/(\d+\.\d+)/);return e&&e.length>1&&1*e[1]<603.1?!0:!1};try{var h,g=new XMLSerializer}catch(v){}var w={"_rels/.rels":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/></Relationships>',"xl/_rels/workbook.xml.rels":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet1.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/></Relationships>',"[Content_Types].xml":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default Extension="xml" ContentType="application/xml" /><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml" /><Default Extension="jpeg" ContentType="image/jpeg" /><Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" /><Override PartName="/xl/worksheets/sheet1.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" /><Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml" /></Types>',"xl/workbook.xml":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"><fileVersion appName="xl" lastEdited="5" lowestEdited="5" rupBuild="24816"/><workbookPr showInkAnnotation="0" autoCompressPictures="0"/><bookViews><workbookView xWindow="0" yWindow="0" windowWidth="25600" windowHeight="19020" tabRatio="500"/></bookViews><sheets><sheet name="" sheetId="1" r:id="rId1"/></sheets></workbook>',"xl/worksheets/sheet1.xml":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"><sheetData/></worksheet>',"xl/styles.xml":'<?xml version="1.0" encoding="UTF-8"?><styleSheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"><numFmts count="6"><numFmt numFmtId="164" formatCode="#,##0.00_- [$$-45C]"/><numFmt numFmtId="165" formatCode=""£"#,##0.00"/><numFmt numFmtId="166" formatCode="[$€-2] #,##0.00"/><numFmt numFmtId="167" formatCode="0.0%"/><numFmt numFmtId="168" formatCode="#,##0;(#,##0)"/><numFmt numFmtId="169" formatCode="#,##0.00;(#,##0.00)"/></numFmts><fonts count="5" x14ac:knownFonts="1"><font><sz val="11" /><name val="Calibri" /></font><font><sz val="11" /><name val="Calibri" /><color rgb="FFFFFFFF" /></font><font><sz val="11" /><name val="Calibri" /><b /></font><font><sz val="11" /><name val="Calibri" /><i /></font><font><sz val="11" /><name val="Calibri" /><u /></font></fonts><fills count="6"><fill><patternFill patternType="none" /></fill><fill/><fill><patternFill patternType="solid"><fgColor rgb="FFD9D9D9" /><bgColor indexed="64" /></patternFill></fill><fill><patternFill patternType="solid"><fgColor rgb="FFD99795" /><bgColor indexed="64" /></patternFill></fill><fill><patternFill patternType="solid"><fgColor rgb="ffc6efce" /><bgColor indexed="64" /></patternFill></fill><fill><patternFill patternType="solid"><fgColor rgb="ffc6cfef" /><bgColor indexed="64" /></patternFill></fill></fills><borders count="2"><border><left /><right /><top /><bottom /><diagonal /></border><border diagonalUp="false" diagonalDown="false"><left style="thin"><color auto="1" /></left><right style="thin"><color auto="1" /></right><top style="thin"><color auto="1" /></top><bottom style="thin"><color auto="1" /></bottom><diagonal /></border></borders><cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0" /></cellStyleXfs><cellXfs count="67"><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="2" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="2" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="2" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="2" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="2" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="3" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="3" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="3" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="3" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="3" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="4" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="4" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="4" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="4" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="4" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="5" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="5" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="5" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="5" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="5" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="0" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="0" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="0" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="0" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="0" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="2" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="2" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="2" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="2" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="2" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="3" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="3" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="3" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="3" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="3" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="4" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="4" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="4" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="4" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="4" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="5" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="5" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="5" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="5" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="5" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment horizontal="left"/></xf><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment horizontal="center"/></xf><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment horizontal="right"/></xf><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment horizontal="fill"/></xf><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment textRotation="90"/></xf><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment wrapText="1"/></xf><xf numFmtId="9" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="164" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="165" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="166" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="167" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="168" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="169" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="3" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="4" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="1" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="2" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/></cellXfs><cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0" /></cellStyles><dxfs count="0" /><tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4" /></styleSheet>'},B=[{match:/^\-?\d+\.\d%$/,style:60,fmt:function(t){return t/100}},{match:/^\-?\d+\.?\d*%$/,style:56,fmt:function(t){return t/100}},{match:/^\-?\$[\d,]+.?\d*$/,style:57},{match:/^\-?£[\d,]+.?\d*$/,style:58},{match:/^\-?€[\d,]+.?\d*$/,style:59},{match:/^\-?\d+$/,style:65},{match:/^\-?\d+\.\d{2}$/,style:66},{match:/^\([\d,]+\)$/,style:61,fmt:function(t){return-1*t.replace(/[\(\)]/g,"")}},{match:/^\([\d,]+\.\d{2}\)$/,style:62,fmt:function(t){return-1*t.replace(/[\(\)]/g,"")}},{match:/^\-?[\d,]+$/,style:63},{match:/^\-?[\d,]+\.\d{2}$/,style:64}];return m.ext.buttons.copyHtml5={className:"buttons-copy buttons-html5",text:function(t){return t.i18n("buttons.copy","Copy")},action:function(e,l,n,r){this.processing(!0);var a=this,d=x(l,r),p=d.str,i=t("<div/>").css({height:1,width:1,overflow:"hidden",position:"fixed",top:0,left:0});r.customize&&(p=r.customize(p,r));var f=t("<textarea readonly/>").val(p).appendTo(i);if(o.queryCommandSupported("copy")){i.appendTo(l.table().container()),f[0].focus(),f[0].select();try{var s=o.execCommand("copy");if(i.remove(),s)return l.buttons.info(l.i18n("buttons.copyTitle","Copy to clipboard"),l.i18n("buttons.copySuccess",{1:"Copied one row to clipboard",_:"Copied %d rows to clipboard"},d.rows),2e3),void this.processing(!1)}catch(m){}}var y=t("<span>"+l.i18n("buttons.copyKeys","Press <i>ctrl</i> or <i>⌘</i> + <i>C</i> to copy the table data<br>to your system clipboard.<br><br>To cancel, click this message or press escape.")+"</span>").append(i);l.buttons.info(l.i18n("buttons.copyTitle","Copy to clipboard"),y,0),f[0].focus(),f[0].select();var u=t(y).closest(".dt-button-info"),c=function(){u.off("click.buttons-copy"),t(o).off(".buttons-copy"),l.buttons.info(!1)};u.on("click.buttons-copy",c),t(o).on("keydown.buttons-copy",function(t){27===t.keyCode&&(c(),a.processing(!1))}).on("copy.buttons-copy cut.buttons-copy",function(){c(),a.processing(!1)})},exportOptions:{},fieldSeparator:" ",fieldBoundary:"",header:!0,footer:!1},m.ext.buttons.csvHtml5={bom:!1,className:"buttons-csv buttons-html5",available:function(){return e.FileReader!==r&&e.Blob},text:function(t){return t.i18n("buttons.csv","CSV")},action:function(t,e,l,n){this.processing(!0);var r=x(e,n).str,a=n.charset;n.customize&&(r=n.customize(r,n)),a!==!1?(a||(a=o.characterSet||o.charset),a&&(a=";charset="+a)):a="",n.bom&&(r="\ufeff"+r),y(new Blob([r],{type:"text/csv"+a}),u(n),!0),this.processing(!1)},filename:"*",extension:".csv",exportOptions:{},fieldSeparator:",",fieldBoundary:'"',escapeChar:'"',charset:null,header:!0,footer:!1},m.ext.buttons.excelHtml5={className:"buttons-excel buttons-html5",available:function(){return e.FileReader!==r&&a()!==r&&!b()&&g},text:function(t){return t.i18n("buttons.excel","Excel")},action:function(e,o,l,n){this.processing(!0);var d,m,I=this,F=0,x=function(e){var o=w[e];return t.parseXML(o)},b=x("xl/worksheets/sheet1.xml"),h=b.getElementsByTagName("sheetData")[0],g={_rels:{".rels":x("_rels/.rels")},xl:{_rels:{"workbook.xml.rels":x("xl/_rels/workbook.xml.rels")},"workbook.xml":x("xl/workbook.xml"),"styles.xml":x("xl/styles.xml"),worksheets:{"sheet1.xml":b}},"[Content_Types].xml":x("[Content_Types].xml")},v=o.buttons.exportData(n.exportOptions),k=function(e){d=F+1,m=f(b,"row",{attr:{r:d}});for(var o=0,l=e.length;l>o;o++){var n=p(o)+""+d,a=null;if(null!==e[o]&&e[o]!==r&&""!==e[o]){e[o]=t.trim(e[o]);for(var i=0,s=B.length;s>i;i++){var y=B[i];if(e[o].match&&!e[o].match(/^0\d+/)&&e[o].match(y.match)){var u=e[o].replace(/[^\d\.\-]/g,"");y.fmt&&(u=y.fmt(u)),a=f(b,"c",{attr:{r:n,s:y.style},children:[f(b,"v",{text:u})]});break}}if(!a)if("number"==typeof e[o]||e[o].match&&e[o].match(/^-?\d+(\.\d+)?$/)&&!e[o].match(/^0\d+/))a=f(b,"c",{attr:{t:"n",r:n},children:[f(b,"v",{text:e[o]})]});else{var c=e[o].replace?e[o].replace(/[\x00-\x09\x0B\x0C\x0E-\x1F\x7F-\x9F]/g,""):e[o];a=f(b,"c",{attr:{t:"inlineStr",r:n},children:{row:f(b,"is",{children:{row:f(b,"t",{text:c})}})}})}m.appendChild(a)}}h.appendChild(m),F++};t("sheets sheet",g.xl["workbook.xml"]).attr("name",c(n)),n.customizeData&&n.customizeData(v),n.header&&(k(v.header,F),t("row c",b).attr("s","2"));for(var C=0,S=v.body.length;S>C;C++)k(v.body[C],F);n.footer&&v.footer&&(k(v.footer,F),t("row:last c",b).attr("s","2"));var T=f(b,"cols");t("worksheet",b).prepend(T);for(var N=0,O=v.header.length;O>N;N++)T.appendChild(f(b,"col",{attr:{min:N+1,max:N+1,width:s(v,N),customWidth:1}}));n.customize&&n.customize(g);var z=a(),D=new z,A={type:"blob",mimeType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"};i(D,g),D.generateAsync?D.generateAsync(A).then(function(t){y(t,u(n)),I.processing(!1)}):(y(D.generate(A),u(n)),this.processing(!1))},filename:"*",extension:".xlsx",exportOptions:{},header:!0,footer:!1},m.ext.buttons.pdfHtml5={className:"buttons-pdf buttons-html5",available:function(){return e.FileReader!==r&&d()},text:function(t){return t.i18n("buttons.pdf","PDF")},action:function(e,o,l,n){this.processing(!0);var r=this,a=o.buttons.exportData(n.exportOptions),p=[];n.header&&p.push(t.map(a.header,function(t){return{text:"string"==typeof t?t:t+"",style:"tableHeader"}}));for(var i=0,f=a.body.length;f>i;i++)p.push(t.map(a.body[i],function(t){return{text:"string"==typeof t?t:t+"",style:i%2?"tableBodyEven":"tableBodyOdd"}}));n.footer&&a.footer&&p.push(t.map(a.footer,function(t){return{text:"string"==typeof t?t:t+"",style:"tableFooter"}}));var s={pageSize:n.pageSize,pageOrientation:n.orientation,content:[{table:{headerRows:1,body:p},layout:"noBorders"}],styles:{tableHeader:{bold:!0,fontSize:11,color:"white",fillColor:"#2d4154",alignment:"center"},tableBodyEven:{},tableBodyOdd:{fillColor:"#f3f3f3"},tableFooter:{bold:!0,fontSize:11,color:"white",fillColor:"#2d4154"},title:{alignment:"center",fontSize:15},message:{}},defaultStyle:{fontSize:10}};n.message&&s.content.unshift({text:"function"==typeof n.message?n.message(o,l,n):n.message,style:"message",margin:[0,0,0,12]}),n.title&&s.content.unshift({text:I(n,!1),style:"title",margin:[0,0,0,12]}),n.customize&&n.customize(s,n);var m=d().createPdf(s);"open"!==n.download||b()?m.getBuffer(function(t){var e=new Blob([t],{type:"application/pdf"});y(e,u(n)),r.processing(!1)}):(m.open(),this.processing(!1))},title:"*",filename:"*",extension:".pdf",exportOptions:{},orientation:"portrait",pageSize:"A4",header:!0,footer:!1,message:null,customize:null,download:"download"},m.ext.buttons.json={bom:!1,className:"buttons-json buttons-jsonhtml5",available:function(){return e.FileReader!==r&&e.Blob},text:function(t){return"JSON"},action:function(e,o,l,n){this.processing(!0);for(var r=o.buttons.exportData(),a=[],d=r.header,p=0;p<r.body.length;p++){for(var i={},f=0;f<r.body[p].length;f++)i[d[f]]=r.body[p][f];a.push(i)}t.fn.dataTable.fileSave(new Blob([JSON.stringify(a,null,2)]),u(n)),this.processing(!1)},filename:"*",extension:".json"},m.Buttons});</script> - <script type="text/javascript">(function(d){"function"===typeof define&&define.amd?define(["jquery","datatables.net","datatables.net-buttons"],function(f){return d(f,window,document)}):"object"===typeof exports?module.exports=function(f,b){f||(f=window);if(!b||!b.fn.dataTable)b=require("datatables.net")(f,b).$;b.fn.dataTable.Buttons||require("datatables.net-buttons")(f,b);return d(b,f,f.document)}:d(jQuery,window,document)})(function(d,f,b){var i=d.fn.dataTable,h=b.createElement("a"),m=function(a){h.href=a;a=h.host;-1===a.indexOf("/")&& -0!==h.pathname.indexOf("/")&&(a+="/");return h.protocol+"//"+a+h.pathname+h.search};i.ext.buttons.print={className:"buttons-print",text:function(a){return a.i18n("buttons.print","Print")},action:function(a,b,h,e){var c=b.buttons.exportData(e.exportOptions),k=function(a,c){for(var b="<tr>",d=0,e=a.length;d<e;d++)b+="<"+c+">"+a[d]+"</"+c+">";return b+"</tr>"},a='<table class="'+b.table().node().className+'">';e.header&&(a+="<thead>"+k(c.header,"th")+"</thead>");for(var a=a+"<tbody>",l=0,i=c.body.length;l< -i;l++)a+=k(c.body[l],"td");a+="</tbody>";e.footer&&c.footer&&(a+="<tfoot>"+k(c.footer,"th")+"</tfoot>");var g=f.open("",""),c=e.title;"function"===typeof c&&(c=c());-1!==c.indexOf("*")&&(c=c.replace("*",d("title").text()));g.document.close();var j="<title>"+c+"</title>";d("style, link").each(function(){var a=j,b=d(this).clone()[0];"link"===b.nodeName.toLowerCase()&&(b.href=m(b.href));j=a+b.outerHTML});try{g.document.head.innerHTML=j}catch(n){d(g.document.head).html(j)}g.document.body.innerHTML="<h1>"+ -c+"</h1><div>"+("function"===typeof e.message?e.message(b,h,e):e.message)+"</div>"+a;d(g.document.body).addClass("dt-print-view");d("img",g.document.body).each(function(a,b){b.setAttribute("src",m(b.getAttribute("src")))});e.customize&&e.customize(g);setTimeout(function(){e.autoPrint&&(g.print(),g.close())},250)},title:"*",message:"",exportOptions:{},header:!0,footer:!1,autoPrint:!0,customize:null};return i.Buttons}); -</script> - <script> - $(document).ready(function() { - $("#table").DataTable({"columns":[{"title":"\ufeffTask"},{"title":"Market Specialization "},{"title":"Application "},{"title":"Framework "},{"title":"Vitis-AI Model Name Zoo Name "},{"title":"License Restriction(s) "},{"title":"Copyleft Model Zoo "},{"title":"Model Architecture "},{"title":"Model Research Publication "},{"title":"Dataset "},{"title":"Dataset URL "},{"title":"Input Dims(HWC) "},{"title":"FP32 Floating-Point Accuracy "},{"title":"Quantized Accuracy "},{"title":"Ops (G) "},{"title":"Percentage Pruned "},{"title":"MLPerf? "},{"title":"VEK280\n1* C20B14CU1 @ 300MHz\nAIE fclk=1.18GHz\nE2E throughput (fps) \nSingle Thread "},{"title":"VEK280\n1* C20B14CU1 @ 300MHz\nAIE fclk=1.18GHz\nE2E throughput (fps) \nMulti Thread "},{"title":"V70\n1* C20B14CU1 @ 300MHz\nAIE fclk = 1.00GHz\nE2E throughput (fps) \nMulti Thread "}],"data":[["Semantic Segmentation","Medical Imaging","Medical Segmentation","PyTorch","pt_3D-UNET_3.5","","No","3D-UNET","https://arxiv.org/abs/1606.06650","KiTS19","https://kits19.grand-challenge.org/data/","128*128*128","0.8824","0.8774","1065.44","","","/","/","/"],["NLP","","Question and Answering","PyTorch","pt_bert-base_3.5","","No","BERT","https://arxiv.org/abs/1810.04805","SQuAD","https://rajpurkar.github.io/SQuAD-explorer/","384","0.8848","0.837","70.66","","","/","/","/"],["NLP","","Question and Answering","PyTorch","pt_bert-large_3.5","","No","BERT","https://arxiv.org/abs/1810.04805","SQuAD","https://rajpurkar.github.io/SQuAD-explorer/","384","0.9059","0.866","246.42","","","/","/","/"],["NLP","","Question and Answering","PyTorch","pt_bert-tiny_3.5","","No","BERT","https://arxiv.org/abs/1810.04805","SQuAD","https://rajpurkar.github.io/SQuAD-explorer/","384","0.5231","0.5125","0.45","","","/","/","/"],["Object Detection","Smart Cities","Face Mask Detection","PyTorch","pt_face-mask-detection_3.5","","No","Yolo-fastest","https://doi.org/10.2352/EI.2023.35.11.HPCI-229","Face-mask-detection","https://github.com/waittim/mask-detector/tree/master/modeling/data","512*512*3","0.886","0.881","0.59","","","512.65 ","1024.67 ","2173.85 "],["Depth Estimation","Industrial Vision / Robotics","Binocular depth estimation","PyTorch","pt_fadnet_0.65_3.5","","No","FADNet","https://arxiv.org/abs/2003.10758","Sceneflow","https://lmb.informatik.uni-freiburg.de/resources/datasets/SceneFlowDatasets.en.html","576*960*3","EPE: 0.823","EPE: 1.158","154","65.00%","","/","/","/"],["Depth Estimation","Industrial Vision / Robotics","Stereo Depth Estimation","PyTorch","pt_fadnet_3.5","","No","FADNet","https://arxiv.org/abs/2003.10758","Sceneflow","https://lmb.informatik.uni-freiburg.de/resources/datasets/SceneFlowDatasets.en.html","576*960*3","EPE: 0.926","EPE: 1.169","441","","","/","/","/"],["Depth Estimation","Industrial Vision / Robotics","Stereo Depth Estimation","PyTorch","pt_fadnetv2_0.51_3.5","","No","FADNet","https://arxiv.org/abs/2003.10758","Sceneflow","https://lmb.informatik.uni-freiburg.de/resources/datasets/SceneFlowDatasets.en.html","576*960*3","EPE: 0.878","EPE: 1.185","201","51.00%","","7.91 ","16.68 ","/"],["Depth Estimation","Industrial Vision / Robotics","Stereo Depth Estimation","PyTorch","pt_fadnetv2_3.5","","No","FADNet","https://arxiv.org/abs/2003.10758","Sceneflow","https://lmb.informatik.uni-freiburg.de/resources/datasets/SceneFlowDatasets.en.html","576*960*3","EPE: 0.877","EPE: 1.183","412","","","8.47 ","19.15 ","/"],["Semantic Segmentation","Automotive","ADAS 2D Segmentation","PyTorch","pt_HRNet_3.5","","No","HRNet","https://arxiv.org/abs/1908.07919","Cityscapes","https://www.cityscapes-dataset.com/","1024*2048*3","0.8104","0.8061","378","","","/","/","/"],["Image Classification","","General","PyTorch","pt_inceptionv3_0.3_3.5","Non-Commercial Use Only","No","Inception-v3","https://arxiv.org/abs/1512.00567","ILSVRC2012","https://www.image-net.org/download.php","299*299*3","0.775/0.936","0.772/0.935","8","30.00%","","835.80 ","1776.02 ","1289.55 "],["Image Classification","","General","PyTorch","pt_inceptionv3_0.4_3.5","Non-Commercial Use Only","No","Inception-v3","https://arxiv.org/abs/1512.00567","ILSVRC2012","https://www.image-net.org/download.php","299*299*3","0.768/0.931","0.764/0.929","6.8","40.00%","","855.50 ","1935.91 ","1366.46 "],["Image Classification","","General","PyTorch","pt_inceptionv3_0.5_3.5","Non-Commercial Use Only","No","Inception-v3","https://arxiv.org/abs/1512.00567","ILSVRC2012","https://www.image-net.org/download.php","299*299*3","0.757/0.921","0.752/0.918","5.7","50.00%","","909.83 ","2181.70 ","1482.21 "],["Image Classification","","General","PyTorch","pt_inceptionv3_0.6_3.5","Non-Commercial Use Only","No","Inception-v3","https://arxiv.org/abs/1512.00567","ILSVRC2012","https://www.image-net.org/download.php","299*299*3","0.739/0.911","0.732/0.908","4.5","60.00%","","966.01 ","2415.77 ","1684.68 "],["Image Classification","","General","PyTorch","pt_inceptionv3_3.5","Non-Commercial Use Only","No","Inception-v3","https://arxiv.org/abs/1512.00567","ILSVRC2012","https://www.image-net.org/download.php","299*299*3","0.775/0.936","0.771/0.935","11.4","","","794.99 ","1462.85 ","1143.74 "],["Pose Detection","Smart Cities","Pose Estimation","PyTorch","pt_movenet_3.5","","No","MoveNet","https://arxiv.org/abs/2105.04154","COCO","https://cocodataset.org/#download","192*192*3","0.7972","0.7984","0.5","","","239.12 ","428.21 ","8326.82 "],["Image Classification","","General","PyTorch","pt_OFA-depthwise-res50_3.5","Non-Commercial Use Only","No","ResNet50","https://arxiv.org/abs/1512.03385","ILSVRC2012","https://www.image-net.org/download.php","176*176*3","0.7633/0.9292","0.7629/0.9306","2.49","","","336.85 ","527.26 ","12925.70 "],["Super Resolution","Medical Imaging","Super Resolution","PyTorch","pt_OFA-rcan_3.5","","No","OFA-RCAN","","DIV2K","https://data.vision.ee.ethz.ch/cvl/DIV2K/","360*640*3","(Set5) PSNR/SSIM= 37.654/0.959\n(Set14) PSNR/SSIM= 33.169/ 0.914\n(B100) PSNR/SSIM= 31.891/ 0.897\n(Urban100) PSNR/SSIM = 30.978/0.917","(Set5) PSNR/SSIM= 37.384/0.956\n(Set14) PSNR/SSIM= 33.012/ 0.911\n(B100) PSNR/SSIM= 31.785/ 0.894\n(Urban100) PSNR/SSIM = 30.839/0.913","45.7","","","62.83 ","100.65 ","53.00 "],["Image Classification","","General","PyTorch","pt_OFA-resnet50_0.88_3.5","Non-Commercial Use Only","No","ResNet50","https://arxiv.org/abs/1512.03385","ILSVRC2012","https://www.image-net.org/download.php","160*160*3","0.752/0.918","0.744/0.918","1.8","88.00%","","2549.20 ","6595.03 ","7780.10 "],["Image Classification","","General","PyTorch","pt_OFA-resnet50_0.74_3.5","Non-Commercial Use Only","No","ResNet50","https://arxiv.org/abs/1512.03385","ILSVRC2012","https://www.image-net.org/download.php","192*192*3","0.777/0.937","0.770/0.933","3.6","74.00%","","2014.20 ","5274.48 ","3609.05 "],["Image Classification","","General","PyTorch","pt_OFA-resnet50_0.45_3.5","Non-Commercial Use Only","No","ResNet50","https://arxiv.org/abs/1512.03385","ILSVRC2012","https://www.image-net.org/download.php","224*224*3","0.795/0.945","0.784/0.941","8.2","45.00%","","1515.01 ","3636.90 ","5265.23 "],["Image Classification","","General","PyTorch","pt_OFA-resnet50_0.60_3.5","Non-Commercial Use Only","No","ResNet50","https://arxiv.org/abs/1512.03385","ILSVRC2012","https://www.image-net.org/download.php","224*224*3","0.791/0.943","0.780/0.939","6","60.00%","","1562.12 ","4064.77 ","3165.36 "],["Image Classification","","General","PyTorch","pt_OFA-resnet50_3.5","Non-Commercial Use Only","No","ResNet50","https://arxiv.org/abs/1512.03385","ILSVRC2012","https://www.image-net.org/download.php","224*224*3","0.799/0.948","0.789/0.944","15","","","/","/","/"],["Object Detection","","General","PyTorch","pt_OFA-yolo_0.3_3.5","","No","OFA-YOLO","","COCO","https://cocodataset.org/#download","640*640*3","0.42","0.401","34.72","30.00%","","173.53 ","383.53 ","323.62 "],["Object Detection","","General","PyTorch","pt_OFA-yolo_0.5_3.5","","No","OFA-YOLO","","COCO","https://cocodataset.org/#download","640*640*3","0.392","0.378","24.62","60.00%","","193.87 ","406.21 ","456.91 "],["Object Detection","","General","PyTorch","pt_OFA-yolo_3.5","","No","OFA-YOLO","","COCO","https://cocodataset.org/#download","640*640*3","0.436","0.421","48.88","","","165.66 ","370.41 ","295.25 "],["Semantic Segmentation","Automotive","ADAS 3D Detection","PyTorch","pt_pointpillars_3.5","","No","PointPillars","https://arxiv.org/abs/1812.05784","KITTI","http://www.cvlibs.net/datasets/kitti/","12000*100*4","Car 3D AP@0.5(easy, moderate, hard)","Car 3D AP@0.5(easy, moderate, hard)","11.2","","","55.96 ","70.06 ","187.11 "],["Industrial Vision / Robotics","Industrial Vision / Robotics","Stereo Depth Estimation","PyTorch","pt_psmnet_0.68_3.5","","No","PSMNet","https://arxiv.org/abs/1803.08669","Sceneflow","https://lmb.informatik.uni-freiburg.de/resources/datasets/SceneFlowDatasets.en.html","576*960*3","EPE: 0.961","EPE: 1.022","696","68.00%","","/","/","/"],["Image Classification","","General","PyTorch","pt_resnet50_0.3_3.5","Non-Commercial Use Only","No","ResNet50","https://arxiv.org/abs/1512.03385","ILSVRC2012","https://www.image-net.org/download.php","224*224*3","0.760/0.929","0.757/0.928","5.8","30.00%","","1628.45 ","4247.61 ","4132.65 "],["Image Classification","","General","PyTorch","pt_resnet50_0.4_3.5","Non-Commercial Use Only","No","ResNet50","https://arxiv.org/abs/1512.03385","ILSVRC2012","https://www.image-net.org/download.php","224*224*3","0.755/0.926","0.752/0.925","4.9","40.00%","","1666.52 ","4268.98 ","4401.23 "],["Image Classification","","General","PyTorch","pt_resnet50_0.5_3.5","Non-Commercial Use Only","No","ResNet50","https://arxiv.org/abs/1512.03385","ILSVRC2012","https://www.image-net.org/download.php","224*224*3","0.748/0.921","0.745/0.920","4.1","50.00%","","1701.21 ","4265.80 ","4671.20 "],["Image Classification","","General","PyTorch","pt_resnet50_0.6_3.5","Non-Commercial Use Only","No","ResNet50","https://arxiv.org/abs/1512.03385","ILSVRC2012","https://www.image-net.org/download.php","224*224*3","0.742/0.917","0.738/0.915","3.3","60.00%","","1744.41 ","4272.31 ","5126.95 "],["Image Classification","","General","PyTorch","pt_resnet50_0.7_3.5","Non-Commercial Use Only","No","ResNet50","https://arxiv.org/abs/1512.03385","ILSVRC2012","https://www.image-net.org/download.php","224*224*3","0.726/0.908","0.720/0.906","2.5","70.00%","","1807.90 ","4243.46 ","5842.50 "],["Image Classification","","General","PyTorch","pt_resnet50_3.5","Non-Commercial Use Only","No","ResNet50","https://arxiv.org/abs/1512.03385","ILSVRC2012","https://www.image-net.org/download.php","224*224*3","0.761/0.929","0.760/0.928","8.2","","","1708.50 ","4432.04 ","3792.31 "],["Super Resolution","Medical Imaging","Super Resolution","PyTorch","pt_SESR-S_3.5","","No","SESR-S","https://arxiv.org/abs/1801.10319","DIV2K","https://data.vision.ee.ethz.ch/cvl/DIV2K/","360*640*3","(Set5) PSNR/SSIM= 37.309/0.958\n(Set14) PSNR/SSIM= 32.894/ 0.911\n(B100) PSNR/SSIM= 31.663/ 0.893\n(Urban100) PSNR/SSIM = 30.276/0.908","(Set5) PSNR/SSIM= 36.813/0.954\n(Set14) PSNR/SSIM= 32.607/ 0.906\n(B100) PSNR/SSIM= 31.443/ 0.889\n(Urban100) PSNR/SSIM = 29.901/0.899","10.2","","","262.49 ","576.34 ","298.31 "],["Image Classification","","General","PyTorch","pt_squeezenet_3.5","Non-Commercial Use Only","No","SqueezeNet","https://arxiv.org/abs/1602.07360","ILSVRC2012","https://www.image-net.org/download.php","224*224*3","0.582/0.806","0.582/0.806","0.7035","","","3768.00 ","8598.33 ","4500.98 "],["Image Classification","Automotive","Vehicle Classification","PyTorch","pt_vehicle-color-classification_3.5","","No","AMD Custom","AMD Custom","VCoR","https://www.kaggle.com/datasets/landrykezebou/vcor-vehicle-color-recognition-dataset","224*224*3","0.8885","0.882","3.64","","","2593.27 ","6145.02 ","9679.80 "],["Image Classification","Automotive","Vehicle Classification","PyTorch","pt_vehicle-make-classification_3.5","","No","AMD Custom","AMD Custom","VMMR","https://github.com/faezetta/VMMRdb","224*224*3","0.9536","0.9522","3.64","","","2589.52 ","6151.85 ","9686.00 "],["Image Classification","Automotive","Vehicle Classification","PyTorch","pt_vehicle-type-classification_3.5","","No","AMD Custom","AMD Custom","CarBodyStyle","https://www.kaggle.com/datasets/darshan1504/car-body-style-dataset","224*224*3","0.8482","0.8467","3.64","","","2603.06 ","6187.62 ","9690.45 "],["Super Resolution","Medical Imaging","Super Resolution","PyTorch","pt_xilinxSR_3.5","","No","AMD Custom","AMD Custom","DIV2K","https://data.vision.ee.ethz.ch/cvl/DIV2K/","360*640*3","29.04dB","28.66dB","364.88","","","/","/","/"],["Object Detection","","General","PyTorch","pt_yolov4csp_3.5","","Yes","YOLOv4-CSP","https://arxiv.org/abs/2004.10934","COCO","https://cocodataset.org/#download","640*640*3","0.47","0.463","121","","","76.11 ","112.35 ","88.08 "],["Object Detection","","General","PyTorch","pt_yolov6m_3.5","","Yes","YOLOv6m","https://arxiv.org/abs/2209.02976","COCO","https://cocodataset.org/#download","640*640*3","0.483","0.475","82.4","","","36.84 ","49.61 ","279.67 "],["Object Detection","","General","PyTorch","pt_yolox-nano_3.5","","No","YOLOX-Nano","https://arxiv.org/abs/2107.08430","COCO","https://cocodataset.org/#download","416*416*3","0.22","0.21","1","","","691.64 ","1409.42 ","1253.45 "],["Object Detection","","General","PyTorch","pt_yolov7_3.5","","Yes","YOLOv7","","COCO","https://cocodataset.org/#download","640*640*3","0.512","0.479","104.8","","","79.42 ","154.10 ","78.08 "],["NLP","","Question and Answering","TensorFlow","tf_bert-base_3.5","","No","BERT","https://arxiv.org/abs/1810.04805","SQuAD","https://rajpurkar.github.io/SQuAD-explorer/","128","0.8694","0.8656","22.34","","","/","/","/"],["Object Detection","","General","TensorFlow","tf_efficientdet-d2_3.5","","No","EfficientDet-d2","https://arxiv.org/abs/1911.09070","COCO","https://cocodataset.org/#download","768*768*3","0.413","0.327","11.06","","","/","/","/"],["Image Classification","","General","TensorFlow","tf_efficientnet-edgetpu-L_3.5","Non-Commercial Use Only","No","EfficientNet-EdgeTPU Large","https://arxiv.org/abs/2003.02838","ILSVRC2012","https://www.image-net.org/download.php","300*300*3","0.8026/0.9514","0.7996/0.9491","19.36","","","573.78 ","847.17 ","757.68 "],["Image Classification","","General","TensorFlow","tf_efficientnet-edgetpu-M_3.5","Non-Commercial Use Only","No","EfficientNet-EdgeTPU Medium","https://arxiv.org/abs/2003.02838","ILSVRC2012","https://www.image-net.org/download.php","240*240*3","0.7862/0.9440","0.7798/0.9406","7.34","","","1433.33 ","3312.43 ","2843.53 "],["Image Classification","","General","TensorFlow","tf_efficientnet-edgetpu-S_3.5","Non-Commercial Use Only","No","EfficientNet-EdgeTPU Small","https://arxiv.org/abs/2003.02838","ILSVRC2012","https://www.image-net.org/download.php","224*224*3","0.7702/0.9377","0.7660/0.9337","4.72","","","1679.22 ","4246.41 ","3654.75 "],["Industrial Vision / Robotics","Industrial Vision / Robotics","Hierarchical Localization","TensorFlow","tf_HFNet_3.5","","No","HFNet","https://arxiv.org/abs/1812.03506","Aachen - RobotCar Seasons - CMU Seasons - HPatches - SfM - Google Landmarks - Berkeley Deep Drive","https://github.com/ethz-asl/hfnet/blob/master/doc/datasets.md","960*960*3","Day: 76.2/83.6/90.0, Night: 58.2/68.4/80.6","Day: 74.2/82.4/89.2, Night: 54.1/66.3/73.5","20.09","","","10.71 ","24.04 ","/"],["Image Classification","","General","TensorFlow","tf_inceptionv1_0.09_3.5","Non-Commercial Use Only","No","Inception-v1","https://arxiv.org/abs/1512.00567","ILSVRC2012","https://www.image-net.org/download.php","224*224*3","0.691","0.6818","2.73","9.00%","","1617.07 ","4037.49 ","3258.85 "],["Image Classification","","General","TensorFlow","tf_inceptionv1_0.16_3.5","Non-Commercial Use Only","No","Inception-v1","https://arxiv.org/abs/1512.00567","ILSVRC2012","https://www.image-net.org/download.php","224*224*3","0.6826","0.6746","2.52","16.00%","","1635.10 ","4069.94 ","3008.47 "],["Image Classification","","General","TensorFlow","tf_inceptionv1_3.5","Non-Commercial Use Only","No","Inception-v1","https://arxiv.org/abs/1801.04381","ILSVRC2012","https://www.image-net.org/download.php","224*224*3","0.6976","0.6794","3","","","1712.47 ","4424.24 ","3692.12 "],["Image Classification","","General","TensorFlow","tf_inceptionv3_0.2_3.5","Non-Commercial Use Only","No","Inception-v3","https://arxiv.org/abs/1512.00567","ILSVRC2012","https://www.image-net.org/download.php","299*299*3","0.7786","0.7668","9.1","20.00%","","803.14 ","1642.87 ","1234.00 "],["Image Classification","","General","TensorFlow","tf_inceptionv3_0.4_3.5","Non-Commercial Use Only","No","Inception-v3","https://arxiv.org/abs/1512.00567","ILSVRC2012","https://www.image-net.org/download.php","299*299*3","0.7669","0.7561","6.9","40.00%","","866.69 ","1926.97 ","1355.14 "],["Image Classification","","General","TensorFlow","tf_inceptionv3_3.5","Non-Commercial Use Only","No","Inception-v3","https://arxiv.org/abs/1512.00567","ILSVRC2012","https://www.image-net.org/download.php","299*299*3","0.7798","0.7735","11.45","","","808.24 ","1504.90 ","1296.26 "],["Image Classification","","General","TensorFlow","tf_inceptionv4_0.2_3.5","Non-Commercial Use Only","No","Inception-v4","https://arxiv.org/abs/1512.00567","ILSVRC2012","https://www.image-net.org/download.php","299*299*3","0.7974","0.7882","19.56","20.00%","","470.43 ","664.16 ","410.59 "],["Image Classification","","General","TensorFlow","tf_inceptionv4_0.4_3.5","Non-Commercial Use Only","No","Inception-v4","https://arxiv.org/abs/1512.00567","ILSVRC2012","https://www.image-net.org/download.php","299*299*3","0.792","0.782","14.79","40.00%","","504.48 ","737.84 ","441.69 "],["Image Classification","","General","TensorFlow","tf_inceptionv4_3.5","Non-Commercial Use Only","No","Inception-v4","https://arxiv.org/abs/1602.07261","ILSVRC2012","https://www.image-net.org/download.php","299*299*3","0.8018","0.7928","24.55","","","471.90 ","646.84 ","403.08 "],["Object Detection","","General","TensorFlow","tf_mlperf_resnet34_3.5","","No","ResNet34","https://arxiv.org/abs/1512.03385","COCO","https://cocodataset.org/#download","1200*1200*3","0.225","0.215","433","","Y","17.05 ","40.67 ","70.16 "],["Image Classification","","General","TensorFlow","tf_mlperf_resnet50_3.5","Non-Commercial Use Only","No","ResNet50","https://arxiv.org/abs/1512.03385","ILSVRC2012","https://www.image-net.org/download.php","224*224*3","0.7652","0.7606","8.19","","Y","1724.03 ","4515.75 ","3792.32 "],["Image Classification","","General","TensorFlow","tf_mobilenetv1-0.25_3.5","Non-Commercial Use Only","No","MobileNetV1","https://arxiv.org/abs/1704.04861","ILSVRC2012","https://www.image-net.org/download.php","128*128*3","0.4144","0.3464","0.027","","","4044.64 ","8381.29 ","63108.60 "],["Image Classification","","General","TensorFlow","tf_mobilenetv1-1.0_0.11_3.5","Non-Commercial Use Only","No","MobileNetV1","https://arxiv.org/abs/1704.04861","ILSVRC2012","https://www.image-net.org/download.php","224*224*3","0.7056","0.6822","0.11","11.00%","","2074.67 ","4270.96 ","14905.70 "],["Image Classification","","General","TensorFlow","tf_mobilenetv1-1.0_0.12_3.5","Non-Commercial Use Only","No","MobileNetV1","https://arxiv.org/abs/1704.04861","ILSVRC2012","https://www.image-net.org/download.php","224*224*3","0.706","0.685","0.12","12.00%","","2076.09 ","4208.04 ","14936.70 "],["Image Classification","","General","TensorFlow","tf_mobilenetv1-1.0_3.5","Non-Commercial Use Only","No","MobileNetV1","https://arxiv.org/abs/1704.04861","ILSVRC2012","https://www.image-net.org/download.php","224*224*3","0.7102","0.678","1.14","","","2350.44 ","5167.04 ","14581.60 "],["Image Classification","","General","TensorFlow","tf_mobilenetv2-1.0_3.5","Non-Commercial Use Only","No","MobileNetV2","https://arxiv.org/abs/1801.04381","ILSVRC2012","https://www.image-net.org/download.php","224*224*3","0.7013","0.6767","62","","","2030.30 ","4236.92 ","11544.90 "],["Image Classification","","General","TensorFlow","tf_mobilenetv2-1.4_3.5","Non-Commercial Use Only","No","MobileNetV2","https://arxiv.org/abs/1801.04381","ILSVRC2012","https://www.image-net.org/download.php","224*224*3","0.7411","0.7194","1.16","","","1874.75 ","4207.31 ","8081.16 "],["Super Resolution","Medical Imaging","Super Resolution","TensorFlow","tf_rcan_0.98_3.5","","No","RCAN","https://arxiv.org/abs/1807.02758","DIV2K","https://data.vision.ee.ethz.ch/cvl/DIV2K/","360*640*3","Set5 Y_PSNR : 37.640\nSSIM : 0.959","Set5 Y_PSNR : 37.2495\nSSIM : 0.9556","86.95","98.00%","","59.33 ","83.34 ","43.08 "],["Object Detection","Medical Imaging","Medical Detection","TensorFlow","tf_RefineDet-Medical_0.5_3.5","","No","RefineDet","https://arxiv.org/abs/1711.06897","EDD2020","https://ieee-dataport.org/competitions/endoscopy-disease-detection-and-segmentation-edd2020#files","320*320*3","0.7798","0.7772","41.42","50.00%","","393.94 ","868.81 ","683.10 "],["Object Detection","Medical Imaging","Medical Detection","TensorFlow","tf_RefineDet-Medical_0.75_3.5","","No","RefineDet","https://arxiv.org/abs/1711.06897","EDD2020","https://ieee-dataport.org/competitions/endoscopy-disease-detection-and-segmentation-edd2020#files","320*320*3","0.7885","0.7826","20.54","75.00%","","475.20 ","1099.97 ","1101.20 "],["Object Detection","Medical Imaging","Medical Detection","TensorFlow","tf_RefineDet-Medical_0.85_3.5","","No","RefineDet","https://arxiv.org/abs/1711.06897","EDD2020","https://ieee-dataport.org/competitions/endoscopy-disease-detection-and-segmentation-edd2020#files","320*320*3","0.7898","0.7877","12.32","85.00%","","534.28 ","1167.51 ","1561.50 "],["Object Detection","Medical Imaging","Medical Detection","TensorFlow","tf_RefineDet-Medical_0.88_3.5","","No","RefineDet","https://arxiv.org/abs/1711.06897","EDD2020","https://ieee-dataport.org/competitions/endoscopy-disease-detection-and-segmentation-edd2020#files","320*320*3","0.7839","0.8002","9.83","88.00%","","624.73 ","1465.31 ","1769.71 "],["Object Detection","Medical Imaging","Medical Detection","TensorFlow","tf_RefineDet-Medical_3.5","","No","RefineDet","https://arxiv.org/abs/1711.06897","EDD2020","https://ieee-dataport.org/competitions/endoscopy-disease-detection-and-segmentation-edd2020#files","320*320*3","0.7866","0.7857","81.28","","","277.93 ","445.91 ","339.95 "],["Image Classification","","General","TensorFlow","tf_resnetv1-101_0.35_3.5","Non-Commercial Use Only","No","ResNet101","https://arxiv.org/abs/1512.03385","ILSVRC2012","https://www.image-net.org/download.php","224*224*3","0.7566","0.7488","9.4","35.00%","","1493.91 ","3478.36 ","2966.77 "],["Image Classification","","General","TensorFlow","tf_resnetv1-101_0.57_3.5","Non-Commercial Use Only","No","ResNet101","https://arxiv.org/abs/1512.03385","ILSVRC2012","https://www.image-net.org/download.php","224*224*3","0.7502","0.7463","6.21","57.00%","","1584.16 ","4139.32 ","3638.47 "],["Image Classification","","General","TensorFlow","tf_resnetv1-101_3.5","Non-Commercial Use Only","No","ResNet50","https://arxiv.org/abs/1512.03385","ILSVRC2012","https://www.image-net.org/download.php","224*224*3","0.764","0.756","14.4","","","1444.95 ","3009.90 ","2542.30 "],["Image Classification","","General","TensorFlow","tf_resnetv1-152_0.51_3.5","Non-Commercial Use Only","No","ResNet152","https://arxiv.org/abs/1512.03385","ILSVRC2012","https://www.image-net.org/download.php","224*224*3","0.7591","0.7558","10.68","51.00%","","1350.73 ","2832.52 ","2394.19 "],["Image Classification","","General","TensorFlow","tf_resnetv1-152_0.6_3.5","Non-Commercial Use Only","No","ResNet152","https://arxiv.org/abs/1512.03385","ILSVRC2012","https://www.image-net.org/download.php","224*224*3","0.7568","0.7545","8.82","60.00%","","1411.05 ","3077.83 ","2614.17 "],["Image Classification","","General","TensorFlow","tf_resnetv1-152_3.5","Non-Commercial Use Only","No","ResNet50","https://arxiv.org/abs/1512.03385","ILSVRC2012","https://www.image-net.org/download.php","224*224*3","0.7681","0.7463","21.83","","","1209.95 ","2155.49 ","1792.50 "],["Image Classification","","General","TensorFlow","tf_resnetv1-50_0.38_3.5","Non-Commercial Use Only","No","ResNet50","https://arxiv.org/abs/1512.03385","ILSVRC2012","https://www.image-net.org/download.php","224*224*3","0.7442","0.7375","0.38","38.00%","","1716.20 ","4259.59 ","5038.76 "],["Image Classification","","General","TensorFlow","tf_resnetv1-50_0.65_3.5","Non-Commercial Use Only","No","ResNet50","https://arxiv.org/abs/1512.03385","ILSVRC2012","https://www.image-net.org/download.php","224*224*3","0.7279","0.7167","2.45","65.00%","","1866.27 ","4261.81 ","6836.10 "],["Image Classification","","General","TensorFlow","tf_resnetv1-50_3.5","Non-Commercial Use Only","No","ResNet50","https://arxiv.org/abs/1512.03385","ILSVRC2012","https://www.image-net.org/download.php","224*224*3","0.752","0.7436","6.97","","","1792.38 ","4793.76 ","4329.41 "],["Image Classification","","General","TensorFlow","tf_resnetv2-101_3.5","Non-Commercial Use Only","No","ResNet50V2","https://arxiv.org/abs/1603.05027","ILSVRC2012","https://www.image-net.org/download.php","299*299*3","0.7695","0.7506","26.78","","","599.63 ","916.29 ","760.86 "],["Image Classification","","General","TensorFlow","tf_resnetv2-152_3.5","Non-Commercial Use Only","No","ResNet50V2","https://arxiv.org/abs/1603.05027","ILSVRC2012","https://www.image-net.org/download.php","299*299*3","0.7779","0.7432","40.47","","","488.57 ","679.61 ","564.92 "],["Image Classification","","General","TensorFlow","tf_resnetv2-50_3.5","Non-Commercial Use Only","No","ResNet50V2","https://arxiv.org/abs/1603.05027","ILSVRC2012","https://www.image-net.org/download.php","299*299*3","0.7559","0.7445","13.1","","","776.70 ","1398.72 ","1160.64 "],["Object Detection","","General","TensorFlow","tf_ssdmobilenetv1_3.5","","No","SSD MobileNetV1","No paper, based on TensorFlow model","COCO","https://cocodataset.org/#download","300*300*3","0.208","0.21","2.47","","","903.54 ","1932.60 ","6100.36 "],["Object Detection","","General","TensorFlow","tf_ssdmobilenetv2_3.5","","No","SSD MobileNetV2","No paper, based on TensorFlow model","COCO","https://cocodataset.org/#download","300*300*3","0.215","0.211","3.75","","","818.32 ","1904.04 ","2952.77 "],["","Industrial Vision / Robotics","Interest Point Detection and Description","TensorFlow","tf_superpoint_3.5","","No","SuperPoint","https://arxiv.org/abs/2107.03601","COCO 2014","https://cocodataset.org/#download","480*640*3","83.4 (thr=3)","84.3 (thr=3)","52.4","","","54.53 ","123.68 ","/"],["Image Classification","","General","TensorFlow","tf_vgg16_0.43_3.5","Non-Commercial Use Only","No","VGG16","https://arxiv.org/abs/1409.1556","ILSVRC2012","https://www.image-net.org/download.php","224*224*3","0.6929","0.6823","17.67","43.00%","","1179.57 ","2132.38 ","1958.96 "],["Image Classification","","General","TensorFlow","tf_vgg16_0.5_3.5","Non-Commercial Use Only","No","VGG16","https://arxiv.org/abs/1409.1556","ILSVRC2012","https://www.image-net.org/download.php","224*224*3","0.6857","0.6729","15.64","50.00%","","1254.81 ","2463.84 ","2190.40 "],["Image Classification","","General","TensorFlow","tf_vgg16_3.5","Non-Commercial Use Only","No","VGG16","https://arxiv.org/abs/1409.1556","ILSVRC2012","https://www.image-net.org/download.php","224*224*3","0.7089","0.7069","30.96","","","554.19 ","690.98 ","619.22 "],["Image Classification","","General","TensorFlow","tf_vgg19_0.24_3.5","Non-Commercial Use Only","No","VGG19","https://arxiv.org/abs/1409.1556","ILSVRC2012","https://www.image-net.org/download.php","224*224*3","0.7075","0.7022","29.79","24.00%","","644.37 ","849.49 ","759.97 "],["Image Classification","","General","TensorFlow","tf_vgg19_0.39_3.5","Non-Commercial Use Only","No","VGG19","https://arxiv.org/abs/1409.1556","ILSVRC2012","https://www.image-net.org/download.php","224*224*3","0.6954","0.6903","23.78","","","846.90 ","1243.95 ","1020.87 "],["Image Classification","","General","TensorFlow","tf_vgg19_3.5","Non-Commercial Use Only","No","VGG19","https://arxiv.org/abs/1409.1556","ILSVRC2012","https://www.image-net.org/download.php","224*224*3","0.71","0.7026","39.28","","","571.36 ","718.20 ","691.80 "],["Image Classification","","General","TensorFlow","tf_ViT_3.5","Non-Commercial Use Only","No","ViT","https://arxiv.org/abs/2010.11929","ILSVRC2012","https://www.image-net.org/download.php","352*352*3","0.8282","0.8254","21.3","","","/","/","/"],["Object Detection","","General","TensorFlow","tf_yolov3_3.5","","No","YOLOv3","https://arxiv.org/abs/1804.02767","VOC2012","http://host.robots.ox.ac.uk/pascal/VOC/voc2012/","416*416*3","0.7846","0.7744","65.63","","","319.75 ","528.49 ","421.89 "],["Object Detection","","General","TensorFlow","tf_yolov4-416_3.5","","No","YOLOv4","https://arxiv.org/abs/2004.10934","COCO","https://cocodataset.org/#download","416*416*3","0.477","0.393","60.3","","","192.54 ","350.05 ","232.00 "],["Object Detection","","General","TensorFlow","tf_yolov4-512_3.5","","No","YOLOv4","https://arxiv.org/abs/2004.10934","COCO","https://cocodataset.org/#download","512*512*3","0.487","0.412","91.2","","","133.80 ","225.89 ","96.77 "],["Image Classification","","General","TensorFlow 2","tf2_efficientnet-b0_3.5","Non-Commercial Use Only","No","EfficientNet-B0","https://arxiv.org/abs/1905.11946","ILSVRC2012","https://www.image-net.org/download.php","224*224*3","0.7690/0.9320","0.7515/0.9273","0.78","","","/","/","/"],["Image Classification","","General","TensorFlow 2","tf2_Efficientnet-lite_3.5","Non-Commercial Use Only","No","EfficientNet lite","","ILSVRC2012","https://www.image-net.org/download.php","224*224*3","0.7501","0.7444","0.77","","","2207.26 ","5138.35 ","9842.18 "],["Image Classification","","General","TensorFlow 2","tf2_inceptionv3_3.5","Non-Commercial Use Only","No","Inception-v3","https://arxiv.org/abs/1512.00567","ILSVRC2012","https://www.image-net.org/download.php","299*299*3","0.7753","0.7694","11.5","","","874.55 ","1761.14 ","1503.39 "],["Image Classification","","General","TensorFlow 2","tf2_mobilenetv1_3.5","Non-Commercial Use Only","No","MobileNetV1","https://arxiv.org/abs/1704.04861","ILSVRC2012","https://www.image-net.org/download.php","224*224*3","0.7005","0.5603","1.15","","","2380.94 ","5257.80 ","14585.10 "],["Image Classification","","General","TensorFlow 2","tf2_mobilenetv3_3.5","Non-Commercial Use Only","No","MobileNetV3","https://arxiv.org/abs/1905.02244","ILSVRC2012","https://www.image-net.org/download.php","224*224*3","0.6756/0.8728","0.6536/0.8544","0.132","","","/","/","/"],["Image Classification","","General","TensorFlow 2","tf2_resnet50_3.5","Non-Commercial Use Only","No","ResNet50","https://arxiv.org/abs/1512.03385","ILSVRC2012","https://www.image-net.org/download.php","224*224*3","0.7513","0.7423","7.76","","","1747.67 ","4653.05 ","3912.34 "],["Object Detection","","General","TensorFlow 2","tf2_yolov3_3.5","","No","YOLOv3","https://arxiv.org/abs/1804.02767","COCO","https://cocodataset.org/#download","416*416*3","0.377","0.331","65.9","","","267.82 ","521.20 ","414.54 "],["Semantic Segmentation","Medical Imaging","Medical Segmentation","TensorFlow 2","tf2_2D-UNET_3.5","","No","2D-UNET","","BraTS","https://drive.google.com/file/d/1A2IU8Sgea1h3fYLpYtFb2v7NYdMjvEhU/view","144*144*3","Dice 0.8749 ","Dice 0.8735","24.6","","","752.19 ","1563.61 ","1177.35 "]],"iDisplayLength":-1,"sScrollX":"100%","sScrollXInner":"100%","lengthMenu":[[-1,10,25,50],["All",10,25,50]],"paging":true,"scrollY":"70vh","dom":"Bfrtip","buttons":["copy","csv","json","print"]}); - }); - </script> - <style> - body, - html { - margin: 0; - font-family: "Roboto Slab"; - } - table.dataTable { - width: 100%; - margin: 0 auto; - clear: both; - border-collapse: separate; - border-spacing: 0; - } - - table.dataTable thead th, - table.dataTable tfoot th { - font-weight: bold; - } - - table.dataTable thead th, - table.dataTable thead td { - padding: 10px 18px; - border-bottom: 1px solid #111; - } - - table.dataTable thead th:active, - table.dataTable thead td:active { - outline: none; - } - - table.dataTable tfoot th, - table.dataTable tfoot td { - padding: 10px 18px 6px 18px; - border-top: 1px solid #111; - } - - table.dataTable tbody th, - table.dataTable tbody td { - padding: 8px 10px; - } - - #table_wrapper { - margin: 20px 40px; - } - - table tr th, - table tr td { - text-align: left; - white-space: nowrap; - } - - #table_wrapper .dataTables_length, - #table_wrapper .dataTables_filter { - margin-bottom: 20px; - font-size: 10px; - text-transform: uppercase; - float: right; - margin-left: 20px; - } - - #table_wrapper .dataTables_length label, - #table_wrapper .dataTables_filter label, - #table_wrapper .dataTables_paginate a, - #table_wrapper .dataTables_info { - color: #404040 !important; - } - - #table_wrapper .dataTables_filter input { - margin: 0 3px; - } - - #table_wrapper .dataTables_paginate a, - #table_wrapper .dataTables_info { - font-size: 10px; - text-transform: uppercase; - } - - #table_wrapper .dataTables_paginate { - float: right; - } - - #table_wrapper .dataTables_paginate, - #table_wrapper .dataTables_info { - display: inline-block; - margin-top: 10px; - } - - #table_wrapper .dataTables_paginate a { - padding: 3px 6px; - margin: 0 5px; - cursor: pointer; - } - - #table_wrapper .dataTables_paginate a.current { - color: #fff !important; - background: #404040; - } - - #table_wrapper table { - font-size: 12px; - background: #fff; - border-collapse: collapse; - text-align: left; - width: 100%; - } - - #table_wrapper table caption { - font-size: 20px; - color: #404040; - text-align: left; - margin-bottom: 10px; - } - - #table_wrapper table th { - font-size: 14px; - font-weight: normal; - color: #404040; - padding: 10px 8px; - border-bottom: 2px solid #6678b1; - position: relative; - } - - #table_wrapper .dataTables_scrollHead th.sorting, - #table_wrapper .dataTables_scrollHead th.sorting_asc, - #table_wrapper .dataTables_scrollHead th.sorting_desc { - position: relative; - cursor: pointer; - } - - #table_wrapper .dataTables_scrollHead th.sorting:before, - #table_wrapper .dataTables_scrollHead th.sorting_asc:before, - #table_wrapper .dataTables_scrollHead th.sorting:after, - #table_wrapper .dataTables_scrollHead th.sorting_desc:after { - border: 4px solid transparent; - position: absolute; - display: block; - content: ""; - height: 0; - right: 8px; - top: 50%; - width: 0; - opacity: 0.4; - } - - #table_wrapper .dataTables_scrollHead th.sorting:before, - #table_wrapper .dataTables_scrollHead th.sorting_asc:before { - border-bottom-color: #669; - margin-top: -9px; - } - - #table_wrapper .dataTables_scrollHead th.sorting:after, - #table_wrapper .dataTables_scrollHead th.sorting_desc:after { - border-top-color: #669; - margin-top: 1px; - } - - #table_wrapper table td { - border-bottom: 1px solid #ccc; - color: #669; - padding: 6px 8px; - } - - #table_wrapper table tbody tr:hover td { - color: #404040; - } - - .dt-buttons { - display: inline-block; - } - - .dt-button { - color: #FFFFFF; - background: #404040; - margin-right: 10px; - padding: 6px 12px; - cursor: pointer; - -webkit-transition: all 60ms ease-in-out; - transition: all 60ms ease-in-out; - text-align: center; - white-space: nowrap; - text-decoration: none !important; - text-transform: none; - text-transform: capitalize; - border: 0 none; - border-radius: 2px; - font-size: 11px; - line-height: 1.3; - text-transform: uppercase; - } - - .dt-button-info { - padding: 50px; - color: #404040; - text-align: center; - position: fixed; - top: 0; - left: 0; - right: 0; - bottom: 0; - background: rgba(255, 255, 255, 0.7) - } - - .dt-button-info h2 { - display: none; - } -</body> -</html> \ No newline at end of file diff --git a/docsrc/build/html/docs/reference/additional_resources.html b/docsrc/build/html/docs/reference/additional_resources.html index ad484fd0b..c654b1529 100644 --- a/docsrc/build/html/docs/reference/additional_resources.html +++ b/docsrc/build/html/docs/reference/additional_resources.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script> <script src="../../_static/jquery.js"></script> <script src="../../_static/underscore.js"></script> - <script src="../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../_static/doctools.js"></script> <script src="../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../genindex.html" /> @@ -72,6 +71,11 @@ <li class="toctree-l1"><a class="reference internal" href="../quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../workflow.html">Overview</a></li> @@ -135,7 +139,7 @@ <div itemprop="articleBody"> <section id="technical-support"> -<span id="additional-resources"></span><h1>Technical Support<a class="headerlink" href="#technical-support" title="Permalink to this heading">¶</a></h1> +<span id="additional-resources"></span><h1>Technical Support<a class="headerlink" href="#technical-support" title="Permalink to this headline">¶</a></h1> <p>There are multiple avenues available to obtain technical support for Vitis™ AI:</p> <blockquote> <div><ul class="simple"> @@ -147,7 +151,7 @@ </div></blockquote> </section> <section id="id1"> -<h1>Additional Resources<a class="headerlink" href="#id1" title="Permalink to this heading">¶</a></h1> +<h1>Additional Resources<a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h1> <blockquote> <div><ul class="simple"> <li><p>Xilinx® Vitis AI Developer <a class="reference external" href="https://www.xilinx.com/developer/products/vitis-ai.html">Site</a></p></li> diff --git a/docsrc/build/html/docs/reference/docker_image_versions.html b/docsrc/build/html/docs/reference/docker_image_versions.html index dc7589ef4..50d6ce88e 100644 --- a/docsrc/build/html/docs/reference/docker_image_versions.html +++ b/docsrc/build/html/docs/reference/docker_image_versions.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script> <script src="../../_static/jquery.js"></script> <script src="../../_static/underscore.js"></script> - <script src="../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../_static/doctools.js"></script> <script src="../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../workflow.html">Overview</a></li> @@ -134,9 +138,15 @@ <div itemprop="articleBody"> <section id="docker-images"> -<h1>Docker Images<a class="headerlink" href="#docker-images" title="Permalink to this heading">¶</a></h1> +<h1>Docker Images<a class="headerlink" href="#docker-images" title="Permalink to this headline">¶</a></h1> <p>Previously released Vitis™ AI CPU Docker images are <a class="reference external" href="https://hub.docker.com/r/xilinx/vitis-ai-cpu/tags?page=1&ordering=last_updated">available from Docker Hub</a>. If you are using a previous version of Vitis AI, you need to use the corresponding Docker version. Here is an example of how you can retrieve an older release:</p> <table class="docutils align-default"> +<colgroup> +<col style="width: 5%" /> +<col style="width: 29%" /> +<col style="width: 44%" /> +<col style="width: 22%" /> +</colgroup> <thead> <tr class="row-odd"><th class="head"><p>Version</p></th> <th class="head"><p>Github Link</p></th> @@ -154,10 +164,14 @@ <h1>Docker Images<a class="headerlink" href="#docker-images" title="Permalink to </table> </section> <section id="docker-image-tags"> -<h1>Docker Image Tags<a class="headerlink" href="#docker-image-tags" title="Permalink to this heading">¶</a></h1> +<h1>Docker Image Tags<a class="headerlink" href="#docker-image-tags" title="Permalink to this headline">¶</a></h1> <p>There is a corresponding relationship between Vitis AI and the required docker image. If you are not using the latest release of Vitis AI, you need to fetch the docker image version associated with the older release. We recommend that you directly use the pre-built image on Docker Hub.</p> <p>The version correspondence between Vitis AI and the docker image is shown in the following table:</p> <table class="docutils align-default"> +<colgroup> +<col style="width: 26%" /> +<col style="width: 74%" /> +</colgroup> <thead> <tr class="row-odd"><th class="head"><p>Vitis AI Version</p></th> <th class="head"><p>Docker Image Tag</p></th> diff --git a/docsrc/build/html/docs/reference/release_notes.html b/docsrc/build/html/docs/reference/release_notes.html index 9a14b2904..fc2ebb08d 100644 --- a/docsrc/build/html/docs/reference/release_notes.html +++ b/docsrc/build/html/docs/reference/release_notes.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script> <script src="../../_static/jquery.js"></script> <script src="../../_static/underscore.js"></script> - <script src="../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../_static/doctools.js"></script> <script src="../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../genindex.html" /> @@ -97,6 +96,11 @@ <li class="toctree-l1"><a class="reference internal" href="../quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../workflow.html">Overview</a></li> @@ -160,13 +164,13 @@ <div itemprop="articleBody"> <section id="release-notes-3-5"> -<h1>Release Notes 3.5<a class="headerlink" href="#release-notes-3-5" title="Permalink to this heading">¶</a></h1> +<h1>Release Notes 3.5<a class="headerlink" href="#release-notes-3-5" title="Permalink to this headline">¶</a></h1> <section id="version-compatibility"> -<h2>Version Compatibility<a class="headerlink" href="#version-compatibility" title="Permalink to this heading">¶</a></h2> +<h2>Version Compatibility<a class="headerlink" href="#version-compatibility" title="Permalink to this headline">¶</a></h2> <p>Vitis™ AI v3.5 and the DPU IP released with the v3.5 branch of this repository are verified as compatible with Vitis, Vivado™, and PetaLinux version 2023.1. If you are using a previous release of Vitis AI, you should review the <a class="reference internal" href="version_compatibility.html#version-compatibility"><span class="std std-ref">version compatibility matrix</span></a> for that release.</p> </section> <section id="documentation-and-github-repository"> -<h2>Documentation and Github Repository<a class="headerlink" href="#documentation-and-github-repository" title="Permalink to this heading">¶</a></h2> +<h2>Documentation and Github Repository<a class="headerlink" href="#documentation-and-github-repository" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p>Merged UG1333 into UG1414</p></li> <li><p>Streamlined UG1414 to remove redundant content</p></li> @@ -177,14 +181,14 @@ <h2>Documentation and Github Repository<a class="headerlink" href="#documentatio </ul> </section> <section id="docker-containers-and-gpu-support"> -<h2>Docker Containers and GPU Support<a class="headerlink" href="#docker-containers-and-gpu-support" title="Permalink to this heading">¶</a></h2> +<h2>Docker Containers and GPU Support<a class="headerlink" href="#docker-containers-and-gpu-support" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p>Removed Anaconda dependency from TensorFlow 2 and PyTorch containers in order to address Anaconda commercial license requirements</p></li> <li><p>Updated Docker container to disable Ubuntu 18.04 support (which was available in Vitis AI but not officially supported). This was done to address <a class="reference external" href="https://nvd.nist.gov/vuln/detail/CVE-2021-3493">CVE-2021-3493</a>.</p></li> </ul> </section> <section id="model-zoo"> -<h2>Model Zoo<a class="headerlink" href="#model-zoo" title="Permalink to this heading">¶</a></h2> +<h2>Model Zoo<a class="headerlink" href="#model-zoo" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p>Added more classic models without modification such as YOLO series and 2D Unet</p></li> <li><p>Provided model info card for each model and Jupyter Notebook tutorials for new models</p></li> @@ -192,7 +196,7 @@ <h2>Model Zoo<a class="headerlink" href="#model-zoo" title="Permalink to this he </ul> </section> <section id="onnx-cnn-quantizer"> -<h2>ONNX CNN Quantizer<a class="headerlink" href="#onnx-cnn-quantizer" title="Permalink to this heading">¶</a></h2> +<h2>ONNX CNN Quantizer<a class="headerlink" href="#onnx-cnn-quantizer" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p>Initial release</p></li> <li><p>This is a new quantizer that supports the direct PTQ quantization of ONNX models for DPU. It is a plugin built for the ONNXRuntime native quantizer.</p></li> @@ -207,7 +211,7 @@ <h2>ONNX CNN Quantizer<a class="headerlink" href="#onnx-cnn-quantizer" title="Pe </ul> </section> <section id="pytorch-cnn-quantizer"> -<h2>PyTorch CNN Quantizer<a class="headerlink" href="#pytorch-cnn-quantizer" title="Permalink to this heading">¶</a></h2> +<h2>PyTorch CNN Quantizer<a class="headerlink" href="#pytorch-cnn-quantizer" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p>Support for Pytorch 1.13 and 2.0</p></li> <li><p>Support for mixed precision quantization, float32/float16/bfloat16/intx</p></li> @@ -222,7 +226,7 @@ <h2>PyTorch CNN Quantizer<a class="headerlink" href="#pytorch-cnn-quantizer" tit </ul> </section> <section id="tensorflow-2-cnn-quantizer"> -<h2>TensorFlow 2 CNN Quantizer<a class="headerlink" href="#tensorflow-2-cnn-quantizer" title="Permalink to this heading">¶</a></h2> +<h2>TensorFlow 2 CNN Quantizer<a class="headerlink" href="#tensorflow-2-cnn-quantizer" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p>Updated to support for Tensorflow 2.12 and Python 3.8.</p></li> <li><p>Support for quantizing subclass models.</p></li> @@ -241,7 +245,7 @@ <h2>TensorFlow 2 CNN Quantizer<a class="headerlink" href="#tensorflow-2-cnn-quan 3. Fixed a graph transformation bug when a TFOpLambda op has multiple inputs.</p> </section> <section id="tensorflow-1-cnn-quantizer"> -<h2>TensorFlow 1 CNN Quantizer<a class="headerlink" href="#tensorflow-1-cnn-quantizer" title="Permalink to this heading">¶</a></h2> +<h2>TensorFlow 1 CNN Quantizer<a class="headerlink" href="#tensorflow-1-cnn-quantizer" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p>Support for fast fine-tuning that improves PTQ accuracy.</p></li> <li><p>Support for folding Reshape and ResizeNearestNeighbor operators.</p></li> @@ -254,7 +258,7 @@ <h2>TensorFlow 1 CNN Quantizer<a class="headerlink" href="#tensorflow-1-cnn-quan 1. Fixed a bug where the AddV2 operation is misinterpreted as a BiasAdd.</p> </section> <section id="compiler"> -<h2>Compiler<a class="headerlink" href="#compiler" title="Permalink to this heading">¶</a></h2> +<h2>Compiler<a class="headerlink" href="#compiler" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p>New operators supported: Broadcast add/mul, Bilinear downsample, Trilinear downsample, Group conv2d, Strided-slice</p></li> <li><p>Performance improved on XV2DPU</p></li> @@ -263,7 +267,7 @@ <h2>Compiler<a class="headerlink" href="#compiler" title="Permalink to this head </ul> </section> <section id="pytorch-optimizer"> -<h2>PyTorch Optimizer<a class="headerlink" href="#pytorch-optimizer" title="Permalink to this heading">¶</a></h2> +<h2>PyTorch Optimizer<a class="headerlink" href="#pytorch-optimizer" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p>Removed requirement for license purchase</p></li> <li><p>Migrated to Github open-source</p></li> @@ -273,7 +277,7 @@ <h2>PyTorch Optimizer<a class="headerlink" href="#pytorch-optimizer" title="Perm </ul> </section> <section id="tensorflow-2-optimizer"> -<h2>TensorFlow 2 Optimizer<a class="headerlink" href="#tensorflow-2-optimizer" title="Permalink to this heading">¶</a></h2> +<h2>TensorFlow 2 Optimizer<a class="headerlink" href="#tensorflow-2-optimizer" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p>Removed requirement for license purchase</p></li> <li><p>Migrated to Github open-source</p></li> @@ -284,7 +288,7 @@ <h2>TensorFlow 2 Optimizer<a class="headerlink" href="#tensorflow-2-optimizer" t </ul> </section> <section id="runtime"> -<h2>Runtime<a class="headerlink" href="#runtime" title="Permalink to this heading">¶</a></h2> +<h2>Runtime<a class="headerlink" href="#runtime" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p>Supports Versal AI Edge VEK280 evaluation kit</p></li> <li><p>Buffer optimized for multi-batches to improve performance</p></li> @@ -292,7 +296,7 @@ <h2>Runtime<a class="headerlink" href="#runtime" title="Permalink to this headin </ul> </section> <section id="vitis-onnx-runtime-execution-provider-voe"> -<h2>Vitis ONNX Runtime Execution Provider (VOE)<a class="headerlink" href="#vitis-onnx-runtime-execution-provider-voe" title="Permalink to this heading">¶</a></h2> +<h2>Vitis ONNX Runtime Execution Provider (VOE)<a class="headerlink" href="#vitis-onnx-runtime-execution-provider-voe" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p>Support for ONNX Opset version 18, ONNX Runtime 1.16.0 and ONNX version 1.13</p></li> <li><p>Support for both C++ and Python APIs(Python version 3)</p></li> @@ -302,25 +306,25 @@ <h2>Vitis ONNX Runtime Execution Provider (VOE)<a class="headerlink" href="#viti </ul> </section> <section id="library"> -<h2>Library<a class="headerlink" href="#library" title="Permalink to this heading">¶</a></h2> +<h2>Library<a class="headerlink" href="#library" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p>Added three new model libraries and support for five additional models</p></li> </ul> </section> <section id="model-inspector"> -<h2>Model Inspector<a class="headerlink" href="#model-inspector" title="Permalink to this heading">¶</a></h2> +<h2>Model Inspector<a class="headerlink" href="#model-inspector" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p>Added support for DPUCV2DX8G</p></li> </ul> </section> <section id="profiler"> -<h2>Profiler<a class="headerlink" href="#profiler" title="Permalink to this heading">¶</a></h2> +<h2>Profiler<a class="headerlink" href="#profiler" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p>Added Profiler support for DPUCV2DX8G</p></li> </ul> </section> <section id="dpu-ip-versal-aie-ml-targets-dpucv2dx8g-versal-ai-edge-core"> -<h2>DPU IP - Versal AIE-ML Targets DPUCV2DX8G (Versal AI Edge / Core)<a class="headerlink" href="#dpu-ip-versal-aie-ml-targets-dpucv2dx8g-versal-ai-edge-core" title="Permalink to this heading">¶</a></h2> +<h2>DPU IP - Versal AIE-ML Targets DPUCV2DX8G (Versal AI Edge / Core)<a class="headerlink" href="#dpu-ip-versal-aie-ml-targets-dpucv2dx8g-versal-ai-edge-core" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p>General access release for the Versal AI Edge device VE2802, Versal AI Core device VC2802 and Alveo V70 card</p></li> <li><p>Configurable from C20B1 to C20B14</p></li> @@ -328,7 +332,7 @@ <h2>DPU IP - Versal AIE-ML Targets DPUCV2DX8G (Versal AI Edge / Core)<a class="h </ul> </section> <section id="dpu-ip-zynq-ultrascale-dpuczdx8g"> -<h2>DPU IP - Zynq Ultrascale+ DPUCZDX8G<a class="headerlink" href="#dpu-ip-zynq-ultrascale-dpuczdx8g" title="Permalink to this heading">¶</a></h2> +<h2>DPU IP - Zynq Ultrascale+ DPUCZDX8G<a class="headerlink" href="#dpu-ip-zynq-ultrascale-dpuczdx8g" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p>No DPU IP updates in 3.5 release</p></li> <li><p>No DPU reference design updates in 3.5 release</p></li> @@ -336,7 +340,7 @@ <h2>DPU IP - Zynq Ultrascale+ DPUCZDX8G<a class="headerlink" href="#dpu-ip-zynq- </ul> </section> <section id="dpu-ip-versal-aie-targets-dpucvdx8g"> -<h2>DPU IP - Versal AIE Targets DPUCVDX8G<a class="headerlink" href="#dpu-ip-versal-aie-targets-dpucvdx8g" title="Permalink to this heading">¶</a></h2> +<h2>DPU IP - Versal AIE Targets DPUCVDX8G<a class="headerlink" href="#dpu-ip-versal-aie-targets-dpucvdx8g" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p>No DPU IP updates in 3.5 release</p></li> <li><p>No DPU reference design updates in 3.5 release</p></li> @@ -344,7 +348,7 @@ <h2>DPU IP - Versal AIE Targets DPUCVDX8G<a class="headerlink" href="#dpu-ip-ver </ul> </section> <section id="dpu-ip-cnn-alveo-data-center-dpucvdx8h"> -<h2>DPU IP - CNN - Alveo Data Center DPUCVDX8H<a class="headerlink" href="#dpu-ip-cnn-alveo-data-center-dpucvdx8h" title="Permalink to this heading">¶</a></h2> +<h2>DPU IP - CNN - Alveo Data Center DPUCVDX8H<a class="headerlink" href="#dpu-ip-cnn-alveo-data-center-dpucvdx8h" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p>No DPU IP updates in 3.5 release</p></li> <li><p>No DPU reference design updates in 3.5 release</p></li> @@ -352,7 +356,7 @@ <h2>DPU IP - CNN - Alveo Data Center DPUCVDX8H<a class="headerlink" href="#dpu-i </ul> </section> <section id="wego"> -<h2>WeGO<a class="headerlink" href="#wego" title="Permalink to this heading">¶</a></h2> +<h2>WeGO<a class="headerlink" href="#wego" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p>Support for Alveo V70 DPU GA release.</p></li> <li><p>Support for PyTorch 1.13.1 and TensorFlow r2.12.</p></li> @@ -362,7 +366,7 @@ <h2>WeGO<a class="headerlink" href="#wego" title="Permalink to this heading">¶< </ul> </section> <section id="known-issues"> -<h2>Known Issues<a class="headerlink" href="#known-issues" title="Permalink to this heading">¶</a></h2> +<h2>Known Issues<a class="headerlink" href="#known-issues" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p>To be announced ASAP</p></li> </ul> diff --git a/docsrc/build/html/docs/reference/system_requirements.html b/docsrc/build/html/docs/reference/system_requirements.html index 834fb29cf..6adb38b13 100644 --- a/docsrc/build/html/docs/reference/system_requirements.html +++ b/docsrc/build/html/docs/reference/system_requirements.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script> <script src="../../_static/jquery.js"></script> <script src="../../_static/underscore.js"></script> - <script src="../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../_static/doctools.js"></script> <script src="../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../genindex.html" /> @@ -73,6 +72,11 @@ <li class="toctree-l1"><a class="reference internal" href="../quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../workflow.html">Overview</a></li> @@ -136,9 +140,13 @@ <div itemprop="articleBody"> <section id="vitis-ai-host-developer-machine-requirements"> -<h1>Vitis AI Host (Developer) Machine Requirements<a class="headerlink" href="#vitis-ai-host-developer-machine-requirements" title="Permalink to this heading">¶</a></h1> +<h1>Vitis AI Host (Developer) Machine Requirements<a class="headerlink" href="#vitis-ai-host-developer-machine-requirements" title="Permalink to this headline">¶</a></h1> <p>The following table lists Vitis™ AI developer workstation system requirements:</p> <table class="docutils align-default"> +<colgroup> +<col style="width: 49%" /> +<col style="width: 51%" /> +</colgroup> <thead> <tr class="row-odd"><th class="head"><p>Component</p></th> <th class="head"><p>Requirement</p></th> diff --git a/docsrc/build/html/docs/reference/thirdpartysource.html b/docsrc/build/html/docs/reference/thirdpartysource.html index 85d54a354..5159012c3 100644 --- a/docsrc/build/html/docs/reference/thirdpartysource.html +++ b/docsrc/build/html/docs/reference/thirdpartysource.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script> <script src="../../_static/jquery.js"></script> <script src="../../_static/underscore.js"></script> - <script src="../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../_static/doctools.js"></script> <script src="../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../workflow.html">Overview</a></li> @@ -134,9 +138,9 @@ <div itemprop="articleBody"> <section id="third-party-source"> -<h1>Third Party Source<a class="headerlink" href="#third-party-source" title="Permalink to this heading">¶</a></h1> +<h1>Third Party Source<a class="headerlink" href="#third-party-source" title="Permalink to this headline">¶</a></h1> <section id="ubuntu-packages"> -<h2>Ubuntu Packages<a class="headerlink" href="#ubuntu-packages" title="Permalink to this heading">¶</a></h2> +<h2>Ubuntu Packages<a class="headerlink" href="#ubuntu-packages" title="Permalink to this headline">¶</a></h2> <p>Following is a list of Ubuntu Apt packages used by Vitis™ AI:</p> <ol class="arabic simple"> <li><p>sudo</p></li> @@ -168,7 +172,7 @@ <h2>Ubuntu Packages<a class="headerlink" href="#ubuntu-packages" title="Permalin <p>If you cannot access the internet pages for Ubuntu’s main source code repositories and obtain the source code for the Ubuntu Linux OS and base packages in this distribution, then Xilinx® hereby offers (which offer is valid for as long as required by the applicable license; and we may charge you the cost thereof unless prohibited by the license) to provide you with a copy of such source code; and to accept such offer send a letter requesting such source code (please be specific by identifying the particular Xilinx Software you are inquiring about (name and version number), to: Xilinx, Inc., Legal Department, Attention: Software Compliance Officer, 2100 Logic Drive, San Jose, CA U.S.A. 95124.</p> </section> <section id="conda-packages"> -<h2>Conda Packages<a class="headerlink" href="#conda-packages" title="Permalink to this heading">¶</a></h2> +<h2>Conda Packages<a class="headerlink" href="#conda-packages" title="Permalink to this headline">¶</a></h2> <p>Following is a list of Conda packages used by Vitis AI:</p> <ol class="arabic simple"> <li><p>_libgcc_mutex</p></li> @@ -342,7 +346,7 @@ <h2>Conda Packages<a class="headerlink" href="#conda-packages" title="Permalink <p>If you cannot access the internet pages for Anaconda’s main source code repositories and obtain the source code for the Anaconda software packages in this distribution, then you may obtain the source code <a class="reference external" href="https://www.xilinx.com/products/design-tools/guest-resources.html">here</a>. Xilinx hereby offers (which offer is valid for as long as required by the applicable license; and we may charge you the cost thereof unless prohibited by the license) to provide you with a copy of such source code; and to accept such offer send a letter requesting such source code (please be specific by identifying the particular Xilinx Software you are inquiring about (name and version number), to: Xilinx, Inc., Legal Department, Attention: Software Compliance Officer, 2100 Logic Drive, San Jose, CA U.S.A. 95124.</p> </section> <section id="xrt"> -<h2>XRT<a class="headerlink" href="#xrt" title="Permalink to this heading">¶</a></h2> +<h2>XRT<a class="headerlink" href="#xrt" title="Permalink to this headline">¶</a></h2> <p>XRT userspace code includes software developed by the following (Apache 2.0)</p> <ul class="simple"> <li><p>Copyright (C) 2019 Samsung Semiconductor, Inc.</p></li> diff --git a/docsrc/build/html/docs/workflow-model-deployment.html b/docsrc/build/html/docs/workflow-model-deployment.html index 936b4ab90..8dfca6c3f 100644 --- a/docsrc/build/html/docs/workflow-model-deployment.html +++ b/docsrc/build/html/docs/workflow-model-deployment.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../" id="documentation_options" src="../_static/documentation_options.js"></script> <script src="../_static/jquery.js"></script> <script src="../_static/underscore.js"></script> - <script src="../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../_static/doctools.js"></script> <script src="../_static/js/theme.js"></script> <link rel="index" title="Index" href="../genindex.html" /> @@ -73,6 +72,11 @@ <li class="toctree-l1"><a class="reference internal" href="quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul class="current"> <li class="toctree-l1"><a class="reference internal" href="workflow.html">Overview</a></li> @@ -144,9 +148,9 @@ <div itemprop="articleBody"> <section id="deploying-a-model"> -<h1>Deploying a Model<a class="headerlink" href="#deploying-a-model" title="Permalink to this heading">¶</a></h1> +<h1>Deploying a Model<a class="headerlink" href="#deploying-a-model" title="Permalink to this headline">¶</a></h1> <section id="workflow-for-deploying-a-model"> -<h2>Workflow for Deploying a Model<a class="headerlink" href="#workflow-for-deploying-a-model" title="Permalink to this heading">¶</a></h2> +<h2>Workflow for Deploying a Model<a class="headerlink" href="#workflow-for-deploying-a-model" title="Permalink to this headline">¶</a></h2> <p>Once you have successfully quantized and compiled your model for a specific DPU, the next task is to deploy that model on the target. Follow these steps in this process:</p> <ol class="arabic simple"> <li><p>Test your model and application software on one of the AMD platforms for which a pre-built DPU image is provided. Ideally, this would be the platform and DPU that closely matches your final production deployment.</p></li> @@ -167,7 +171,7 @@ <h2>Workflow for Deploying a Model<a class="headerlink" href="#workflow-for-depl </div> </section> <section id="embedded-versus-data-center-workflows"> -<h2>Embedded versus Data Center Workflows<a class="headerlink" href="#embedded-versus-data-center-workflows" title="Permalink to this heading">¶</a></h2> +<h2>Embedded versus Data Center Workflows<a class="headerlink" href="#embedded-versus-data-center-workflows" title="Permalink to this headline">¶</a></h2> <p>The Vitis AI workflow is largely unified for Embedded and Data Center applications but diverges at the deployment stage. There are various reasons for this divergence, including the following:</p> <ul class="simple"> <li><p>Zynq™ Ultrascale+™, Kria™, and Versal™ SoC applications leverage the on-chip processor subsystem (APU) as the host control node for model deployment. Considering optimization and <a class="reference internal" href="#whole-application-acceleration"><span class="std std-ref">Whole Application Acceleration</span></a> of subgraphs deployed on the SoC APU is crucial.</p></li> @@ -178,7 +182,7 @@ <h2>Embedded versus Data Center Workflows<a class="headerlink" href="#embedded-v </ul> </section> <section id="vitis-ai-library"> -<span id="id1"></span><h2>Vitis AI Library<a class="headerlink" href="#vitis-ai-library" title="Permalink to this heading">¶</a></h2> +<span id="id1"></span><h2>Vitis AI Library<a class="headerlink" href="#vitis-ai-library" title="Permalink to this headline">¶</a></h2> <p>The Vitis AI Library provides you with a head-start on model deployment. While it is possible for developers to directly leverage the Vitis AI Runtime APIs to deploy a model on AMD platforms, it is often more beneficial to start with a ready-made example that incorporates the various elements of a typical application, including:</p> <ul class="simple"> <li><p>Simplified CPU-based pre and post-processing implementations.</p></li> @@ -198,7 +202,7 @@ <h2>Embedded versus Data Center Workflows<a class="headerlink" href="#embedded-v </ul> </section> <section id="vitis-ai-runtime"> -<span id="id2"></span><h2>Vitis AI Runtime<a class="headerlink" href="#vitis-ai-runtime" title="Permalink to this heading">¶</a></h2> +<span id="id2"></span><h2>Vitis AI Runtime<a class="headerlink" href="#vitis-ai-runtime" title="Permalink to this headline">¶</a></h2> <p>The Vitis AI Runtime (VART) is a set of API functions that support the integration of the DPU into software applications. VART provides a unified high-level runtime for both Data Center and Embedded targets. Key features of the Vitis AI Runtime API are:</p> <ul class="simple"> <li><p>Asynchronous submission of jobs to the DPU.</p></li> @@ -214,7 +218,7 @@ <h2>Embedded versus Data Center Workflows<a class="headerlink" href="#embedded-v </ul> </section> <section id="whole-application-acceleration"> -<span id="id3"></span><h2>Whole Application Acceleration<a class="headerlink" href="#whole-application-acceleration" title="Permalink to this heading">¶</a></h2> +<span id="id3"></span><h2>Whole Application Acceleration<a class="headerlink" href="#whole-application-acceleration" title="Permalink to this headline">¶</a></h2> <p>It is typical in machine learning applications to require some degree of pre-processing, such as illustrated in the following example:</p> <figure class="align-default" id="id6"> <a class="reference internal image-reference" href="../_images/waa_preprocess.PNG"><img alt="../_images/waa_preprocess.PNG" src="../_images/waa_preprocess.PNG" style="width: 1300px;" /></a> @@ -235,7 +239,7 @@ <h2>Embedded versus Data Center Workflows<a class="headerlink" href="#embedded-v SDK</a>, which, while not part of Vitis AI, offers many important features for developing end-to-end video analytics pipelines that employ multi-stage (cascaded) AI pipelines. VVAS also applies to designs that leverage video decoding, transcoding, RTSP streaming, and CMOS sensor interfaces. Another important differentiator of VVAS is that it directly enables software developers to leverage <a class="reference external" href="https://gstreamer.freedesktop.org/">GStreamer</a> commands to interact with the video pipeline.</p> </section> <section id="vitis-ai-profiler"> -<span id="id4"></span><h2>Vitis AI Profiler<a class="headerlink" href="#vitis-ai-profiler" title="Permalink to this heading">¶</a></h2> +<span id="id4"></span><h2>Vitis AI Profiler<a class="headerlink" href="#vitis-ai-profiler" title="Permalink to this headline">¶</a></h2> <p>The Vitis AI Profiler is a set of tools that enables you to profile and visualize AI applications based on VART. The Vitis AI Profiler is easy to use as it can be enabled post-deployment and requires no code changes. Specifically, the Vitis AI Profiler supports profiling and visualization of machine learning pipelines deployed on Embedded targets with the Vitis AI Runtime. In a typical machine learning pipeline we find neural network operations that can be accelerated on the DPU, as well as functions such as pre-processing or custom operators that are not supported by the DPU. These additional functions may be implemented as a C/C++ kernel or accelerated using Whole-Application Acceleration or customized RTL. Using the Vitis AI Profiler is critical for developers to optimize the entire inference pipeline iteratively. The Vitis AI Profiler lets the developer visualize and analyze the system and graph-level performance bottlenecks.</p> <p>The Vitis AI Profiler is a component of the Vitis AI toolchain installed in the VAI Docker. The Source code is not provided.</p> <ul class="simple"> diff --git a/docsrc/build/html/docs/workflow-model-development.html b/docsrc/build/html/docs/workflow-model-development.html index 5388e391a..2138612f5 100644 --- a/docsrc/build/html/docs/workflow-model-development.html +++ b/docsrc/build/html/docs/workflow-model-development.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../" id="documentation_options" src="../_static/documentation_options.js"></script> <script src="../_static/jquery.js"></script> <script src="../_static/underscore.js"></script> - <script src="../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../_static/doctools.js"></script> <script src="../_static/js/theme.js"></script> <link rel="index" title="Index" href="../genindex.html" /> @@ -73,6 +72,11 @@ <li class="toctree-l1"><a class="reference internal" href="quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul class="current"> <li class="toctree-l1"><a class="reference internal" href="workflow.html">Overview</a></li> @@ -159,9 +163,9 @@ <div itemprop="articleBody"> <section id="developing-a-model"> -<h1>Developing a Model<a class="headerlink" href="#developing-a-model" title="Permalink to this heading">¶</a></h1> +<h1>Developing a Model<a class="headerlink" href="#developing-a-model" title="Permalink to this headline">¶</a></h1> <section id="model-inspector"> -<span id="id1"></span><h2>Model Inspector<a class="headerlink" href="#model-inspector" title="Permalink to this heading">¶</a></h2> +<span id="id1"></span><h2>Model Inspector<a class="headerlink" href="#model-inspector" title="Permalink to this headline">¶</a></h2> <p>The Vitis AI quantizer and compiler are designed to parse and compile operators within a frozen FP32 graph for acceleration in hardware. However, novel neural network architectures, operators, and activation types are constantly being developed and optimized for prediction accuracy and performance. In this context, it is important to understand that while AMD strives to provide support for a wide variety of neural network architectures and provide these graphs for user reference, only some operators are supported for acceleration on the DPU. Furthermore, specific layer ordering requirements enable Vitis AI model deployment.</p> <p>In the early phases of development, it is highly recommended that the developer leverage the Vitis AI Model Inspector as an initial sanity check to confirm that the operators and sequence of operators in the graph is compatible with Vitis AI.</p> <figure class="align-default" id="id7"> @@ -176,7 +180,7 @@ <h1>Developing a Model<a class="headerlink" href="#developing-a-model" title="Pe <li><p>If your graph uses operators that are not natively supported by your specific DPU target, see the <a class="reference internal" href="#operator-support"><span class="std std-ref">Operator Support</span></a> section.</p></li> </ul> <section id="operator-support"> -<span id="id2"></span><h3>Operator Support<a class="headerlink" href="#operator-support" title="Permalink to this heading">¶</a></h3> +<span id="id2"></span><h3>Operator Support<a class="headerlink" href="#operator-support" title="Permalink to this headline">¶</a></h3> <p>Several paths are available to leverage an operator not supported for acceleration on the DPU, including C/C++ code or custom HLS or RTL kernels. However, these DIY paths pose specific challenges related to the partitioning of a trained model. For most developers, a workflow that supports automated partitioning is preferred.</p> <div class="admonition important"> <p class="admonition-title">Important</p> @@ -195,7 +199,7 @@ <h1>Developing a Model<a class="headerlink" href="#developing-a-model" title="Pe </section> </section> <section id="model-optimization"> -<span id="id3"></span><h2>Model Optimization<a class="headerlink" href="#model-optimization" title="Permalink to this heading">¶</a></h2> +<span id="id3"></span><h2>Model Optimization<a class="headerlink" href="#model-optimization" title="Permalink to this headline">¶</a></h2> <p>The Vitis AI Optimizer exploits the notion of sparsity to reduce the overall computational complexity for inference. Many deep neural network topologies employ significant levels of redundancy. This is particularly true when the network backbone is optimized for prediction accuracy with training datasets supporting many classes. In many cases, this redundancy can be reduced by “pruning” some of the operations out of the graph. There are two forms of pruning - channel (kernel) pruning and sparse pruning.</p> <div class="admonition important"> <p class="admonition-title">Important</p> @@ -217,17 +221,17 @@ <h1>Developing a Model<a class="headerlink" href="#developing-a-model" title="Pe <p>The Vitis AI Optimizer is a component of the Vitis AI toolchain, installed in the VAI Docker, and is also provided as <a class="reference external" href="https://github.com/Xilinx/Vitis-AI/tree/v3.5/src/vai_optimizer">open-source</a>.</p> <section id="channel-pruning"> -<h3>Channel Pruning<a class="headerlink" href="#channel-pruning" title="Permalink to this heading">¶</a></h3> +<h3>Channel Pruning<a class="headerlink" href="#channel-pruning" title="Permalink to this headline">¶</a></h3> <p>Current Vitis AI DPUs can take advantage of channel pruning to significantly reduce the computational cost for inference, often with little or no prediction accuracy loss. In contrast to sparse pruning, which requires that the computation of specific activations within a channel or layer be “skipped” at inference time, channel pruning requires no special hardware to address the problem of these “skipped” computations.</p> <p>The Vitis AI Optimizer is an optional component of the Vitis AI flow. In general it is possible to reduce the overall computational cost by a factor of more than 2x, and in some cases by a factor of 10x, with minimal losses in prediction accuracy. In many cases, there is actually an improvement in prediction accuracy during the first few iterations of pruning. While the fine-tuning step is in part responsible for this improvement, it is not the only explanation. Such accuracy improvements will not come as a surprise to developers who are familiar with the concept of overfitting, a phenomena that can occur when a large, deep, network is trained on a dataset that has a limited number of classes.</p> <p>Many pre-trained networks available in the AMD <a class="reference internal" href="workflow-model-zoo.html"><span class="doc">Model Zoo</span></a> are pruned using this technique.</p> </section> <section id="neural-architecture-search"> -<h3>Neural Architecture Search<a class="headerlink" href="#neural-architecture-search" title="Permalink to this heading">¶</a></h3> +<h3>Neural Architecture Search<a class="headerlink" href="#neural-architecture-search" title="Permalink to this headline">¶</a></h3> <p>In addition to channel pruning, a technique coined “Once-for-All” training is supported in Vitis AI. The concept of Neural Architecture Search (NAS) is that for any given inference task and dataset, there exist in the potential design space a number of network architectures that are both efficient and have high prediction scores. A developer often starts with a standard backbone familiar to them, such as ResNet50, and trains that network for the best accuracy. However, there are many cases when a network topology with a much lower computational cost may have offered similar or better performance. For the developer, the effort to train multiple networks with the same dataset (sometimes going so far as to make this a training hyperparameter) is not an efficient method to select the best network topology. “Once-for-All” addresses this challenge by employing a single training pass and novel selection techniques.</p> </section> <section id="nas-and-ai-optimizer-related-resources"> -<h3>NAS and AI Optimizer Related Resources<a class="headerlink" href="#nas-and-ai-optimizer-related-resources" title="Permalink to this heading">¶</a></h3> +<h3>NAS and AI Optimizer Related Resources<a class="headerlink" href="#nas-and-ai-optimizer-related-resources" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p>Sample scripts for channel pruning can be found in <a class="reference external" href="https://github.com/Xilinx/Vitis-AI/tree/v3.5/examples/vai_optimizer">examples</a></p></li> <li><p>For additional details on channel pruning leveraging the Vitis AI Optimizer, refer to <a class="reference external" href="https://docs.xilinx.com/access/sources/dita/map?isLatest=true&ft:locale=en-US&url=ug1333-ai-optimizer">Vitis AI Optimizer User Guide</a>.</p></li> @@ -238,12 +242,12 @@ <h3>NAS and AI Optimizer Related Resources<a class="headerlink" href="#nas-and-a </section> </section> <section id="model-quantization"> -<span id="id4"></span><h2>Model Quantization<a class="headerlink" href="#model-quantization" title="Permalink to this heading">¶</a></h2> +<span id="id4"></span><h2>Model Quantization<a class="headerlink" href="#model-quantization" title="Permalink to this headline">¶</a></h2> <p>Deployment of neural networks on AMD DPUs is made more efficient through the use of integer quantization to reduce the energy cost, memory footprint, and data path bandwidth required for inference.</p> <p>AMD general-purpose CNN-focused DPUs leverage INT8 (8-bit integer) quantization of a trained network. In many real-world datasets, the distribution of weights and activations at a given layer in the network typically spans a much narrower range than can be represented by a 32-bit floating point number. It is thus possible to accurately represent the distribution of weights and activations at a given layer as integer values by simply applying a scaling factor. The impact on prediction accuracy of INT8 quantization is typically low, often less than 1%. This is true in many applications in which the input data consists of images and video, point-cloud data, and input data from various sampled-data systems, including specific audio and RF applications.</p> <section id="quantization-process"> -<span id="id5"></span><h3>Quantization Process<a class="headerlink" href="#quantization-process" title="Permalink to this heading">¶</a></h3> +<span id="id5"></span><h3>Quantization Process<a class="headerlink" href="#quantization-process" title="Permalink to this headline">¶</a></h3> <p>The Vitis AI Quantizer, integrated as a component of either TensorFlow or PyTorch, performs a calibration step in which a subset of the original training data (typically 100-1000 samples, no labels required) is forward propagated through the network to analyze the distribution of the activations at each layer. The weights and activations are then quantized as 8-bit integer values. This process is referred to as Post-Training Quantization. Following quantization, the prediction accuracy of the network is re-tested using data from the validation set. If the accuracy is acceptable, the quantization process is complete.</p> <p>With certain network topologies, the developer may experience excessive accuracy loss. In these cases, a technique referred to as QAT (Quantization Aware Training) can be used with the source training data to execute several back propagation passes to optimize (fine-tune) the quantized weights.</p> <figure class="align-default" id="id10"> @@ -255,7 +259,7 @@ <h3>NAS and AI Optimizer Related Resources<a class="headerlink" href="#nas-and-a <p>The Vitis AI Quantizer is a component of the Vitis AI toolchain, installed in the VAI Docker, and is also provided as <a class="reference external" href="https://github.com/Xilinx/Vitis-AI/tree/v3.5/src/vai_quantizer">open-source</a>.</p> <section id="quantization-related-resources"> -<h4>Quantization Related Resources<a class="headerlink" href="#quantization-related-resources" title="Permalink to this heading">¶</a></h4> +<h4>Quantization Related Resources<a class="headerlink" href="#quantization-related-resources" title="Permalink to this headline">¶</a></h4> <ul class="simple"> <li><p>For additional details on the Vitis AI Quantizer, refer the “Quantizing the Model” chapter in the <a class="reference external" href="https://docs.xilinx.com/access/sources/dita/map?isLatest=true&ft:locale=en-US&url=ug1414-vitis-ai">Vitis AI User Guide</a>.</p></li> <li><p>TensorFlow 2.x examples are available <a class="reference external" href="https://github.com/Xilinx/Vitis-AI/tree/v3.5/examples/vai_quantizer/tensorflow2x">here</a></p></li> @@ -265,7 +269,7 @@ <h4>Quantization Related Resources<a class="headerlink" href="#quantization-rela </section> </section> <section id="model-compilation"> -<span id="id6"></span><h2>Model Compilation<a class="headerlink" href="#model-compilation" title="Permalink to this heading">¶</a></h2> +<span id="id6"></span><h2>Model Compilation<a class="headerlink" href="#model-compilation" title="Permalink to this headline">¶</a></h2> <p>Once the model has been quantized, the Vitis AI Compiler is used to construct an internal computation graph as an intermediate representation (IR). This internal graph consists of independent control and data flow representations. The compiler then performs multiple optimizations; for example, batch normalization operations are fused with convolution when the convolution operator precedes the normalization operator. As the DPU supports multiple dimensions of parallelism, efficient instruction scheduling is key to exploiting the inherent parallelism and potential for data reuse in the graph. The Vitis AI Compiler addresses such optimizations.</p> <p>The intermediate representation leveraged by Vitis AI is “XIR” (Xilinx Intermediate Representation). The XIR-based compiler takes the quantized TensorFlow or PyTorch model as input. First, the compiler transforms the input model into the XIR format. Most of the variations between different frameworks are eliminated at this stage. The compiler then applies optimizations to the graph and, as necessary, will partition it into several subgraphs based on whether the subgraph operators can be executed on the DPU. Architecture-aware optimizations are applied for each subgraph. For the DPU subgraph, the compiler generates the instruction stream. Finally, the optimized graph is serialized into a compiled .xmodel file.</p> <p>The compilation process leverages an additional input as a DPU arch.json file. This file communicates the target architecture to the compiler, hence, the capabilities of the specific DPU for which the graph will be compiled. The compiled model will not run on the target if the correct <code class="docutils literal notranslate"><span class="pre">arch.json</span></code> file is not used. Runtime errors will occur if the model is not compiled for the correct DPU architecture. The implication is that models compiled for a specific target DPU must be recompiled if they are to be deployed on a different DPU architecture.</p> @@ -283,7 +287,7 @@ <h4>Quantization Related Resources<a class="headerlink" href="#quantization-rela </figure> <p>The Vitis AI Compiler is a component of the Vitis AI toolchain, installed in the VAI Docker. The source code for the compiler is not provided.</p> <section id="compiler-related-resources"> -<h3>Compiler Related Resources<a class="headerlink" href="#compiler-related-resources" title="Permalink to this heading">¶</a></h3> +<h3>Compiler Related Resources<a class="headerlink" href="#compiler-related-resources" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><p>For more information on Vitis AI Compiler and XIR refer to the “Compiling the Model” chapter in the <a class="reference external" href="https://docs.xilinx.com/access/sources/dita/map?isLatest=true&ft:locale=en-US&url=ug1414-vitis-ai">Vitis AI User Guide</a>.</p></li> <li><p>PyXIR, which supports TVM and ONNXRuntime integration is available as <a class="reference external" href="https://github.com/Xilinx/pyxir">open source</a>.</p></li> diff --git a/docsrc/build/html/docs/workflow-model-zoo.html b/docsrc/build/html/docs/workflow-model-zoo.html index a697e5a99..da85e9c92 100644 --- a/docsrc/build/html/docs/workflow-model-zoo.html +++ b/docsrc/build/html/docs/workflow-model-zoo.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../" id="documentation_options" src="../_static/documentation_options.js"></script> <script src="../_static/jquery.js"></script> <script src="../_static/underscore.js"></script> - <script src="../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../_static/doctools.js"></script> <script src="../_static/js/theme.js"></script> <link rel="index" title="Index" href="../genindex.html" /> @@ -73,6 +72,11 @@ <li class="toctree-l1"><a class="reference internal" href="quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul class="current"> <li class="toctree-l1"><a class="reference internal" href="workflow.html">Overview</a></li> @@ -154,14 +158,14 @@ <div itemprop="articleBody"> <section id="vitis-ai-model-zoo"> -<span id="workflow-model-zoo"></span><h1>Vitis AI Model Zoo<a class="headerlink" href="#vitis-ai-model-zoo" title="Permalink to this heading">¶</a></h1> +<span id="workflow-model-zoo"></span><h1>Vitis AI Model Zoo<a class="headerlink" href="#vitis-ai-model-zoo" title="Permalink to this headline">¶</a></h1> <p>The Vitis™ AI Model Zoo, incorporated into the Vitis AI repository, includes optimized deep learning models to speed up the deployment of deep learning inference on AMD platforms. These models cover different applications, including but not limited to ADAS/AD, medical, video surveillance, robotics, data center, and so on. You can get started with these free pre-trained models to enjoy the benefits of deep learning acceleration.</p> <section id="vitis-ai-copyleft-model-zoo"> -<h2>Vitis AI Copyleft Model Zoo<a class="headerlink" href="#vitis-ai-copyleft-model-zoo" title="Permalink to this heading">¶</a></h2> +<h2>Vitis AI Copyleft Model Zoo<a class="headerlink" href="#vitis-ai-copyleft-model-zoo" title="Permalink to this headline">¶</a></h2> <p>Many open-source models are released under reciprocal license terms which are not compatible with Apache 2.0. In order to faciliate the support of such models, and clearly distinguish the source license for each, we have created a separate Model Zoo repository. Users will find the training code for these models (for example, YOLOv7) in the <a class="reference external" href="https://github.com/Xilinx/Vitis-AI-Copyleft-Model-Zoo">Vitis AI Copyleft Model Zoo</a>. All other models are found in the primary Vitis AI repository.</p> </section> <section id="model-zoo-details-and-performance"> -<h2>Model Zoo Details and Performance<a class="headerlink" href="#model-zoo-details-and-performance" title="Permalink to this heading">¶</a></h2> +<h2>Model Zoo Details and Performance<a class="headerlink" href="#model-zoo-details-and-performance" title="Permalink to this headline">¶</a></h2> <p>All the models in the Model Zoo are deployed on AMD adaptable hardware with <a class="reference external" href="https://github.com/Xilinx/Vitis-AI">Vitis AI</a> and the <a class="reference external" href="https://github.com/Xilinx/Vitis-AI/tree/v3.5/examples/vai_library">Vitis AI Library</a>. The performance benchmark data includes end-to-end throughput and latency for each model, targeting various boards with varied DPU configurations.</p> <p>To make the job of using the Model Zoo a little easier, we have provided a downloadable spreadsheet and an online table that incorporates key data about the Model Zoo models. The spreadsheet and tables include comprehensive information about all models, including links to the original papers and datasets, source framework, input size, computational cost (GOPs), and float and quantized accuracy. <strong>You can download the spreadsheet</strong> <a class="reference download internal" download="" href="../_downloads/ff9554ff9ff6240811c20ede15113dbd/ModelZoo_Github.xlsx"><code class="xref download docutils literal notranslate"><span class="pre">here</span></code></a>.</p> <a href="reference/ModelZoo_Github_web.htm"><h4>Click here to view the Model Zoo Details & Performance table online.</h4></a><br><br><div class="admonition note"> @@ -178,10 +182,10 @@ <h2>Model Zoo Details and Performance<a class="headerlink" href="#model-zoo-deta </div> </section> <section id="model-file-nomenclature"> -<h2>Model File Nomenclature<a class="headerlink" href="#model-file-nomenclature" title="Permalink to this heading">¶</a></h2> +<h2>Model File Nomenclature<a class="headerlink" href="#model-file-nomenclature" title="Permalink to this headline">¶</a></h2> <p>When downloading and using models from the Model Zoo, it will be important to you to understand the nomenclature used for each file.</p> <section id="model-file-nomenclature-decoder"> -<h3>Model File Nomenclature Decoder<a class="headerlink" href="#model-file-nomenclature-decoder" title="Permalink to this heading">¶</a></h3> +<h3>Model File Nomenclature Decoder<a class="headerlink" href="#model-file-nomenclature-decoder" title="Permalink to this headline">¶</a></h3> <p>AMD Model Zoo file names assume the format: <cite>F_M_(D)_H_W_(P)_C_V</cite>, where:</p> <ul class="simple"> <li><p><cite>F</cite> specifies the training framework: <cite>tf</cite> is TensorFlow 1.x, <cite>tf2</cite> is TensorFlow 2.x, <cite>pt</cite> is PyTorch</p></li> @@ -197,14 +201,14 @@ <h3>Model File Nomenclature Decoder<a class="headerlink" href="#model-file-nomen </section> </section> <section id="model-download"> -<h2>Model Download<a class="headerlink" href="#model-download" title="Permalink to this heading">¶</a></h2> +<h2>Model Download<a class="headerlink" href="#model-download" title="Permalink to this headline">¶</a></h2> <div class="admonition note"> <p class="admonition-title">Note</p> <p>Each model is associated with a <cite>.yaml</cite> file encapsulating the download link and MD5 checksum for a tar.gz file. These YAML files are in the Vitis AI repository <code class="docutils literal notranslate"><span class="pre">/model_zoo/model-list</span></code>. There is a separate tar.gz file for each specific target platform. A simple way to download an individual model is to use the URLs provided in the .yaml file. This can be useful if you want to download and inspect the model outside a Python environment.</p> </div> <p>The download package includes the pre-compiled, pre-trained model, which you can leverage as a base reference (layer types, activation types, layer ordering) for your implementation or directly deploy that model on an AMD target.</p> <section id="automated-download-script"> -<h3>Automated Download Script<a class="headerlink" href="#automated-download-script" title="Permalink to this heading">¶</a></h3> +<h3>Automated Download Script<a class="headerlink" href="#automated-download-script" title="Permalink to this headline">¶</a></h3> <p>The Vitis AI Model Zoo repository provides a Python <code class="docutils literal notranslate"><span class="pre">/model_zoo/downloader.py</span></code> that quickly downloads specific models.</p> <div class="admonition note"> <p class="admonition-title">Note</p> @@ -223,15 +227,15 @@ <h3>Automated Download Script<a class="headerlink" href="#automated-download-scr <li><p>Select the desired target hardware platform for the version of the model you need.</p> <p>For example, after running downloader.py, input <code class="docutils literal notranslate"><span class="pre">tf</span> <span class="pre">resnet</span></code> and you will see a list of models that include the text <cite>resnet</cite>:</p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="mi">0</span><span class="p">:</span> <span class="nb">all</span> -<span class="mi">1</span><span class="p">:</span> <span class="n">tf_resnetv1_50_imagenet_224_224_6</span><span class="mf">.97</span><span class="n">G_3</span><span class="mf">.0</span> -<span class="mi">2</span><span class="p">:</span> <span class="n">tf_resnetv1_101_imagenet_224_224_14</span><span class="mf">.4</span><span class="n">G_3</span><span class="mf">.0</span> -<span class="mi">3</span><span class="p">:</span> <span class="n">tf_resnetv1_152_imagenet_224_224_21</span><span class="mf">.83</span><span class="n">G_3</span><span class="mf">.0</span> +<span class="mi">1</span><span class="p">:</span> <span class="n">tf_resnetv1_50_imagenet_224_224_6</span><span class="o">.</span><span class="mi">97</span><span class="n">G_3</span><span class="o">.</span><span class="mi">0</span> +<span class="mi">2</span><span class="p">:</span> <span class="n">tf_resnetv1_101_imagenet_224_224_14</span><span class="o">.</span><span class="mi">4</span><span class="n">G_3</span><span class="o">.</span><span class="mi">0</span> +<span class="mi">3</span><span class="p">:</span> <span class="n">tf_resnetv1_152_imagenet_224_224_21</span><span class="o">.</span><span class="mi">83</span><span class="n">G_3</span><span class="o">.</span><span class="mi">0</span> <span class="o">......</span> </pre></div> </div> <p>Proceed by entering one of the numbers from the list. As an example, if you input ‘1’ the script will list all options that match your selection:</p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="mi">0</span><span class="p">:</span> <span class="nb">all</span> -<span class="mi">1</span><span class="p">:</span> <span class="n">tf_resnetv1_50_imagenet_224_224_6</span><span class="mf">.97</span><span class="n">G_3</span><span class="mf">.0</span> <span class="n">GPU</span> +<span class="mi">1</span><span class="p">:</span> <span class="n">tf_resnetv1_50_imagenet_224_224_6</span><span class="o">.</span><span class="mi">97</span><span class="n">G_3</span><span class="o">.</span><span class="mi">0</span> <span class="n">GPU</span> <span class="mi">2</span><span class="p">:</span> <span class="n">resnet_v1_50_tf</span> <span class="n">ZCU102</span> <span class="o">&</span> <span class="n">ZCU104</span> <span class="o">&</span> <span class="n">KV260</span> <span class="mi">3</span><span class="p">:</span> <span class="n">resnet_v1_50_tf</span> <span class="n">VCK190</span> <span class="mi">4</span><span class="p">:</span> <span class="n">resnet_v1_50_tf</span> <span class="n">vck50006pe</span><span class="o">-</span><span class="n">DPUCVDX8H</span> @@ -245,10 +249,10 @@ <h3>Automated Download Script<a class="headerlink" href="#automated-download-scr </ol> </section> <section id="model-directory-structure"> -<h3>Model Directory Structure<a class="headerlink" href="#model-directory-structure" title="Permalink to this heading">¶</a></h3> +<h3>Model Directory Structure<a class="headerlink" href="#model-directory-structure" title="Permalink to this headline">¶</a></h3> <p>Once you have downloaded one or more models, you can extract the model archive into your selected workspace.</p> <section id="tensorflow-model-directory-structure"> -<h4>Tensorflow Model Directory Structure<a class="headerlink" href="#tensorflow-model-directory-structure" title="Permalink to this heading">¶</a></h4> +<h4>Tensorflow Model Directory Structure<a class="headerlink" href="#tensorflow-model-directory-structure" title="Permalink to this headline">¶</a></h4> <p>TensorFlow models have the following directory structure:</p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span>├── code # Contains test code that can execute the model on the target and showcase model performance. │ @@ -269,7 +273,7 @@ <h4>Tensorflow Model Directory Structure<a class="headerlink" href="#tensorflow- </div> </section> <section id="pytorch-model-directory-structure"> -<h4>Pytorch Model Directory Structure<a class="headerlink" href="#pytorch-model-directory-structure" title="Permalink to this heading">¶</a></h4> +<h4>Pytorch Model Directory Structure<a class="headerlink" href="#pytorch-model-directory-structure" title="Permalink to this headline">¶</a></h4> <p>PyTorch models have the following directory structure:</p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span>├── code # Contains test and training code. │ @@ -309,7 +313,7 @@ <h4>Pytorch Model Directory Structure<a class="headerlink" href="#pytorch-model- </section> </section> <section id="model-retraining"> -<h2>Model Retraining<a class="headerlink" href="#model-retraining" title="Permalink to this heading">¶</a></h2> +<h2>Model Retraining<a class="headerlink" href="#model-retraining" title="Permalink to this headline">¶</a></h2> <p>AMD provides the original floating point model and training scripts for each model in the Model Zoo. Review the <cite>.yaml</cite> file for your target model to locate the download link for the “GPU” model.</p> <p>Here is an example:</p> <blockquote> diff --git a/docsrc/build/html/docs/workflow-third-party.html b/docsrc/build/html/docs/workflow-third-party.html index 33d6d5a42..3ecb65587 100644 --- a/docsrc/build/html/docs/workflow-third-party.html +++ b/docsrc/build/html/docs/workflow-third-party.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../" id="documentation_options" src="../_static/documentation_options.js"></script> <script src="../_static/jquery.js"></script> <script src="../_static/underscore.js"></script> - <script src="../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../_static/doctools.js"></script> <script src="../_static/js/theme.js"></script> <link rel="index" title="Index" href="../genindex.html" /> @@ -73,6 +72,11 @@ <li class="toctree-l1"><a class="reference internal" href="quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="workflow.html">Overview</a></li> @@ -141,10 +145,10 @@ <div itemprop="articleBody"> <section id="third-party-inference-stack-integration"> -<h1>Third-party Inference Stack Integration<a class="headerlink" href="#third-party-inference-stack-integration" title="Permalink to this heading">¶</a></h1> +<h1>Third-party Inference Stack Integration<a class="headerlink" href="#third-party-inference-stack-integration" title="Permalink to this headline">¶</a></h1> <p>Vitis™ AI provides integration support for TVM, ONNX Runtime, and TensorFlow Lite workflows. The developers can leverage these workflows through the subfolders. A brief description of these workflows is as follows:</p> <section id="tvm"> -<h2>TVM<a class="headerlink" href="#tvm" title="Permalink to this heading">¶</a></h2> +<h2>TVM<a class="headerlink" href="#tvm" title="Permalink to this headline">¶</a></h2> <p><a class="reference external" href="https://tvm.apache.org/">TVM.ai</a> is an Apache Software Foundation project and inference stack that can parse machine learning models from almost any training framework. The model is converted to an intermediate representation (TVM relay), and the stack can then compile the model for various targets, including embedded SoCs, CPUs, GPUs, and x86 and x64 platforms. TVM incorporates an open-source programmable-logic accelerator, the VTA, created using the AMD HLS compiler. TVM supports partitioning a graph into several sub-graphs. These sub-graphs can be targeted to specific accelerators within the target platform (CPU, GPU, VTA, and so on) to enable heterogeneous acceleration.</p> <p>The VTA is not used for the published Vitis AI - TVM workflow, instead opting to integrate the DPU for offloading compiled subgraphs. Subgraphs that can be partitioned for execution on the DPU are quantized and compiled by the Vitis AI compiler for a specific DPU target. In contrast, the TVM compiler compiles the remaining subgraphs and operations for execution on LLVM.</p> <p>For additional details of Vitis AI - TVM integration, refer <a class="reference external" href="https://tvm.apache.org/docs/how_to/deploy/vitis_ai.html">here</a>.</p> @@ -156,7 +160,7 @@ <h2>TVM<a class="headerlink" href="#tvm" title="Permalink to this heading">¶</a </figure> </section> <section id="onnx-runtime"> -<h2>ONNX Runtime<a class="headerlink" href="#onnx-runtime" title="Permalink to this heading">¶</a></h2> +<h2>ONNX Runtime<a class="headerlink" href="#onnx-runtime" title="Permalink to this headline">¶</a></h2> <p><a class="reference external" href="https://onnxruntime.ai/">ONNX Runtime</a> was devised as a cross-platform inference deployment runtime for ONNX models. ONNX Runtime provides the benefit of runtime interpretation of models represented in the ONNX intermediate representation (IR) format.</p> <p>The <a class="reference external" href="https://onnxruntime.ai/docs/execution-providers/">ONNX Runtime Execution Provider</a> framework enables the integration of customized tensor accelerator cores from any “execution provider.” Such “execution providers” are typically tensor acceleration IP blocks integrated into an SoC by the semiconductor vendor. Specific subgraphs or operations within the ONNX graph can be offloaded to that core based on the advertised capabilities of that execution provider. The ability of a given accelerator to offload operations is presented as a listing of capabilities to the ONNX Runtime.</p> <p>Starting with the release of Vitis AI 3.0, we have enhanced Vitis AI support for the ONNX Runtime. The Vitis AI Quantizer can now be leveraged to export a quantized ONNX model to the runtime where subgraphs suitable for deployment on the DPU are compiled. Remaining subgraphs are then deployed by ONNX Runtime, leveraging the AMD Versal™ and Zynq™ UltraScale+™ MPSoC APUs, or the Ryzen™ AI AMD64 cores to deploy these subgraphs. The underlying software infrastructure is named VOE or “<strong>V</strong> itis AI <strong>O</strong> NNX Runtime <strong>E</strong> ngine”. Users should refer to the section “Programming with VOE” in <a class="reference internal" href="reference/release_documentation.html"><span class="doc">UG1414</span></a> for additional information on this powerful workflow.</p> @@ -169,7 +173,7 @@ <h2>ONNX Runtime<a class="headerlink" href="#onnx-runtime" title="Permalink to t <p>For Ryzen™ AI targets which leverage the AMD XDNA™ adaptable AI architecture, the Vitis AI Execution Provider is published <a class="reference external" href="https://onnxruntime.ai/docs/execution-providers/community-maintained/Vitis-AI-ExecutionProvider.html">here</a>.</p> </section> <section id="tensorflow-lite"> -<h2>TensorFlow Lite<a class="headerlink" href="#tensorflow-lite" title="Permalink to this heading">¶</a></h2> +<h2>TensorFlow Lite<a class="headerlink" href="#tensorflow-lite" title="Permalink to this headline">¶</a></h2> <p>TensorFlow Lite has been a preferred inference solution for TensorFlow users in the embedded space for many years. TensorFlow Lite provides support for embedded ARM processors, as well as NEON tensor acceleration. TensorFlow Lite provides the benefit of runtime interpretation of models trained in TensorFlow Lite, implying that no compilation is required to execute the model on target. This has made TensorFlow Lite a convenient solution for embedded and mobile MCU targets which did not incorporate purpose-built tensor acceleration cores.</p> <p>With the addition of <a class="reference external" href="https://www.tensorflow.org/lite/performance/delegates">TensorFlow Delegates</a>, it became possible for semiconductor vendors with purpose-built tensor accelerators to integrate support into the TensorFlow Lite framework. Certain operations can be offloaded (delegated) to these specialized accelerators, repositioning TensorFlow Lite runtime interpretation as a useful workflow in the high-performance space.</p> <p>Vitis AI Delegate support is integrated as an <a class="reference external" href="https://github.com/Xilinx/Vitis-AI/tree/v3.0/third_party/tflite">experimental flow</a> in recent releases.</p> diff --git a/docsrc/build/html/docs/workflow.html b/docsrc/build/html/docs/workflow.html index 955974dbe..d4b9ff69b 100644 --- a/docsrc/build/html/docs/workflow.html +++ b/docsrc/build/html/docs/workflow.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,13 +30,12 @@ <script data-url_root="../" id="documentation_options" src="../_static/documentation_options.js"></script> <script src="../_static/jquery.js"></script> <script src="../_static/underscore.js"></script> - <script src="../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../_static/doctools.js"></script> <script src="../_static/js/theme.js"></script> <link rel="index" title="Index" href="../genindex.html" /> <link rel="search" title="Search" href="../search.html" /> <link rel="next" title="DPU IP Details and System Integration" href="workflow-system-integration.html" /> - <link rel="prev" title="Quick Start Guide for Alveo V70" href="quickstart/v70.html" /> + <link rel="prev" title="SESR-S model" href="models/super_resolution/SESR_S.html" /> </head> <body class="wy-body-for-nav"> @@ -73,6 +72,11 @@ <li class="toctree-l1"><a class="reference internal" href="quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul class="current"> <li class="toctree-l1 current"><a class="current reference internal" href="#">Overview</a><ul> @@ -140,9 +144,9 @@ <div itemprop="articleBody"> <section id="overview"> -<h1>Overview<a class="headerlink" href="#overview" title="Permalink to this heading">¶</a></h1> +<h1>Overview<a class="headerlink" href="#overview" title="Permalink to this headline">¶</a></h1> <section id="first-steps"> -<h2>First Steps<a class="headerlink" href="#first-steps" title="Permalink to this heading">¶</a></h2> +<h2>First Steps<a class="headerlink" href="#first-steps" title="Permalink to this headline">¶</a></h2> <p>So, you are a new user wondering where to start. In general, there are two primary starting points. Most users will want to start by evaluating the toolchain and running a few examples. AMD recommends that all users start by downloading and running examples on a supported target platform, and then move on to installation and evaluation of the tools.</p> <p>The two workflows are as follows:</p> <figure class="align-default" id="id1"> @@ -160,9 +164,9 @@ <h2>First Steps<a class="headerlink" href="#first-steps" title="Permalink to thi <p>If you are not familiar with AMD’s Adaptable SoC offerings, you may need better understand the features and performance of AMD Adaptable SoCs before selecting a platform. Users can review Versal™, Zynq™ Ultrascale+™ and Alveo datasheets and documentation, as well as the DPU product guides. Also important is to review the <a class="reference internal" href="workflow-model-zoo.html"><span class="doc">Vitis AI Model Zoo</span></a> performance metrics which will allow you to contrast the relative performance of each target family. If required, users may also wish to consult with a local FAE or ML Specialist to determine the ideal target product family or device for a given application.</p> </section> <section id="supported-evaluation-targets"> -<h2>Supported Evaluation Targets<a class="headerlink" href="#supported-evaluation-targets" title="Permalink to this heading">¶</a></h2> +<h2>Supported Evaluation Targets<a class="headerlink" href="#supported-evaluation-targets" title="Permalink to this headline">¶</a></h2> <p>Vitis™ AI 3.5 supports the following targets for evaluation.</p> -<table class="docutils align-default"> +<table class="colwidths-given docutils align-default"> <colgroup> <col style="width: 30%" /> <col style="width: 70%" /> @@ -201,7 +205,7 @@ <h2>Supported Evaluation Targets<a class="headerlink" href="#supported-evaluatio <footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer"> - <a href="quickstart/v70.html" class="btn btn-neutral float-left" title="Quick Start Guide for Alveo V70" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a> + <a href="models/super_resolution/SESR_S.html" class="btn btn-neutral float-left" title="SESR-S model" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a> <a href="workflow-system-integration.html" class="btn btn-neutral float-right" title="DPU IP Details and System Integration" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a> </div> diff --git a/docsrc/build/html/doxygen/api/class/classvart_1_1_base_runner.html b/docsrc/build/html/doxygen/api/class/classvart_1_1_base_runner.html index afe3c51c4..ef88cdfc2 100644 --- a/docsrc/build/html/doxygen/api/class/classvart_1_1_base_runner.html +++ b/docsrc/build/html/doxygen/api/class/classvart_1_1_base_runner.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -73,6 +72,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -144,7 +148,7 @@ <div itemprop="articleBody"> <section id="class-vart-baserunner"> -<h1>Class vart::BaseRunner<a class="headerlink" href="#class-vart-baserunner" title="Permalink to this heading">¶</a></h1> +<h1>Class vart::BaseRunner<a class="headerlink" href="#class-vart-baserunner" title="Permalink to this headline">¶</a></h1> <dl class="cpp class"> <dt class="sig sig-object cpp" id="_CPPv4I00EN4vart10BaseRunnerE"> <span id="_CPPv3I00EN4vart10BaseRunnerE"></span><span id="_CPPv2I00EN4vart10BaseRunnerE"></span><span class="k"><span class="pre">template</span></span><span class="p"><span class="pre"><</span></span><span class="k"><span class="pre">typename</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">InputType</span></span></span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="k"><span class="pre">typename</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">OutputType</span></span></span><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><a class="reference internal" href="#_CPPv4I00EN4vart10BaseRunnerE" title="vart::BaseRunner::InputType"><span class="n"><span class="pre">InputType</span></span></a><span class="p"><span class="pre">></span></span><br /><span class="target" id="classvart_1_1_base_runner"></span><span class="k"><span class="pre">class</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">BaseRunner</span></span></span><a class="headerlink" href="#_CPPv4I00EN4vart10BaseRunnerE" title="Permalink to this definition">¶</a><br /></dt> @@ -156,13 +160,13 @@ <h1>Class vart::BaseRunner<a class="headerlink" href="#class-vart-baserunner" ti <span id="_CPPv3N4vart10BaseRunner13execute_asyncE9InputType10OutputType"></span><span id="_CPPv2N4vart10BaseRunner13execute_asyncE9InputType10OutputType"></span><span id="vart::BaseRunner::execute_async__InputType.OutputType"></span><span class="target" id="classvart_1_1_base_runner_1a3a6ebaa53c9250e3c739c3c407c1c20f"></span><span class="k"><span class="pre">virtual</span></span><span class="w"> </span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">pair</span></span><span class="p"><span class="pre"><</span></span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">uint32_t</span></span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="kt"><span class="pre">int</span></span><span class="p"><span class="pre">></span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">execute_async</span></span></span><span class="sig-paren">(</span><a class="reference internal" href="#_CPPv4I00EN4vart10BaseRunnerE" title="vart::BaseRunner::InputType"><span class="n"><span class="pre">InputType</span></span></a><span class="w"> </span><span class="n sig-param"><span class="pre">input</span></span>, <a class="reference internal" href="#_CPPv4I00EN4vart10BaseRunnerE" title="vart::BaseRunner::OutputType"><span class="n"><span class="pre">OutputType</span></span></a><span class="w"> </span><span class="n sig-param"><span class="pre">output</span></span><span class="sig-paren">)</span><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="m"><span class="pre">0</span></span><a class="headerlink" href="#_CPPv4N4vart10BaseRunner13execute_asyncE9InputType10OutputType" title="Permalink to this definition">¶</a><br /></dt> <dd><p><a class="reference internal" href="../python/execute__async_8py.html#namespaceexecute__async"><span class="std std-ref">execute_async</span></a></p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>input</strong> – inputs with a customized type</p></li> <li><p><strong>output</strong> – outputs with a customized type</p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>pair<jobid, status> status 0 for exit successfully, others for customized warnings or errors </p> </dd> </dl> @@ -174,13 +178,13 @@ <h1>Class vart::BaseRunner<a class="headerlink" href="#class-vart-baserunner" ti <dd><p>wait </p> <p>modes: 1. Blocking wait for specific ID. 2. Non-blocking wait for specific ID. 3. Blocking wait for any ID. 4. Non-blocking wait for any ID</p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>jobid</strong> – job id, neg for any id, others for specific job id</p></li> <li><p><strong>timeout</strong> – timeout, neg for block for ever, 0 for non-block, pos for block with a limitation(ms).</p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>status 0 for exit successfully, others for customized warnings or errors </p> </dd> </dl> diff --git a/docsrc/build/html/doxygen/api/class/classvart_1_1_runner.html b/docsrc/build/html/doxygen/api/class/classvart_1_1_runner.html index 6e5e6456c..65d7db462 100644 --- a/docsrc/build/html/doxygen/api/class/classvart_1_1_runner.html +++ b/docsrc/build/html/doxygen/api/class/classvart_1_1_runner.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -73,6 +72,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -144,7 +148,7 @@ <div itemprop="articleBody"> <section id="class-vart-runner"> -<h1>Class vart::Runner<a class="headerlink" href="#class-vart-runner" title="Permalink to this heading">¶</a></h1> +<h1>Class vart::Runner<a class="headerlink" href="#class-vart-runner" title="Permalink to this headline">¶</a></h1> <dl class="cpp class"> <dt class="sig sig-object cpp" id="_CPPv4N4vart6RunnerE"> <span id="_CPPv3N4vart6RunnerE"></span><span id="_CPPv2N4vart6RunnerE"></span><span id="vart::Runner"></span><span class="target" id="classvart_1_1_runner"></span><span class="k"><span class="pre">class</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">Runner</span></span></span><span class="w"> </span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="k"><span class="pre">public</span></span><span class="w"> </span><a class="reference internal" href="../file/runner_8hpp.html#_CPPv44vart" title="vart"><span class="n"><span class="pre">vart</span></span></a><span class="p"><span class="pre">::</span></span><a class="reference internal" href="classvart_1_1_base_runner.html#_CPPv4I00EN4vart10BaseRunnerE" title="vart::BaseRunner"><span class="n"><span class="pre">BaseRunner</span></span></a><span class="p"><span class="pre"><</span></span><span class="k"><span class="pre">const</span></span><span class="w"> </span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">vector</span></span><span class="p"><span class="pre"><</span></span><a class="reference internal" href="classvart_1_1_tensor_buffer.html#_CPPv4N4vart12TensorBufferE" title="vart::TensorBuffer"><span class="n"><span class="pre">TensorBuffer</span></span></a><span class="p"><span class="pre">*</span></span><span class="p"><span class="pre">></span></span><span class="p"><span class="pre">&</span></span><span class="p"><span class="pre">></span></span><a class="headerlink" href="#_CPPv4N4vart6RunnerE" title="Permalink to this definition">¶</a><br /></dt> @@ -197,13 +201,13 @@ <h1>Class vart::Runner<a class="headerlink" href="#class-vart-runner" title="Per <dd><p>Executes the runner. </p> <p>This is a blocking function.</p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>input</strong> – A vector of <a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a> create by all input tensors of runner.</p></li> <li><p><strong>output</strong> – A vector of <a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a> create by all output tensors of runner.</p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>pair<jobid, status> status 0 for exit successfully, others for customized warnings or errors </p> </dd> </dl> @@ -215,13 +219,13 @@ <h1>Class vart::Runner<a class="headerlink" href="#class-vart-runner" title="Per <dd><p>Waits for the end of DPU processing. </p> <p>modes: 1. Blocking wait for specific ID. 2. Non-blocking wait for specific ID. 3. Blocking wait for any ID. 4. Non-blocking wait for any ID</p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>jobid</strong> – job id, neg for any id, others for specific job id</p></li> <li><p><strong>timeout</strong> – timeout, neg for block for ever, 0 for non-block, pos for block with a limitation(ms).</p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>status 0 for exit successfully, others for customized warnings or errors </p> </dd> </dl> @@ -235,17 +239,17 @@ <h1>Class vart::Runner<a class="headerlink" href="#class-vart-runner" title="Per Sample code:</p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">auto</span> <span class="nb">format</span> <span class="o">=</span> <span class="n">runner</span><span class="o">-></span><span class="n">get_tensor_format</span><span class="p">();</span> <span class="n">switch</span> <span class="p">(</span><span class="nb">format</span><span class="p">)</span> <span class="p">{</span> - <span class="k">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">Runner</span><span class="p">::</span><span class="n">TensorFormat</span><span class="p">::</span><span class="n">NCHW</span><span class="p">:</span> + <span class="n">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">Runner</span><span class="p">::</span><span class="n">TensorFormat</span><span class="p">::</span><span class="n">NCHW</span><span class="p">:</span> <span class="o">//</span> <span class="n">do</span> <span class="n">something</span> <span class="k">break</span><span class="p">;</span> - <span class="k">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">Runner</span><span class="p">::</span><span class="n">TensorFormat</span><span class="p">::</span><span class="n">NHWC</span><span class="p">:</span> + <span class="n">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">Runner</span><span class="p">::</span><span class="n">TensorFormat</span><span class="p">::</span><span class="n">NHWC</span><span class="p">:</span> <span class="o">//</span> <span class="n">do</span> <span class="n">something</span> <span class="k">break</span><span class="p">;</span> <span class="p">}</span> </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>TensorFormat : NHWC / HCHW</p> </dd> </dl> @@ -266,7 +270,7 @@ <h1>Class vart::Runner<a class="headerlink" href="#class-vart-runner" title="Per </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>All input tensors. A vector of raw pointer to the input tensor.</p> </dd> </dl> @@ -287,7 +291,7 @@ <h1>Class vart::Runner<a class="headerlink" href="#class-vart-runner" title="Per </div> </p> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>All output tensors. A vector of raw pointer to the output tensor.</p> </dd> </dl> @@ -298,13 +302,13 @@ <h1>Class vart::Runner<a class="headerlink" href="#class-vart-runner" title="Per <span id="_CPPv3N4vart6Runner13execute_asyncE9InputType10OutputType"></span><span id="_CPPv2N4vart6Runner13execute_asyncE9InputType10OutputType"></span><span id="vart::Runner::execute_async__InputType.OutputType"></span><span class="target" id="classvart_1_1_base_runner_1a3a6ebaa53c9250e3c739c3c407c1c20f"></span><span class="k"><span class="pre">virtual</span></span><span class="w"> </span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">pair</span></span><span class="p"><span class="pre"><</span></span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">uint32_t</span></span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="kt"><span class="pre">int</span></span><span class="p"><span class="pre">></span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">execute_async</span></span></span><span class="sig-paren">(</span><span class="n"><span class="pre">InputType</span></span><span class="w"> </span><span class="n sig-param"><span class="pre">input</span></span>, <span class="n"><span class="pre">OutputType</span></span><span class="w"> </span><span class="n sig-param"><span class="pre">output</span></span><span class="sig-paren">)</span><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="m"><span class="pre">0</span></span><a class="headerlink" href="#_CPPv4N4vart6Runner13execute_asyncE9InputType10OutputType" title="Permalink to this definition">¶</a><br /></dt> <dd><p><a class="reference internal" href="../python/execute__async_8py.html#namespaceexecute__async"><span class="std std-ref">execute_async</span></a></p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>input</strong> – inputs with a customized type</p></li> <li><p><strong>output</strong> – outputs with a customized type</p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>pair<jobid, status> status 0 for exit successfully, others for customized warnings or errors </p> </dd> </dl> @@ -324,13 +328,13 @@ <h1>Class vart::Runner<a class="headerlink" href="#class-vart-runner" title="Per </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>subgraph</strong> – XIR Subgraph </p></li> <li><p><strong>mode</strong> – 1 mode supported: ‘run’ - DPU runner. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>An instance of DPU runner.</p> </dd> </dl> @@ -341,14 +345,14 @@ <h1>Class vart::Runner<a class="headerlink" href="#class-vart-runner" title="Per <span id="_CPPv3N4vart6Runner24create_runner_with_attrsEPKN3xir8SubgraphEPN3xir5AttrsE"></span><span id="_CPPv2N4vart6Runner24create_runner_with_attrsEPKN3xir8SubgraphEPN3xir5AttrsE"></span><span id="vart::Runner::create_runner_with_attrs__xir::SubgraphCP.xir::AttrsP"></span><span class="target" id="classvart_1_1_runner_1ad6ff892533067e379b0f7b4835b5f6f6"></span><span class="k"><span class="pre">static</span></span><span class="w"> </span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">unique_ptr</span></span><span class="p"><span class="pre"><</span></span><a class="reference internal" href="#_CPPv4N4vart6RunnerE" title="vart::Runner"><span class="n"><span class="pre">Runner</span></span></a><span class="p"><span class="pre">></span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">create_runner_with_attrs</span></span></span><span class="sig-paren">(</span><span class="k"><span class="pre">const</span></span><span class="w"> </span><a class="reference internal" href="../file/runner_8hpp.html#_CPPv43xir" title="xir"><span class="n"><span class="pre">xir</span></span></a><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">Subgraph</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n sig-param"><span class="pre">subgraph</span></span>, <a class="reference internal" href="../file/runner_8hpp.html#_CPPv43xir" title="xir"><span class="n"><span class="pre">xir</span></span></a><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">Attrs</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n sig-param"><span class="pre">attrs</span></span><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv4N4vart6Runner24create_runner_with_attrsEPKN3xir8SubgraphEPN3xir5AttrsE" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Factory function to create an instance of DPU runner by subgraph, and attrs. </p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>subgraph</strong> – XIR Subgraph</p></li> <li><p><strong>attrs</strong> – XIR attrs object, this object is shared among all runners on the same graph.</p></li> <li><p><strong>attrs["mode"], 1</strong> – mode supported: ‘run’ - DPU runner.</p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>An instance of DPU runner. </p> </dd> </dl> diff --git a/docsrc/build/html/doxygen/api/class/classvart_1_1_runner_ext.html b/docsrc/build/html/doxygen/api/class/classvart_1_1_runner_ext.html index 7be11b6f9..be84bf0bf 100644 --- a/docsrc/build/html/doxygen/api/class/classvart_1_1_runner_ext.html +++ b/docsrc/build/html/doxygen/api/class/classvart_1_1_runner_ext.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -73,6 +72,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -144,7 +148,7 @@ <div itemprop="articleBody"> <section id="class-vart-runnerext"> -<h1>Class vart::RunnerExt<a class="headerlink" href="#class-vart-runnerext" title="Permalink to this heading">¶</a></h1> +<h1>Class vart::RunnerExt<a class="headerlink" href="#class-vart-runnerext" title="Permalink to this headline">¶</a></h1> <dl class="cpp class"> <dt class="sig sig-object cpp" id="_CPPv4N4vart9RunnerExtE"> <span id="_CPPv3N4vart9RunnerExtE"></span><span id="_CPPv2N4vart9RunnerExtE"></span><span id="vart::RunnerExt"></span><span class="target" id="classvart_1_1_runner_ext"></span><span class="k"><span class="pre">class</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">RunnerExt</span></span></span><span class="w"> </span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="k"><span class="pre">public</span></span><span class="w"> </span><a class="reference internal" href="classvart_1_1_runner.html#_CPPv4N4vart6RunnerE" title="vart::Runner"><span class="n"><span class="pre">Runner</span></span></a><a class="headerlink" href="#_CPPv4N4vart9RunnerExtE" title="Permalink to this definition">¶</a><br /></dt> @@ -164,7 +168,7 @@ <h1>Class vart::RunnerExt<a class="headerlink" href="#class-vart-runnerext" titl </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>All input TensorBuffers. A vector of raw pointer to the input <a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a>.</p> </dd> </dl> @@ -184,7 +188,7 @@ <h1>Class vart::RunnerExt<a class="headerlink" href="#class-vart-runnerext" titl </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>All output TensorBuffers. A vector of raw pointer to the output <a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a>.</p> </dd> </dl> @@ -196,13 +200,13 @@ <h1>Class vart::RunnerExt<a class="headerlink" href="#class-vart-runnerext" titl <dd><p>Executes the runner. </p> <p>This is a blocking function.</p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>input</strong> – A vector of <a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a> create by all input tensors of runner.</p></li> <li><p><strong>output</strong> – A vector of <a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a> create by all output tensors of runner.</p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>pair<jobid, status> status 0 for exit successfully, others for customized warnings or errors </p> </dd> </dl> @@ -213,13 +217,13 @@ <h1>Class vart::RunnerExt<a class="headerlink" href="#class-vart-runnerext" titl <span id="_CPPv3N4vart9RunnerExt13execute_asyncE9InputType10OutputType"></span><span id="_CPPv2N4vart9RunnerExt13execute_asyncE9InputType10OutputType"></span><span id="vart::RunnerExt::execute_async__InputType.OutputType"></span><span class="target" id="classvart_1_1_base_runner_1a3a6ebaa53c9250e3c739c3c407c1c20f"></span><span class="k"><span class="pre">virtual</span></span><span class="w"> </span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">pair</span></span><span class="p"><span class="pre"><</span></span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">uint32_t</span></span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="kt"><span class="pre">int</span></span><span class="p"><span class="pre">></span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">execute_async</span></span></span><span class="sig-paren">(</span><span class="n"><span class="pre">InputType</span></span><span class="w"> </span><span class="n sig-param"><span class="pre">input</span></span>, <span class="n"><span class="pre">OutputType</span></span><span class="w"> </span><span class="n sig-param"><span class="pre">output</span></span><span class="sig-paren">)</span><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="m"><span class="pre">0</span></span><a class="headerlink" href="#_CPPv4N4vart9RunnerExt13execute_asyncE9InputType10OutputType" title="Permalink to this definition">¶</a><br /></dt> <dd><p><a class="reference internal" href="../python/execute__async_8py.html#namespaceexecute__async"><span class="std std-ref">execute_async</span></a></p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>input</strong> – inputs with a customized type</p></li> <li><p><strong>output</strong> – outputs with a customized type</p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>pair<jobid, status> status 0 for exit successfully, others for customized warnings or errors </p> </dd> </dl> @@ -231,13 +235,13 @@ <h1>Class vart::RunnerExt<a class="headerlink" href="#class-vart-runnerext" titl <dd><p>Waits for the end of DPU processing. </p> <p>modes: 1. Blocking wait for specific ID. 2. Non-blocking wait for specific ID. 3. Blocking wait for any ID. 4. Non-blocking wait for any ID</p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>jobid</strong> – job id, neg for any id, others for specific job id</p></li> <li><p><strong>timeout</strong> – timeout, neg for block for ever, 0 for non-block, pos for block with a limitation(ms).</p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>status 0 for exit successfully, others for customized warnings or errors </p> </dd> </dl> @@ -251,17 +255,17 @@ <h1>Class vart::RunnerExt<a class="headerlink" href="#class-vart-runnerext" titl Sample code:</p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">auto</span> <span class="nb">format</span> <span class="o">=</span> <span class="n">runner</span><span class="o">-></span><span class="n">get_tensor_format</span><span class="p">();</span> <span class="n">switch</span> <span class="p">(</span><span class="nb">format</span><span class="p">)</span> <span class="p">{</span> - <span class="k">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">Runner</span><span class="p">::</span><span class="n">TensorFormat</span><span class="p">::</span><span class="n">NCHW</span><span class="p">:</span> + <span class="n">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">Runner</span><span class="p">::</span><span class="n">TensorFormat</span><span class="p">::</span><span class="n">NCHW</span><span class="p">:</span> <span class="o">//</span> <span class="n">do</span> <span class="n">something</span> <span class="k">break</span><span class="p">;</span> - <span class="k">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">Runner</span><span class="p">::</span><span class="n">TensorFormat</span><span class="p">::</span><span class="n">NHWC</span><span class="p">:</span> + <span class="n">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">Runner</span><span class="p">::</span><span class="n">TensorFormat</span><span class="p">::</span><span class="n">NHWC</span><span class="p">:</span> <span class="o">//</span> <span class="n">do</span> <span class="n">something</span> <span class="k">break</span><span class="p">;</span> <span class="p">}</span> </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>TensorFormat : NHWC / HCHW</p> </dd> </dl> @@ -282,7 +286,7 @@ <h1>Class vart::RunnerExt<a class="headerlink" href="#class-vart-runnerext" titl </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>All input tensors. A vector of raw pointer to the input tensor.</p> </dd> </dl> @@ -303,7 +307,7 @@ <h1>Class vart::RunnerExt<a class="headerlink" href="#class-vart-runnerext" titl </div> </p> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>All output tensors. A vector of raw pointer to the output tensor.</p> </dd> </dl> @@ -317,13 +321,13 @@ <h1>Class vart::RunnerExt<a class="headerlink" href="#class-vart-runnerext" titl <span id="_CPPv3N4vart9RunnerExt13create_runnerEPKN3xir8SubgraphEPN3xir5AttrsE"></span><span id="_CPPv2N4vart9RunnerExt13create_runnerEPKN3xir8SubgraphEPN3xir5AttrsE"></span><span id="vart::RunnerExt::create_runner__xir::SubgraphCP.xir::AttrsP"></span><span class="target" id="classvart_1_1_runner_ext_1a2d06613bafd66a3db2cbdbf8b30cada8"></span><span class="k"><span class="pre">static</span></span><span class="w"> </span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">unique_ptr</span></span><span class="p"><span class="pre"><</span></span><a class="reference internal" href="#_CPPv4N4vart9RunnerExtE" title="vart::RunnerExt"><span class="n"><span class="pre">RunnerExt</span></span></a><span class="p"><span class="pre">></span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">create_runner</span></span></span><span class="sig-paren">(</span><span class="k"><span class="pre">const</span></span><span class="w"> </span><a class="reference internal" href="../file/runner_8hpp.html#_CPPv43xir" title="xir"><span class="n"><span class="pre">xir</span></span></a><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">Subgraph</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n sig-param"><span class="pre">subgraph</span></span>, <a class="reference internal" href="../file/runner_8hpp.html#_CPPv43xir" title="xir"><span class="n"><span class="pre">xir</span></span></a><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">Attrs</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n sig-param"><span class="pre">attrs</span></span><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv4N4vart9RunnerExt13create_runnerEPKN3xir8SubgraphEPN3xir5AttrsE" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Factory fucntion to create an instance of runner by subgraph and attrs. </p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>subgraph</strong> – XIR Subgraph </p></li> <li><p><strong>attrs</strong> – XIR attrs object, this object is shared among all runners on the same graph. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>An instance of runner. </p> </dd> </dl> @@ -340,13 +344,13 @@ <h1>Class vart::RunnerExt<a class="headerlink" href="#class-vart-runnerext" titl </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>subgraph</strong> – XIR Subgraph </p></li> <li><p><strong>mode</strong> – 1 mode supported: ‘run’ - DPU runner. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>An instance of DPU runner.</p> </dd> </dl> @@ -357,14 +361,14 @@ <h1>Class vart::RunnerExt<a class="headerlink" href="#class-vart-runnerext" titl <span id="_CPPv3N4vart9RunnerExt24create_runner_with_attrsEPKN3xir8SubgraphEPN3xir5AttrsE"></span><span id="_CPPv2N4vart9RunnerExt24create_runner_with_attrsEPKN3xir8SubgraphEPN3xir5AttrsE"></span><span id="vart::RunnerExt::create_runner_with_attrs__xir::SubgraphCP.xir::AttrsP"></span><span class="target" id="classvart_1_1_runner_1ad6ff892533067e379b0f7b4835b5f6f6"></span><span class="k"><span class="pre">static</span></span><span class="w"> </span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">unique_ptr</span></span><span class="p"><span class="pre"><</span></span><a class="reference internal" href="classvart_1_1_runner.html#_CPPv4N4vart6RunnerE" title="vart::Runner"><span class="n"><span class="pre">Runner</span></span></a><span class="p"><span class="pre">></span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">create_runner_with_attrs</span></span></span><span class="sig-paren">(</span><span class="k"><span class="pre">const</span></span><span class="w"> </span><a class="reference internal" href="../file/runner_8hpp.html#_CPPv43xir" title="xir"><span class="n"><span class="pre">xir</span></span></a><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">Subgraph</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n sig-param"><span class="pre">subgraph</span></span>, <a class="reference internal" href="../file/runner_8hpp.html#_CPPv43xir" title="xir"><span class="n"><span class="pre">xir</span></span></a><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">Attrs</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n sig-param"><span class="pre">attrs</span></span><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv4N4vart9RunnerExt24create_runner_with_attrsEPKN3xir8SubgraphEPN3xir5AttrsE" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Factory function to create an instance of DPU runner by subgraph, and attrs. </p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>subgraph</strong> – XIR Subgraph</p></li> <li><p><strong>attrs</strong> – XIR attrs object, this object is shared among all runners on the same graph.</p></li> <li><p><strong>attrs["mode"], 1</strong> – mode supported: ‘run’ - DPU runner.</p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>An instance of DPU runner. </p> </dd> </dl> diff --git a/docsrc/build/html/doxygen/api/class/classvart_1_1_tensor_buffer.html b/docsrc/build/html/doxygen/api/class/classvart_1_1_tensor_buffer.html index 1868c579a..ae448b4b7 100644 --- a/docsrc/build/html/doxygen/api/class/classvart_1_1_tensor_buffer.html +++ b/docsrc/build/html/doxygen/api/class/classvart_1_1_tensor_buffer.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -73,6 +72,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -144,7 +148,7 @@ <div itemprop="articleBody"> <section id="class-vart-tensorbuffer"> -<h1>Class vart::TensorBuffer<a class="headerlink" href="#class-vart-tensorbuffer" title="Permalink to this heading">¶</a></h1> +<h1>Class vart::TensorBuffer<a class="headerlink" href="#class-vart-tensorbuffer" title="Permalink to this headline">¶</a></h1> <dl class="cpp class"> <dt class="sig sig-object cpp" id="_CPPv4N4vart12TensorBufferE"> <span id="_CPPv3N4vart12TensorBufferE"></span><span id="_CPPv2N4vart12TensorBufferE"></span><span id="vart::TensorBuffer"></span><span class="target" id="classvart_1_1_tensor_buffer"></span><span class="k"><span class="pre">class</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">TensorBuffer</span></span></span><a class="headerlink" href="#_CPPv4N4vart12TensorBufferE" title="Permalink to this definition">¶</a><br /></dt> @@ -163,10 +167,10 @@ <h1>Class vart::TensorBuffer<a class="headerlink" href="#class-vart-tensorbuffer </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><p><strong>idx</strong> – The index of the data to be accessed, its dimension same as the tensor shape. </p> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>A pair of the data address of the index and the size of the data available for use in byte unit.</p> </dd> </dl> @@ -180,10 +184,10 @@ <h1>Class vart::TensorBuffer<a class="headerlink" href="#class-vart-tensorbuffer Sample code: </p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">vart</span><span class="p">::</span><span class="n">TensorBuffer</span><span class="o">*</span> <span class="n">tb</span><span class="p">;</span> <span class="n">switch</span> <span class="p">(</span><span class="n">tb</span><span class="o">-></span><span class="n">get_location</span><span class="p">())</span> <span class="p">{</span> - <span class="k">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">TensorBuffer</span><span class="p">::</span><span class="n">location_t</span><span class="p">::</span><span class="n">HOST_VIRT</span><span class="p">:</span> + <span class="n">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">TensorBuffer</span><span class="p">::</span><span class="n">location_t</span><span class="p">::</span><span class="n">HOST_VIRT</span><span class="p">:</span> <span class="o">//</span> <span class="n">do</span> <span class="n">nothing</span> <span class="k">break</span><span class="p">;</span> - <span class="k">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">TensorBuffer</span><span class="p">::</span><span class="n">location_t</span><span class="p">::</span><span class="n">HOST_PHY</span><span class="p">:</span> + <span class="n">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">TensorBuffer</span><span class="p">::</span><span class="n">location_t</span><span class="p">::</span><span class="n">HOST_PHY</span><span class="p">:</span> <span class="o">//</span> <span class="n">do</span> <span class="n">nothing</span> <span class="k">break</span><span class="p">;</span> <span class="n">default</span><span class="p">:</span> @@ -193,7 +197,7 @@ <h1>Class vart::TensorBuffer<a class="headerlink" href="#class-vart-tensorbuffer </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>the tensor buffer location, a location_t enum type value: HOST_VIRT/HOST_PHY/DEVICE_*.</p> </dd> </dl> @@ -210,10 +214,10 @@ <h1>Class vart::TensorBuffer<a class="headerlink" href="#class-vart-tensorbuffer </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><p><strong>idx</strong> – The index of the data to be accessed, its dimension same to the tensor shape. </p> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>A pair of the data physical address of the index and the size of the data available for use in byte unit.</p> </dd> </dl> @@ -232,13 +236,13 @@ <h1>Class vart::TensorBuffer<a class="headerlink" href="#class-vart-tensorbuffer </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>offset</strong> – The start offset address. </p></li> <li><p><strong>size</strong> – The data size. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>void</p> </dd> </dl> @@ -257,13 +261,13 @@ <h1>Class vart::TensorBuffer<a class="headerlink" href="#class-vart-tensorbuffer </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>offset</strong> – The start offset address. </p></li> <li><p><strong>size</strong> – The data size. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>void</p> </dd> </dl> @@ -274,7 +278,7 @@ <h1>Class vart::TensorBuffer<a class="headerlink" href="#class-vart-tensorbuffer <span id="_CPPv3N4vart12TensorBuffer14copy_from_hostE6size_tPKv6size_t6size_t"></span><span id="_CPPv2N4vart12TensorBuffer14copy_from_hostE6size_tPKv6size_t6size_t"></span><span id="vart::TensorBuffer::copy_from_host__s.voidCP.s.s"></span><span class="target" id="classvart_1_1_tensor_buffer_1a781dbc662ce87afedf825aebf94eb2ba"></span><span class="k"><span class="pre">virtual</span></span><span class="w"> </span><span class="kt"><span class="pre">void</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">copy_from_host</span></span></span><span class="sig-paren">(</span><span class="n"><span class="pre">size_t</span></span><span class="w"> </span><span class="n sig-param"><span class="pre">batch_idx</span></span>, <span class="k"><span class="pre">const</span></span><span class="w"> </span><span class="kt"><span class="pre">void</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n sig-param"><span class="pre">buf</span></span>, <span class="n"><span class="pre">size_t</span></span><span class="w"> </span><span class="n sig-param"><span class="pre">size</span></span>, <span class="n"><span class="pre">size_t</span></span><span class="w"> </span><span class="n sig-param"><span class="pre">offset</span></span><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv4N4vart12TensorBuffer14copy_from_hostE6size_tPKv6size_t6size_t" title="Permalink to this definition">¶</a><br /></dt> <dd><p>copy data from source buffer. </p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>batch_idx</strong> – the batch index. </p></li> <li><p><strong>buf</strong> – source buffer start address. </p></li> @@ -282,7 +286,7 @@ <h1>Class vart::TensorBuffer<a class="headerlink" href="#class-vart-tensorbuffer <li><p><strong>offset</strong> – the start offset to be copied. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>void </p> </dd> </dl> @@ -304,7 +308,7 @@ <h1>Class vart::TensorBuffer<a class="headerlink" href="#class-vart-tensorbuffer </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>batch_idx</strong> – the batch index. </p></li> <li><p><strong>buf</strong> – destination buffer start address. </p></li> @@ -312,7 +316,7 @@ <h1>Class vart::TensorBuffer<a class="headerlink" href="#class-vart-tensorbuffer <li><p><strong>offset</strong> – the start offset to be copied. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>void</p> </dd> </dl> @@ -323,7 +327,7 @@ <h1>Class vart::TensorBuffer<a class="headerlink" href="#class-vart-tensorbuffer <span id="_CPPv3NK4vart12TensorBuffer10get_tensorEv"></span><span id="_CPPv2NK4vart12TensorBuffer10get_tensorEv"></span><span id="vart::TensorBuffer::get_tensorC"></span><span class="target" id="classvart_1_1_tensor_buffer_1a3c53b20e0e7b58a4c5d18baa10a3f0b6"></span><span class="k"><span class="pre">const</span></span><span class="w"> </span><a class="reference internal" href="../file/runner_8hpp.html#_CPPv43xir" title="xir"><span class="n"><span class="pre">xir</span></span></a><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">Tensor</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="sig-name descname"><span class="n"><span class="pre">get_tensor</span></span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><span class="w"> </span><span class="k"><span class="pre">const</span></span><a class="headerlink" href="#_CPPv4NK4vart12TensorBuffer10get_tensorEv" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Get tensor of <a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a>. </p> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>A pointer to the tensor. </p> </dd> </dl> @@ -356,13 +360,13 @@ <h1>Class vart::TensorBuffer<a class="headerlink" href="#class-vart-tensorbuffer </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>tb_from</strong> – the source <a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a>. </p></li> <li><p><strong>tb_to</strong> – the destination <a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a>. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>void</p> </dd> </dl> @@ -398,14 +402,14 @@ <h1>Class vart::TensorBuffer<a class="headerlink" href="#class-vart-tensorbuffer </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>tensor</strong> – XIR tensor pointer </p></li> <li><p><strong>batch_addr</strong> – Array which contains device physical address for each batch </p></li> <li><p><strong>addr_arrsize</strong> – The array size of batch_addr </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>Unique pointer of created tensor buffer.</p> </dd> </dl> diff --git a/docsrc/build/html/doxygen/api/class/classvart_1_1_tensor_buffer_ext.html b/docsrc/build/html/doxygen/api/class/classvart_1_1_tensor_buffer_ext.html index 52e41daf4..213c9980d 100644 --- a/docsrc/build/html/doxygen/api/class/classvart_1_1_tensor_buffer_ext.html +++ b/docsrc/build/html/doxygen/api/class/classvart_1_1_tensor_buffer_ext.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -73,6 +72,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -144,7 +148,7 @@ <div itemprop="articleBody"> <section id="class-vart-tensorbufferext"> -<h1>Class vart::TensorBufferExt<a class="headerlink" href="#class-vart-tensorbufferext" title="Permalink to this heading">¶</a></h1> +<h1>Class vart::TensorBufferExt<a class="headerlink" href="#class-vart-tensorbufferext" title="Permalink to this headline">¶</a></h1> <dl class="cpp class"> <dt class="sig sig-object cpp" id="_CPPv4N4vart15TensorBufferExtE"> <span id="_CPPv3N4vart15TensorBufferExtE"></span><span id="_CPPv2N4vart15TensorBufferExtE"></span><span id="vart::TensorBufferExt"></span><span class="target" id="classvart_1_1_tensor_buffer_ext"></span><span class="k"><span class="pre">class</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">TensorBufferExt</span></span></span><span class="w"> </span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="k"><span class="pre">public</span></span><span class="w"> </span><a class="reference internal" href="classvart_1_1_tensor_buffer.html#_CPPv4N4vart12TensorBufferE" title="vart::TensorBuffer"><span class="n"><span class="pre">TensorBuffer</span></span></a><a class="headerlink" href="#_CPPv4N4vart15TensorBufferExtE" title="Permalink to this definition">¶</a><br /></dt> @@ -167,10 +171,10 @@ <h1>Class vart::TensorBufferExt<a class="headerlink" href="#class-vart-tensorbuf </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><p><strong>idx</strong> – The index of the data to be accessed, its dimension same as the tensor shape. </p> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>A pair of the data address of the index and the size of the data available for use in byte unit.</p> </dd> </dl> @@ -184,10 +188,10 @@ <h1>Class vart::TensorBufferExt<a class="headerlink" href="#class-vart-tensorbuf Sample code: </p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">vart</span><span class="p">::</span><span class="n">TensorBuffer</span><span class="o">*</span> <span class="n">tb</span><span class="p">;</span> <span class="n">switch</span> <span class="p">(</span><span class="n">tb</span><span class="o">-></span><span class="n">get_location</span><span class="p">())</span> <span class="p">{</span> - <span class="k">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">TensorBuffer</span><span class="p">::</span><span class="n">location_t</span><span class="p">::</span><span class="n">HOST_VIRT</span><span class="p">:</span> + <span class="n">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">TensorBuffer</span><span class="p">::</span><span class="n">location_t</span><span class="p">::</span><span class="n">HOST_VIRT</span><span class="p">:</span> <span class="o">//</span> <span class="n">do</span> <span class="n">nothing</span> <span class="k">break</span><span class="p">;</span> - <span class="k">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">TensorBuffer</span><span class="p">::</span><span class="n">location_t</span><span class="p">::</span><span class="n">HOST_PHY</span><span class="p">:</span> + <span class="n">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">TensorBuffer</span><span class="p">::</span><span class="n">location_t</span><span class="p">::</span><span class="n">HOST_PHY</span><span class="p">:</span> <span class="o">//</span> <span class="n">do</span> <span class="n">nothing</span> <span class="k">break</span><span class="p">;</span> <span class="n">default</span><span class="p">:</span> @@ -197,7 +201,7 @@ <h1>Class vart::TensorBufferExt<a class="headerlink" href="#class-vart-tensorbuf </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>the tensor buffer location, a location_t enum type value: HOST_VIRT/HOST_PHY/DEVICE_*.</p> </dd> </dl> @@ -214,10 +218,10 @@ <h1>Class vart::TensorBufferExt<a class="headerlink" href="#class-vart-tensorbuf </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><p><strong>idx</strong> – The index of the data to be accessed, its dimension same to the tensor shape. </p> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>A pair of the data physical address of the index and the size of the data available for use in byte unit.</p> </dd> </dl> @@ -236,13 +240,13 @@ <h1>Class vart::TensorBufferExt<a class="headerlink" href="#class-vart-tensorbuf </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>offset</strong> – The start offset address. </p></li> <li><p><strong>size</strong> – The data size. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>void</p> </dd> </dl> @@ -261,13 +265,13 @@ <h1>Class vart::TensorBufferExt<a class="headerlink" href="#class-vart-tensorbuf </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>offset</strong> – The start offset address. </p></li> <li><p><strong>size</strong> – The data size. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>void</p> </dd> </dl> @@ -278,7 +282,7 @@ <h1>Class vart::TensorBufferExt<a class="headerlink" href="#class-vart-tensorbuf <span id="_CPPv3N4vart15TensorBufferExt14copy_from_hostE6size_tPKv6size_t6size_t"></span><span id="_CPPv2N4vart15TensorBufferExt14copy_from_hostE6size_tPKv6size_t6size_t"></span><span id="vart::TensorBufferExt::copy_from_host__s.voidCP.s.s"></span><span class="target" id="classvart_1_1_tensor_buffer_1a781dbc662ce87afedf825aebf94eb2ba"></span><span class="k"><span class="pre">virtual</span></span><span class="w"> </span><span class="kt"><span class="pre">void</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">copy_from_host</span></span></span><span class="sig-paren">(</span><span class="n"><span class="pre">size_t</span></span><span class="w"> </span><span class="n sig-param"><span class="pre">batch_idx</span></span>, <span class="k"><span class="pre">const</span></span><span class="w"> </span><span class="kt"><span class="pre">void</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n sig-param"><span class="pre">buf</span></span>, <span class="n"><span class="pre">size_t</span></span><span class="w"> </span><span class="n sig-param"><span class="pre">size</span></span>, <span class="n"><span class="pre">size_t</span></span><span class="w"> </span><span class="n sig-param"><span class="pre">offset</span></span><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv4N4vart15TensorBufferExt14copy_from_hostE6size_tPKv6size_t6size_t" title="Permalink to this definition">¶</a><br /></dt> <dd><p>copy data from source buffer. </p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>batch_idx</strong> – the batch index. </p></li> <li><p><strong>buf</strong> – source buffer start address. </p></li> @@ -286,7 +290,7 @@ <h1>Class vart::TensorBufferExt<a class="headerlink" href="#class-vart-tensorbuf <li><p><strong>offset</strong> – the start offset to be copied. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>void </p> </dd> </dl> @@ -308,7 +312,7 @@ <h1>Class vart::TensorBufferExt<a class="headerlink" href="#class-vart-tensorbuf </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>batch_idx</strong> – the batch index. </p></li> <li><p><strong>buf</strong> – destination buffer start address. </p></li> @@ -316,7 +320,7 @@ <h1>Class vart::TensorBufferExt<a class="headerlink" href="#class-vart-tensorbuf <li><p><strong>offset</strong> – the start offset to be copied. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>void</p> </dd> </dl> @@ -327,7 +331,7 @@ <h1>Class vart::TensorBufferExt<a class="headerlink" href="#class-vart-tensorbuf <span id="_CPPv3NK4vart15TensorBufferExt10get_tensorEv"></span><span id="_CPPv2NK4vart15TensorBufferExt10get_tensorEv"></span><span id="vart::TensorBufferExt::get_tensorC"></span><span class="target" id="classvart_1_1_tensor_buffer_1a3c53b20e0e7b58a4c5d18baa10a3f0b6"></span><span class="k"><span class="pre">const</span></span><span class="w"> </span><a class="reference internal" href="../file/runner_8hpp.html#_CPPv43xir" title="xir"><span class="n"><span class="pre">xir</span></span></a><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">Tensor</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="sig-name descname"><span class="n"><span class="pre">get_tensor</span></span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><span class="w"> </span><span class="k"><span class="pre">const</span></span><a class="headerlink" href="#_CPPv4NK4vart15TensorBufferExt10get_tensorEv" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Get tensor of <a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a>. </p> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>A pointer to the tensor. </p> </dd> </dl> @@ -354,13 +358,13 @@ <h1>Class vart::TensorBufferExt<a class="headerlink" href="#class-vart-tensorbuf </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>tb_from</strong> – the source <a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a>. </p></li> <li><p><strong>tb_to</strong> – the destination <a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a>. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>void</p> </dd> </dl> @@ -396,14 +400,14 @@ <h1>Class vart::TensorBufferExt<a class="headerlink" href="#class-vart-tensorbuf </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>tensor</strong> – XIR tensor pointer </p></li> <li><p><strong>batch_addr</strong> – Array which contains device physical address for each batch </p></li> <li><p><strong>addr_arrsize</strong> – The array size of batch_addr </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>Unique pointer of created tensor buffer.</p> </dd> </dl> diff --git a/docsrc/build/html/doxygen/api/classlist.html b/docsrc/build/html/doxygen/api/classlist.html index 056870aa2..137818616 100644 --- a/docsrc/build/html/doxygen/api/classlist.html +++ b/docsrc/build/html/doxygen/api/classlist.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script> <script src="../../_static/jquery.js"></script> <script src="../../_static/underscore.js"></script> - <script src="../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../_static/doctools.js"></script> <script src="../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../genindex.html" /> @@ -73,6 +72,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../docs/workflow.html">Overview</a></li> @@ -143,7 +147,7 @@ <div itemprop="articleBody"> <section id="c-api-class"> -<h1>C++ API Class<a class="headerlink" href="#c-api-class" title="Permalink to this heading">¶</a></h1> +<h1>C++ API Class<a class="headerlink" href="#c-api-class" title="Permalink to this headline">¶</a></h1> <div class="toctree-wrapper compound"> <ul> <li class="toctree-l1"><a class="reference internal" href="class/classvart_1_1_base_runner.html">Class vart::BaseRunner</a></li> diff --git a/docsrc/build/html/doxygen/api/file/create__graph__runner_8py.html b/docsrc/build/html/doxygen/api/file/create__graph__runner_8py.html index c2222d9dc..2b95545f3 100644 --- a/docsrc/build/html/doxygen/api/file/create__graph__runner_8py.html +++ b/docsrc/build/html/doxygen/api/file/create__graph__runner_8py.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="create-graph-runner"> -<h1>create_graph_runner<a class="headerlink" href="#create-graph-runner" title="Permalink to this heading">¶</a></h1> +<h1>create_graph_runner<a class="headerlink" href="#create-graph-runner" title="Permalink to this headline">¶</a></h1> <div class="breathe-sectiondef docutils container"> <p class="breathe-sectiondef-title rubric" id="breathe-section-title-functions">Functions</p> <dl class="py function"> @@ -162,10 +166,10 @@ <h1>create_graph_runner<a class="headerlink" href="#create-graph-runner" title=" </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><p><strong>graph</strong> – xir.Graph, XIR Graph runners on the same graph. </p> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>vart.RunnerExt. An instance of runner.</p> </dd> </dl> diff --git a/docsrc/build/html/doxygen/api/file/create__runner_8py.html b/docsrc/build/html/doxygen/api/file/create__runner_8py.html index 7a7347c50..aede7fa20 100644 --- a/docsrc/build/html/doxygen/api/file/create__runner_8py.html +++ b/docsrc/build/html/doxygen/api/file/create__runner_8py.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="create-runner"> -<h1>create_runner<a class="headerlink" href="#create-runner" title="Permalink to this heading">¶</a></h1> +<h1>create_runner<a class="headerlink" href="#create-runner" title="Permalink to this headline">¶</a></h1> <div class="breathe-sectiondef docutils container"> <p class="breathe-sectiondef-title rubric" id="breathe-section-title-functions">Functions</p> <dl class="py function"> @@ -154,13 +158,13 @@ <h1>create_runner<a class="headerlink" href="#create-runner" title="Permalink to </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>subgraph</strong> – : xir.Subgraph, XIR Subgraph </p></li> <li><p><strong>mode</strong> – 1 mode supported: ‘run’ - DPU runner. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p><a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_runner"><span class="std std-ref">vart.Runner</span></a>, an instance of DPU runner.</p> </dd> </dl> diff --git a/docsrc/build/html/doxygen/api/file/execute__async_8py.html b/docsrc/build/html/doxygen/api/file/execute__async_8py.html index ea385cb6d..df7d6dd90 100644 --- a/docsrc/build/html/doxygen/api/file/execute__async_8py.html +++ b/docsrc/build/html/doxygen/api/file/execute__async_8py.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="execute-async-py"> -<h1>execute_async.py<a class="headerlink" href="#execute-async-py" title="Permalink to this heading">¶</a></h1> +<h1>execute_async.py<a class="headerlink" href="#execute-async-py" title="Permalink to this headline">¶</a></h1> <div class="breathe-sectiondef docutils container"> <p class="breathe-sectiondef-title rubric" id="breathe-section-title-functions">Functions</p> <dl class="py function"> @@ -149,13 +153,13 @@ <h1>execute_async.py<a class="headerlink" href="#execute-async-py" title="Permal <dd><p>Executes the runner. </p> <p>This is a blocking function.</p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>inputs</strong> – : List[<a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">vart.TensorBuffer</span></a>], A list of <a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">vart.TensorBuffer</span></a> containing the input data for inference.</p></li> <li><p><strong>outputs</strong> – : List[<a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">vart.TensorBuffer</span></a>], A list of <a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">vart.TensorBuffer</span></a> which will be filled with output data.</p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>tuple[jobid, status] status 0 for exit successfully, others for customized warnings or errors. </p> </dd> </dl> diff --git a/docsrc/build/html/doxygen/api/file/get__input__tensors_8py.html b/docsrc/build/html/doxygen/api/file/get__input__tensors_8py.html index 61f647e85..c330eb514 100644 --- a/docsrc/build/html/doxygen/api/file/get__input__tensors_8py.html +++ b/docsrc/build/html/doxygen/api/file/get__input__tensors_8py.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="get-input-tensors"> -<h1>get_input_tensors<a class="headerlink" href="#get-input-tensors" title="Permalink to this heading">¶</a></h1> +<h1>get_input_tensors<a class="headerlink" href="#get-input-tensors" title="Permalink to this headline">¶</a></h1> <div class="breathe-sectiondef docutils container"> <p class="breathe-sectiondef-title rubric" id="breathe-section-title-functions">Functions</p> <dl class="py function"> @@ -162,7 +166,7 @@ <h1>get_input_tensors<a class="headerlink" href="#get-input-tensors" title="Perm </div> <p>Note that the dimensions (.dim) of an input tensor are in the form NHWC (batchsize, height,width,channels). </p> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>List[xir.Tensor]. A list of DPU runner inputs, each of which have type xir.Tensor.</p> </dd> </dl> diff --git a/docsrc/build/html/doxygen/api/file/get__inputs_8py.html b/docsrc/build/html/doxygen/api/file/get__inputs_8py.html index 4c6caebe4..e31619fea 100644 --- a/docsrc/build/html/doxygen/api/file/get__inputs_8py.html +++ b/docsrc/build/html/doxygen/api/file/get__inputs_8py.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="get-inputs"> -<h1>get_inputs<a class="headerlink" href="#get-inputs" title="Permalink to this heading">¶</a></h1> +<h1>get_inputs<a class="headerlink" href="#get-inputs" title="Permalink to this headline">¶</a></h1> <div class="breathe-sectiondef docutils container"> <p class="breathe-sectiondef-title rubric" id="breathe-section-title-functions">Functions</p> <dl class="py function"> @@ -154,7 +158,7 @@ <h1>get_inputs<a class="headerlink" href="#get-inputs" title="Permalink to this </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>: List[<a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">vart.TensorBuffer</span></a>]. All input tensors. A vector of raw pointer to the input tensor.</p> </dd> </dl> diff --git a/docsrc/build/html/doxygen/api/file/get__output__tensors_8py.html b/docsrc/build/html/doxygen/api/file/get__output__tensors_8py.html index 2b6b3b018..f577038de 100644 --- a/docsrc/build/html/doxygen/api/file/get__output__tensors_8py.html +++ b/docsrc/build/html/doxygen/api/file/get__output__tensors_8py.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="get-output-tensors"> -<h1>get_output_tensors<a class="headerlink" href="#get-output-tensors" title="Permalink to this heading">¶</a></h1> +<h1>get_output_tensors<a class="headerlink" href="#get-output-tensors" title="Permalink to this headline">¶</a></h1> <div class="breathe-sectiondef docutils container"> <p class="breathe-sectiondef-title rubric" id="breathe-section-title-functions">Functions</p> <dl class="py function"> @@ -154,7 +158,7 @@ <h1>get_output_tensors<a class="headerlink" href="#get-output-tensors" title="Pe </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>List[xir.Tensor], all output tensors. A vector of raw pointer to the output tensor.</p> </dd> </dl> diff --git a/docsrc/build/html/doxygen/api/file/get__outputs_8py.html b/docsrc/build/html/doxygen/api/file/get__outputs_8py.html index 651fd3e9d..ab6e87f67 100644 --- a/docsrc/build/html/doxygen/api/file/get__outputs_8py.html +++ b/docsrc/build/html/doxygen/api/file/get__outputs_8py.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="get-outputs"> -<h1>get_outputs<a class="headerlink" href="#get-outputs" title="Permalink to this heading">¶</a></h1> +<h1>get_outputs<a class="headerlink" href="#get-outputs" title="Permalink to this headline">¶</a></h1> <div class="breathe-sectiondef docutils container"> <p class="breathe-sectiondef-title rubric" id="breathe-section-title-functions">Functions</p> <dl class="py function"> @@ -154,7 +158,7 @@ <h1>get_outputs<a class="headerlink" href="#get-outputs" title="Permalink to thi </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>List[<a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">vart.TensorBuffer</span></a>]. All output tensors. A vector of raw pointer to the output tensor.</p> </dd> </dl> diff --git a/docsrc/build/html/doxygen/api/file/runner_8hpp.html b/docsrc/build/html/doxygen/api/file/runner_8hpp.html index a8b6b35da..02523c130 100644 --- a/docsrc/build/html/doxygen/api/file/runner_8hpp.html +++ b/docsrc/build/html/doxygen/api/file/runner_8hpp.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="file-runner-hpp"> -<h1>File runner.hpp<a class="headerlink" href="#file-runner-hpp" title="Permalink to this heading">¶</a></h1> +<h1>File runner.hpp<a class="headerlink" href="#file-runner-hpp" title="Permalink to this headline">¶</a></h1> <dl class="cpp type"> <dt class="sig sig-object cpp" id="_CPPv43xir"> <span id="_CPPv33xir"></span><span id="_CPPv23xir"></span><span id="xir"></span><span class="target" id="namespacexir"></span><span class="k"><span class="pre">namespace</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">xir</span></span></span><a class="headerlink" href="#_CPPv43xir" title="Permalink to this definition">¶</a><br /></dt> @@ -159,13 +163,13 @@ <h1>File runner.hpp<a class="headerlink" href="#file-runner-hpp" title="Permalin <span id="_CPPv3N4vart10BaseRunner13execute_asyncE9InputType10OutputType"></span><span id="_CPPv2N4vart10BaseRunner13execute_asyncE9InputType10OutputType"></span><span id="vart::BaseRunner::execute_async__InputType.OutputType"></span><span class="target" id="classvart_1_1_base_runner_1a3a6ebaa53c9250e3c739c3c407c1c20f"></span><span class="k"><span class="pre">virtual</span></span><span class="w"> </span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">pair</span></span><span class="p"><span class="pre"><</span></span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">uint32_t</span></span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="kt"><span class="pre">int</span></span><span class="p"><span class="pre">></span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">execute_async</span></span></span><span class="sig-paren">(</span><a class="reference internal" href="../class/classvart_1_1_base_runner.html#_CPPv4I00EN4vart10BaseRunnerE" title="vart::BaseRunner::InputType"><span class="n"><span class="pre">InputType</span></span></a><span class="w"> </span><span class="n sig-param"><span class="pre">input</span></span>, <a class="reference internal" href="../class/classvart_1_1_base_runner.html#_CPPv4I00EN4vart10BaseRunnerE" title="vart::BaseRunner::OutputType"><span class="n"><span class="pre">OutputType</span></span></a><span class="w"> </span><span class="n sig-param"><span class="pre">output</span></span><span class="sig-paren">)</span><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="m"><span class="pre">0</span></span><br /></dt> <dd><p><a class="reference internal" href="../python/execute__async_8py.html#namespaceexecute__async"><span class="std std-ref">execute_async</span></a></p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>input</strong> – inputs with a customized type</p></li> <li><p><strong>output</strong> – outputs with a customized type</p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>pair<jobid, status> status 0 for exit successfully, others for customized warnings or errors </p> </dd> </dl> @@ -177,13 +181,13 @@ <h1>File runner.hpp<a class="headerlink" href="#file-runner-hpp" title="Permalin <dd><p>wait </p> <p>modes: 1. Blocking wait for specific ID. 2. Non-blocking wait for specific ID. 3. Blocking wait for any ID. 4. Non-blocking wait for any ID</p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>jobid</strong> – job id, neg for any id, others for specific job id</p></li> <li><p><strong>timeout</strong> – timeout, neg for block for ever, 0 for non-block, pos for block with a limitation(ms).</p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>status 0 for exit successfully, others for customized warnings or errors </p> </dd> </dl> @@ -332,13 +336,13 @@ <h1>File runner.hpp<a class="headerlink" href="#file-runner-hpp" title="Permalin <dd><p>Executes the runner. </p> <p>This is a blocking function.</p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>input</strong> – A vector of <a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a> create by all input tensors of runner.</p></li> <li><p><strong>output</strong> – A vector of <a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a> create by all output tensors of runner.</p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>pair<jobid, status> status 0 for exit successfully, others for customized warnings or errors </p> </dd> </dl> @@ -350,13 +354,13 @@ <h1>File runner.hpp<a class="headerlink" href="#file-runner-hpp" title="Permalin <dd><p>Waits for the end of DPU processing. </p> <p>modes: 1. Blocking wait for specific ID. 2. Non-blocking wait for specific ID. 3. Blocking wait for any ID. 4. Non-blocking wait for any ID</p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>jobid</strong> – job id, neg for any id, others for specific job id</p></li> <li><p><strong>timeout</strong> – timeout, neg for block for ever, 0 for non-block, pos for block with a limitation(ms).</p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>status 0 for exit successfully, others for customized warnings or errors </p> </dd> </dl> @@ -370,17 +374,17 @@ <h1>File runner.hpp<a class="headerlink" href="#file-runner-hpp" title="Permalin Sample code:</p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">auto</span> <span class="nb">format</span> <span class="o">=</span> <span class="n">runner</span><span class="o">-></span><span class="n">get_tensor_format</span><span class="p">();</span> <span class="n">switch</span> <span class="p">(</span><span class="nb">format</span><span class="p">)</span> <span class="p">{</span> - <span class="k">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">Runner</span><span class="p">::</span><span class="n">TensorFormat</span><span class="p">::</span><span class="n">NCHW</span><span class="p">:</span> + <span class="n">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">Runner</span><span class="p">::</span><span class="n">TensorFormat</span><span class="p">::</span><span class="n">NCHW</span><span class="p">:</span> <span class="o">//</span> <span class="n">do</span> <span class="n">something</span> <span class="k">break</span><span class="p">;</span> - <span class="k">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">Runner</span><span class="p">::</span><span class="n">TensorFormat</span><span class="p">::</span><span class="n">NHWC</span><span class="p">:</span> + <span class="n">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">Runner</span><span class="p">::</span><span class="n">TensorFormat</span><span class="p">::</span><span class="n">NHWC</span><span class="p">:</span> <span class="o">//</span> <span class="n">do</span> <span class="n">something</span> <span class="k">break</span><span class="p">;</span> <span class="p">}</span> </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>TensorFormat : NHWC / HCHW</p> </dd> </dl> @@ -401,7 +405,7 @@ <h1>File runner.hpp<a class="headerlink" href="#file-runner-hpp" title="Permalin </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>All input tensors. A vector of raw pointer to the input tensor.</p> </dd> </dl> @@ -422,7 +426,7 @@ <h1>File runner.hpp<a class="headerlink" href="#file-runner-hpp" title="Permalin </div> </p> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>All output tensors. A vector of raw pointer to the output tensor.</p> </dd> </dl> @@ -433,13 +437,13 @@ <h1>File runner.hpp<a class="headerlink" href="#file-runner-hpp" title="Permalin <span id="_CPPv3N4vart6Runner13execute_asyncE9InputType10OutputType"></span><span id="_CPPv2N4vart6Runner13execute_asyncE9InputType10OutputType"></span><span id="vart::Runner::execute_async__InputType.OutputType"></span><span class="target" id="classvart_1_1_base_runner_1a3a6ebaa53c9250e3c739c3c407c1c20f"></span><span class="k"><span class="pre">virtual</span></span><span class="w"> </span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">pair</span></span><span class="p"><span class="pre"><</span></span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">uint32_t</span></span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="kt"><span class="pre">int</span></span><span class="p"><span class="pre">></span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">execute_async</span></span></span><span class="sig-paren">(</span><span class="n"><span class="pre">InputType</span></span><span class="w"> </span><span class="n sig-param"><span class="pre">input</span></span>, <span class="n"><span class="pre">OutputType</span></span><span class="w"> </span><span class="n sig-param"><span class="pre">output</span></span><span class="sig-paren">)</span><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="m"><span class="pre">0</span></span><br /></dt> <dd><p><a class="reference internal" href="../python/execute__async_8py.html#namespaceexecute__async"><span class="std std-ref">execute_async</span></a></p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>input</strong> – inputs with a customized type</p></li> <li><p><strong>output</strong> – outputs with a customized type</p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>pair<jobid, status> status 0 for exit successfully, others for customized warnings or errors </p> </dd> </dl> @@ -459,13 +463,13 @@ <h1>File runner.hpp<a class="headerlink" href="#file-runner-hpp" title="Permalin </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>subgraph</strong> – XIR Subgraph </p></li> <li><p><strong>mode</strong> – 1 mode supported: ‘run’ - DPU runner. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>An instance of DPU runner.</p> </dd> </dl> @@ -476,14 +480,14 @@ <h1>File runner.hpp<a class="headerlink" href="#file-runner-hpp" title="Permalin <span id="_CPPv3N4vart6Runner24create_runner_with_attrsEPKN3xir8SubgraphEPN3xir5AttrsE"></span><span id="_CPPv2N4vart6Runner24create_runner_with_attrsEPKN3xir8SubgraphEPN3xir5AttrsE"></span><span id="vart::Runner::create_runner_with_attrs__xir::SubgraphCP.xir::AttrsP"></span><span class="target" id="classvart_1_1_runner_1ad6ff892533067e379b0f7b4835b5f6f6"></span><span class="k"><span class="pre">static</span></span><span class="w"> </span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">unique_ptr</span></span><span class="p"><span class="pre"><</span></span><a class="reference internal" href="../class/classvart_1_1_runner.html#_CPPv4N4vart6RunnerE" title="vart::Runner"><span class="n"><span class="pre">Runner</span></span></a><span class="p"><span class="pre">></span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">create_runner_with_attrs</span></span></span><span class="sig-paren">(</span><span class="k"><span class="pre">const</span></span><span class="w"> </span><a class="reference internal" href="#_CPPv43xir" title="xir"><span class="n"><span class="pre">xir</span></span></a><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">Subgraph</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n sig-param"><span class="pre">subgraph</span></span>, <a class="reference internal" href="#_CPPv43xir" title="xir"><span class="n"><span class="pre">xir</span></span></a><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">Attrs</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n sig-param"><span class="pre">attrs</span></span><span class="sig-paren">)</span><br /></dt> <dd><p>Factory function to create an instance of DPU runner by subgraph, and attrs. </p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>subgraph</strong> – XIR Subgraph</p></li> <li><p><strong>attrs</strong> – XIR attrs object, this object is shared among all runners on the same graph.</p></li> <li><p><strong>attrs["mode"], 1</strong> – mode supported: ‘run’ - DPU runner.</p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>An instance of DPU runner. </p> </dd> </dl> @@ -491,7 +495,7 @@ <h1>File runner.hpp<a class="headerlink" href="#file-runner-hpp" title="Permalin <dl class="cpp function"> <dt class="sig sig-object cpp" id="_CPPv4N4vart6Runner13create_runnerERKNSt6stringE"> -<span id="_CPPv3N4vart6Runner13create_runnerERKNSt6stringE"></span><span id="_CPPv2N4vart6Runner13create_runnerERKNSt6stringE"></span><span id="vart::Runner::create_runner__ssCR"></span><span class="target" id="classvart_1_1_runner_1a8c7560df8d7d56a34d0460237c0b1402"></span><span class="k"><span class="pre">static</span></span><span class="w"> </span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">vector</span></span><span class="p"><span class="pre"><</span></span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">unique_ptr</span></span><span class="p"><span class="pre"><</span></span><a class="reference internal" href="../class/classvart_1_1_runner.html#_CPPv4N4vart6RunnerE" title="vart::Runner"><span class="n"><span class="pre">Runner</span></span></a><span class="p"><span class="pre">></span></span><span class="p"><span class="pre">></span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">create_runner</span></span></span><span class="sig-paren">(</span><span class="k"><span class="pre">const</span></span><span class="w"> </span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">string</span></span><span class="w"> </span><span class="p"><span class="pre">&</span></span><span class="n sig-param"><span class="pre">model_directory</span></span><span class="sig-paren">)</span><br /></dt> +<span id="_CPPv3N4vart6Runner13create_runnerERKNSt6stringE"></span><span id="_CPPv2N4vart6Runner13create_runnerERKNSt6stringE"></span><span id="vart::Runner::create_runner__ssCR"></span><span class="target" id="classvart_1_1_runner_1a8c7560df8d7d56a34d0460237c0b1402"></span><span class="k"><span class="pre">static</span></span><span class="w"> </span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">vector</span></span><span class="p"><span class="pre"><</span></span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">unique_ptr</span></span><span class="p"><span class="pre"><</span></span><a class="reference internal" href="../class/classvart_1_1_runner.html#_CPPv4N4vart6RunnerE" title="vart::Runner"><span class="n"><span class="pre">Runner</span></span></a><span class="p"><span class="pre">></span></span><span class="p"><span class="pre">></span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">create_runner</span></span></span><span class="sig-paren">(</span><span class="k"><span class="pre">const</span></span><span class="w"> </span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">string</span></span><span class="w"> </span><span class="p"><span class="pre">&</span></span><span class="n sig-param"><span class="pre">model_directory</span></span><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv4N4vart6Runner13create_runnerERKNSt6stringE" title="Permalink to this definition">¶</a><br /></dt> <dd></dd></dl> </div> diff --git a/docsrc/build/html/doxygen/api/file/runner__example_8py.html b/docsrc/build/html/doxygen/api/file/runner__example_8py.html index 440ca14f4..d629d241c 100644 --- a/docsrc/build/html/doxygen/api/file/runner__example_8py.html +++ b/docsrc/build/html/doxygen/api/file/runner__example_8py.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="runner-example"> -<h1>runner_example<a class="headerlink" href="#runner-example" title="Permalink to this heading">¶</a></h1> +<h1>runner_example<a class="headerlink" href="#runner-example" title="Permalink to this headline">¶</a></h1> <dl class="py class"> <dt class="sig sig-object py" id="runner_example"> <span class="target" id="namespacerunner__example"></span><em class="property"><span class="pre">module</span> </em><span class="sig-name descname"><span class="pre">runner_example</span></span><a class="headerlink" href="#runner_example" title="Permalink to this definition">¶</a></dt> diff --git a/docsrc/build/html/doxygen/api/file/runner__ext_8hpp.html b/docsrc/build/html/doxygen/api/file/runner__ext_8hpp.html index 7d118bb0f..3527b29c1 100644 --- a/docsrc/build/html/doxygen/api/file/runner__ext_8hpp.html +++ b/docsrc/build/html/doxygen/api/file/runner__ext_8hpp.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="runner-ext"> -<h1>runner_ext<a class="headerlink" href="#runner-ext" title="Permalink to this heading">¶</a></h1> +<h1>runner_ext<a class="headerlink" href="#runner-ext" title="Permalink to this headline">¶</a></h1> <div class="breathe-sectiondef docutils container"> <p class="breathe-sectiondef-title rubric" id="breathe-section-title-functions">Functions</p> <dl class="cpp function"> @@ -223,7 +227,7 @@ <h1>runner_ext<a class="headerlink" href="#runner-ext" title="Permalink to this </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>All input TensorBuffers. A vector of raw pointer to the input <a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a>.</p> </dd> </dl> @@ -243,7 +247,7 @@ <h1>runner_ext<a class="headerlink" href="#runner-ext" title="Permalink to this </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>All output TensorBuffers. A vector of raw pointer to the output <a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a>.</p> </dd> </dl> @@ -257,13 +261,13 @@ <h1>runner_ext<a class="headerlink" href="#runner-ext" title="Permalink to this <span id="_CPPv3N4vart9RunnerExt13create_runnerEPKN3xir8SubgraphEPN3xir5AttrsE"></span><span id="_CPPv2N4vart9RunnerExt13create_runnerEPKN3xir8SubgraphEPN3xir5AttrsE"></span><span id="vart::RunnerExt::create_runner__xir::SubgraphCP.xir::AttrsP"></span><span class="target" id="classvart_1_1_runner_ext_1a2d06613bafd66a3db2cbdbf8b30cada8"></span><span class="k"><span class="pre">static</span></span><span class="w"> </span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">unique_ptr</span></span><span class="p"><span class="pre"><</span></span><a class="reference internal" href="../class/classvart_1_1_runner_ext.html#_CPPv4N4vart9RunnerExtE" title="vart::RunnerExt"><span class="n"><span class="pre">RunnerExt</span></span></a><span class="p"><span class="pre">></span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">create_runner</span></span></span><span class="sig-paren">(</span><span class="k"><span class="pre">const</span></span><span class="w"> </span><a class="reference internal" href="runner_8hpp.html#_CPPv43xir" title="xir"><span class="n"><span class="pre">xir</span></span></a><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">Subgraph</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n sig-param"><span class="pre">subgraph</span></span>, <a class="reference internal" href="runner_8hpp.html#_CPPv43xir" title="xir"><span class="n"><span class="pre">xir</span></span></a><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">Attrs</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n sig-param"><span class="pre">attrs</span></span><span class="sig-paren">)</span><br /></dt> <dd><p>Factory fucntion to create an instance of runner by subgraph and attrs. </p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>subgraph</strong> – XIR Subgraph </p></li> <li><p><strong>attrs</strong> – XIR attrs object, this object is shared among all runners on the same graph. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>An instance of runner. </p> </dd> </dl> diff --git a/docsrc/build/html/doxygen/api/file/runnerext__example_8py.html b/docsrc/build/html/doxygen/api/file/runnerext__example_8py.html index 3f1e5db47..f8f965c2e 100644 --- a/docsrc/build/html/doxygen/api/file/runnerext__example_8py.html +++ b/docsrc/build/html/doxygen/api/file/runnerext__example_8py.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="runnerext-example"> -<h1>runnerext_example<a class="headerlink" href="#runnerext-example" title="Permalink to this heading">¶</a></h1> +<h1>runnerext_example<a class="headerlink" href="#runnerext-example" title="Permalink to this headline">¶</a></h1> <dl class="py class"> <dt class="sig sig-object py" id="runnerext_example"> <span class="target" id="namespacerunnerext__example"></span><em class="property"><span class="pre">module</span> </em><span class="sig-name descname"><span class="pre">runnerext_example</span></span><a class="headerlink" href="#runnerext_example" title="Permalink to this definition">¶</a></dt> diff --git a/docsrc/build/html/doxygen/api/file/tensor__buffer_8hpp.html b/docsrc/build/html/doxygen/api/file/tensor__buffer_8hpp.html index 844e19e49..b0ad5cd06 100644 --- a/docsrc/build/html/doxygen/api/file/tensor__buffer_8hpp.html +++ b/docsrc/build/html/doxygen/api/file/tensor__buffer_8hpp.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="file-tensor-buffer-hpp"> -<h1>File tensor_buffer.hpp<a class="headerlink" href="#file-tensor-buffer-hpp" title="Permalink to this heading">¶</a></h1> +<h1>File tensor_buffer.hpp<a class="headerlink" href="#file-tensor-buffer-hpp" title="Permalink to this headline">¶</a></h1> <dl class="cpp type"> <dt class="sig sig-object cpp" id="_CPPv43xir"> <span id="_CPPv33xir"></span><span id="_CPPv23xir"></span><span id="xir"></span><span class="target" id="namespacexir"></span><span class="k"><span class="pre">namespace</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">xir</span></span></span><br /></dt> @@ -244,10 +248,10 @@ <h1>File tensor_buffer.hpp<a class="headerlink" href="#file-tensor-buffer-hpp" t </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><p><strong>idx</strong> – The index of the data to be accessed, its dimension same as the tensor shape. </p> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>A pair of the data address of the index and the size of the data available for use in byte unit.</p> </dd> </dl> @@ -261,10 +265,10 @@ <h1>File tensor_buffer.hpp<a class="headerlink" href="#file-tensor-buffer-hpp" t Sample code: </p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">vart</span><span class="p">::</span><span class="n">TensorBuffer</span><span class="o">*</span> <span class="n">tb</span><span class="p">;</span> <span class="n">switch</span> <span class="p">(</span><span class="n">tb</span><span class="o">-></span><span class="n">get_location</span><span class="p">())</span> <span class="p">{</span> - <span class="k">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">TensorBuffer</span><span class="p">::</span><span class="n">location_t</span><span class="p">::</span><span class="n">HOST_VIRT</span><span class="p">:</span> + <span class="n">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">TensorBuffer</span><span class="p">::</span><span class="n">location_t</span><span class="p">::</span><span class="n">HOST_VIRT</span><span class="p">:</span> <span class="o">//</span> <span class="n">do</span> <span class="n">nothing</span> <span class="k">break</span><span class="p">;</span> - <span class="k">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">TensorBuffer</span><span class="p">::</span><span class="n">location_t</span><span class="p">::</span><span class="n">HOST_PHY</span><span class="p">:</span> + <span class="n">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">TensorBuffer</span><span class="p">::</span><span class="n">location_t</span><span class="p">::</span><span class="n">HOST_PHY</span><span class="p">:</span> <span class="o">//</span> <span class="n">do</span> <span class="n">nothing</span> <span class="k">break</span><span class="p">;</span> <span class="n">default</span><span class="p">:</span> @@ -274,7 +278,7 @@ <h1>File tensor_buffer.hpp<a class="headerlink" href="#file-tensor-buffer-hpp" t </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>the tensor buffer location, a location_t enum type value: HOST_VIRT/HOST_PHY/DEVICE_*.</p> </dd> </dl> @@ -291,10 +295,10 @@ <h1>File tensor_buffer.hpp<a class="headerlink" href="#file-tensor-buffer-hpp" t </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><p><strong>idx</strong> – The index of the data to be accessed, its dimension same to the tensor shape. </p> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>A pair of the data physical address of the index and the size of the data available for use in byte unit.</p> </dd> </dl> @@ -313,13 +317,13 @@ <h1>File tensor_buffer.hpp<a class="headerlink" href="#file-tensor-buffer-hpp" t </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>offset</strong> – The start offset address. </p></li> <li><p><strong>size</strong> – The data size. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>void</p> </dd> </dl> @@ -338,13 +342,13 @@ <h1>File tensor_buffer.hpp<a class="headerlink" href="#file-tensor-buffer-hpp" t </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>offset</strong> – The start offset address. </p></li> <li><p><strong>size</strong> – The data size. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>void</p> </dd> </dl> @@ -355,7 +359,7 @@ <h1>File tensor_buffer.hpp<a class="headerlink" href="#file-tensor-buffer-hpp" t <span id="_CPPv3N4vart12TensorBuffer14copy_from_hostE6size_tPKv6size_t6size_t"></span><span id="_CPPv2N4vart12TensorBuffer14copy_from_hostE6size_tPKv6size_t6size_t"></span><span id="vart::TensorBuffer::copy_from_host__s.voidCP.s.s"></span><span class="target" id="classvart_1_1_tensor_buffer_1a781dbc662ce87afedf825aebf94eb2ba"></span><span class="k"><span class="pre">virtual</span></span><span class="w"> </span><span class="kt"><span class="pre">void</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">copy_from_host</span></span></span><span class="sig-paren">(</span><span class="n"><span class="pre">size_t</span></span><span class="w"> </span><span class="n sig-param"><span class="pre">batch_idx</span></span>, <span class="k"><span class="pre">const</span></span><span class="w"> </span><span class="kt"><span class="pre">void</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n sig-param"><span class="pre">buf</span></span>, <span class="n"><span class="pre">size_t</span></span><span class="w"> </span><span class="n sig-param"><span class="pre">size</span></span>, <span class="n"><span class="pre">size_t</span></span><span class="w"> </span><span class="n sig-param"><span class="pre">offset</span></span><span class="sig-paren">)</span><br /></dt> <dd><p>copy data from source buffer. </p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>batch_idx</strong> – the batch index. </p></li> <li><p><strong>buf</strong> – source buffer start address. </p></li> @@ -363,7 +367,7 @@ <h1>File tensor_buffer.hpp<a class="headerlink" href="#file-tensor-buffer-hpp" t <li><p><strong>offset</strong> – the start offset to be copied. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>void </p> </dd> </dl> @@ -385,7 +389,7 @@ <h1>File tensor_buffer.hpp<a class="headerlink" href="#file-tensor-buffer-hpp" t </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>batch_idx</strong> – the batch index. </p></li> <li><p><strong>buf</strong> – destination buffer start address. </p></li> @@ -393,7 +397,7 @@ <h1>File tensor_buffer.hpp<a class="headerlink" href="#file-tensor-buffer-hpp" t <li><p><strong>offset</strong> – the start offset to be copied. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>void</p> </dd> </dl> @@ -404,7 +408,7 @@ <h1>File tensor_buffer.hpp<a class="headerlink" href="#file-tensor-buffer-hpp" t <span id="_CPPv3NK4vart12TensorBuffer10get_tensorEv"></span><span id="_CPPv2NK4vart12TensorBuffer10get_tensorEv"></span><span id="vart::TensorBuffer::get_tensorC"></span><span class="target" id="classvart_1_1_tensor_buffer_1a3c53b20e0e7b58a4c5d18baa10a3f0b6"></span><span class="k"><span class="pre">const</span></span><span class="w"> </span><a class="reference internal" href="runner_8hpp.html#_CPPv43xir" title="xir"><span class="n"><span class="pre">xir</span></span></a><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">Tensor</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="sig-name descname"><span class="n"><span class="pre">get_tensor</span></span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><span class="w"> </span><span class="k"><span class="pre">const</span></span><br /></dt> <dd><p>Get tensor of <a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a>. </p> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>A pointer to the tensor. </p> </dd> </dl> @@ -437,13 +441,13 @@ <h1>File tensor_buffer.hpp<a class="headerlink" href="#file-tensor-buffer-hpp" t </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>tb_from</strong> – the source <a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a>. </p></li> <li><p><strong>tb_to</strong> – the destination <a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a>. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>void</p> </dd> </dl> @@ -479,14 +483,14 @@ <h1>File tensor_buffer.hpp<a class="headerlink" href="#file-tensor-buffer-hpp" t </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>tensor</strong> – XIR tensor pointer </p></li> <li><p><strong>batch_addr</strong> – Array which contains device physical address for each batch </p></li> <li><p><strong>addr_arrsize</strong> – The array size of batch_addr </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>Unique pointer of created tensor buffer.</p> </dd> </dl> @@ -601,10 +605,10 @@ <h1>File tensor_buffer.hpp<a class="headerlink" href="#file-tensor-buffer-hpp" t </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><p><strong>idx</strong> – The index of the data to be accessed, its dimension same as the tensor shape. </p> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>A pair of the data address of the index and the size of the data available for use in byte unit.</p> </dd> </dl> @@ -618,10 +622,10 @@ <h1>File tensor_buffer.hpp<a class="headerlink" href="#file-tensor-buffer-hpp" t Sample code: </p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">vart</span><span class="p">::</span><span class="n">TensorBuffer</span><span class="o">*</span> <span class="n">tb</span><span class="p">;</span> <span class="n">switch</span> <span class="p">(</span><span class="n">tb</span><span class="o">-></span><span class="n">get_location</span><span class="p">())</span> <span class="p">{</span> - <span class="k">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">TensorBuffer</span><span class="p">::</span><span class="n">location_t</span><span class="p">::</span><span class="n">HOST_VIRT</span><span class="p">:</span> + <span class="n">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">TensorBuffer</span><span class="p">::</span><span class="n">location_t</span><span class="p">::</span><span class="n">HOST_VIRT</span><span class="p">:</span> <span class="o">//</span> <span class="n">do</span> <span class="n">nothing</span> <span class="k">break</span><span class="p">;</span> - <span class="k">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">TensorBuffer</span><span class="p">::</span><span class="n">location_t</span><span class="p">::</span><span class="n">HOST_PHY</span><span class="p">:</span> + <span class="n">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">TensorBuffer</span><span class="p">::</span><span class="n">location_t</span><span class="p">::</span><span class="n">HOST_PHY</span><span class="p">:</span> <span class="o">//</span> <span class="n">do</span> <span class="n">nothing</span> <span class="k">break</span><span class="p">;</span> <span class="n">default</span><span class="p">:</span> @@ -631,7 +635,7 @@ <h1>File tensor_buffer.hpp<a class="headerlink" href="#file-tensor-buffer-hpp" t </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>the tensor buffer location, a location_t enum type value: HOST_VIRT/HOST_PHY/DEVICE_*.</p> </dd> </dl> @@ -648,10 +652,10 @@ <h1>File tensor_buffer.hpp<a class="headerlink" href="#file-tensor-buffer-hpp" t </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><p><strong>idx</strong> – The index of the data to be accessed, its dimension same to the tensor shape. </p> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>A pair of the data physical address of the index and the size of the data available for use in byte unit.</p> </dd> </dl> @@ -670,13 +674,13 @@ <h1>File tensor_buffer.hpp<a class="headerlink" href="#file-tensor-buffer-hpp" t </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>offset</strong> – The start offset address. </p></li> <li><p><strong>size</strong> – The data size. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>void</p> </dd> </dl> @@ -695,13 +699,13 @@ <h1>File tensor_buffer.hpp<a class="headerlink" href="#file-tensor-buffer-hpp" t </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>offset</strong> – The start offset address. </p></li> <li><p><strong>size</strong> – The data size. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>void</p> </dd> </dl> @@ -712,7 +716,7 @@ <h1>File tensor_buffer.hpp<a class="headerlink" href="#file-tensor-buffer-hpp" t <span id="_CPPv3N4vart15TensorBufferExt14copy_from_hostE6size_tPKv6size_t6size_t"></span><span id="_CPPv2N4vart15TensorBufferExt14copy_from_hostE6size_tPKv6size_t6size_t"></span><span id="vart::TensorBufferExt::copy_from_host__s.voidCP.s.s"></span><span class="target" id="classvart_1_1_tensor_buffer_1a781dbc662ce87afedf825aebf94eb2ba"></span><span class="k"><span class="pre">virtual</span></span><span class="w"> </span><span class="kt"><span class="pre">void</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">copy_from_host</span></span></span><span class="sig-paren">(</span><span class="n"><span class="pre">size_t</span></span><span class="w"> </span><span class="n sig-param"><span class="pre">batch_idx</span></span>, <span class="k"><span class="pre">const</span></span><span class="w"> </span><span class="kt"><span class="pre">void</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n sig-param"><span class="pre">buf</span></span>, <span class="n"><span class="pre">size_t</span></span><span class="w"> </span><span class="n sig-param"><span class="pre">size</span></span>, <span class="n"><span class="pre">size_t</span></span><span class="w"> </span><span class="n sig-param"><span class="pre">offset</span></span><span class="sig-paren">)</span><br /></dt> <dd><p>copy data from source buffer. </p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>batch_idx</strong> – the batch index. </p></li> <li><p><strong>buf</strong> – source buffer start address. </p></li> @@ -720,7 +724,7 @@ <h1>File tensor_buffer.hpp<a class="headerlink" href="#file-tensor-buffer-hpp" t <li><p><strong>offset</strong> – the start offset to be copied. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>void </p> </dd> </dl> @@ -742,7 +746,7 @@ <h1>File tensor_buffer.hpp<a class="headerlink" href="#file-tensor-buffer-hpp" t </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>batch_idx</strong> – the batch index. </p></li> <li><p><strong>buf</strong> – destination buffer start address. </p></li> @@ -750,7 +754,7 @@ <h1>File tensor_buffer.hpp<a class="headerlink" href="#file-tensor-buffer-hpp" t <li><p><strong>offset</strong> – the start offset to be copied. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>void</p> </dd> </dl> @@ -761,7 +765,7 @@ <h1>File tensor_buffer.hpp<a class="headerlink" href="#file-tensor-buffer-hpp" t <span id="_CPPv3NK4vart15TensorBufferExt10get_tensorEv"></span><span id="_CPPv2NK4vart15TensorBufferExt10get_tensorEv"></span><span id="vart::TensorBufferExt::get_tensorC"></span><span class="target" id="classvart_1_1_tensor_buffer_1a3c53b20e0e7b58a4c5d18baa10a3f0b6"></span><span class="k"><span class="pre">const</span></span><span class="w"> </span><a class="reference internal" href="runner_8hpp.html#_CPPv43xir" title="xir"><span class="n"><span class="pre">xir</span></span></a><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">Tensor</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="sig-name descname"><span class="n"><span class="pre">get_tensor</span></span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><span class="w"> </span><span class="k"><span class="pre">const</span></span><br /></dt> <dd><p>Get tensor of <a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a>. </p> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>A pointer to the tensor. </p> </dd> </dl> @@ -788,13 +792,13 @@ <h1>File tensor_buffer.hpp<a class="headerlink" href="#file-tensor-buffer-hpp" t </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>tb_from</strong> – the source <a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a>. </p></li> <li><p><strong>tb_to</strong> – the destination <a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a>. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>void</p> </dd> </dl> @@ -830,14 +834,14 @@ <h1>File tensor_buffer.hpp<a class="headerlink" href="#file-tensor-buffer-hpp" t </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>tensor</strong> – XIR tensor pointer </p></li> <li><p><strong>batch_addr</strong> – Array which contains device physical address for each batch </p></li> <li><p><strong>addr_arrsize</strong> – The array size of batch_addr </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>Unique pointer of created tensor buffer.</p> </dd> </dl> diff --git a/docsrc/build/html/doxygen/api/file/wait_8py.html b/docsrc/build/html/doxygen/api/file/wait_8py.html index 271ec5f84..303d02e5a 100644 --- a/docsrc/build/html/doxygen/api/file/wait_8py.html +++ b/docsrc/build/html/doxygen/api/file/wait_8py.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="wait"> -<h1>wait<a class="headerlink" href="#wait" title="Permalink to this heading">¶</a></h1> +<h1>wait<a class="headerlink" href="#wait" title="Permalink to this headline">¶</a></h1> <div class="breathe-sectiondef docutils container"> <p class="breathe-sectiondef-title rubric" id="breathe-section-title-functions">Functions</p> <dl class="py function"> @@ -155,10 +159,10 @@ <h1>wait<a class="headerlink" href="#wait" title="Permalink to this heading">¶< </ol> </p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><p><strong>jobid_time</strong> – tuple[uint32_t, int], [job id, time], jobid: neg for any id, others for specific job id. time: not used here</p> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>status 0 for exit successfully, others for customized warnings or errors </p> </dd> </dl> diff --git a/docsrc/build/html/doxygen/api/filelist.html b/docsrc/build/html/doxygen/api/filelist.html index 862fec390..a4380e98c 100644 --- a/docsrc/build/html/doxygen/api/filelist.html +++ b/docsrc/build/html/doxygen/api/filelist.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script> <script src="../../_static/jquery.js"></script> <script src="../../_static/underscore.js"></script> - <script src="../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../_static/doctools.js"></script> <script src="../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../docs/workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="file-list"> -<h1>File list<a class="headerlink" href="#file-list" title="Permalink to this heading">¶</a></h1> +<h1>File list<a class="headerlink" href="#file-list" title="Permalink to this headline">¶</a></h1> <div class="toctree-wrapper compound"> <ul> <li class="toctree-l1"><a class="reference internal" href="file/create__graph__runner_8py.html">create_graph_runner</a></li> diff --git a/docsrc/build/html/doxygen/api/namespace/namespacecreate__graph__runner.html b/docsrc/build/html/doxygen/api/namespace/namespacecreate__graph__runner.html index 6bd7be8fb..1b3a76a68 100644 --- a/docsrc/build/html/doxygen/api/namespace/namespacecreate__graph__runner.html +++ b/docsrc/build/html/doxygen/api/namespace/namespacecreate__graph__runner.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="namespace-create-graph-runner"> -<h1>Namespace create_graph_runner<a class="headerlink" href="#namespace-create-graph-runner" title="Permalink to this heading">¶</a></h1> +<h1>Namespace create_graph_runner<a class="headerlink" href="#namespace-create-graph-runner" title="Permalink to this headline">¶</a></h1> <dl class="py class"> <dt class="sig sig-object py" id="create_graph_runner"> <span class="target" id="namespacecreate__graph__runner"></span><em class="property"><span class="pre">module</span> </em><span class="sig-name descname"><span class="pre">create_graph_runner</span></span><a class="headerlink" href="#create_graph_runner" title="Permalink to this definition">¶</a></dt> @@ -154,10 +158,10 @@ <h1>Namespace create_graph_runner<a class="headerlink" href="#namespace-create-g </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><p><strong>graph</strong> – xir.Graph, XIR Graph runners on the same graph. </p> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>vart.RunnerExt. An instance of runner.</p> </dd> </dl> diff --git a/docsrc/build/html/doxygen/api/namespace/namespacecreate__runner.html b/docsrc/build/html/doxygen/api/namespace/namespacecreate__runner.html index 02520bb16..e48e5fb91 100644 --- a/docsrc/build/html/doxygen/api/namespace/namespacecreate__runner.html +++ b/docsrc/build/html/doxygen/api/namespace/namespacecreate__runner.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="namespace-create-runner"> -<h1>Namespace create_runner<a class="headerlink" href="#namespace-create-runner" title="Permalink to this heading">¶</a></h1> +<h1>Namespace create_runner<a class="headerlink" href="#namespace-create-runner" title="Permalink to this headline">¶</a></h1> <dl class="py class"> <dt class="sig sig-object py" id="create_runner"> <span class="target" id="namespacecreate__runner"></span><em class="property"><span class="pre">module</span> </em><span class="sig-name descname"><span class="pre">create_runner</span></span><a class="headerlink" href="#create_runner" title="Permalink to this definition">¶</a></dt> @@ -146,13 +150,13 @@ <h1>Namespace create_runner<a class="headerlink" href="#namespace-create-runner" </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>subgraph</strong> – : xir.Subgraph, XIR Subgraph </p></li> <li><p><strong>mode</strong> – 1 mode supported: ‘run’ - DPU runner. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p><a class="reference internal" href="namespacevart.html#classvart_1_1_runner"><span class="std std-ref">vart.Runner</span></a>, an instance of DPU runner.</p> </dd> </dl> diff --git a/docsrc/build/html/doxygen/api/namespace/namespaceexecute__async.html b/docsrc/build/html/doxygen/api/namespace/namespaceexecute__async.html index 53b178def..d9aa788c2 100644 --- a/docsrc/build/html/doxygen/api/namespace/namespaceexecute__async.html +++ b/docsrc/build/html/doxygen/api/namespace/namespaceexecute__async.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -134,20 +138,20 @@ <div itemprop="articleBody"> <section id="namespace-execute-async"> -<h1>Namespace execute_async<a class="headerlink" href="#namespace-execute-async" title="Permalink to this heading">¶</a></h1> +<h1>Namespace execute_async<a class="headerlink" href="#namespace-execute-async" title="Permalink to this headline">¶</a></h1> <dl class="py class"> <dt class="sig sig-object py" id="execute_async"> <span class="target" id="namespaceexecute__async"></span><em class="property"><span class="pre">module</span> </em><span class="sig-name descname"><span class="pre">execute_async</span></span><a class="headerlink" href="#execute_async" title="Permalink to this definition">¶</a></dt> <dd><p>Executes the runner. </p> <p>This is a blocking function.</p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>inputs</strong> – : List[<a class="reference internal" href="namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">vart.TensorBuffer</span></a>], A list of <a class="reference internal" href="namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">vart.TensorBuffer</span></a> containing the input data for inference.</p></li> <li><p><strong>outputs</strong> – : List[<a class="reference internal" href="namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">vart.TensorBuffer</span></a>], A list of <a class="reference internal" href="namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">vart.TensorBuffer</span></a> which will be filled with output data.</p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>tuple[jobid, status] status 0 for exit successfully, others for customized warnings or errors. </p> </dd> </dl> diff --git a/docsrc/build/html/doxygen/api/namespace/namespaceget__input__tensors.html b/docsrc/build/html/doxygen/api/namespace/namespaceget__input__tensors.html index e6ea1c463..c7ffe3eb3 100644 --- a/docsrc/build/html/doxygen/api/namespace/namespaceget__input__tensors.html +++ b/docsrc/build/html/doxygen/api/namespace/namespaceget__input__tensors.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="namespace-get-input-tensors"> -<h1>Namespace get_input_tensors<a class="headerlink" href="#namespace-get-input-tensors" title="Permalink to this heading">¶</a></h1> +<h1>Namespace get_input_tensors<a class="headerlink" href="#namespace-get-input-tensors" title="Permalink to this headline">¶</a></h1> <dl class="py class"> <dt class="sig sig-object py" id="get_input_tensors"> <span class="target" id="namespaceget__input__tensors"></span><em class="property"><span class="pre">module</span> </em><span class="sig-name descname"><span class="pre">get_input_tensors</span></span><a class="headerlink" href="#get_input_tensors" title="Permalink to this definition">¶</a></dt> @@ -154,7 +158,7 @@ <h1>Namespace get_input_tensors<a class="headerlink" href="#namespace-get-input- </div> <p>Note that the dimensions (.dim) of an input tensor are in the form NHWC (batchsize, height,width,channels). </p> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>List[xir.Tensor]. A list of DPU runner inputs, each of which have type xir.Tensor.</p> </dd> </dl> diff --git a/docsrc/build/html/doxygen/api/namespace/namespaceget__inputs.html b/docsrc/build/html/doxygen/api/namespace/namespaceget__inputs.html index d2db68744..79c1b3ae2 100644 --- a/docsrc/build/html/doxygen/api/namespace/namespaceget__inputs.html +++ b/docsrc/build/html/doxygen/api/namespace/namespaceget__inputs.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="namespace-get-inputs"> -<h1>Namespace get_inputs<a class="headerlink" href="#namespace-get-inputs" title="Permalink to this heading">¶</a></h1> +<h1>Namespace get_inputs<a class="headerlink" href="#namespace-get-inputs" title="Permalink to this headline">¶</a></h1> <dl class="py class"> <dt class="sig sig-object py" id="get_inputs"> <span class="target" id="namespaceget__inputs"></span><em class="property"><span class="pre">module</span> </em><span class="sig-name descname"><span class="pre">get_inputs</span></span><a class="headerlink" href="#get_inputs" title="Permalink to this definition">¶</a></dt> @@ -146,7 +150,7 @@ <h1>Namespace get_inputs<a class="headerlink" href="#namespace-get-inputs" title </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>: List[<a class="reference internal" href="namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">vart.TensorBuffer</span></a>]. All input tensors. A vector of raw pointer to the input tensor.</p> </dd> </dl> diff --git a/docsrc/build/html/doxygen/api/namespace/namespaceget__output__tensors.html b/docsrc/build/html/doxygen/api/namespace/namespaceget__output__tensors.html index 8f0c8f2e1..1b902e47e 100644 --- a/docsrc/build/html/doxygen/api/namespace/namespaceget__output__tensors.html +++ b/docsrc/build/html/doxygen/api/namespace/namespaceget__output__tensors.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="namespace-get-output-tensors"> -<h1>Namespace get_output_tensors<a class="headerlink" href="#namespace-get-output-tensors" title="Permalink to this heading">¶</a></h1> +<h1>Namespace get_output_tensors<a class="headerlink" href="#namespace-get-output-tensors" title="Permalink to this headline">¶</a></h1> <dl class="py class"> <dt class="sig sig-object py" id="get_output_tensors"> <span class="target" id="namespaceget__output__tensors"></span><em class="property"><span class="pre">module</span> </em><span class="sig-name descname"><span class="pre">get_output_tensors</span></span><a class="headerlink" href="#get_output_tensors" title="Permalink to this definition">¶</a></dt> @@ -146,7 +150,7 @@ <h1>Namespace get_output_tensors<a class="headerlink" href="#namespace-get-outpu </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>List[xir.Tensor], all output tensors. A vector of raw pointer to the output tensor.</p> </dd> </dl> diff --git a/docsrc/build/html/doxygen/api/namespace/namespaceget__outputs.html b/docsrc/build/html/doxygen/api/namespace/namespaceget__outputs.html index fb83d4e65..19d29b3e7 100644 --- a/docsrc/build/html/doxygen/api/namespace/namespaceget__outputs.html +++ b/docsrc/build/html/doxygen/api/namespace/namespaceget__outputs.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="namespace-get-outputs"> -<h1>Namespace get_outputs<a class="headerlink" href="#namespace-get-outputs" title="Permalink to this heading">¶</a></h1> +<h1>Namespace get_outputs<a class="headerlink" href="#namespace-get-outputs" title="Permalink to this headline">¶</a></h1> <dl class="py class"> <dt class="sig sig-object py" id="get_outputs"> <span class="target" id="namespaceget__outputs"></span><em class="property"><span class="pre">module</span> </em><span class="sig-name descname"><span class="pre">get_outputs</span></span><a class="headerlink" href="#get_outputs" title="Permalink to this definition">¶</a></dt> @@ -146,7 +150,7 @@ <h1>Namespace get_outputs<a class="headerlink" href="#namespace-get-outputs" tit </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>List[<a class="reference internal" href="namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">vart.TensorBuffer</span></a>]. All output tensors. A vector of raw pointer to the output tensor.</p> </dd> </dl> diff --git a/docsrc/build/html/doxygen/api/namespace/namespacerunner__example.html b/docsrc/build/html/doxygen/api/namespace/namespacerunner__example.html index 4e53b825a..50e667293 100644 --- a/docsrc/build/html/doxygen/api/namespace/namespacerunner__example.html +++ b/docsrc/build/html/doxygen/api/namespace/namespacerunner__example.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="namespace-runner-example"> -<h1>Namespace runner_example<a class="headerlink" href="#namespace-runner-example" title="Permalink to this heading">¶</a></h1> +<h1>Namespace runner_example<a class="headerlink" href="#namespace-runner-example" title="Permalink to this headline">¶</a></h1> <dl class="py class"> <dt class="sig sig-object py" id="runner_example"> <span class="target" id="namespacerunner__example"></span><em class="property"><span class="pre">module</span> </em><span class="sig-name descname"><span class="pre">runner_example</span></span><a class="headerlink" href="#runner_example" title="Permalink to this definition">¶</a></dt> diff --git a/docsrc/build/html/doxygen/api/namespace/namespacerunnerext__example.html b/docsrc/build/html/doxygen/api/namespace/namespacerunnerext__example.html index 53ec0a668..e165c4070 100644 --- a/docsrc/build/html/doxygen/api/namespace/namespacerunnerext__example.html +++ b/docsrc/build/html/doxygen/api/namespace/namespacerunnerext__example.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="namespace-runnerext-example"> -<h1>Namespace runnerext_example<a class="headerlink" href="#namespace-runnerext-example" title="Permalink to this heading">¶</a></h1> +<h1>Namespace runnerext_example<a class="headerlink" href="#namespace-runnerext-example" title="Permalink to this headline">¶</a></h1> <dl class="py class"> <dt class="sig sig-object py" id="runnerext_example"> <span class="target" id="namespacerunnerext__example"></span><em class="property"><span class="pre">module</span> </em><span class="sig-name descname"><span class="pre">runnerext_example</span></span><a class="headerlink" href="#runnerext_example" title="Permalink to this definition">¶</a></dt> diff --git a/docsrc/build/html/doxygen/api/namespace/namespacevart.html b/docsrc/build/html/doxygen/api/namespace/namespacevart.html index 6bc855328..5c97e0080 100644 --- a/docsrc/build/html/doxygen/api/namespace/namespacevart.html +++ b/docsrc/build/html/doxygen/api/namespace/namespacevart.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="namespace-vart"> -<h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink to this heading">¶</a></h1> +<h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink to this headline">¶</a></h1> <dl class="cpp type"> <dt class="sig sig-object cpp" id="_CPPv44vart"> <span id="_CPPv34vart"></span><span id="_CPPv24vart"></span><span id="vart"></span><span class="target" id="namespacevart"></span><span class="k"><span class="pre">namespace</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">vart</span></span></span><br /></dt> @@ -172,13 +176,13 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink <span id="_CPPv3N4vart10BaseRunner13execute_asyncE9InputType10OutputType"></span><span id="_CPPv2N4vart10BaseRunner13execute_asyncE9InputType10OutputType"></span><span id="vart::BaseRunner::execute_async__InputType.OutputType"></span><span class="target" id="classvart_1_1_base_runner_1a3a6ebaa53c9250e3c739c3c407c1c20f"></span><span class="k"><span class="pre">virtual</span></span><span class="w"> </span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">pair</span></span><span class="p"><span class="pre"><</span></span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">uint32_t</span></span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="kt"><span class="pre">int</span></span><span class="p"><span class="pre">></span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">execute_async</span></span></span><span class="sig-paren">(</span><a class="reference internal" href="../class/classvart_1_1_base_runner.html#_CPPv4I00EN4vart10BaseRunnerE" title="vart::BaseRunner::InputType"><span class="n"><span class="pre">InputType</span></span></a><span class="w"> </span><span class="n sig-param"><span class="pre">input</span></span>, <a class="reference internal" href="../class/classvart_1_1_base_runner.html#_CPPv4I00EN4vart10BaseRunnerE" title="vart::BaseRunner::OutputType"><span class="n"><span class="pre">OutputType</span></span></a><span class="w"> </span><span class="n sig-param"><span class="pre">output</span></span><span class="sig-paren">)</span><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="m"><span class="pre">0</span></span><br /></dt> <dd><p><a class="reference internal" href="../python/execute__async_8py.html#namespaceexecute__async"><span class="std std-ref">execute_async</span></a></p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>input</strong> – inputs with a customized type</p></li> <li><p><strong>output</strong> – outputs with a customized type</p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>pair<jobid, status> status 0 for exit successfully, others for customized warnings or errors </p> </dd> </dl> @@ -190,13 +194,13 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink <dd><p>wait </p> <p>modes: 1. Blocking wait for specific ID. 2. Non-blocking wait for specific ID. 3. Blocking wait for any ID. 4. Non-blocking wait for any ID</p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>jobid</strong> – job id, neg for any id, others for specific job id</p></li> <li><p><strong>timeout</strong> – timeout, neg for block for ever, 0 for non-block, pos for block with a limitation(ms).</p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>status 0 for exit successfully, others for customized warnings or errors </p> </dd> </dl> @@ -270,13 +274,13 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink <dd><p>Executes the runner. </p> <p>This is a blocking function.</p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>input</strong> – A vector of <a class="reference internal" href="#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a> create by all input tensors of runner.</p></li> <li><p><strong>output</strong> – A vector of <a class="reference internal" href="#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a> create by all output tensors of runner.</p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>pair<jobid, status> status 0 for exit successfully, others for customized warnings or errors </p> </dd> </dl> @@ -288,13 +292,13 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink <dd><p>Waits for the end of DPU processing. </p> <p>modes: 1. Blocking wait for specific ID. 2. Non-blocking wait for specific ID. 3. Blocking wait for any ID. 4. Non-blocking wait for any ID</p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>jobid</strong> – job id, neg for any id, others for specific job id</p></li> <li><p><strong>timeout</strong> – timeout, neg for block for ever, 0 for non-block, pos for block with a limitation(ms).</p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>status 0 for exit successfully, others for customized warnings or errors </p> </dd> </dl> @@ -308,17 +312,17 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink Sample code:</p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">auto</span> <span class="nb">format</span> <span class="o">=</span> <span class="n">runner</span><span class="o">-></span><span class="n">get_tensor_format</span><span class="p">();</span> <span class="n">switch</span> <span class="p">(</span><span class="nb">format</span><span class="p">)</span> <span class="p">{</span> - <span class="k">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">Runner</span><span class="p">::</span><span class="n">TensorFormat</span><span class="p">::</span><span class="n">NCHW</span><span class="p">:</span> + <span class="n">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">Runner</span><span class="p">::</span><span class="n">TensorFormat</span><span class="p">::</span><span class="n">NCHW</span><span class="p">:</span> <span class="o">//</span> <span class="n">do</span> <span class="n">something</span> <span class="k">break</span><span class="p">;</span> - <span class="k">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">Runner</span><span class="p">::</span><span class="n">TensorFormat</span><span class="p">::</span><span class="n">NHWC</span><span class="p">:</span> + <span class="n">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">Runner</span><span class="p">::</span><span class="n">TensorFormat</span><span class="p">::</span><span class="n">NHWC</span><span class="p">:</span> <span class="o">//</span> <span class="n">do</span> <span class="n">something</span> <span class="k">break</span><span class="p">;</span> <span class="p">}</span> </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>TensorFormat : NHWC / HCHW</p> </dd> </dl> @@ -339,7 +343,7 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>All input tensors. A vector of raw pointer to the input tensor.</p> </dd> </dl> @@ -360,7 +364,7 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink </div> </p> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>All output tensors. A vector of raw pointer to the output tensor.</p> </dd> </dl> @@ -371,13 +375,13 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink <span id="_CPPv3N4vart6Runner13execute_asyncE9InputType10OutputType"></span><span id="_CPPv2N4vart6Runner13execute_asyncE9InputType10OutputType"></span><span id="vart::Runner::execute_async__InputType.OutputType"></span><span class="target" id="classvart_1_1_base_runner_1a3a6ebaa53c9250e3c739c3c407c1c20f"></span><span class="k"><span class="pre">virtual</span></span><span class="w"> </span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">pair</span></span><span class="p"><span class="pre"><</span></span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">uint32_t</span></span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="kt"><span class="pre">int</span></span><span class="p"><span class="pre">></span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">execute_async</span></span></span><span class="sig-paren">(</span><span class="n"><span class="pre">InputType</span></span><span class="w"> </span><span class="n sig-param"><span class="pre">input</span></span>, <span class="n"><span class="pre">OutputType</span></span><span class="w"> </span><span class="n sig-param"><span class="pre">output</span></span><span class="sig-paren">)</span><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="m"><span class="pre">0</span></span><br /></dt> <dd><p><a class="reference internal" href="../python/execute__async_8py.html#namespaceexecute__async"><span class="std std-ref">execute_async</span></a></p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>input</strong> – inputs with a customized type</p></li> <li><p><strong>output</strong> – outputs with a customized type</p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>pair<jobid, status> status 0 for exit successfully, others for customized warnings or errors </p> </dd> </dl> @@ -397,13 +401,13 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>subgraph</strong> – XIR Subgraph </p></li> <li><p><strong>mode</strong> – 1 mode supported: ‘run’ - DPU runner. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>An instance of DPU runner.</p> </dd> </dl> @@ -414,14 +418,14 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink <span id="_CPPv3N4vart6Runner24create_runner_with_attrsEPKN3xir8SubgraphEPN3xir5AttrsE"></span><span id="_CPPv2N4vart6Runner24create_runner_with_attrsEPKN3xir8SubgraphEPN3xir5AttrsE"></span><span id="vart::Runner::create_runner_with_attrs__xir::SubgraphCP.xir::AttrsP"></span><span class="target" id="classvart_1_1_runner_1ad6ff892533067e379b0f7b4835b5f6f6"></span><span class="k"><span class="pre">static</span></span><span class="w"> </span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">unique_ptr</span></span><span class="p"><span class="pre"><</span></span><a class="reference internal" href="../class/classvart_1_1_runner.html#_CPPv4N4vart6RunnerE" title="vart::Runner"><span class="n"><span class="pre">Runner</span></span></a><span class="p"><span class="pre">></span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">create_runner_with_attrs</span></span></span><span class="sig-paren">(</span><span class="k"><span class="pre">const</span></span><span class="w"> </span><a class="reference internal" href="../file/runner_8hpp.html#_CPPv43xir" title="xir"><span class="n"><span class="pre">xir</span></span></a><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">Subgraph</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n sig-param"><span class="pre">subgraph</span></span>, <a class="reference internal" href="../file/runner_8hpp.html#_CPPv43xir" title="xir"><span class="n"><span class="pre">xir</span></span></a><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">Attrs</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n sig-param"><span class="pre">attrs</span></span><span class="sig-paren">)</span><br /></dt> <dd><p>Factory function to create an instance of DPU runner by subgraph, and attrs. </p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>subgraph</strong> – XIR Subgraph</p></li> <li><p><strong>attrs</strong> – XIR attrs object, this object is shared among all runners on the same graph.</p></li> <li><p><strong>attrs["mode"], 1</strong> – mode supported: ‘run’ - DPU runner.</p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>An instance of DPU runner. </p> </dd> </dl> @@ -449,7 +453,7 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>All input TensorBuffers. A vector of raw pointer to the input <a class="reference internal" href="#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a>.</p> </dd> </dl> @@ -469,7 +473,7 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>All output TensorBuffers. A vector of raw pointer to the output <a class="reference internal" href="#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a>.</p> </dd> </dl> @@ -481,13 +485,13 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink <dd><p>Executes the runner. </p> <p>This is a blocking function.</p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>input</strong> – A vector of <a class="reference internal" href="#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a> create by all input tensors of runner.</p></li> <li><p><strong>output</strong> – A vector of <a class="reference internal" href="#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a> create by all output tensors of runner.</p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>pair<jobid, status> status 0 for exit successfully, others for customized warnings or errors </p> </dd> </dl> @@ -498,13 +502,13 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink <span id="_CPPv3N4vart9RunnerExt13execute_asyncE9InputType10OutputType"></span><span id="_CPPv2N4vart9RunnerExt13execute_asyncE9InputType10OutputType"></span><span id="vart::RunnerExt::execute_async__InputType.OutputType"></span><span class="target" id="classvart_1_1_base_runner_1a3a6ebaa53c9250e3c739c3c407c1c20f"></span><span class="k"><span class="pre">virtual</span></span><span class="w"> </span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">pair</span></span><span class="p"><span class="pre"><</span></span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">uint32_t</span></span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="kt"><span class="pre">int</span></span><span class="p"><span class="pre">></span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">execute_async</span></span></span><span class="sig-paren">(</span><span class="n"><span class="pre">InputType</span></span><span class="w"> </span><span class="n sig-param"><span class="pre">input</span></span>, <span class="n"><span class="pre">OutputType</span></span><span class="w"> </span><span class="n sig-param"><span class="pre">output</span></span><span class="sig-paren">)</span><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="m"><span class="pre">0</span></span><br /></dt> <dd><p><a class="reference internal" href="../python/execute__async_8py.html#namespaceexecute__async"><span class="std std-ref">execute_async</span></a></p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>input</strong> – inputs with a customized type</p></li> <li><p><strong>output</strong> – outputs with a customized type</p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>pair<jobid, status> status 0 for exit successfully, others for customized warnings or errors </p> </dd> </dl> @@ -516,13 +520,13 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink <dd><p>Waits for the end of DPU processing. </p> <p>modes: 1. Blocking wait for specific ID. 2. Non-blocking wait for specific ID. 3. Blocking wait for any ID. 4. Non-blocking wait for any ID</p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>jobid</strong> – job id, neg for any id, others for specific job id</p></li> <li><p><strong>timeout</strong> – timeout, neg for block for ever, 0 for non-block, pos for block with a limitation(ms).</p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>status 0 for exit successfully, others for customized warnings or errors </p> </dd> </dl> @@ -536,17 +540,17 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink Sample code:</p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">auto</span> <span class="nb">format</span> <span class="o">=</span> <span class="n">runner</span><span class="o">-></span><span class="n">get_tensor_format</span><span class="p">();</span> <span class="n">switch</span> <span class="p">(</span><span class="nb">format</span><span class="p">)</span> <span class="p">{</span> - <span class="k">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">Runner</span><span class="p">::</span><span class="n">TensorFormat</span><span class="p">::</span><span class="n">NCHW</span><span class="p">:</span> + <span class="n">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">Runner</span><span class="p">::</span><span class="n">TensorFormat</span><span class="p">::</span><span class="n">NCHW</span><span class="p">:</span> <span class="o">//</span> <span class="n">do</span> <span class="n">something</span> <span class="k">break</span><span class="p">;</span> - <span class="k">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">Runner</span><span class="p">::</span><span class="n">TensorFormat</span><span class="p">::</span><span class="n">NHWC</span><span class="p">:</span> + <span class="n">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">Runner</span><span class="p">::</span><span class="n">TensorFormat</span><span class="p">::</span><span class="n">NHWC</span><span class="p">:</span> <span class="o">//</span> <span class="n">do</span> <span class="n">something</span> <span class="k">break</span><span class="p">;</span> <span class="p">}</span> </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>TensorFormat : NHWC / HCHW</p> </dd> </dl> @@ -567,7 +571,7 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>All input tensors. A vector of raw pointer to the input tensor.</p> </dd> </dl> @@ -588,7 +592,7 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink </div> </p> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>All output tensors. A vector of raw pointer to the output tensor.</p> </dd> </dl> @@ -602,13 +606,13 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink <span id="_CPPv3N4vart9RunnerExt13create_runnerEPKN3xir8SubgraphEPN3xir5AttrsE"></span><span id="_CPPv2N4vart9RunnerExt13create_runnerEPKN3xir8SubgraphEPN3xir5AttrsE"></span><span id="vart::RunnerExt::create_runner__xir::SubgraphCP.xir::AttrsP"></span><span class="target" id="classvart_1_1_runner_ext_1a2d06613bafd66a3db2cbdbf8b30cada8"></span><span class="k"><span class="pre">static</span></span><span class="w"> </span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">unique_ptr</span></span><span class="p"><span class="pre"><</span></span><a class="reference internal" href="../class/classvart_1_1_runner_ext.html#_CPPv4N4vart9RunnerExtE" title="vart::RunnerExt"><span class="n"><span class="pre">RunnerExt</span></span></a><span class="p"><span class="pre">></span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">create_runner</span></span></span><span class="sig-paren">(</span><span class="k"><span class="pre">const</span></span><span class="w"> </span><a class="reference internal" href="../file/runner_8hpp.html#_CPPv43xir" title="xir"><span class="n"><span class="pre">xir</span></span></a><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">Subgraph</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n sig-param"><span class="pre">subgraph</span></span>, <a class="reference internal" href="../file/runner_8hpp.html#_CPPv43xir" title="xir"><span class="n"><span class="pre">xir</span></span></a><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">Attrs</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n sig-param"><span class="pre">attrs</span></span><span class="sig-paren">)</span><br /></dt> <dd><p>Factory fucntion to create an instance of runner by subgraph and attrs. </p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>subgraph</strong> – XIR Subgraph </p></li> <li><p><strong>attrs</strong> – XIR attrs object, this object is shared among all runners on the same graph. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>An instance of runner. </p> </dd> </dl> @@ -625,13 +629,13 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>subgraph</strong> – XIR Subgraph </p></li> <li><p><strong>mode</strong> – 1 mode supported: ‘run’ - DPU runner. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>An instance of DPU runner.</p> </dd> </dl> @@ -642,14 +646,14 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink <span id="_CPPv3N4vart9RunnerExt24create_runner_with_attrsEPKN3xir8SubgraphEPN3xir5AttrsE"></span><span id="_CPPv2N4vart9RunnerExt24create_runner_with_attrsEPKN3xir8SubgraphEPN3xir5AttrsE"></span><span id="vart::RunnerExt::create_runner_with_attrs__xir::SubgraphCP.xir::AttrsP"></span><span class="target" id="classvart_1_1_runner_1ad6ff892533067e379b0f7b4835b5f6f6"></span><span class="k"><span class="pre">static</span></span><span class="w"> </span><span class="n"><span class="pre">std</span></span><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">unique_ptr</span></span><span class="p"><span class="pre"><</span></span><a class="reference internal" href="../class/classvart_1_1_runner.html#_CPPv4N4vart6RunnerE" title="vart::Runner"><span class="n"><span class="pre">Runner</span></span></a><span class="p"><span class="pre">></span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">create_runner_with_attrs</span></span></span><span class="sig-paren">(</span><span class="k"><span class="pre">const</span></span><span class="w"> </span><a class="reference internal" href="../file/runner_8hpp.html#_CPPv43xir" title="xir"><span class="n"><span class="pre">xir</span></span></a><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">Subgraph</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n sig-param"><span class="pre">subgraph</span></span>, <a class="reference internal" href="../file/runner_8hpp.html#_CPPv43xir" title="xir"><span class="n"><span class="pre">xir</span></span></a><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">Attrs</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n sig-param"><span class="pre">attrs</span></span><span class="sig-paren">)</span><br /></dt> <dd><p>Factory function to create an instance of DPU runner by subgraph, and attrs. </p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>subgraph</strong> – XIR Subgraph</p></li> <li><p><strong>attrs</strong> – XIR attrs object, this object is shared among all runners on the same graph.</p></li> <li><p><strong>attrs["mode"], 1</strong> – mode supported: ‘run’ - DPU runner.</p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>An instance of DPU runner. </p> </dd> </dl> @@ -678,10 +682,10 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><p><strong>idx</strong> – The index of the data to be accessed, its dimension same as the tensor shape. </p> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>A pair of the data address of the index and the size of the data available for use in byte unit.</p> </dd> </dl> @@ -695,10 +699,10 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink Sample code: </p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">vart</span><span class="p">::</span><span class="n">TensorBuffer</span><span class="o">*</span> <span class="n">tb</span><span class="p">;</span> <span class="n">switch</span> <span class="p">(</span><span class="n">tb</span><span class="o">-></span><span class="n">get_location</span><span class="p">())</span> <span class="p">{</span> - <span class="k">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">TensorBuffer</span><span class="p">::</span><span class="n">location_t</span><span class="p">::</span><span class="n">HOST_VIRT</span><span class="p">:</span> + <span class="n">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">TensorBuffer</span><span class="p">::</span><span class="n">location_t</span><span class="p">::</span><span class="n">HOST_VIRT</span><span class="p">:</span> <span class="o">//</span> <span class="n">do</span> <span class="n">nothing</span> <span class="k">break</span><span class="p">;</span> - <span class="k">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">TensorBuffer</span><span class="p">::</span><span class="n">location_t</span><span class="p">::</span><span class="n">HOST_PHY</span><span class="p">:</span> + <span class="n">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">TensorBuffer</span><span class="p">::</span><span class="n">location_t</span><span class="p">::</span><span class="n">HOST_PHY</span><span class="p">:</span> <span class="o">//</span> <span class="n">do</span> <span class="n">nothing</span> <span class="k">break</span><span class="p">;</span> <span class="n">default</span><span class="p">:</span> @@ -708,7 +712,7 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>the tensor buffer location, a location_t enum type value: HOST_VIRT/HOST_PHY/DEVICE_*.</p> </dd> </dl> @@ -725,10 +729,10 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><p><strong>idx</strong> – The index of the data to be accessed, its dimension same to the tensor shape. </p> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>A pair of the data physical address of the index and the size of the data available for use in byte unit.</p> </dd> </dl> @@ -747,13 +751,13 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>offset</strong> – The start offset address. </p></li> <li><p><strong>size</strong> – The data size. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>void</p> </dd> </dl> @@ -772,13 +776,13 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>offset</strong> – The start offset address. </p></li> <li><p><strong>size</strong> – The data size. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>void</p> </dd> </dl> @@ -789,7 +793,7 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink <span id="_CPPv3N4vart12TensorBuffer14copy_from_hostE6size_tPKv6size_t6size_t"></span><span id="_CPPv2N4vart12TensorBuffer14copy_from_hostE6size_tPKv6size_t6size_t"></span><span id="vart::TensorBuffer::copy_from_host__s.voidCP.s.s"></span><span class="target" id="classvart_1_1_tensor_buffer_1a781dbc662ce87afedf825aebf94eb2ba"></span><span class="k"><span class="pre">virtual</span></span><span class="w"> </span><span class="kt"><span class="pre">void</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">copy_from_host</span></span></span><span class="sig-paren">(</span><span class="n"><span class="pre">size_t</span></span><span class="w"> </span><span class="n sig-param"><span class="pre">batch_idx</span></span>, <span class="k"><span class="pre">const</span></span><span class="w"> </span><span class="kt"><span class="pre">void</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n sig-param"><span class="pre">buf</span></span>, <span class="n"><span class="pre">size_t</span></span><span class="w"> </span><span class="n sig-param"><span class="pre">size</span></span>, <span class="n"><span class="pre">size_t</span></span><span class="w"> </span><span class="n sig-param"><span class="pre">offset</span></span><span class="sig-paren">)</span><br /></dt> <dd><p>copy data from source buffer. </p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>batch_idx</strong> – the batch index. </p></li> <li><p><strong>buf</strong> – source buffer start address. </p></li> @@ -797,7 +801,7 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink <li><p><strong>offset</strong> – the start offset to be copied. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>void </p> </dd> </dl> @@ -819,7 +823,7 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>batch_idx</strong> – the batch index. </p></li> <li><p><strong>buf</strong> – destination buffer start address. </p></li> @@ -827,7 +831,7 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink <li><p><strong>offset</strong> – the start offset to be copied. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>void</p> </dd> </dl> @@ -838,7 +842,7 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink <span id="_CPPv3NK4vart12TensorBuffer10get_tensorEv"></span><span id="_CPPv2NK4vart12TensorBuffer10get_tensorEv"></span><span id="vart::TensorBuffer::get_tensorC"></span><span class="target" id="classvart_1_1_tensor_buffer_1a3c53b20e0e7b58a4c5d18baa10a3f0b6"></span><span class="k"><span class="pre">const</span></span><span class="w"> </span><a class="reference internal" href="../file/runner_8hpp.html#_CPPv43xir" title="xir"><span class="n"><span class="pre">xir</span></span></a><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">Tensor</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="sig-name descname"><span class="n"><span class="pre">get_tensor</span></span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><span class="w"> </span><span class="k"><span class="pre">const</span></span><br /></dt> <dd><p>Get tensor of <a class="reference internal" href="#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a>. </p> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>A pointer to the tensor. </p> </dd> </dl> @@ -871,13 +875,13 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>tb_from</strong> – the source <a class="reference internal" href="#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a>. </p></li> <li><p><strong>tb_to</strong> – the destination <a class="reference internal" href="#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a>. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>void</p> </dd> </dl> @@ -913,14 +917,14 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>tensor</strong> – XIR tensor pointer </p></li> <li><p><strong>batch_addr</strong> – Array which contains device physical address for each batch </p></li> <li><p><strong>addr_arrsize</strong> – The array size of batch_addr </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>Unique pointer of created tensor buffer.</p> </dd> </dl> @@ -951,10 +955,10 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><p><strong>idx</strong> – The index of the data to be accessed, its dimension same as the tensor shape. </p> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>A pair of the data address of the index and the size of the data available for use in byte unit.</p> </dd> </dl> @@ -968,10 +972,10 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink Sample code: </p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">vart</span><span class="p">::</span><span class="n">TensorBuffer</span><span class="o">*</span> <span class="n">tb</span><span class="p">;</span> <span class="n">switch</span> <span class="p">(</span><span class="n">tb</span><span class="o">-></span><span class="n">get_location</span><span class="p">())</span> <span class="p">{</span> - <span class="k">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">TensorBuffer</span><span class="p">::</span><span class="n">location_t</span><span class="p">::</span><span class="n">HOST_VIRT</span><span class="p">:</span> + <span class="n">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">TensorBuffer</span><span class="p">::</span><span class="n">location_t</span><span class="p">::</span><span class="n">HOST_VIRT</span><span class="p">:</span> <span class="o">//</span> <span class="n">do</span> <span class="n">nothing</span> <span class="k">break</span><span class="p">;</span> - <span class="k">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">TensorBuffer</span><span class="p">::</span><span class="n">location_t</span><span class="p">::</span><span class="n">HOST_PHY</span><span class="p">:</span> + <span class="n">case</span> <span class="n">vart</span><span class="p">::</span><span class="n">TensorBuffer</span><span class="p">::</span><span class="n">location_t</span><span class="p">::</span><span class="n">HOST_PHY</span><span class="p">:</span> <span class="o">//</span> <span class="n">do</span> <span class="n">nothing</span> <span class="k">break</span><span class="p">;</span> <span class="n">default</span><span class="p">:</span> @@ -981,7 +985,7 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>the tensor buffer location, a location_t enum type value: HOST_VIRT/HOST_PHY/DEVICE_*.</p> </dd> </dl> @@ -998,10 +1002,10 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><p><strong>idx</strong> – The index of the data to be accessed, its dimension same to the tensor shape. </p> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>A pair of the data physical address of the index and the size of the data available for use in byte unit.</p> </dd> </dl> @@ -1020,13 +1024,13 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>offset</strong> – The start offset address. </p></li> <li><p><strong>size</strong> – The data size. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>void</p> </dd> </dl> @@ -1045,13 +1049,13 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>offset</strong> – The start offset address. </p></li> <li><p><strong>size</strong> – The data size. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>void</p> </dd> </dl> @@ -1062,7 +1066,7 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink <span id="_CPPv3N4vart15TensorBufferExt14copy_from_hostE6size_tPKv6size_t6size_t"></span><span id="_CPPv2N4vart15TensorBufferExt14copy_from_hostE6size_tPKv6size_t6size_t"></span><span id="vart::TensorBufferExt::copy_from_host__s.voidCP.s.s"></span><span class="target" id="classvart_1_1_tensor_buffer_1a781dbc662ce87afedf825aebf94eb2ba"></span><span class="k"><span class="pre">virtual</span></span><span class="w"> </span><span class="kt"><span class="pre">void</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">copy_from_host</span></span></span><span class="sig-paren">(</span><span class="n"><span class="pre">size_t</span></span><span class="w"> </span><span class="n sig-param"><span class="pre">batch_idx</span></span>, <span class="k"><span class="pre">const</span></span><span class="w"> </span><span class="kt"><span class="pre">void</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n sig-param"><span class="pre">buf</span></span>, <span class="n"><span class="pre">size_t</span></span><span class="w"> </span><span class="n sig-param"><span class="pre">size</span></span>, <span class="n"><span class="pre">size_t</span></span><span class="w"> </span><span class="n sig-param"><span class="pre">offset</span></span><span class="sig-paren">)</span><br /></dt> <dd><p>copy data from source buffer. </p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>batch_idx</strong> – the batch index. </p></li> <li><p><strong>buf</strong> – source buffer start address. </p></li> @@ -1070,7 +1074,7 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink <li><p><strong>offset</strong> – the start offset to be copied. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>void </p> </dd> </dl> @@ -1092,7 +1096,7 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>batch_idx</strong> – the batch index. </p></li> <li><p><strong>buf</strong> – destination buffer start address. </p></li> @@ -1100,7 +1104,7 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink <li><p><strong>offset</strong> – the start offset to be copied. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>void</p> </dd> </dl> @@ -1111,7 +1115,7 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink <span id="_CPPv3NK4vart15TensorBufferExt10get_tensorEv"></span><span id="_CPPv2NK4vart15TensorBufferExt10get_tensorEv"></span><span id="vart::TensorBufferExt::get_tensorC"></span><span class="target" id="classvart_1_1_tensor_buffer_1a3c53b20e0e7b58a4c5d18baa10a3f0b6"></span><span class="k"><span class="pre">const</span></span><span class="w"> </span><a class="reference internal" href="../file/runner_8hpp.html#_CPPv43xir" title="xir"><span class="n"><span class="pre">xir</span></span></a><span class="p"><span class="pre">::</span></span><span class="n"><span class="pre">Tensor</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="sig-name descname"><span class="n"><span class="pre">get_tensor</span></span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><span class="w"> </span><span class="k"><span class="pre">const</span></span><br /></dt> <dd><p>Get tensor of <a class="reference internal" href="#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a>. </p> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>A pointer to the tensor. </p> </dd> </dl> @@ -1138,13 +1142,13 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>tb_from</strong> – the source <a class="reference internal" href="#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a>. </p></li> <li><p><strong>tb_to</strong> – the destination <a class="reference internal" href="#classvart_1_1_tensor_buffer"><span class="std std-ref">TensorBuffer</span></a>. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>void</p> </dd> </dl> @@ -1180,14 +1184,14 @@ <h1>Namespace vart<a class="headerlink" href="#namespace-vart" title="Permalink </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>tensor</strong> – XIR tensor pointer </p></li> <li><p><strong>batch_addr</strong> – Array which contains device physical address for each batch </p></li> <li><p><strong>addr_arrsize</strong> – The array size of batch_addr </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>Unique pointer of created tensor buffer.</p> </dd> </dl> diff --git a/docsrc/build/html/doxygen/api/namespace/namespacewait.html b/docsrc/build/html/doxygen/api/namespace/namespacewait.html index b6503ceef..5de2f5734 100644 --- a/docsrc/build/html/doxygen/api/namespace/namespacewait.html +++ b/docsrc/build/html/doxygen/api/namespace/namespacewait.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="namespace-wait"> -<h1>Namespace wait<a class="headerlink" href="#namespace-wait" title="Permalink to this heading">¶</a></h1> +<h1>Namespace wait<a class="headerlink" href="#namespace-wait" title="Permalink to this headline">¶</a></h1> <dl class="py class"> <dt class="sig sig-object py" id="wait"> <span class="target" id="namespacewait"></span><em class="property"><span class="pre">module</span> </em><span class="sig-name descname"><span class="pre">wait</span></span><a class="headerlink" href="#wait" title="Permalink to this definition">¶</a></dt> @@ -147,10 +151,10 @@ <h1>Namespace wait<a class="headerlink" href="#namespace-wait" title="Permalink </ol> </p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><p><strong>jobid_time</strong> – tuple[uint32_t, int], [job id, time], jobid: neg for any id, others for specific job id. time: not used here</p> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>status 0 for exit successfully, others for customized warnings or errors </p> </dd> </dl> diff --git a/docsrc/build/html/doxygen/api/namespace/namespacexir.html b/docsrc/build/html/doxygen/api/namespace/namespacexir.html index 518c5fd9e..fa6135834 100644 --- a/docsrc/build/html/doxygen/api/namespace/namespacexir.html +++ b/docsrc/build/html/doxygen/api/namespace/namespacexir.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="namespace-xir"> -<h1>Namespace xir<a class="headerlink" href="#namespace-xir" title="Permalink to this heading">¶</a></h1> +<h1>Namespace xir<a class="headerlink" href="#namespace-xir" title="Permalink to this headline">¶</a></h1> <dl class="cpp type"> <dt class="sig sig-object cpp" id="_CPPv43xir"> <span id="_CPPv33xir"></span><span id="_CPPv23xir"></span><span id="xir"></span><span class="target" id="namespacexir"></span><span class="k"><span class="pre">namespace</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">xir</span></span></span><br /></dt> diff --git a/docsrc/build/html/doxygen/api/namespacelist.html b/docsrc/build/html/doxygen/api/namespacelist.html index 300739da1..d26094577 100644 --- a/docsrc/build/html/doxygen/api/namespacelist.html +++ b/docsrc/build/html/doxygen/api/namespacelist.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script> <script src="../../_static/jquery.js"></script> <script src="../../_static/underscore.js"></script> - <script src="../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../_static/doctools.js"></script> <script src="../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../docs/workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="namespace-list"> -<h1>Namespace list<a class="headerlink" href="#namespace-list" title="Permalink to this heading">¶</a></h1> +<h1>Namespace list<a class="headerlink" href="#namespace-list" title="Permalink to this headline">¶</a></h1> <div class="toctree-wrapper compound"> <ul> <li class="toctree-l1"><a class="reference internal" href="namespace/namespacecreate__graph__runner.html">Namespace create_graph_runner</a></li> diff --git a/docsrc/build/html/doxygen/api/python/create__graph__runner_8py.html b/docsrc/build/html/doxygen/api/python/create__graph__runner_8py.html index 191779bb0..28d8d7541 100644 --- a/docsrc/build/html/doxygen/api/python/create__graph__runner_8py.html +++ b/docsrc/build/html/doxygen/api/python/create__graph__runner_8py.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -73,6 +72,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -149,7 +153,7 @@ <div itemprop="articleBody"> <section id="file-create-graph-runner-py"> -<h1>File create_graph_runner.py<a class="headerlink" href="#file-create-graph-runner-py" title="Permalink to this heading">¶</a></h1> +<h1>File create_graph_runner.py<a class="headerlink" href="#file-create-graph-runner-py" title="Permalink to this headline">¶</a></h1> <div class="breathe-sectiondef docutils container"> <p class="breathe-sectiondef-title rubric" id="breathe-section-title-functions">Functions</p> <dl class="py function"> @@ -177,10 +181,10 @@ <h1>File create_graph_runner.py<a class="headerlink" href="#file-create-graph-ru </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><p><strong>graph</strong> – xir.Graph, XIR Graph runners on the same graph. </p> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>vart.RunnerExt. An instance of runner.</p> </dd> </dl> diff --git a/docsrc/build/html/doxygen/api/python/create__runner_8py.html b/docsrc/build/html/doxygen/api/python/create__runner_8py.html index 2703d18e3..c58ef07e2 100644 --- a/docsrc/build/html/doxygen/api/python/create__runner_8py.html +++ b/docsrc/build/html/doxygen/api/python/create__runner_8py.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -73,6 +72,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -149,7 +153,7 @@ <div itemprop="articleBody"> <section id="file-create-runner-py"> -<h1>File create_runner.py<a class="headerlink" href="#file-create-runner-py" title="Permalink to this heading">¶</a></h1> +<h1>File create_runner.py<a class="headerlink" href="#file-create-runner-py" title="Permalink to this headline">¶</a></h1> <div class="breathe-sectiondef docutils container"> <p class="breathe-sectiondef-title rubric" id="breathe-section-title-functions">Functions</p> <dl class="py function"> @@ -169,13 +173,13 @@ <h1>File create_runner.py<a class="headerlink" href="#file-create-runner-py" tit </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>subgraph</strong> – : xir.Subgraph, XIR Subgraph </p></li> <li><p><strong>mode</strong> – 1 mode supported: ‘run’ - DPU runner. </p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p><a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_runner"><span class="std std-ref">vart.Runner</span></a>, an instance of DPU runner.</p> </dd> </dl> diff --git a/docsrc/build/html/doxygen/api/python/execute__async_8py.html b/docsrc/build/html/doxygen/api/python/execute__async_8py.html index 10bd3ce62..c85187643 100644 --- a/docsrc/build/html/doxygen/api/python/execute__async_8py.html +++ b/docsrc/build/html/doxygen/api/python/execute__async_8py.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -73,6 +72,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -149,7 +153,7 @@ <div itemprop="articleBody"> <section id="file-execute-async-py"> -<h1>File execute_async.py<a class="headerlink" href="#file-execute-async-py" title="Permalink to this heading">¶</a></h1> +<h1>File execute_async.py<a class="headerlink" href="#file-execute-async-py" title="Permalink to this headline">¶</a></h1> <div class="breathe-sectiondef docutils container"> <p class="breathe-sectiondef-title rubric" id="breathe-section-title-functions">Functions</p> <dl class="py function"> @@ -164,13 +168,13 @@ <h1>File execute_async.py<a class="headerlink" href="#file-execute-async-py" tit <dd><p>Executes the runner. </p> <p>This is a blocking function.</p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><ul class="simple"> <li><p><strong>inputs</strong> – : List[<a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">vart.TensorBuffer</span></a>], A list of <a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">vart.TensorBuffer</span></a> containing the input data for inference.</p></li> <li><p><strong>outputs</strong> – : List[<a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">vart.TensorBuffer</span></a>], A list of <a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">vart.TensorBuffer</span></a> which will be filled with output data.</p></li> </ul> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>tuple[jobid, status] status 0 for exit successfully, others for customized warnings or errors. </p> </dd> </dl> diff --git a/docsrc/build/html/doxygen/api/python/get__input__tensors_8py.html b/docsrc/build/html/doxygen/api/python/get__input__tensors_8py.html index d452bbea3..c2a48b1b5 100644 --- a/docsrc/build/html/doxygen/api/python/get__input__tensors_8py.html +++ b/docsrc/build/html/doxygen/api/python/get__input__tensors_8py.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -73,6 +72,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -149,7 +153,7 @@ <div itemprop="articleBody"> <section id="file-get-input-tensors-py"> -<h1>File get_input_tensors.py<a class="headerlink" href="#file-get-input-tensors-py" title="Permalink to this heading">¶</a></h1> +<h1>File get_input_tensors.py<a class="headerlink" href="#file-get-input-tensors-py" title="Permalink to this headline">¶</a></h1> <div class="breathe-sectiondef docutils container"> <p class="breathe-sectiondef-title rubric" id="breathe-section-title-functions">Functions</p> <dl class="py function"> @@ -177,7 +181,7 @@ <h1>File get_input_tensors.py<a class="headerlink" href="#file-get-input-tensors </div> <p>Note that the dimensions (.dim) of an input tensor are in the form NHWC (batchsize, height,width,channels). </p> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>List[xir.Tensor]. A list of DPU runner inputs, each of which have type xir.Tensor.</p> </dd> </dl> diff --git a/docsrc/build/html/doxygen/api/python/get__inputs_8py.html b/docsrc/build/html/doxygen/api/python/get__inputs_8py.html index 64d0427a3..c6d81ad03 100644 --- a/docsrc/build/html/doxygen/api/python/get__inputs_8py.html +++ b/docsrc/build/html/doxygen/api/python/get__inputs_8py.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -73,6 +72,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -149,7 +153,7 @@ <div itemprop="articleBody"> <section id="file-get-inputs-py"> -<h1>File get_inputs.py<a class="headerlink" href="#file-get-inputs-py" title="Permalink to this heading">¶</a></h1> +<h1>File get_inputs.py<a class="headerlink" href="#file-get-inputs-py" title="Permalink to this headline">¶</a></h1> <div class="breathe-sectiondef docutils container"> <p class="breathe-sectiondef-title rubric" id="breathe-section-title-functions">Functions</p> <dl class="py function"> @@ -169,7 +173,7 @@ <h1>File get_inputs.py<a class="headerlink" href="#file-get-inputs-py" title="Pe </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>: List[<a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">vart.TensorBuffer</span></a>]. All input tensors. A vector of raw pointer to the input tensor.</p> </dd> </dl> diff --git a/docsrc/build/html/doxygen/api/python/get__output__tensors_8py.html b/docsrc/build/html/doxygen/api/python/get__output__tensors_8py.html index 7ca685949..592db3780 100644 --- a/docsrc/build/html/doxygen/api/python/get__output__tensors_8py.html +++ b/docsrc/build/html/doxygen/api/python/get__output__tensors_8py.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -73,6 +72,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -149,7 +153,7 @@ <div itemprop="articleBody"> <section id="file-get-output-tensors-py"> -<h1>File get_output_tensors.py<a class="headerlink" href="#file-get-output-tensors-py" title="Permalink to this heading">¶</a></h1> +<h1>File get_output_tensors.py<a class="headerlink" href="#file-get-output-tensors-py" title="Permalink to this headline">¶</a></h1> <div class="breathe-sectiondef docutils container"> <p class="breathe-sectiondef-title rubric" id="breathe-section-title-functions">Functions</p> <dl class="py function"> @@ -169,7 +173,7 @@ <h1>File get_output_tensors.py<a class="headerlink" href="#file-get-output-tenso </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>List[xir.Tensor], all output tensors. A vector of raw pointer to the output tensor.</p> </dd> </dl> diff --git a/docsrc/build/html/doxygen/api/python/get__outputs_8py.html b/docsrc/build/html/doxygen/api/python/get__outputs_8py.html index 8dad378fa..24d3f55ec 100644 --- a/docsrc/build/html/doxygen/api/python/get__outputs_8py.html +++ b/docsrc/build/html/doxygen/api/python/get__outputs_8py.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -73,6 +72,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -149,7 +153,7 @@ <div itemprop="articleBody"> <section id="file-get-outputs-py"> -<h1>File get_outputs.py<a class="headerlink" href="#file-get-outputs-py" title="Permalink to this heading">¶</a></h1> +<h1>File get_outputs.py<a class="headerlink" href="#file-get-outputs-py" title="Permalink to this headline">¶</a></h1> <div class="breathe-sectiondef docutils container"> <p class="breathe-sectiondef-title rubric" id="breathe-section-title-functions">Functions</p> <dl class="py function"> @@ -169,7 +173,7 @@ <h1>File get_outputs.py<a class="headerlink" href="#file-get-outputs-py" title=" </pre></div> </div> <dl class="field-list simple"> -<dt class="field-odd">Returns<span class="colon">:</span></dt> +<dt class="field-odd">Returns</dt> <dd class="field-odd"><p>List[<a class="reference internal" href="../namespace/namespacevart.html#classvart_1_1_tensor_buffer"><span class="std std-ref">vart.TensorBuffer</span></a>]. All output tensors. A vector of raw pointer to the output tensor.</p> </dd> </dl> diff --git a/docsrc/build/html/doxygen/api/python/runner__example_8py.html b/docsrc/build/html/doxygen/api/python/runner__example_8py.html index e009be53f..b524b86a7 100644 --- a/docsrc/build/html/doxygen/api/python/runner__example_8py.html +++ b/docsrc/build/html/doxygen/api/python/runner__example_8py.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -73,6 +72,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -149,7 +153,7 @@ <div itemprop="articleBody"> <section id="file-runner-example-py"> -<h1>File runner_example.py<a class="headerlink" href="#file-runner-example-py" title="Permalink to this heading">¶</a></h1> +<h1>File runner_example.py<a class="headerlink" href="#file-runner-example-py" title="Permalink to this headline">¶</a></h1> <dl class="py class"> <dt class="sig sig-object py" id="runner_example"> <span class="target" id="namespacerunner__example"></span><em class="property"><span class="pre">module</span> </em><span class="sig-name descname"><span class="pre">runner_example</span></span><a class="headerlink" href="#runner_example" title="Permalink to this definition">¶</a></dt> diff --git a/docsrc/build/html/doxygen/api/python/runnerext__example_8py.html b/docsrc/build/html/doxygen/api/python/runnerext__example_8py.html index 15c48f3b1..1456fd5f2 100644 --- a/docsrc/build/html/doxygen/api/python/runnerext__example_8py.html +++ b/docsrc/build/html/doxygen/api/python/runnerext__example_8py.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -73,6 +72,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -149,7 +153,7 @@ <div itemprop="articleBody"> <section id="file-runnerext-example-py"> -<h1>File runnerext_example.py<a class="headerlink" href="#file-runnerext-example-py" title="Permalink to this heading">¶</a></h1> +<h1>File runnerext_example.py<a class="headerlink" href="#file-runnerext-example-py" title="Permalink to this headline">¶</a></h1> <dl class="py class"> <dt class="sig sig-object py" id="runnerext_example"> <span class="target" id="namespacerunnerext__example"></span><em class="property"><span class="pre">module</span> </em><span class="sig-name descname"><span class="pre">runnerext_example</span></span><a class="headerlink" href="#runnerext_example" title="Permalink to this definition">¶</a></dt> diff --git a/docsrc/build/html/doxygen/api/python/wait_8py.html b/docsrc/build/html/doxygen/api/python/wait_8py.html index 0a7af3f2c..e0ac5b2ce 100644 --- a/docsrc/build/html/doxygen/api/python/wait_8py.html +++ b/docsrc/build/html/doxygen/api/python/wait_8py.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -73,6 +72,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -149,7 +153,7 @@ <div itemprop="articleBody"> <section id="file-wait-py"> -<h1>File wait.py<a class="headerlink" href="#file-wait-py" title="Permalink to this heading">¶</a></h1> +<h1>File wait.py<a class="headerlink" href="#file-wait-py" title="Permalink to this headline">¶</a></h1> <div class="breathe-sectiondef docutils container"> <p class="breathe-sectiondef-title rubric" id="breathe-section-title-functions">Functions</p> <dl class="py function"> @@ -170,10 +174,10 @@ <h1>File wait.py<a class="headerlink" href="#file-wait-py" title="Permalink to t </ol> </p> <dl class="field-list simple"> -<dt class="field-odd">Parameters<span class="colon">:</span></dt> +<dt class="field-odd">Parameters</dt> <dd class="field-odd"><p><strong>jobid_time</strong> – tuple[uint32_t, int], [job id, time], jobid: neg for any id, others for specific job id. time: not used here</p> </dd> -<dt class="field-even">Returns<span class="colon">:</span></dt> +<dt class="field-even">Returns</dt> <dd class="field-even"><p>status 0 for exit successfully, others for customized warnings or errors </p> </dd> </dl> diff --git a/docsrc/build/html/doxygen/api/pythonlist.html b/docsrc/build/html/doxygen/api/pythonlist.html index d4347238b..969c55b69 100644 --- a/docsrc/build/html/doxygen/api/pythonlist.html +++ b/docsrc/build/html/doxygen/api/pythonlist.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script> <script src="../../_static/jquery.js"></script> <script src="../../_static/underscore.js"></script> - <script src="../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../_static/doctools.js"></script> <script src="../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../genindex.html" /> @@ -73,6 +72,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../docs/workflow.html">Overview</a></li> @@ -148,7 +152,7 @@ <div itemprop="articleBody"> <section id="python-apis"> -<h1>Python APIs<a class="headerlink" href="#python-apis" title="Permalink to this heading">¶</a></h1> +<h1>Python APIs<a class="headerlink" href="#python-apis" title="Permalink to this headline">¶</a></h1> <div class="toctree-wrapper compound"> <ul> <li class="toctree-l1"><a class="reference internal" href="python/create__graph__runner_8py.html">create_graph_runner</a></li> diff --git a/docsrc/build/html/doxygen/api/struct/structvart_1_1_dpu_meta.html b/docsrc/build/html/doxygen/api/struct/structvart_1_1_dpu_meta.html index 9d7056075..c3ef8b858 100644 --- a/docsrc/build/html/doxygen/api/struct/structvart_1_1_dpu_meta.html +++ b/docsrc/build/html/doxygen/api/struct/structvart_1_1_dpu_meta.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="struct-vart-dpumeta"> -<h1>Struct vart::DpuMeta<a class="headerlink" href="#struct-vart-dpumeta" title="Permalink to this heading">¶</a></h1> +<h1>Struct vart::DpuMeta<a class="headerlink" href="#struct-vart-dpumeta" title="Permalink to this headline">¶</a></h1> <dl class="cpp struct"> <dt class="sig sig-object cpp" id="_CPPv4N4vart7DpuMetaE"> <span id="_CPPv3N4vart7DpuMetaE"></span><span id="_CPPv2N4vart7DpuMetaE"></span><span id="vart::DpuMeta"></span><span class="target" id="structvart_1_1_dpu_meta"></span><span class="k"><span class="pre">struct</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">DpuMeta</span></span></span><span class="w"> </span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="k"><span class="pre">public</span></span><span class="w"> </span><a class="reference internal" href="../file/runner_8hpp.html#_CPPv4N4vart4MetaE" title="vart::Meta"><span class="n"><span class="pre">Meta</span></span></a><br /></dt> diff --git a/docsrc/build/html/doxygen/api/struct/structvart_1_1_meta.html b/docsrc/build/html/doxygen/api/struct/structvart_1_1_meta.html index 6f44c3fb9..60cbd4076 100644 --- a/docsrc/build/html/doxygen/api/struct/structvart_1_1_meta.html +++ b/docsrc/build/html/doxygen/api/struct/structvart_1_1_meta.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="struct-vart-meta"> -<h1>Struct vart::Meta<a class="headerlink" href="#struct-vart-meta" title="Permalink to this heading">¶</a></h1> +<h1>Struct vart::Meta<a class="headerlink" href="#struct-vart-meta" title="Permalink to this headline">¶</a></h1> <dl class="cpp struct"> <dt class="sig sig-object cpp" id="_CPPv4N4vart4MetaE"> <span id="_CPPv3N4vart4MetaE"></span><span id="_CPPv2N4vart4MetaE"></span><span id="vart::Meta"></span><span class="target" id="structvart_1_1_meta"></span><span class="k"><span class="pre">struct</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">Meta</span></span></span><br /></dt> diff --git a/docsrc/build/html/doxygen/api/struct/structvart_1_1_xcl_bo.html b/docsrc/build/html/doxygen/api/struct/structvart_1_1_xcl_bo.html index 776c8e31a..db051b3b0 100644 --- a/docsrc/build/html/doxygen/api/struct/structvart_1_1_xcl_bo.html +++ b/docsrc/build/html/doxygen/api/struct/structvart_1_1_xcl_bo.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> <script src="../../../_static/jquery.js"></script> <script src="../../../_static/underscore.js"></script> - <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../../_static/doctools.js"></script> <script src="../../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../../docs/workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="struct-vart-xclbo"> -<h1>Struct vart::XclBo<a class="headerlink" href="#struct-vart-xclbo" title="Permalink to this heading">¶</a></h1> +<h1>Struct vart::XclBo<a class="headerlink" href="#struct-vart-xclbo" title="Permalink to this headline">¶</a></h1> <dl class="cpp struct"> <dt class="sig sig-object cpp" id="_CPPv4N4vart5XclBoE"> <span id="_CPPv3N4vart5XclBoE"></span><span id="_CPPv2N4vart5XclBoE"></span><span id="vart::XclBo"></span><span class="target" id="structvart_1_1_xcl_bo"></span><span class="k"><span class="pre">struct</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">XclBo</span></span></span><br /></dt> diff --git a/docsrc/build/html/doxygen/api/structlist.html b/docsrc/build/html/doxygen/api/structlist.html index 785c00918..7c780e911 100644 --- a/docsrc/build/html/doxygen/api/structlist.html +++ b/docsrc/build/html/doxygen/api/structlist.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script> <script src="../../_static/jquery.js"></script> <script src="../../_static/underscore.js"></script> - <script src="../../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../../_static/doctools.js"></script> <script src="../../_static/js/theme.js"></script> <link rel="index" title="Index" href="../../genindex.html" /> @@ -71,6 +70,11 @@ <li class="toctree-l1"><a class="reference internal" href="../../docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="../../docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="../../docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../docs/workflow.html">Overview</a></li> @@ -134,7 +138,7 @@ <div itemprop="articleBody"> <section id="struct-list"> -<h1>Struct list<a class="headerlink" href="#struct-list" title="Permalink to this heading">¶</a></h1> +<h1>Struct list<a class="headerlink" href="#struct-list" title="Permalink to this headline">¶</a></h1> <div class="toctree-wrapper compound"> <ul> <li class="toctree-l1"><a class="reference internal" href="struct/structvart_1_1_dpu_meta.html">Struct vart::DpuMeta</a></li> diff --git a/docsrc/build/html/genindex.html b/docsrc/build/html/genindex.html index 167157a5a..6e57b00e0 100644 --- a/docsrc/build/html/genindex.html +++ b/docsrc/build/html/genindex.html @@ -29,7 +29,6 @@ <script data-url_root="./" id="documentation_options" src="_static/documentation_options.js"></script> <script src="_static/jquery.js"></script> <script src="_static/underscore.js"></script> - <script src="_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="_static/doctools.js"></script> <script src="_static/js/theme.js"></script> <link rel="index" title="Index" href="#" /> @@ -70,6 +69,11 @@ <li class="toctree-l1"><a class="reference internal" href="docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="docs/workflow.html">Overview</a></li> diff --git a/docsrc/build/html/index.html b/docsrc/build/html/index.html index d674c8a61..2a0c39a00 100644 --- a/docsrc/build/html/index.html +++ b/docsrc/build/html/index.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="writer-html5" lang="en" > <head> - <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> + <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -30,7 +30,6 @@ <script data-url_root="./" id="documentation_options" src="_static/documentation_options.js"></script> <script src="_static/jquery.js"></script> <script src="_static/underscore.js"></script> - <script src="_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="_static/doctools.js"></script> <script src="_static/js/theme.js"></script> <link rel="index" title="Index" href="genindex.html" /> @@ -72,6 +71,11 @@ <li class="toctree-l1"><a class="reference internal" href="docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="docs/workflow.html">Overview</a></li> @@ -135,10 +139,10 @@ <div itemprop="articleBody"> <section id="vitis-ai"> -<h1>Vitis AI<a class="headerlink" href="#vitis-ai" title="Permalink to this heading">¶</a></h1> +<h1>Vitis AI<a class="headerlink" href="#vitis-ai" title="Permalink to this headline">¶</a></h1> <p>AMD Vitis™ AI is an integrated development environment that can be leveraged to accelerate AI inference on AMD platforms. This toolchain provides optimized IP, tools, libraries, models, as well as resources, such as example designs and tutorials that aid the user throughout the development process. It is designed with high efficiency and ease-of-use in mind, unleashing the full potential of AI acceleration on AMD Adaptable SoCs and Alveo Data Center accelerator cards.</p> <figure class="align-default" id="id1"> -<a class="reference internal image-reference" href="_images/VAI_IDE.png"><img alt="_images/VAI_IDE.png" src="_images/VAI_IDE.png" style="width: 1300px;" /></a> +<a class="reference internal image-reference" href="docs/reference/images/VAI_IDE.png"><img alt="docs/reference/images/VAI_IDE.png" src="docs/reference/images/VAI_IDE.png" style="width: 1300px;" /></a> <figcaption> <p><span class="caption-text">Vitis AI Integrated Development Environment Block Diagram</span><a class="headerlink" href="#id1" title="Permalink to this image">¶</a></p> </figcaption> @@ -157,41 +161,41 @@ <h1>Vitis AI<a class="headerlink" href="#vitis-ai" title="Permalink to this head </ul> </section> <section id="vitis-ai-key-components"> -<h1>Vitis AI Key Components<a class="headerlink" href="#vitis-ai-key-components" title="Permalink to this heading">¶</a></h1> +<h1>Vitis AI Key Components<a class="headerlink" href="#vitis-ai-key-components" title="Permalink to this headline">¶</a></h1> <section id="deep-learning-processor-unit"> -<h2>Deep-Learning Processor Unit<a class="headerlink" href="#deep-learning-processor-unit" title="Permalink to this heading">¶</a></h2> +<h2>Deep-Learning Processor Unit<a class="headerlink" href="#deep-learning-processor-unit" title="Permalink to this headline">¶</a></h2> <p>The <a class="reference internal" href="docs/workflow-system-integration.html#workflow-dpu"><span class="std std-ref">Deep-learning Processor Unit (DPU)</span></a> is a programmable engine optimized for deep neural networks. The DPU implements an efficient tensor-level instruction set designed to support and accelerate various popular convolutional neural networks, such as VGG, ResNet, GoogLeNet, YOLO, SSD, and MobileNet, among others.</p> <p>The DPU supports on AMD Zynq™ UltraScale+™ MPSoCs, the Kria™ KV260, Versal™ and Alveo cards. It scales to meet the requirements of many diverse applications in terms of throughput, latency, scalability, and power.</p> <p>AMD provides pre-built platforms integrating the DPU engine for both edge and data-center cards. These pre-built platforms allow data-scientists to start developping and testing their models without any need for HW development expertise.</p> <p>For embedded applications, the DPU needs to be integrated in a custom platform along with the other programmable logic functions going in the FPGA or adaptive SoC device. HW designers can <a class="reference internal" href="docs/workflow-system-integration.html#integrating-the-dpu"><span class="std std-ref">integrate the DPU in a custom platform</span></a> using either the Vitis flow or the Vivado™ Design Suite.</p> </section> <section id="model-development"> -<h2>Model Development<a class="headerlink" href="#model-development" title="Permalink to this heading">¶</a></h2> +<h2>Model Development<a class="headerlink" href="#model-development" title="Permalink to this headline">¶</a></h2> <section id="vitis-ai-model-zoo"> -<h3>Vitis AI Model Zoo<a class="headerlink" href="#vitis-ai-model-zoo" title="Permalink to this heading">¶</a></h3> +<h3>Vitis AI Model Zoo<a class="headerlink" href="#vitis-ai-model-zoo" title="Permalink to this headline">¶</a></h3> <p>The <a class="reference internal" href="docs/workflow-model-zoo.html#workflow-model-zoo"><span class="std std-ref">Vitis AI Model Zoo</span></a> includes optimized deep learning models to speed up the deployment of deep learning inference on adaptable AMD platforms. These models cover different applications, including ADAS/AD, video surveillance, robotics, and data center. You can get started with these pre-trained models to enjoy the benefits of deep learning acceleration.</p> </section> <section id="vitis-ai-model-inspector"> -<h3>Vitis AI Model Inspector<a class="headerlink" href="#vitis-ai-model-inspector" title="Permalink to this heading">¶</a></h3> +<h3>Vitis AI Model Inspector<a class="headerlink" href="#vitis-ai-model-inspector" title="Permalink to this headline">¶</a></h3> <p>The <a class="reference internal" href="docs/workflow-model-development.html#model-inspector"><span class="std std-ref">Vitis AI Model Inspector</span></a> is used to perform initial sanity checks to confirm that the operators and sequence of operators in the graph is compatible with Vitis AI. Novel neural network architectures, operators, and activation types are constantly being developed and optimized for prediction accuracy and performance. Vitis AI provides mechanisms to leverage operators that are not natively supported by your specific DPU target.</p> </section> <section id="vitis-ai-optimizer"> -<h3>Vitis AI Optimizer<a class="headerlink" href="#vitis-ai-optimizer" title="Permalink to this heading">¶</a></h3> +<h3>Vitis AI Optimizer<a class="headerlink" href="#vitis-ai-optimizer" title="Permalink to this headline">¶</a></h3> <p>The <a class="reference internal" href="docs/workflow-model-development.html#model-optimization"><span class="std std-ref">Vitis AI Optimizer</span></a> exploits the notion of sparsity to reduce the overall computational complexity for inference by 5x to 50x with minimal accuracy degradation. Many deep neural network topologies employ significant levels of redundancy. This is particularly true when the network backbone is optimized for prediction accuracy with training datasets supporting many classes. In many cases, this redundancy can be reduced by “pruning” some of the operations out of the graph.</p> </section> <section id="vitis-ai-quantizer"> -<h3>Vitis AI Quantizer<a class="headerlink" href="#vitis-ai-quantizer" title="Permalink to this heading">¶</a></h3> +<h3>Vitis AI Quantizer<a class="headerlink" href="#vitis-ai-quantizer" title="Permalink to this headline">¶</a></h3> <p>The <a class="reference internal" href="docs/workflow-model-development.html#model-quantization"><span class="std std-ref">Vitis AI Quantizer</span></a>, integrated as a component of either TensorFlow or PyTorch, converts 32-bit floating-point weights and activations to fixed-point integers like INT8 to reduce the computing complexity without losing prediction accuracy. The fixed-point network model requires less memory bandwidth and provides faster speed and higher power efficiency than the floating-point model.</p> </section> <section id="vitis-ai-compiler"> -<h3>Vitis AI Compiler<a class="headerlink" href="#vitis-ai-compiler" title="Permalink to this heading">¶</a></h3> +<h3>Vitis AI Compiler<a class="headerlink" href="#vitis-ai-compiler" title="Permalink to this headline">¶</a></h3> <p>The <a class="reference internal" href="docs/workflow-model-development.html#model-compilation"><span class="std std-ref">Vitis AI Compiler</span></a> maps the AI quantized model to a highly-efficient instruction set and dataflow model. The compiler performs multiple optimizations; for example, batch normalization operations are fused with convolution when the convolution operator precedes the normalization operator. As the DPU supports multiple dimensions of parallelism, efficient instruction scheduling is key to exploiting the inherent parallelism and potential for data reuse in the graph. The Vitis AI Compiler addresses such optimizations.</p> </section> </section> <section id="model-deployment"> -<h2>Model Deployment<a class="headerlink" href="#model-deployment" title="Permalink to this heading">¶</a></h2> +<h2>Model Deployment<a class="headerlink" href="#model-deployment" title="Permalink to this headline">¶</a></h2> <section id="vitis-ai-runtime"> -<h3>Vitis AI Runtime<a class="headerlink" href="#vitis-ai-runtime" title="Permalink to this heading">¶</a></h3> +<h3>Vitis AI Runtime<a class="headerlink" href="#vitis-ai-runtime" title="Permalink to this headline">¶</a></h3> <p>The <a class="reference internal" href="docs/workflow-model-deployment.html#vitis-ai-runtime"><span class="std std-ref">Vitis AI Runtime</span></a> (VART) is a set of low-level API functions that support the integration of the DPU into software applications. VART is built on top of the Xilinx Runtime (XRT) amd provides a unified high-level runtime for both Data Center and Embedded targets. Key features of the Vitis AI Runtime API include:</p> <ul class="simple"> <li><p>Asynchronous submission of jobs to the DPU.</p></li> @@ -201,7 +205,7 @@ <h3>Vitis AI Runtime<a class="headerlink" href="#vitis-ai-runtime" title="Permal </ul> </section> <section id="vitis-ai-library"> -<h3>Vitis AI Library<a class="headerlink" href="#vitis-ai-library" title="Permalink to this heading">¶</a></h3> +<h3>Vitis AI Library<a class="headerlink" href="#vitis-ai-library" title="Permalink to this headline">¶</a></h3> <p>The <a class="reference internal" href="docs/workflow-model-deployment.html#vitis-ai-library"><span class="std std-ref">Vitis AI Library</span></a> is a set of high-level libraries and APIs built on top of the Vitis AI Runtime (VART). The higher-level APIs included in the Vitis AI Library give developers a head-start on model deployment. While it is possible for developers to directly leverage the Vitis AI Runtime APIs to deploy a model on AMD platforms, it is often more beneficial to start with a ready-made example that incorporates the various elements of a typical application, including:</p> <ul class="simple"> <li><p>Simplified CPU-based pre and post-processing implementations.</p></li> @@ -209,7 +213,7 @@ <h3>Vitis AI Library<a class="headerlink" href="#vitis-ai-library" title="Permal </ul> </section> <section id="vitis-ai-profiler"> -<h3>Vitis AI Profiler<a class="headerlink" href="#vitis-ai-profiler" title="Permalink to this heading">¶</a></h3> +<h3>Vitis AI Profiler<a class="headerlink" href="#vitis-ai-profiler" title="Permalink to this headline">¶</a></h3> <p>The <a class="reference internal" href="docs/workflow-model-deployment.html#vitis-ai-profiler"><span class="std std-ref">Vitis AI Profiler</span></a> profiles and visualizes AI applications to find bottlenecks and allocates computing resources among different devices. It is easy to use and requires no code changes. It can trace function calls and run time, and also collect hardware information, including CPU, DPU, and memory utilization.</p> <div class="toctree-wrapper compound"> </div> @@ -225,6 +229,8 @@ <h3>Vitis AI Profiler<a class="headerlink" href="#vitis-ai-profiler" title="Perm </div> <div class="toctree-wrapper compound"> </div> +<div class="toctree-wrapper compound"> +</div> </section> </section> </section> diff --git a/docsrc/build/html/search.html b/docsrc/build/html/search.html index f44b32571..6d850f146 100644 --- a/docsrc/build/html/search.html +++ b/docsrc/build/html/search.html @@ -30,7 +30,6 @@ <script data-url_root="./" id="documentation_options" src="_static/documentation_options.js"></script> <script src="_static/jquery.js"></script> <script src="_static/underscore.js"></script> - <script src="_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="_static/doctools.js"></script> <script src="_static/js/theme.js"></script> <script src="_static/searchtools.js"></script> @@ -73,6 +72,11 @@ <li class="toctree-l1"><a class="reference internal" href="docs/quickstart/vek280.html">Versal™ AI Edge VEK280</a></li> <li class="toctree-l1"><a class="reference internal" href="docs/quickstart/v70.html">Alveo™ V70</a></li> </ul> +<p class="caption" role="heading"><span class="caption-text">Model Zoo</span></p> +<ul> +<li class="toctree-l1"><a class="reference internal" href="docs/getting-started-model-zoo.html">Getting started</a></li> +<li class="toctree-l1"><a class="reference internal" href="docs/models-overview.html">Models overview</a></li> +</ul> <p class="caption" role="heading"><span class="caption-text">Workflow and Components</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="docs/workflow.html">Overview</a></li> diff --git a/docsrc/build_model_cards.sh b/docsrc/build_model_cards.sh new file mode 100644 index 000000000..5f5113bbe --- /dev/null +++ b/docsrc/build_model_cards.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +source_path="../model_zoo" +destination_path="source/model_cards" + +readme_files=$(find "$source_path" -type f -name "README.md") + +mkdir -p "$destination_path" + +for readme_file in $readme_files; do + task_name=$(dirname "$readme_file" | awk -F/ '{print $(NF-1)}') + model_name=$(dirname "$readme_file" | awk -F/ '{print $NF}') + + destination_file="$destination_path/$model_name.md" + + cp "$readme_file" "$destination_file" + + sed -i 's/..\/..\/..\/README.md#quick-start/\..\/..\/getting-started-model-zoo.html#quick-start/g' "$destination_file" + sed -i 's/..\/..\/..\/README.md#vaitrace/\..\/..\/getting-started-model-zoo.html#vaitrace/g' "$destination_file" +done diff --git a/docsrc/source/conf.py b/docsrc/source/conf.py index 716ff9aec..34e254002 100644 --- a/docsrc/source/conf.py +++ b/docsrc/source/conf.py @@ -60,8 +60,9 @@ 'sphinx.ext.ifconfig', 'sphinx.ext.viewcode', 'sphinx.ext.githubpages', - 'recommonmark', - 'sphinx_markdown_tables', + 'm2r2', + # 'recommonmark', + # 'sphinx_markdown_tables', 'breathe', #'edit_on_github', # Auto-generate section labels. @@ -108,7 +109,7 @@ def setup(app): source_parsers = { '.md': CommonMarkParser, # myst_parser testing - #'.md': + #'.md': } # The master toctree document. diff --git a/docsrc/source/docs/getting-started-model-zoo.rst b/docsrc/source/docs/getting-started-model-zoo.rst new file mode 100644 index 000000000..de0c85e86 --- /dev/null +++ b/docsrc/source/docs/getting-started-model-zoo.rst @@ -0,0 +1 @@ +.. mdinclude:: ../model_cards/model_zoo.md diff --git a/docsrc/source/docs/models-overview.rst b/docsrc/source/docs/models-overview.rst new file mode 100644 index 000000000..d12ce227f --- /dev/null +++ b/docsrc/source/docs/models-overview.rst @@ -0,0 +1,13 @@ +.. _models_overview: + +================================ +Vitis AI Model Zoo models +================================ + +.. toctree:: + + Classification <models/classification/index> + Object detection <models/object_detection/index> + Segmentation <models/segmentation/index> + Super resolution <models/super_resolution/index> + diff --git a/docsrc/source/docs/models/classification/efficientnet-edgetpu-s.rst b/docsrc/source/docs/models/classification/efficientnet-edgetpu-s.rst new file mode 100644 index 000000000..a14d63469 --- /dev/null +++ b/docsrc/source/docs/models/classification/efficientnet-edgetpu-s.rst @@ -0,0 +1,6 @@ +.. _efficientnet-edgetpu-s: + +================================ +EfficientNet-EdgeTPU-S model +================================ +.. mdinclude:: ../../../model_cards/tf_efficientnet-edgetpu-S.md \ No newline at end of file diff --git a/docsrc/source/docs/models/classification/inceptionv3.rst b/docsrc/source/docs/models/classification/inceptionv3.rst new file mode 100644 index 000000000..908ca296d --- /dev/null +++ b/docsrc/source/docs/models/classification/inceptionv3.rst @@ -0,0 +1,6 @@ +.. _inceptionv3: + +================================ +InceptionV3 model +================================ +.. mdinclude:: ../../../model_cards/pt_inceptionv3.md \ No newline at end of file diff --git a/docsrc/source/docs/models/classification/inceptionv4.rst b/docsrc/source/docs/models/classification/inceptionv4.rst new file mode 100644 index 000000000..9c0fb2c96 --- /dev/null +++ b/docsrc/source/docs/models/classification/inceptionv4.rst @@ -0,0 +1,6 @@ +.. _inceptionv4: + +================================ +InceptionV4 model +================================ +.. mdinclude:: ../../../model_cards/tf_inceptionv4.md \ No newline at end of file diff --git a/docsrc/source/docs/models/classification/index.rst b/docsrc/source/docs/models/classification/index.rst new file mode 100644 index 000000000..800247c1f --- /dev/null +++ b/docsrc/source/docs/models/classification/index.rst @@ -0,0 +1,15 @@ +.. _classification_models: + +================================ +Classification models +================================ + +.. toctree:: + + InceptionV3 model <inceptionv3> + InceptionV4 model <inceptionv4> + Vehicle classification model <vehicle_make> + SqueezeNet model <squeezenet> + EfficientNet-EdgeTPU-S model <efficientnet-edgetpu-s> + ResNet50 model <resnet50> + ResNet-v1 model <resnetv1> diff --git a/docsrc/source/docs/models/classification/resnet50.rst b/docsrc/source/docs/models/classification/resnet50.rst new file mode 100644 index 000000000..3e2873382 --- /dev/null +++ b/docsrc/source/docs/models/classification/resnet50.rst @@ -0,0 +1,6 @@ +.. _resnet50: + +================================ +ResNet50 model +================================ +.. mdinclude:: ../../../model_cards/pt_resnet50.md \ No newline at end of file diff --git a/docsrc/source/docs/models/classification/resnetv1.rst b/docsrc/source/docs/models/classification/resnetv1.rst new file mode 100644 index 000000000..6e88ff558 --- /dev/null +++ b/docsrc/source/docs/models/classification/resnetv1.rst @@ -0,0 +1,6 @@ +.. _resnetv1: + +================================ +ResNet-v1 model +================================ +.. mdinclude:: ../../../model_cards/tf_resnetv1.md \ No newline at end of file diff --git a/docsrc/source/docs/models/classification/squeezenet.rst b/docsrc/source/docs/models/classification/squeezenet.rst new file mode 100644 index 000000000..348c2680d --- /dev/null +++ b/docsrc/source/docs/models/classification/squeezenet.rst @@ -0,0 +1,6 @@ +.. _squeezenet: + +================================ +SqueezeNet model +================================ +.. mdinclude:: ../../../model_cards/pt_squeezenet.md \ No newline at end of file diff --git a/docsrc/source/docs/models/classification/vehicle_make.rst b/docsrc/source/docs/models/classification/vehicle_make.rst new file mode 100644 index 000000000..026bf921a --- /dev/null +++ b/docsrc/source/docs/models/classification/vehicle_make.rst @@ -0,0 +1,6 @@ +.. _vehicle_classification: + +================================ +Vehicle classification model +================================ +.. mdinclude:: ../../../model_cards/pt_vehicle-make-classification.md \ No newline at end of file diff --git a/docsrc/source/docs/models/object_detection/index.rst b/docsrc/source/docs/models/object_detection/index.rst new file mode 100644 index 000000000..c4a6554c0 --- /dev/null +++ b/docsrc/source/docs/models/object_detection/index.rst @@ -0,0 +1,12 @@ +.. _object_detection_models: + +================================ +Object Detection models +================================ + +.. toctree:: + + OFA-YOLO <ofa_yolo> + SSD-Resnet34 <ssd_resnet34> + YOLOv4 <yolov4> + YOLOvX-nano <yolox_nano> diff --git a/docsrc/source/docs/models/object_detection/ofa_yolo.rst b/docsrc/source/docs/models/object_detection/ofa_yolo.rst new file mode 100644 index 000000000..637721e2f --- /dev/null +++ b/docsrc/source/docs/models/object_detection/ofa_yolo.rst @@ -0,0 +1,6 @@ +.. _ofa_yolo: + +================================ +OFA-YOLO model +================================ +.. mdinclude:: ../../../model_cards/pt_OFA-yolo.md \ No newline at end of file diff --git a/docsrc/source/docs/models/object_detection/ssd_resnet34.rst b/docsrc/source/docs/models/object_detection/ssd_resnet34.rst new file mode 100644 index 000000000..5b0cd3c52 --- /dev/null +++ b/docsrc/source/docs/models/object_detection/ssd_resnet34.rst @@ -0,0 +1,6 @@ +.. _ssd_resnet34: + +================================ +SSD-Resnet34 model +================================ +.. mdinclude:: ../../../model_cards/tf_mlperf_resnet34.md \ No newline at end of file diff --git a/docsrc/source/docs/models/object_detection/yolov4.rst b/docsrc/source/docs/models/object_detection/yolov4.rst new file mode 100644 index 000000000..1d4fa9e35 --- /dev/null +++ b/docsrc/source/docs/models/object_detection/yolov4.rst @@ -0,0 +1,6 @@ +.. _yolov4: + +================================ +YOLOv4 model +================================ +.. mdinclude:: ../../../model_cards/tf_yolov4.md \ No newline at end of file diff --git a/docsrc/source/docs/models/object_detection/yolox_nano.rst b/docsrc/source/docs/models/object_detection/yolox_nano.rst new file mode 100644 index 000000000..837237498 --- /dev/null +++ b/docsrc/source/docs/models/object_detection/yolox_nano.rst @@ -0,0 +1,6 @@ +.. _yolovx_nano: + +================================ +YOLOvX-nano model +================================ +.. mdinclude:: ../../../model_cards/pt_yolox-nano.md \ No newline at end of file diff --git a/docsrc/source/docs/models/segmentation/2D-UNet.rst b/docsrc/source/docs/models/segmentation/2D-UNet.rst new file mode 100644 index 000000000..cb2349d21 --- /dev/null +++ b/docsrc/source/docs/models/segmentation/2D-UNet.rst @@ -0,0 +1,6 @@ +.. _2D-UNet: + +================================ +2D-UNet model +================================ +.. mdinclude:: ../../../model_cards/tf2_2D-UNet.md \ No newline at end of file diff --git a/docsrc/source/docs/models/segmentation/HRNet.rst b/docsrc/source/docs/models/segmentation/HRNet.rst new file mode 100644 index 000000000..30b7676c7 --- /dev/null +++ b/docsrc/source/docs/models/segmentation/HRNet.rst @@ -0,0 +1,6 @@ +.. _HRNet: + +================================ +HRNet model +================================ +.. mdinclude:: ../../../model_cards/pt_HRNet.md \ No newline at end of file diff --git a/docsrc/source/docs/models/segmentation/index.rst b/docsrc/source/docs/models/segmentation/index.rst new file mode 100644 index 000000000..5f2382a53 --- /dev/null +++ b/docsrc/source/docs/models/segmentation/index.rst @@ -0,0 +1,12 @@ +.. _segmentation_models: + +================================ +Segmentation models +================================ + +.. toctree:: + + 2D-UNet <2D-UNet> + HRNet <HRNet> + + diff --git a/docsrc/source/docs/models/super_resolution/OFA_RCAN.rst b/docsrc/source/docs/models/super_resolution/OFA_RCAN.rst new file mode 100644 index 000000000..9aa6a0463 --- /dev/null +++ b/docsrc/source/docs/models/super_resolution/OFA_RCAN.rst @@ -0,0 +1,6 @@ +.. _OFA_RCAN: + +================================ +OFA-RCAN model +================================ +.. mdinclude:: ../../../model_cards/pt_OFA-RCAN.md \ No newline at end of file diff --git a/docsrc/source/docs/models/super_resolution/RCAN.rst b/docsrc/source/docs/models/super_resolution/RCAN.rst new file mode 100644 index 000000000..2b8ee8329 --- /dev/null +++ b/docsrc/source/docs/models/super_resolution/RCAN.rst @@ -0,0 +1,6 @@ +.. _RCAN: + +================================ +RCAN model +================================ +.. mdinclude:: ../../../model_cards/tf_RCAN.md \ No newline at end of file diff --git a/docsrc/source/docs/models/super_resolution/SESR_S.rst b/docsrc/source/docs/models/super_resolution/SESR_S.rst new file mode 100644 index 000000000..14cd888c8 --- /dev/null +++ b/docsrc/source/docs/models/super_resolution/SESR_S.rst @@ -0,0 +1,6 @@ +.. _SESR_S: + +================================ +SESR-S model +================================ +.. mdinclude:: ../../../model_cards/pt_SESR-S.md \ No newline at end of file diff --git a/docsrc/source/docs/models/super_resolution/index.rst b/docsrc/source/docs/models/super_resolution/index.rst new file mode 100644 index 000000000..4de68f0a6 --- /dev/null +++ b/docsrc/source/docs/models/super_resolution/index.rst @@ -0,0 +1,11 @@ +.. _super_resolution_models: + +================================ +Super Resolution models +================================ + +.. toctree:: + + RCAN <RCAN> + OFA-RCAN <OFA_RCAN> + SESR-S <SESR_S> diff --git a/docsrc/source/index.rst b/docsrc/source/index.rst index 3622c1135..2c1b7238b 100644 --- a/docsrc/source/index.rst +++ b/docsrc/source/index.rst @@ -28,7 +28,7 @@ AMD Vitis™ AI is an integrated development environment that can be leveraged t The Vitis |trade| AI solution consists of three primary components: - The Deep-Learning Processor unit (DPU), a hardware engine for optimized the inferencing of ML models -- Model development tools, to compile and optimize ML models for the DPU +- Model development tools, to compile and optimize ML models for the DPU - Model deployment libraries and APIs, to integrate and execute the ML models on the DPU engine from a SW application The Vitis AI solution is packaged and delivered as follows: @@ -45,7 +45,7 @@ Vitis AI Key Components Deep-Learning Processor Unit **************************** -The :ref:`Deep-learning Processor Unit (DPU) <workflow-dpu>` is a programmable engine optimized for deep neural networks. The DPU implements an efficient tensor-level instruction set designed to support and accelerate various popular convolutional neural networks, such as VGG, ResNet, GoogLeNet, YOLO, SSD, and MobileNet, among others. +The :ref:`Deep-learning Processor Unit (DPU) <workflow-dpu>` is a programmable engine optimized for deep neural networks. The DPU implements an efficient tensor-level instruction set designed to support and accelerate various popular convolutional neural networks, such as VGG, ResNet, GoogLeNet, YOLO, SSD, and MobileNet, among others. The DPU supports on AMD Zynq |trade| UltraScale+ |trade| MPSoCs, the Kria |trade| KV260, Versal |trade| and Alveo cards. It scales to meet the requirements of many diverse applications in terms of throughput, latency, scalability, and power. @@ -68,7 +68,7 @@ The :ref:`Vitis AI Model Inspector <model-inspector>` is used to perform initial Vitis AI Optimizer ================== -The :ref:`Vitis AI Optimizer <model-optimization>` exploits the notion of sparsity to reduce the overall computational complexity for inference by 5x to 50x with minimal accuracy degradation. Many deep neural network topologies employ significant levels of redundancy. This is particularly true when the network backbone is optimized for prediction accuracy with training datasets supporting many classes. In many cases, this redundancy can be reduced by “pruning” some of the operations out of the graph. +The :ref:`Vitis AI Optimizer <model-optimization>` exploits the notion of sparsity to reduce the overall computational complexity for inference by 5x to 50x with minimal accuracy degradation. Many deep neural network topologies employ significant levels of redundancy. This is particularly true when the network backbone is optimized for prediction accuracy with training datasets supporting many classes. In many cases, this redundancy can be reduced by “pruning” some of the operations out of the graph. Vitis AI Quantizer ================== @@ -112,7 +112,7 @@ The :ref:`Vitis AI Profiler <vitis-ai-profiler>` profiles and visualizes AI appl :maxdepth: 3 :caption: Setup and Install :hidden: - + Release Notes <docs/reference/release_notes> System Requirements <docs/reference/system_requirements> Host Install Instructions <docs/install/install> @@ -125,6 +125,13 @@ The :ref:`Vitis AI Profiler <vitis-ai-profiler>` profiles and visualizes AI appl Versal™ AI Edge VEK280 <docs/quickstart/vek280> Alveo™ V70 <docs/quickstart/v70> +.. toctree:: + :maxdepth: 3 + :caption: Model Zoo + :hidden: + + Getting started <docs/getting-started-model-zoo> + Models overview <docs/models-overview> .. toctree:: :maxdepth: 3 @@ -163,7 +170,7 @@ The :ref:`Vitis AI Profiler <vitis-ai-profiler>` profiles and visualizes AI appl :hidden: Resources and Support <docs/reference/additional_resources> - + .. toctree:: :maxdepth: 3 :caption: Related AMD Solutions diff --git a/model_zoo/README.md b/model_zoo/README.md index f28daeb54..49dc6a86b 100644 --- a/model_zoo/README.md +++ b/model_zoo/README.md @@ -8,7 +8,174 @@ # Vitis AI Model Zoo -As of the 3.5 release of Vitis AI, the Model Zoo documentation and performance benchmarks were migrated to Github.IO. **[YOU MAY ACCESS THE LATEST MODEL ZOO DOCUMENTATION ONLINE](https://xilinx.github.io/Vitis-AI/3.5/html/docs/workflow-model-zoo.html))** or **[OPEN THE OFFLINE DOCUMENTATION IN YOUR BROWSER](../docs/docs/workflow-model-zoo.html)**. +As of the 3.5 release of Vitis AI, the Model Zoo documentation and performance benchmarks have migrated to Github.IO. [**YOU MAY ACCESS THE MODEL ZOO DOCUMENTATION ONLINE**](https://xilinx.github.io/Vitis-AI/docs/workflow-model-zoo) or [**OFFLINE**](../docs/docs/workflow-model-zoo.html). + +## Model Zoo structure + +``` +Vitis-AI/model_zoo +├── images +├── model-list # list of all availible models with yaml configuration +├── models # model cards with code and all details +│ ├── super_resolution # task name +│ │ ├── pt_OFA-RCAN # model name +│ │ │ ├── config.env # model configuration - env variables +│ │ │ ├── artifacts # artifacts - will be created during the inference process +│ │ │ │ ├── inference # folder with results values of inference and evaluation +│ │ │ │ │ ├── performance # model productivity measurements +│ │ │ │ │ ├── quality # model quality measurements +│ │ │ │ │ ├── results # model inference results files +│ │ │ │ │ └── vaitrace # vaitrace profiling performance reports +│ │ │ │ └── models # folder with model meta and .xmodel executable files +│ │ │ ├── scripts # scripts for model processing +│ │ │ │ ├── inference.sh # model inference +│ │ │ │ ├── performance.sh # model performance report +│ │ │ │ ├── quality.sh # model quality report +│ │ │ │ └── setup_venv.sh # virtual environment creation +│ │ │ ├── src # python supporting scripts +│ │ │ │ └── quality.py # quality metric calculation +│ │ │ ├── README.md +│ │ │ └── requirements.txt # requirements for the virtual environment +│ │ ... +│ ├── semantic_segmentation +│ ... +├── scripts # common scripts for all models +├── AMD-license-agreement-for-non-commercial-models.md +├── downloader.py # python script for model files download +└── README.md +``` +## Quick Start + +### Prerequisites + +1. Before starting, make sure that the host computer fully supports Xilinx FPGA/ACAP and the appropriate accelerator +is installed correctly, e.g. +[Alveo V70](https://xilinx.github.io/Vitis-AI/3.5/html/docs/quickstart/v70.html). +Or you can use an already configured server on [vmaccel.com](https://www.vmaccel.com/). +2. Install the latest [Vitis-AI](https://xilinx.github.io/Vitis-AI/3.5/html/docs/install/install.html). +3. Go to the Vitis-AI repo: + ``` + # cd <Vitis-AI install path>/Vitis-AI + # where: + # <Vitis-AI install path> - the path where Vitis-AI was installed + cd ~/Vitis-AI + ``` +4. Start the Vitis AI Docker: + ``` + # ./docker_run.sh xilinx/vitis-ai-<Framework>-<Arch>:latest + # where: + # <Framework>, <Arch> - deep learning framework and target architecture, + # more info in the Vitis-AI installation instruction + # Example: + ./docker_run.sh xilinx/vitis-ai-pytorch-cpu:latest + ``` +5. Download the test data: + ``` + bash model_zoo/scripts/download_test_data.sh + ``` +6. Make folders and subfolders to store artifacts: + ``` + cd model_zoo + bash scripts/make_artifacts_folders.sh + ``` + +### Native Inference + +1. Follow the [Prerequisites chapter](#prerequisites): install the Vitis-AI, run the docker container, +download test data, make folders to store artifacts. +2. All the following commands must be run inside the Vitis-AI container. +3. Select one of the available models from `model_zoo/models` and set the environment variable with the absolute +path to the model: + ``` + # MODEL_FOLDER="$(pwd)"/model_zoo/models/<application>/<model name> + # where: + # "$(pwd)" - the absolute path to the current folder inside the container, e.g.: /workspace + # <application> - type or application of the model + # <model name> - the name of the specific model + # Example: + MODEL_FOLDER="$(pwd)"/model_zoo/models/super_resolution/pt_OFA-RCAN + ``` +4. Download model files for the specific device and device configuration: + ``` + cd /workspace/model_zoo + python downloader.py + # A command line interface will be provided for downloading model files + # In the first input you need to specify the base framework and the specific model name. + # Example of the first input: + # input: pt 37 + # Then select the desired device configuration. + # Example of the second input: + # input num: 3 + # As a result you will download the .tar.gz archive with model files. + # Example: ofa_rcan_latency_pt-v70-DPUCV2DX8G-r3.5.0.tar.gz + ``` +5. Move and unzip the downloaded model: + ``` + # Example + mv ofa_rcan_latency_pt-v70-DPUCV2DX8G-r3.5.0.tar.gz $MODEL_FOLDER/artifacts/models/ + tar -xzvf $MODEL_FOLDER/artifacts/models/ofa_rcan_latency_pt-v70-DPUCV2DX8G-r3.5.0.tar.gz -C $MODEL_FOLDER/artifacts/models/ + ``` +6. Set environment variables for a specific device and device configuration inside the docker container: + ``` + # source /vitis_ai_home/board_setup/<DEVICE_NAME>/setup.sh <DEVICE_CONFIGURATION> + # where: + # <DEVICE_NAME> - the name of current device + # <DEVICE_CONFIGURATION> - selected device configuration + # Example: + source /vitis_ai_home/board_setup/v70/setup.sh DPUCVDX8H_8pe_normal + ``` +7. Go to the specific model's folder inside the `model_zoo`: + ``` + cd $MODEL_FOLDER + ``` +8. Run the inference on files: + ``` + # bash inference.sh <MODEL_PATH> [<image paths list>] + # where: + # <MODEL_PATH> - the absolute path to the .xmodel + # [<image paths list>] - space-separated list of image absolute paths + # Alternatively, you can pass --dataset option with the folder where images for the inference are stored. + # Example 1: + bash scripts/inference.sh \ + $MODEL_FOLDER/artifacts/models/ofa_rcan_latency_pt/ofa_rcan_latency_pt.xmodel \ + /workspace/Vitis-AI-Library/samples/rcan/images/1.png /workspace/Vitis-AI-Library/samples/rcan/images/2.png \ + /workspace/Vitis-AI-Library/samples/rcan/images/3.png + # Example 2: + bash scripts/inference.sh \ + $MODEL_FOLDER/artifacts/models/ofa_rcan_latency_pt/ofa_rcan_latency_pt.xmodel \ + --dataset /workspace/Vitis-AI-Library/samples/rcan/images + ``` +9. Results of the inference will be stored in the folder: `artifacts/inference`. + +## Vaitrace +You may profile the model performance using [Vaitrace](https://docs.xilinx.com/r/en-US/ug1414-vitis-ai/vaitrace-Usage) instrument. + +> **Warning** +> To run the Vaitrace inside the docker container, you should have a **root permission**! <br> +> To the `Vitis-AI/docker_run.sh` script, add the following patch: + ```diff + @@ -89,6 +71,7 @@ docker_run_params=$(cat <<-END + -e USER=$user -e UID=$uid -e GID=$gid \ + -e VERSION=$VERSION \ + -v $DOCKER_RUN_DIR:/vitis_ai_home \ + + -v /sys/kernel/debug:/sys/kernel/debug --privileged=true \ + -v $HERE:/workspace \ + -w /workspace \ + --rm \ + ``` + +To run the Vaitrace, use: + ``` + # Format: bash scripts/vaitrace.sh <MODEL_PATH> <TEST_IMAGE_PATH> + # where: + # <MODEL_PATH> - The path to the model file .xmodel + # <TEST_IMAGE_PATH> - The path to the image to be processed via vaitrace. + # The report files will be stored in the $MODEL_FOLDER/artifacts/inference/vaitrace folder + # Example: + + bash scripts/vaitrace.sh $MODEL_FOLDER/artifacts/models/ofa_rcan_latency_pt/ofa_rcan_latency_pt.xmodel /workspace/Vitis-AI-Library/samples/rcan/images/2.png + ``` + ## Contributing diff --git a/model_zoo/models/classification/pt_inceptionv3/README.md b/model_zoo/models/classification/pt_inceptionv3/README.md new file mode 100644 index 000000000..586ee1137 --- /dev/null +++ b/model_zoo/models/classification/pt_inceptionv3/README.md @@ -0,0 +1,144 @@ +# Contents + +- [Contents](#contents) +- [Model Description](#model-description) + - [Description](#description) + - [Paper](#paper) +- [Model Architecture](#model-architecture) +- [Dataset](#dataset) +- [Features](#features) +- [Environment Requirements](#environment-requirements) +- [Quick Start](#quick-start) +- [Script Description](#script-description) + - [Structure](#structure) + - [Inference Process](#inference-process) +- [Quality](#quality) +- [Performance](#performance) +- [Links](#links) +- [Vitis AI Model Zoo Homepage](#vitis-ai-model-zoo-homepage) + +# Model Description + +## Description + +Inception V3 is a convolutional neural network (CNN) model developed by Google. It is designed for image classification +tasks and has achieved state-of-the-art performance on various benchmark datasets. + +## Paper + +Szegedy, Christian, et al. "Rethinking the Inception Architecture for Computer Vision." Proceedings of the IEEE Conference +on Computer Vision and Pattern Recognition (CVPR), 2016, pp. 2818-2826. Link: https://arxiv.org/abs/1512.00567 + +# Model Architecture + +The architecture of Inception V3 is based on the concept of "Inception modules," which are stacked together to form a deep neural network. +These modules consist of parallel convolutional layers with different filter sizes, allowing the model to capture information at multiple scales. +Inception V3 also incorporates techniques like factorized convolutions and dimensionality reduction to improve computational efficiency. + +# Dataset + +Dataset for testing: ImageNet. The ImageNet dataset is a large-scale visual database widely used in the image classification and object recognition tasks. <br> +The dataset categories cover a wide range of objects, animals, scenes, and everyday items. Each image in the dataset is annotated with a single label indicating the object or concept it represents. +Link to download the dataset: https://www.image-net.org/ + +# Features + +The notable features of the Inception V3 model: + +1. **Inception modules**: The model employs a series of Inception modules that consist of 1x1, 3x3, and 5x5 convolutions, + as well as pooling operations. These modules enable the model to learn hierarchical representations at different scales + and capture both local and global information. +2. **Factorized convolutions**: Inception V3 uses factorized convolutions, which split the standard convolution + into two smaller convolutions, reducing the number of parameters and computational cost while maintaining model performance. +3. **Auxiliary classifiers**: The model incorporates auxiliary classifiers at intermediate layers, aiding in training by providing additional gradients. + This helps to avoid the vanishing gradient problem and improve gradient flow through the network. +4. **Pretrained weights**: Inception V3 is often used as a transfer learning model due to its availability of pretrained + weights on large-scale image classification datasets like ImageNet. These pretrained weights can be fine-tuned on specific tasks, allowing for effective transfer of knowledge. + +# Environment Requirements + +Before running the model inference, make sure that the latest version of +[Vitis-AI](https://xilinx.github.io/Vitis-AI/3.5/html/docs/install/install.html) is installed and the host computer fully supports +Xilinx FPGA/ACAP and the appropriate accelerator is installed correctly, e.g. Alveo V70. + +# Quick Start + +Follow the [Quick Start guide](../../../README.md#quick-start) in the main Model Zoo README: + +1. Install the Vitis-AI +2. Run the docker container +3. Download test data +4. Run the inference of the model + +# Script Description + +## Structure + +```text +pt_inceptionv3 # model name +├── artifacts # artifacts - will be created during the inference process +│ ├── inference # folder with results values of inference and evaluation +│ │ ├── performance # model productivity measurements +│ │ ├── quality # model quality measurements +│ │ ├── results # model inference results files +│ │ └── vaitrace # vaitrace profiling performance reports +│ └── models # folder with model meta and .xmodel executable files +├── scripts # scripts for model processing +│ ├── inference.sh # model inference +│ ├── performance.sh # model performance report +│ ├── quality.sh # model quality report +│ └── setup_venv.sh # virtual environment creation +├── src # python supporting scripts +│ └── quality.py # quality metric calculation +├── config.env # model configuration - env variables +├── README.md +└── requirements.txt # requirements for the virtual environment +``` + +## Inference Process + +- Native inference - follow the [Quick Start guide](../../../README.md#quick-start) in the main Model Zoo +- AMD Server + +# Quality + +Use the following script: + +```bash + # Format: bash scripts/quality.sh <inference_result> <ground_truth> [--batch] [--dataset] + # where: + # inference_result - Path to the inference result image or folder. + # ground_truth - Path to the ground truth image or folder + # --batch - Evaluate a dataset (default: individual images) + # --dataset - Evaluate ImageNet dataset + # The metric values will be stored in the artifacts/inference/quality/metrics.txt file + # Example: + + bash scripts/quality.sh $MODEL_FOLDER/artifacts/inference/results/ /workspace/Vitis-AI-Library/samples/classification/images/ --batch +``` + +# Performance + +- You can profile the model using [vaitrace](https://docs.xilinx.com/r/en-US/ug1414-vitis-ai/Starting-a-Simple-Trace-with-vaitrace) perfomance report, + the script and format described in the [Quick Start guide](../../../README.md#vaitrace) in the main Model Zoo. +- To get performance metrics (FPS, E2E, DPU_MEAN), use: + ```bash + # Format: bash scripts/performance.sh <MODEL_PATH> [<image paths list>] + # where: + # <MODEL_PATH> - the absolute path to the .xmodel + # [<image paths list>] - space-separated list of image absolute paths + # Alternatively, you can pass --dataset option with the folder where images are stored. + # Example: + + bash scripts/performance.sh $MODEL_FOLDER/artifacts/models/inception_v3_pruned_0_5_pt/inception_v3_pruned_0_5_pt.xmodel --dataset /workspace/Vitis-AI-Library/samples/classification/images/ + ``` + +# Links + +- Inception-V3 overview (PapersWithCode): https://paperswithcode.com/method/inception-v3 +- ImageNet dataset: https://www.image-net.org/ +- Going deeper with convolutions (Inception): https://arxiv.org/pdf/1409.4842 + +# Vitis AI Model Zoo Homepage + +Check the official Vitis AI Model Zoo [homepage](https://github.com/Xilinx/Vitis-AI/tree/master/model_zoo). diff --git a/model_zoo/models/classification/pt_inceptionv3/config.env b/model_zoo/models/classification/pt_inceptionv3/config.env new file mode 100644 index 000000000..e0b12012d --- /dev/null +++ b/model_zoo/models/classification/pt_inceptionv3/config.env @@ -0,0 +1,6 @@ +#!/bin/bash + +VITIS_ROOT_PATH=/workspace +VAI_LIBRARY_SAMPLES_PATH=$VITIS_ROOT_PATH/examples/vai_library/samples/classification +VAI_SAMPLES_POSTFIX=classification + diff --git a/model_zoo/models/classification/pt_inceptionv3/requirements.txt b/model_zoo/models/classification/pt_inceptionv3/requirements.txt new file mode 100644 index 000000000..de7064cf0 --- /dev/null +++ b/model_zoo/models/classification/pt_inceptionv3/requirements.txt @@ -0,0 +1,2 @@ +numpy +scikit-learn \ No newline at end of file diff --git a/model_zoo/models/classification/pt_inceptionv3/scripts/inference.sh b/model_zoo/models/classification/pt_inceptionv3/scripts/inference.sh new file mode 100644 index 000000000..6d5ae323e --- /dev/null +++ b/model_zoo/models/classification/pt_inceptionv3/scripts/inference.sh @@ -0,0 +1,90 @@ +#!/bin/bash + +source config.env +source ../../../scripts/build.sh + +display_help() { + echo "Usage: $0 MODEL_PATH [OPTIONS] [IMAGE PATHS]" + echo " $0 MODEL_PATH --dataset DIRECTORY" + echo + echo "Options:" + echo " --dataset DIRECTORY Specify a directory containing images" + echo " -h, --help Display this help message" + echo + echo "Arguments:" + echo " MODEL_PATH Path to the model" + echo " IMAGE PATHS List of image paths" + echo + +} + +process_image() { + echo "$1" >> $filepaths_list +} + +process_directory() { + local directory="$1" + find "$directory" -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" \) | while read -r file; do + process_image "$file" + done +} + +if [ -z "$1" ] || [ "$1" == "-h" ] || [ "$1" == "--help" ]; then + display_help + exit 0 +fi + +MODEL_PATH="$1" +shift + +filepaths_list="$(pwd)"/artifacts/inference/filepaths.list +if [ -f "$filepaths_list" ]; then + rm "$filepaths_list" +fi + +if [ "$1" == "--dataset" ]; then + if [ -z "$2" ]; then + echo "No directory specified for --dataset option" + exit 1 + elif [ "$2" == "-h" ] || [ "$2" == "--help" ]; then + display_help + exit 0 + elif [ -d "$2" ]; then + process_directory "$2" + else + echo "Invalid directory specified: $2" + exit 1 + fi +else + for arg in "$@"; do + if [ "$arg" == "-h" ] || [ "$arg" == "--help" ]; then + display_help + exit 0 + elif [ -f "$arg" ]; then + process_image "$arg" + else + echo "Invalid file specified: $arg" + fi + done +fi + +RESULTS_FOLDER="$(pwd)"/artifacts/inference/results +if [ -d "RESULTS_FOLDER" ]; then + rm -rf "RESULTS_FOLDER"/* +fi +mkdir -p "$RESULTS_FOLDER" + +cd "$VAI_LIBRARY_SAMPLES_PATH" || exit + +EVAL_APP=test_accuracy_"$VAI_SAMPLES_POSTFIX"_mt +build_if_not_exists $VAI_LIBRARY_SAMPLES_PATH $EVAL_APP +RESULT_FILE=$RESULTS_FOLDER/result.txt +touch "$RESULT_FILE" +POSTFIX="_acc" +RENAMED_MODEL_PATH="${MODEL_PATH}${POSTFIX}" +mv "$MODEL_PATH" "$RENAMED_MODEL_PATH" +./$EVAL_APP $MODEL_PATH $filepaths_list $RESULT_FILE +mv "$RENAMED_MODEL_PATH" "$MODEL_PATH" +echo "Result of the inference:" +cat $RESULT_FILE + diff --git a/model_zoo/models/classification/pt_inceptionv3/scripts/performance.sh b/model_zoo/models/classification/pt_inceptionv3/scripts/performance.sh new file mode 100644 index 000000000..439a97d0a --- /dev/null +++ b/model_zoo/models/classification/pt_inceptionv3/scripts/performance.sh @@ -0,0 +1,80 @@ +#!/bin/bash + +source config.env +source ../../../scripts/build.sh + +display_help() { + echo "Usage: $0 MODEL_PATH [OPTIONS] [IMAGE PATHS]" + echo " $0 MODEL_PATH --dataset DIRECTORY" + echo + echo "Options:" + echo " --dataset DIRECTORY Specify a directory containing images" + echo " -h, --help Display this help message" + echo + echo "Arguments:" + echo " MODEL_PATH Path to the model" + echo " IMAGE PATHS List of image paths" + echo + +} + +process_image() { + echo "$1" >> $filepaths_list +} + +process_directory() { + local directory="$1" + find "$directory" -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" \) | while read -r file; do + process_image "$file" + done +} + +if [ -z "$1" ] || [ "$1" == "-h" ] || [ "$1" == "--help" ]; then + display_help + exit 0 +fi + +MODEL_PATH="$1" +shift + +filepaths_list="$(pwd)"/artifacts/inference/filepaths.list +if [ -f "$filepaths_list" ]; then + rm "$filepaths_list" +fi + +if [ "$1" == "--dataset" ]; then + if [ -z "$2" ]; then + echo "No directory specified for --dataset option" + exit 1 + elif [ "$2" == "-h" ] || [ "$2" == "--help" ]; then + display_help + exit 0 + elif [ -d "$2" ]; then + process_directory "$2" + else + echo "Invalid directory specified: $2" + exit 1 + fi +else + for arg in "$@"; do + if [ "$arg" == "-h" ] || [ "$arg" == "--help" ]; then + display_help + exit 0 + elif [ -f "$arg" ]; then + process_image "$arg" + else + echo "Invalid file specified: $arg" + fi + done +fi + +PERFORMANCE_FOLDER="$(pwd)"/artifacts/inference/perfomance +mkdir -p "$PERFORMANCE_FOLDER" +result_file=$PERFORMANCE_FOLDER/result.txt + +cd "$VAI_LIBRARY_SAMPLES_PATH" || exit + +EVAL_APP=test_performance_$VAI_SAMPLES_POSTFIX +build_if_not_exists $VAI_LIBRARY_SAMPLES_PATH $EVAL_APP + +./$EVAL_APP $MODEL_PATH $filepaths_list | tee $result_file diff --git a/model_zoo/models/classification/pt_inceptionv3/scripts/quality.sh b/model_zoo/models/classification/pt_inceptionv3/scripts/quality.sh new file mode 100644 index 000000000..086f01314 --- /dev/null +++ b/model_zoo/models/classification/pt_inceptionv3/scripts/quality.sh @@ -0,0 +1,49 @@ +#!/bin/bash + +source config.env +source ../../../scripts/build.sh + + +display_help() { + echo "Usage: $0 <inference_result> <ground_truth> [--batch] [--dataset]" + echo "" + echo "Evaluate the accuracy of predicted classes on the given image." + echo "" + echo "Positional arguments:" + echo " inference_result Path to the inference result image or folder" + echo " ground_truth Path to the ground truth image or folder" + echo "" + echo "Optional arguments:" + echo " --batch Evaluate a folder (default: individual images)" + echo " --dataset Evaluate CompCars dataset" + echo "" + +} +if [ -z "$1" ] || [ "$1" == "-h" ] || [ "$1" == "--help" ]; then + display_help + exit 0 +fi +bash scripts/setup_venv.sh + +QUALITY_FOLDER="$(pwd)"/artifacts/inference/quality +mkdir -p "$QUALITY_FOLDER" +result_file=$QUALITY_FOLDER/metrics.txt + +inference_result="$1" +ground_truth="$2" +dataset="" +batch="" + +if [[ "$3" == "--batch" ]]; then + batch="--batch" +fi + +if [[ "$3" == "--dataset" ]]; then + dataset="--dataset" +fi + +if [[ "$4" == "--dataset" ]]; then + dataset="--datasets" +fi + +python src/quality.py $inference_result $ground_truth $batch $dataset | tee $result_file diff --git a/model_zoo/models/classification/pt_inceptionv3/scripts/setup_venv.sh b/model_zoo/models/classification/pt_inceptionv3/scripts/setup_venv.sh new file mode 100644 index 000000000..a55316207 --- /dev/null +++ b/model_zoo/models/classification/pt_inceptionv3/scripts/setup_venv.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +python3 -m venv .venv +source .venv/bin/activate +pip install -r requirements.txt \ No newline at end of file diff --git a/model_zoo/models/classification/pt_inceptionv3/src/quality.py b/model_zoo/models/classification/pt_inceptionv3/src/quality.py new file mode 100644 index 000000000..8c83a0714 --- /dev/null +++ b/model_zoo/models/classification/pt_inceptionv3/src/quality.py @@ -0,0 +1,64 @@ +import argparse +import os +import numpy as np +from sklearn.metrics import top_k_accuracy_score + + +def calculate_metric_on_single_image(predictions, groundtruth): + top1_accuracy = top_k_accuracy_score([groundtruth], predictions, k=1) + top5_accuracy = top_k_accuracy_score([groundtruth], predictions, k=5) + return top1_accuracy, top5_accuracy + + +def calculate_metric_on_batch(images_folder, results_folder): + image_files = sorted(os.listdir(images_folder)) + result_files = sorted(os.listdir(results_folder)) + if len(image_files) != len(result_files): + raise ValueError("Number of images and results files do not match") + + top1_accuracies = [] + top5_accuracies = [] + for image_file, result_file in zip(image_files, result_files): + result_path = os.path.join(results_folder, result_file) + with open(result_path, 'r') as file: + predictions = file.read().splitlines() + predictions = [int(pred) for pred in predictions] + groundtruth = int(image_file.split('.')[0]) # Assuming image filename corresponds to groundtruth label + top1_accuracy, top5_accuracy = calculate_metric_on_single_image(predictions, groundtruth) + top1_accuracies.append(top1_accuracy) + top5_accuracies.append(top5_accuracy) + + mean_top1_accuracy = np.mean(top1_accuracies) + mean_top5_accuracy = np.mean(top5_accuracies) + return mean_top1_accuracy, mean_top5_accuracy + + +def calculate_metric_on_dataset(dataset_path): + images_folder = os.path.join(dataset_path, 'images') + results_folder = os.path.join(dataset_path, 'results') + mean_top1_accuracy, mean_top5_accuracy = calculate_metric_on_batch(images_folder, results_folder) + return mean_top1_accuracy, mean_top5_accuracy + + +if __name__ == '__main__': + parser = argparse.ArgumentParser( + description='Calculate top-1 and top-5 accuracy metrics.') + parser.add_argument('image', nargs='?', help='Path to the image inference result (single mode)') + parser.add_argument('groundtruth', nargs='?', type=int, help='Groundtruth label for the image (single mode)') + parser.add_argument('--batch', action='store_true', help='Calculate metrics on a batch of images') + parser.add_argument('--dataset', help='Path to the ImageNet dataset') + args = parser.parse_args() + + if args.batch: + mean_top1_accuracy, mean_top5_accuracy = calculate_metric_on_batch(args.image, args.groundtruth) + print(f"Mean top-1 accuracy on the batch: {mean_top1_accuracy}") + print(f"Mean top-5 accuracy on the batch: {mean_top5_accuracy}") + elif args.dataset: + mean_top1_accuracy, mean_top5_accuracy = calculate_metric_on_dataset(args.dataset) + print(f"Mean top-1 accuracy on the dataset: {mean_top1_accuracy}") + print(f"Mean top-5 accuracy on the batch: {mean_top5_accuracy}") + else: + top1_accuracy, top5_accuracy = calculate_metric_on_single_image(args.image, args.groundtruth) + print(f"Top-1 accuracy: {top1_accuracy}") + print(f"Top-5 accuracy: {top5_accuracy}") + diff --git a/model_zoo/models/classification/pt_resnet50/README.md b/model_zoo/models/classification/pt_resnet50/README.md new file mode 100644 index 000000000..d692398f4 --- /dev/null +++ b/model_zoo/models/classification/pt_resnet50/README.md @@ -0,0 +1,145 @@ +# Contents + +- [Contents](#contents) +- [Model Description](#model-description) + - [Description](#description) + - [Paper](#paper) +- [Model Architecture](#model-architecture) +- [Dataset](#dataset) +- [Features](#features) +- [Environment Requirements](#environment-requirements) +- [Quick Start](#quick-start) +- [Script Description](#script-description) + - [Structure](#structure) + - [Inference Process](#inference-process) +- [Quality](#quality) +- [Performance](#performance) +- [Links](#links) +- [Vitis AI Model Zoo Homepage](#vitis-ai-model-zoo-homepage) + +# Model Description + +## Description + +ResNet50 is a deep convolutional neural network model that has achieved significant advancements in image classification tasks. +It addresses the challenge of training deep networks by introducing residual connections, enabling the successful training of models with 50 layers. + +## Paper + +He, Kaiming, et al. "Deep residual learning for image recognition. arXiv 2015." +arXiv preprint arXiv:1512.03385 14 (2015). Link: https://arxiv.org/abs/1512.03385 + +# Model Architecture + +The architecture of ResNet50 consists of 50 layers, including convolutional layers, pooling layers, fully connected layers, +and shortcut connections. It follows a "building block" structure where each block contains multiple convolutional layers +with batch normalization and ReLU activation, along with a skip connection that bypasses the block. These skip connections +help propagate the gradients and enable training of deeper networks. + +# Dataset + +Dataset for testing: ImageNet. The ImageNet dataset is a large-scale visual database widely used in the image classification and object recognition tasks. <br> +The dataset categories cover a wide range of objects, animals, scenes, and everyday items. Each image in the dataset is annotated with a single label indicating the object or concept it represents. +Link to download the dataset: https://www.image-net.org/ + +# Features + +The notable features of the ResNet50 model: + +1. **Residual Connections**: The introduction of residual connections in ResNet50 allows the network to learn residual mappings, +which helps in training deeper models more effectively. +2. **Skip Connections**: The skip connections in ResNet50 allow the network to learn residual mappings. +3. **Pre-Activation Residual Units**: The building blocks in ResNet50 follow the pre-activation residual unit design, +which places batch normalization and ReLU activation before each convolutional layer. This helps in reducing "vanishing/exploding gradients" problem. +4. **Deep Architecture**: With its 50 layers, ResNet50 has a deep architecture that enables it to capture intricate features and patterns in images. +5. **Pre-trained Model**: ResNet50 is often used as a pre-trained model, meaning it has been trained on a large dataset (e.g., ImageNet). This pre-training enables transfer learning, where the model can be fine-tuned on smaller datasets. + +# Environment Requirements + +Before running the model inference, make sure that the latest version of +[Vitis-AI](https://xilinx.github.io/Vitis-AI/3.5/html/docs/install/install.html) is installed and the host computer fully supports +Xilinx FPGA/ACAP and the appropriate accelerator is installed correctly, e.g. Alveo V70. + +# Quick Start + +Follow the [Quick Start guide](../../../README.md#quick-start) in the main Model Zoo README: + +1. Install the Vitis-AI +2. Run the docker container +3. Download test data +4. Run the inference of the model + +# Script Description + +## Structure + +```text +pt_resnet50 # model name +├── artifacts # artifacts - will be created during the inference process +│ ├── inference # folder with results values of inference and evaluation +│ │ ├── performance # model productivity measurements +│ │ ├── quality # model quality measurements +│ │ ├── results # model inference results files +│ │ └── vaitrace # vaitrace profiling performance reports +│ └── models # folder with model meta and .xmodel executable files +├── scripts # scripts for model processing +│ ├── inference.sh # model inference +│ ├── performance.sh # model performance report +│ ├── quality.sh # model quality report +│ └── setup_venv.sh # virtual environment creation +├── src # python supporting scripts +│ └── quality.py # quality metric calculation +├── config.env # model configuration - env variables +├── README.md +└── requirements.txt # requirements for the virtual environment +``` + +## Inference Process + +- Native inference - follow the [Quick Start guide](../../../README.md#quick-start) in the main Model Zoo +- AMD Server + +# Quality + +Use the following script: + +```bash + # Format: bash scripts/quality.sh <inference_result> <ground_truth> [--batch] [--dataset] + # where: + # inference_result - Path to the inference result image or folder. + # ground_truth - Path to the ground truth image or folder + # --batch - Evaluate a dataset (default: individual images) + # --dataset - Evaluate ImageNet dataset + # The metric values will be stored in the artifacts/inference/quality/metrics.txt file + # Example: + + bash scripts/quality.sh $MODEL_FOLDER/artifacts/inference/results/ /workspace/Vitis-AI-Library/samples/classification/images/ --batch +``` + +# Performance + +- You can profile the model using [vaitrace](https://docs.xilinx.com/r/en-US/ug1414-vitis-ai/Starting-a-Simple-Trace-with-vaitrace) perfomance report, + the script and format described in the [Quick Start guide](../../../README.md#vaitrace) in the main Model Zoo. +- To get performance metrics (FPS, E2E, DPU_MEAN), use: + ```bash + # Format: bash scripts/performance.sh <MODEL_PATH> [<image paths list>] + # where: + # <MODEL_PATH> - the absolute path to the .xmodel + # [<image paths list>] - space-separated list of image absolute paths + # Alternatively, you can pass --dataset option with the folder where images are stored. + # Example: + + bash scripts/performance.sh $MODEL_FOLDER/artifacts/models/resnet50_pruned_0_6_pt/resnet50_pruned_0_6_pt.xmodel --dataset /workspace/Vitis-AI-Library/samples/classification/images/ + ``` + +# Links + +- ImageNet dataset: https://www.image-net.org/ +- Pytorch documentation, ResNet50: https://pytorch.org/vision/main/models/generated/torchvision.models.resnet50.html +- ResNet50 overview: https://iq.opengenus.org/resnet50-architecture/ +- Deep residual learning for image recognition: https://arxiv.org/abs/1512.03385 + + +# Vitis AI Model Zoo Homepage + +Check the official Vitis AI Model Zoo [homepage](https://github.com/Xilinx/Vitis-AI/tree/master/model_zoo). diff --git a/model_zoo/models/classification/pt_resnet50/config.env b/model_zoo/models/classification/pt_resnet50/config.env new file mode 100644 index 000000000..e0b12012d --- /dev/null +++ b/model_zoo/models/classification/pt_resnet50/config.env @@ -0,0 +1,6 @@ +#!/bin/bash + +VITIS_ROOT_PATH=/workspace +VAI_LIBRARY_SAMPLES_PATH=$VITIS_ROOT_PATH/examples/vai_library/samples/classification +VAI_SAMPLES_POSTFIX=classification + diff --git a/model_zoo/models/classification/pt_resnet50/requirements.txt b/model_zoo/models/classification/pt_resnet50/requirements.txt new file mode 100644 index 000000000..de7064cf0 --- /dev/null +++ b/model_zoo/models/classification/pt_resnet50/requirements.txt @@ -0,0 +1,2 @@ +numpy +scikit-learn \ No newline at end of file diff --git a/model_zoo/models/classification/pt_resnet50/scripts/inference.sh b/model_zoo/models/classification/pt_resnet50/scripts/inference.sh new file mode 100644 index 000000000..6d5ae323e --- /dev/null +++ b/model_zoo/models/classification/pt_resnet50/scripts/inference.sh @@ -0,0 +1,90 @@ +#!/bin/bash + +source config.env +source ../../../scripts/build.sh + +display_help() { + echo "Usage: $0 MODEL_PATH [OPTIONS] [IMAGE PATHS]" + echo " $0 MODEL_PATH --dataset DIRECTORY" + echo + echo "Options:" + echo " --dataset DIRECTORY Specify a directory containing images" + echo " -h, --help Display this help message" + echo + echo "Arguments:" + echo " MODEL_PATH Path to the model" + echo " IMAGE PATHS List of image paths" + echo + +} + +process_image() { + echo "$1" >> $filepaths_list +} + +process_directory() { + local directory="$1" + find "$directory" -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" \) | while read -r file; do + process_image "$file" + done +} + +if [ -z "$1" ] || [ "$1" == "-h" ] || [ "$1" == "--help" ]; then + display_help + exit 0 +fi + +MODEL_PATH="$1" +shift + +filepaths_list="$(pwd)"/artifacts/inference/filepaths.list +if [ -f "$filepaths_list" ]; then + rm "$filepaths_list" +fi + +if [ "$1" == "--dataset" ]; then + if [ -z "$2" ]; then + echo "No directory specified for --dataset option" + exit 1 + elif [ "$2" == "-h" ] || [ "$2" == "--help" ]; then + display_help + exit 0 + elif [ -d "$2" ]; then + process_directory "$2" + else + echo "Invalid directory specified: $2" + exit 1 + fi +else + for arg in "$@"; do + if [ "$arg" == "-h" ] || [ "$arg" == "--help" ]; then + display_help + exit 0 + elif [ -f "$arg" ]; then + process_image "$arg" + else + echo "Invalid file specified: $arg" + fi + done +fi + +RESULTS_FOLDER="$(pwd)"/artifacts/inference/results +if [ -d "RESULTS_FOLDER" ]; then + rm -rf "RESULTS_FOLDER"/* +fi +mkdir -p "$RESULTS_FOLDER" + +cd "$VAI_LIBRARY_SAMPLES_PATH" || exit + +EVAL_APP=test_accuracy_"$VAI_SAMPLES_POSTFIX"_mt +build_if_not_exists $VAI_LIBRARY_SAMPLES_PATH $EVAL_APP +RESULT_FILE=$RESULTS_FOLDER/result.txt +touch "$RESULT_FILE" +POSTFIX="_acc" +RENAMED_MODEL_PATH="${MODEL_PATH}${POSTFIX}" +mv "$MODEL_PATH" "$RENAMED_MODEL_PATH" +./$EVAL_APP $MODEL_PATH $filepaths_list $RESULT_FILE +mv "$RENAMED_MODEL_PATH" "$MODEL_PATH" +echo "Result of the inference:" +cat $RESULT_FILE + diff --git a/model_zoo/models/classification/pt_resnet50/scripts/performance.sh b/model_zoo/models/classification/pt_resnet50/scripts/performance.sh new file mode 100644 index 000000000..439a97d0a --- /dev/null +++ b/model_zoo/models/classification/pt_resnet50/scripts/performance.sh @@ -0,0 +1,80 @@ +#!/bin/bash + +source config.env +source ../../../scripts/build.sh + +display_help() { + echo "Usage: $0 MODEL_PATH [OPTIONS] [IMAGE PATHS]" + echo " $0 MODEL_PATH --dataset DIRECTORY" + echo + echo "Options:" + echo " --dataset DIRECTORY Specify a directory containing images" + echo " -h, --help Display this help message" + echo + echo "Arguments:" + echo " MODEL_PATH Path to the model" + echo " IMAGE PATHS List of image paths" + echo + +} + +process_image() { + echo "$1" >> $filepaths_list +} + +process_directory() { + local directory="$1" + find "$directory" -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" \) | while read -r file; do + process_image "$file" + done +} + +if [ -z "$1" ] || [ "$1" == "-h" ] || [ "$1" == "--help" ]; then + display_help + exit 0 +fi + +MODEL_PATH="$1" +shift + +filepaths_list="$(pwd)"/artifacts/inference/filepaths.list +if [ -f "$filepaths_list" ]; then + rm "$filepaths_list" +fi + +if [ "$1" == "--dataset" ]; then + if [ -z "$2" ]; then + echo "No directory specified for --dataset option" + exit 1 + elif [ "$2" == "-h" ] || [ "$2" == "--help" ]; then + display_help + exit 0 + elif [ -d "$2" ]; then + process_directory "$2" + else + echo "Invalid directory specified: $2" + exit 1 + fi +else + for arg in "$@"; do + if [ "$arg" == "-h" ] || [ "$arg" == "--help" ]; then + display_help + exit 0 + elif [ -f "$arg" ]; then + process_image "$arg" + else + echo "Invalid file specified: $arg" + fi + done +fi + +PERFORMANCE_FOLDER="$(pwd)"/artifacts/inference/perfomance +mkdir -p "$PERFORMANCE_FOLDER" +result_file=$PERFORMANCE_FOLDER/result.txt + +cd "$VAI_LIBRARY_SAMPLES_PATH" || exit + +EVAL_APP=test_performance_$VAI_SAMPLES_POSTFIX +build_if_not_exists $VAI_LIBRARY_SAMPLES_PATH $EVAL_APP + +./$EVAL_APP $MODEL_PATH $filepaths_list | tee $result_file diff --git a/model_zoo/models/classification/pt_resnet50/scripts/quality.sh b/model_zoo/models/classification/pt_resnet50/scripts/quality.sh new file mode 100644 index 000000000..086f01314 --- /dev/null +++ b/model_zoo/models/classification/pt_resnet50/scripts/quality.sh @@ -0,0 +1,49 @@ +#!/bin/bash + +source config.env +source ../../../scripts/build.sh + + +display_help() { + echo "Usage: $0 <inference_result> <ground_truth> [--batch] [--dataset]" + echo "" + echo "Evaluate the accuracy of predicted classes on the given image." + echo "" + echo "Positional arguments:" + echo " inference_result Path to the inference result image or folder" + echo " ground_truth Path to the ground truth image or folder" + echo "" + echo "Optional arguments:" + echo " --batch Evaluate a folder (default: individual images)" + echo " --dataset Evaluate CompCars dataset" + echo "" + +} +if [ -z "$1" ] || [ "$1" == "-h" ] || [ "$1" == "--help" ]; then + display_help + exit 0 +fi +bash scripts/setup_venv.sh + +QUALITY_FOLDER="$(pwd)"/artifacts/inference/quality +mkdir -p "$QUALITY_FOLDER" +result_file=$QUALITY_FOLDER/metrics.txt + +inference_result="$1" +ground_truth="$2" +dataset="" +batch="" + +if [[ "$3" == "--batch" ]]; then + batch="--batch" +fi + +if [[ "$3" == "--dataset" ]]; then + dataset="--dataset" +fi + +if [[ "$4" == "--dataset" ]]; then + dataset="--datasets" +fi + +python src/quality.py $inference_result $ground_truth $batch $dataset | tee $result_file diff --git a/model_zoo/models/classification/pt_resnet50/scripts/setup_venv.sh b/model_zoo/models/classification/pt_resnet50/scripts/setup_venv.sh new file mode 100644 index 000000000..a55316207 --- /dev/null +++ b/model_zoo/models/classification/pt_resnet50/scripts/setup_venv.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +python3 -m venv .venv +source .venv/bin/activate +pip install -r requirements.txt \ No newline at end of file diff --git a/model_zoo/models/classification/pt_resnet50/src/quality.py b/model_zoo/models/classification/pt_resnet50/src/quality.py new file mode 100644 index 000000000..39a520cc1 --- /dev/null +++ b/model_zoo/models/classification/pt_resnet50/src/quality.py @@ -0,0 +1,110 @@ +import argparse +import os +import numpy as np +from sklearn.metrics import accuracy_score, precision_score, recall_score, f1_score, roc_auc_score + + +def accuracy_at_k(true_classes, predicted_classes, k): + if k > len(predicted_classes): + raise ValueError("K exceeds the number of predicted classes.") + + predicted_k = predicted_classes[:k] + accuracy = np.sum(np.isin(predicted_k, true_classes)) / len(true_classes) + return accuracy + + +def precision_at_k(true_classes, predicted_classes, k): + # Calculate precision at K + if k > len(predicted_classes): + raise ValueError("K exceeds the number of predicted classes.") + + predicted_k = predicted_classes[:k] + precision = np.sum(np.isin(predicted_k, true_classes)) / k + return precision + + +def recall_at_k(true_classes, predicted_classes, k): + # Calculate recall at K + if k > len(predicted_classes): + raise ValueError("K exceeds the number of predicted classes.") + + predicted_k = predicted_classes[:k] + recall = np.sum(np.isin(predicted_k, true_classes)) / len(true_classes) + return recall + +def calculate_metric_on_single_image(predicted_classes, true_classes): + + # print(predicted_classes) + # print(true_classes) + + top1_accuracy = accuracy_at_k(predicted_classes, true_classes, k=1) + top5_accuracy = accuracy_at_k(predicted_classes, true_classes, k=5) + + return top1_accuracy, top5_accuracy + + +def calculate_metric_on_batch(images_folder, results_folder): + image_files = sorted(os.listdir(images_folder)) + result_files = sorted(os.listdir(results_folder)) + if len(image_files) != len(result_files): + raise ValueError("Number of images and results files do not match") + + top1_accuracies = [] + top5_accuracies = [] + for image_file, result_file in zip(image_files, result_files): + result_path = os.path.join(results_folder, result_file) + with open(result_path, 'r') as file: + predictions = file.read().splitlines() + predictions = [int(pred) for pred in predictions] + groundtruth = int(image_file.split('.')[0]) # Assuming image filename corresponds to groundtruth label + top1_accuracy, top5_accuracy = calculate_metric_on_single_image(predictions, groundtruth) + top1_accuracies.append(top1_accuracy) + top5_accuracies.append(top5_accuracy) + + mean_top1_accuracy = np.mean(top1_accuracies) + mean_top5_accuracy = np.mean(top5_accuracies) + return mean_top1_accuracy, mean_top5_accuracy + + +def calculate_metric_on_dataset(dataset_path): + images_folder = os.path.join(dataset_path, 'images') + results_folder = os.path.join(dataset_path, 'results') + mean_top1_accuracy, mean_top5_accuracy = calculate_metric_on_batch(images_folder, results_folder) + return mean_top1_accuracy, mean_top5_accuracy + +def read_file(path): + with open(path, 'r') as file: + content = file.read() + integers = [int(num) for num in content.split() if num.isdigit()] + return integers + +if __name__ == '__main__': + parser = argparse.ArgumentParser( + description='Calculate top-1 and top-5 accuracy metrics.') + parser.add_argument('image', nargs='?', help='Path to the image inference result (single mode)') + parser.add_argument('groundtruth', nargs='?', help='Groundtruth label for the image (single mode)') + parser.add_argument('--batch', action='store_true', help='Calculate metrics on a batch of images') + parser.add_argument('--dataset', help='Path to the ImageNet dataset') + args = parser.parse_args() + + if args.batch: + mean_top1_accuracy, mean_top5_accuracy = calculate_metric_on_batch(args.image, args.groundtruth) + print(f"Mean top-1 accuracy on the batch: {mean_top1_accuracy}") + print(f"Mean top-5 accuracy on the batch: {mean_top5_accuracy}") + elif args.dataset: + mean_top1_accuracy, mean_top5_accuracy = calculate_metric_on_dataset(args.dataset) + print(f"Mean top-1 accuracy on the dataset: {mean_top1_accuracy}") + print(f"Mean top-5 accuracy on the batch: {mean_top5_accuracy}") + else: + l1 = read_file(args.image) + l2 = read_file(args.groundtruth) + # accuracy, precision, recall, f1 = calculate_metric_on_single_image(l1, l2) + top1_accuracy, top5_accuracy = calculate_metric_on_single_image(l1, l2) + + # print("Accuracy:", accuracy) + # print("Precision:", precision) + # print("Recall:", recall) + # print("F1 Score:", f1) + print(f"Top-1 accuracy: {top1_accuracy}") + print(f"Top-5 accuracy: {top5_accuracy}") + diff --git a/model_zoo/models/classification/pt_squeezenet/README.md b/model_zoo/models/classification/pt_squeezenet/README.md new file mode 100644 index 000000000..49be2e880 --- /dev/null +++ b/model_zoo/models/classification/pt_squeezenet/README.md @@ -0,0 +1,141 @@ +# Contents + +- [Contents](#contents) +- [Model Description](#model-description) + - [Description](#description) + - [Paper](#paper) +- [Model Architecture](#model-architecture) +- [Dataset](#dataset) +- [Features](#features) +- [Environment Requirements](#environment-requirements) +- [Quick Start](#quick-start) +- [Script Description](#script-description) + - [Structure](#structure) + - [Inference Process](#inference-process) +- [Quality](#quality) +- [Performance](#performance) +- [Links](#links) +- [Vitis AI Model Zoo Homepage](#vitis-ai-model-zoo-homepage) + +# Model Description + +## Description + +SqueezeNet is a compact deep neural network architecture designed for efficient image classification tasks. +It aims to achieve a balance between model size and performance by drastically reducing the number of parameters while maintaining competitive accuracy. + +## Paper + +Iandola, Forrest N., et al. "SqueezeNet: AlexNet-level accuracy with 50x fewer parameters and <0.5MB model size." +arXiv preprint arXiv:1602.07360 (2016). Link: + + +# Model Architecture + +SqueezeNet's architecture focuses on reducing the number of parameters by employing a combination of strategies such as 1x1 convolutional filters (also known as pointwise convolutions) and aggressive downsampling. The primary innovation lies in the "fire" modules, which consist of a combination of 1x1 and 3x3 convolutions that expand and then squeeze the data, hence the name "SqueezeNet." The 1x1 convolutions help to mix and reduce the number of channels, while the 3x3 convolutions capture spatial features. + +# Dataset + +Dataset for testing: ImageNet. The ImageNet dataset is a large-scale visual database widely used in the image classification and object recognition tasks. <br> +The dataset categories cover a wide range of objects, animals, scenes, and everyday items. Each image in the dataset is annotated with a single label indicating the object or concept it represents. +Link to download the dataset: https://www.image-net.org/ + +# Features + +The notable features of the Squeezenet model: + +1. **Model Size:** SqueezeNet achieves a compact model size by heavily relying on 1x1 convolutions, which significantly reduces the number of parameters compared to traditional architectures. +2. **High Performance**: Despite its small size, SqueezeNet maintains competitive accuracy on image classification tasks like ImageNet, thanks to its efficient design and well-balanced use of convolutional filters. +3. **Real-time Inference**: SqueezeNet is well-suited for real-time applications due to its low computational demands, making it applicable in scenarios where low-latency predictions are crucial. +4. **Transfer Learning**: While originally designed for image classification, SqueezeNet's compact architecture makes it suitable as a starting point for transfer learning on other tasks, particularly when computational resources are limited. +5. **Embedded Systems**: SqueezeNet's efficiency makes it an attractive option for deployment on resource-constrained devices like smartphones, IoT devices, and edge computing devices. + +# Environment Requirements + +Before running the model inference, make sure that the latest version of +[Vitis-AI](https://xilinx.github.io/Vitis-AI/3.5/html/docs/install/install.html) is installed and the host computer fully supports +Xilinx FPGA/ACAP and the appropriate accelerator is installed correctly, e.g. Alveo V70. + +# Quick Start + +Follow the [Quick Start guide](../../../README.md#quick-start) in the main Model Zoo README: + +1. Install the Vitis-AI +2. Run the docker container +3. Download test data +4. Run the inference of the model + +# Script Description + +## Structure + +```text +pt_squeezenet # model name +├── artifacts # artifacts - will be created during the inference process +│ ├── inference # folder with results values of inference and evaluation +│ │ ├── performance # model productivity measurements +│ │ ├── quality # model quality measurements +│ │ ├── results # model inference results files +│ │ └── vaitrace # vaitrace profiling performance reports +│ └── models # folder with model meta and .xmodel executable files +├── scripts # scripts for model processing +│ ├── inference.sh # model inference +│ ├── performance.sh # model performance report +│ ├── quality.sh # model quality report +│ └── setup_venv.sh # virtual environment creation +├── src # python supporting scripts +│ └── quality.py # quality metric calculation +├── config.env # model configuration - env variables +├── README.md +└── requirements.txt # requirements for the virtual environment +``` + +## Inference Process + +- Native inference - follow the [Quick Start guide](../../../README.md#quick-start) in the main Model Zoo +- AMD Server + +# Quality + +Use the following script: + +```bash + # Format: bash scripts/quality.sh <inference_result> <ground_truth> [--batch] [--dataset] + # where: + # inference_result - Path to the inference result image or folder. + # ground_truth - Path to the ground truth image or folder + # --batch - Evaluate a dataset (default: individual images) + # --dataset - Evaluate ImageNet dataset + # The metric values will be stored in the artifacts/inference/quality/metrics.txt file + # Example: + + bash scripts/quality.sh $MODEL_FOLDER/artifacts/inference/results/ /workspace/Vitis-AI-Library/samples/classification/images/ --batch +``` + +# Performance + +- You can profile the model using [vaitrace](https://docs.xilinx.com/r/en-US/ug1414-vitis-ai/Starting-a-Simple-Trace-with-vaitrace) perfomance report, + the script and format described in the [Quick Start guide](../../../README.md#vaitrace) in the main Model Zoo. +- To get performance metrics (FPS, E2E, DPU_MEAN), use: + ```bash + # Format: bash scripts/performance.sh <MODEL_PATH> [<image paths list>] + # where: + # <MODEL_PATH> - the absolute path to the .xmodel + # [<image paths list>] - space-separated list of image absolute paths + # Alternatively, you can pass --dataset option with the folder where images are stored. + # Example: + + bash scripts/performance.sh $MODEL_FOLDER/artifacts/models/squeezenet_pt/squeezenet_pt.xmodel --dataset /workspace/Vitis-AI-Library/samples/classification/images/ + ``` + +# Links + +- ImageNet dataset: https://www.image-net.org/ +- SqueezeNet original paper: https://arxiv.org/abs/1602.07360 +- SqueezeNet explained: https://paperswithcode.com/method/squeezenet +- Deep residual learning for image recognition: https://arxiv.org/abs/1512.03385 + + +# Vitis AI Model Zoo Homepage + +Check the official Vitis AI Model Zoo [homepage](https://github.com/Xilinx/Vitis-AI/tree/master/model_zoo). diff --git a/model_zoo/models/classification/pt_squeezenet/config.env b/model_zoo/models/classification/pt_squeezenet/config.env new file mode 100644 index 000000000..e0b12012d --- /dev/null +++ b/model_zoo/models/classification/pt_squeezenet/config.env @@ -0,0 +1,6 @@ +#!/bin/bash + +VITIS_ROOT_PATH=/workspace +VAI_LIBRARY_SAMPLES_PATH=$VITIS_ROOT_PATH/examples/vai_library/samples/classification +VAI_SAMPLES_POSTFIX=classification + diff --git a/model_zoo/models/classification/pt_squeezenet/requirements.txt b/model_zoo/models/classification/pt_squeezenet/requirements.txt new file mode 100644 index 000000000..de7064cf0 --- /dev/null +++ b/model_zoo/models/classification/pt_squeezenet/requirements.txt @@ -0,0 +1,2 @@ +numpy +scikit-learn \ No newline at end of file diff --git a/model_zoo/models/classification/pt_squeezenet/scripts/inference.sh b/model_zoo/models/classification/pt_squeezenet/scripts/inference.sh new file mode 100644 index 000000000..6d5ae323e --- /dev/null +++ b/model_zoo/models/classification/pt_squeezenet/scripts/inference.sh @@ -0,0 +1,90 @@ +#!/bin/bash + +source config.env +source ../../../scripts/build.sh + +display_help() { + echo "Usage: $0 MODEL_PATH [OPTIONS] [IMAGE PATHS]" + echo " $0 MODEL_PATH --dataset DIRECTORY" + echo + echo "Options:" + echo " --dataset DIRECTORY Specify a directory containing images" + echo " -h, --help Display this help message" + echo + echo "Arguments:" + echo " MODEL_PATH Path to the model" + echo " IMAGE PATHS List of image paths" + echo + +} + +process_image() { + echo "$1" >> $filepaths_list +} + +process_directory() { + local directory="$1" + find "$directory" -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" \) | while read -r file; do + process_image "$file" + done +} + +if [ -z "$1" ] || [ "$1" == "-h" ] || [ "$1" == "--help" ]; then + display_help + exit 0 +fi + +MODEL_PATH="$1" +shift + +filepaths_list="$(pwd)"/artifacts/inference/filepaths.list +if [ -f "$filepaths_list" ]; then + rm "$filepaths_list" +fi + +if [ "$1" == "--dataset" ]; then + if [ -z "$2" ]; then + echo "No directory specified for --dataset option" + exit 1 + elif [ "$2" == "-h" ] || [ "$2" == "--help" ]; then + display_help + exit 0 + elif [ -d "$2" ]; then + process_directory "$2" + else + echo "Invalid directory specified: $2" + exit 1 + fi +else + for arg in "$@"; do + if [ "$arg" == "-h" ] || [ "$arg" == "--help" ]; then + display_help + exit 0 + elif [ -f "$arg" ]; then + process_image "$arg" + else + echo "Invalid file specified: $arg" + fi + done +fi + +RESULTS_FOLDER="$(pwd)"/artifacts/inference/results +if [ -d "RESULTS_FOLDER" ]; then + rm -rf "RESULTS_FOLDER"/* +fi +mkdir -p "$RESULTS_FOLDER" + +cd "$VAI_LIBRARY_SAMPLES_PATH" || exit + +EVAL_APP=test_accuracy_"$VAI_SAMPLES_POSTFIX"_mt +build_if_not_exists $VAI_LIBRARY_SAMPLES_PATH $EVAL_APP +RESULT_FILE=$RESULTS_FOLDER/result.txt +touch "$RESULT_FILE" +POSTFIX="_acc" +RENAMED_MODEL_PATH="${MODEL_PATH}${POSTFIX}" +mv "$MODEL_PATH" "$RENAMED_MODEL_PATH" +./$EVAL_APP $MODEL_PATH $filepaths_list $RESULT_FILE +mv "$RENAMED_MODEL_PATH" "$MODEL_PATH" +echo "Result of the inference:" +cat $RESULT_FILE + diff --git a/model_zoo/models/classification/pt_squeezenet/scripts/performance.sh b/model_zoo/models/classification/pt_squeezenet/scripts/performance.sh new file mode 100644 index 000000000..439a97d0a --- /dev/null +++ b/model_zoo/models/classification/pt_squeezenet/scripts/performance.sh @@ -0,0 +1,80 @@ +#!/bin/bash + +source config.env +source ../../../scripts/build.sh + +display_help() { + echo "Usage: $0 MODEL_PATH [OPTIONS] [IMAGE PATHS]" + echo " $0 MODEL_PATH --dataset DIRECTORY" + echo + echo "Options:" + echo " --dataset DIRECTORY Specify a directory containing images" + echo " -h, --help Display this help message" + echo + echo "Arguments:" + echo " MODEL_PATH Path to the model" + echo " IMAGE PATHS List of image paths" + echo + +} + +process_image() { + echo "$1" >> $filepaths_list +} + +process_directory() { + local directory="$1" + find "$directory" -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" \) | while read -r file; do + process_image "$file" + done +} + +if [ -z "$1" ] || [ "$1" == "-h" ] || [ "$1" == "--help" ]; then + display_help + exit 0 +fi + +MODEL_PATH="$1" +shift + +filepaths_list="$(pwd)"/artifacts/inference/filepaths.list +if [ -f "$filepaths_list" ]; then + rm "$filepaths_list" +fi + +if [ "$1" == "--dataset" ]; then + if [ -z "$2" ]; then + echo "No directory specified for --dataset option" + exit 1 + elif [ "$2" == "-h" ] || [ "$2" == "--help" ]; then + display_help + exit 0 + elif [ -d "$2" ]; then + process_directory "$2" + else + echo "Invalid directory specified: $2" + exit 1 + fi +else + for arg in "$@"; do + if [ "$arg" == "-h" ] || [ "$arg" == "--help" ]; then + display_help + exit 0 + elif [ -f "$arg" ]; then + process_image "$arg" + else + echo "Invalid file specified: $arg" + fi + done +fi + +PERFORMANCE_FOLDER="$(pwd)"/artifacts/inference/perfomance +mkdir -p "$PERFORMANCE_FOLDER" +result_file=$PERFORMANCE_FOLDER/result.txt + +cd "$VAI_LIBRARY_SAMPLES_PATH" || exit + +EVAL_APP=test_performance_$VAI_SAMPLES_POSTFIX +build_if_not_exists $VAI_LIBRARY_SAMPLES_PATH $EVAL_APP + +./$EVAL_APP $MODEL_PATH $filepaths_list | tee $result_file diff --git a/model_zoo/models/classification/pt_squeezenet/scripts/quality.sh b/model_zoo/models/classification/pt_squeezenet/scripts/quality.sh new file mode 100644 index 000000000..086f01314 --- /dev/null +++ b/model_zoo/models/classification/pt_squeezenet/scripts/quality.sh @@ -0,0 +1,49 @@ +#!/bin/bash + +source config.env +source ../../../scripts/build.sh + + +display_help() { + echo "Usage: $0 <inference_result> <ground_truth> [--batch] [--dataset]" + echo "" + echo "Evaluate the accuracy of predicted classes on the given image." + echo "" + echo "Positional arguments:" + echo " inference_result Path to the inference result image or folder" + echo " ground_truth Path to the ground truth image or folder" + echo "" + echo "Optional arguments:" + echo " --batch Evaluate a folder (default: individual images)" + echo " --dataset Evaluate CompCars dataset" + echo "" + +} +if [ -z "$1" ] || [ "$1" == "-h" ] || [ "$1" == "--help" ]; then + display_help + exit 0 +fi +bash scripts/setup_venv.sh + +QUALITY_FOLDER="$(pwd)"/artifacts/inference/quality +mkdir -p "$QUALITY_FOLDER" +result_file=$QUALITY_FOLDER/metrics.txt + +inference_result="$1" +ground_truth="$2" +dataset="" +batch="" + +if [[ "$3" == "--batch" ]]; then + batch="--batch" +fi + +if [[ "$3" == "--dataset" ]]; then + dataset="--dataset" +fi + +if [[ "$4" == "--dataset" ]]; then + dataset="--datasets" +fi + +python src/quality.py $inference_result $ground_truth $batch $dataset | tee $result_file diff --git a/model_zoo/models/classification/pt_squeezenet/scripts/setup_venv.sh b/model_zoo/models/classification/pt_squeezenet/scripts/setup_venv.sh new file mode 100644 index 000000000..a55316207 --- /dev/null +++ b/model_zoo/models/classification/pt_squeezenet/scripts/setup_venv.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +python3 -m venv .venv +source .venv/bin/activate +pip install -r requirements.txt \ No newline at end of file diff --git a/model_zoo/models/classification/pt_squeezenet/src/quality.py b/model_zoo/models/classification/pt_squeezenet/src/quality.py new file mode 100644 index 000000000..39a520cc1 --- /dev/null +++ b/model_zoo/models/classification/pt_squeezenet/src/quality.py @@ -0,0 +1,110 @@ +import argparse +import os +import numpy as np +from sklearn.metrics import accuracy_score, precision_score, recall_score, f1_score, roc_auc_score + + +def accuracy_at_k(true_classes, predicted_classes, k): + if k > len(predicted_classes): + raise ValueError("K exceeds the number of predicted classes.") + + predicted_k = predicted_classes[:k] + accuracy = np.sum(np.isin(predicted_k, true_classes)) / len(true_classes) + return accuracy + + +def precision_at_k(true_classes, predicted_classes, k): + # Calculate precision at K + if k > len(predicted_classes): + raise ValueError("K exceeds the number of predicted classes.") + + predicted_k = predicted_classes[:k] + precision = np.sum(np.isin(predicted_k, true_classes)) / k + return precision + + +def recall_at_k(true_classes, predicted_classes, k): + # Calculate recall at K + if k > len(predicted_classes): + raise ValueError("K exceeds the number of predicted classes.") + + predicted_k = predicted_classes[:k] + recall = np.sum(np.isin(predicted_k, true_classes)) / len(true_classes) + return recall + +def calculate_metric_on_single_image(predicted_classes, true_classes): + + # print(predicted_classes) + # print(true_classes) + + top1_accuracy = accuracy_at_k(predicted_classes, true_classes, k=1) + top5_accuracy = accuracy_at_k(predicted_classes, true_classes, k=5) + + return top1_accuracy, top5_accuracy + + +def calculate_metric_on_batch(images_folder, results_folder): + image_files = sorted(os.listdir(images_folder)) + result_files = sorted(os.listdir(results_folder)) + if len(image_files) != len(result_files): + raise ValueError("Number of images and results files do not match") + + top1_accuracies = [] + top5_accuracies = [] + for image_file, result_file in zip(image_files, result_files): + result_path = os.path.join(results_folder, result_file) + with open(result_path, 'r') as file: + predictions = file.read().splitlines() + predictions = [int(pred) for pred in predictions] + groundtruth = int(image_file.split('.')[0]) # Assuming image filename corresponds to groundtruth label + top1_accuracy, top5_accuracy = calculate_metric_on_single_image(predictions, groundtruth) + top1_accuracies.append(top1_accuracy) + top5_accuracies.append(top5_accuracy) + + mean_top1_accuracy = np.mean(top1_accuracies) + mean_top5_accuracy = np.mean(top5_accuracies) + return mean_top1_accuracy, mean_top5_accuracy + + +def calculate_metric_on_dataset(dataset_path): + images_folder = os.path.join(dataset_path, 'images') + results_folder = os.path.join(dataset_path, 'results') + mean_top1_accuracy, mean_top5_accuracy = calculate_metric_on_batch(images_folder, results_folder) + return mean_top1_accuracy, mean_top5_accuracy + +def read_file(path): + with open(path, 'r') as file: + content = file.read() + integers = [int(num) for num in content.split() if num.isdigit()] + return integers + +if __name__ == '__main__': + parser = argparse.ArgumentParser( + description='Calculate top-1 and top-5 accuracy metrics.') + parser.add_argument('image', nargs='?', help='Path to the image inference result (single mode)') + parser.add_argument('groundtruth', nargs='?', help='Groundtruth label for the image (single mode)') + parser.add_argument('--batch', action='store_true', help='Calculate metrics on a batch of images') + parser.add_argument('--dataset', help='Path to the ImageNet dataset') + args = parser.parse_args() + + if args.batch: + mean_top1_accuracy, mean_top5_accuracy = calculate_metric_on_batch(args.image, args.groundtruth) + print(f"Mean top-1 accuracy on the batch: {mean_top1_accuracy}") + print(f"Mean top-5 accuracy on the batch: {mean_top5_accuracy}") + elif args.dataset: + mean_top1_accuracy, mean_top5_accuracy = calculate_metric_on_dataset(args.dataset) + print(f"Mean top-1 accuracy on the dataset: {mean_top1_accuracy}") + print(f"Mean top-5 accuracy on the batch: {mean_top5_accuracy}") + else: + l1 = read_file(args.image) + l2 = read_file(args.groundtruth) + # accuracy, precision, recall, f1 = calculate_metric_on_single_image(l1, l2) + top1_accuracy, top5_accuracy = calculate_metric_on_single_image(l1, l2) + + # print("Accuracy:", accuracy) + # print("Precision:", precision) + # print("Recall:", recall) + # print("F1 Score:", f1) + print(f"Top-1 accuracy: {top1_accuracy}") + print(f"Top-5 accuracy: {top5_accuracy}") + diff --git a/model_zoo/models/classification/pt_vehicle-make-classification/README.md b/model_zoo/models/classification/pt_vehicle-make-classification/README.md new file mode 100644 index 000000000..a4b83e29a --- /dev/null +++ b/model_zoo/models/classification/pt_vehicle-make-classification/README.md @@ -0,0 +1,141 @@ +# Contents + +- [Contents](#contents) +- [Model Description](#model-description) + - [Description](#description) + - [Paper](#paper) +- [Model Architecture](#model-architecture) +- [Dataset](#dataset) +- [Features](#features) +- [Environment Requirements](#environment-requirements) +- [Quick Start](#quick-start) +- [Script Description](#script-description) + - [Structure](#structure) + - [Inference Process](#inference-process) +- [Quality](#quality) +- [Performance](#performance) +- [Links](#links) +- [Vitis AI Model Zoo Homepage](#vitis-ai-model-zoo-homepage) + +# Model Description + +## Description + +ResNet18 vehicle classification model. ResNet-18 is a popular variant of the Residual Neural Network (ResNet) architecture, +which is widely used for various computer vision tasks, including vehicle classification. + +## Paper + Watkins, Rohan, Nick Pears, and Suresh Manandhar. "Vehicle classification using ResNets, localisation and spatially-weighted pooling." + arXiv preprint arXiv:1810.10329 (2018). Link - https://arxiv.org/abs/1810.10329 + +# Model Architecture +ResNet-18 is a deep convolutional neural network architecture designed for image classification tasks, including vehicle classification. +It consists of a series of convolutional layers with 3x3 filters, followed by four sets of residual blocks. +Each residual block contains convolutional layers and a skip connection that bypasses the layers, allowing the network to learn residual mappings. +Average pooling is applied after each set of blocks, and the final output is obtained through a fully connected layer with softmax activation. +ResNet-18's key features include residual connections for training deeper networks, its relatively shallow depth of 18 layers, +pretraining capabilities for transfer learning, and its high accuracy in image classification benchmarks. +# Dataset + +Dataset for testing: CompCars. The CompCars dataset contains comprehensive annotations and images of vehicles captured +from different viewpoints and under varying conditions. <br> +Link to download the dataset: http://mmlab.ie.cuhk.edu.hk/datasets/comp_cars/ + +# Features + +The notable features of the model: + +1. **Residual Neural Networks (ResNets)**. +2. **Localization**. +3. **Spatially-Weighted Pooling**. + +# Environment Requirements + +Before running the model inference, make sure that the latest version of +[Vitis-AI](https://xilinx.github.io/Vitis-AI/3.5/html/docs/install/install.html) is installed and the host computer fully supports +Xilinx FPGA/ACAP and the appropriate accelerator is installed correctly, e.g. Alveo V70. + +# Quick Start + +Follow the [Quick Start guide](../../../README.md#quick-start) in the main Model Zoo README: + +1. Install the Vitis-AI +2. Run the docker container +3. Download test data +4. Run the inference of the model + +# Script Description + +## Structure + +```text +pt_vehicle-make-classification # model name +├── artifacts # artifacts - will be created during the inference process +│ ├── inference # folder with results values of inference and evaluation +│ │ ├── performance # model productivity measurements +│ │ ├── quality # model quality measurements +│ │ ├── results # model inference results files +│ │ └── vaitrace # vaitrace profiling performance reports +│ └── models # folder with model meta and .xmodel executable files +├── scripts # scripts for model processing +│ ├── inference.sh # model inference +│ ├── performance.sh # model performance report +│ ├── quality.sh # model quality report +│ └── setup_venv.sh # virtual environment creation +├── src # python supporting scripts +│ └── quality.py # quality metric calculation +├── config.env # model configuration - env variables +├── README.md +└── requirements.txt # requirements for the virtual environment +``` + +## Inference Process + +- Native inference - follow the [Quick Start guide](../../../README.md#quick-start) in the main Model Zoo +- AMD Server + +# Quality + +Use the following script: + +```bash + # Format: bash scripts/quality.sh <inference_result> <ground_truth> [--batch] [--dataset] + # where: + # inference_result - Path to the inference result image or folder. + # ground_truth - Path to the ground truth image or folder + # --batch - Evaluate a dataset (default: individual images) + # --dataset - Evaluate CompCars dataset + # The metric values will be stored in the artifacts/inference/quality/metrics.txt file + # Example: + + bash scripts/quality.sh $MODEL_FOLDER/artifacts/inference/results/ /workspace/Vitis-AI-Library/samples/vehicleclassification/vehicle_images/ --batch +``` + +# Performance + +- You can profile the model using [vaitrace](https://docs.xilinx.com/r/en-US/ug1414-vitis-ai/Starting-a-Simple-Trace-with-vaitrace) perfomance report, + the script and format described in the [Quick Start guide](../../../README.md#vaitrace) in the main Model Zoo. +- To get performance metrics (FPS, E2E, DPU_MEAN), use: + ```bash + # Format: bash scripts/performance.sh <MODEL_PATH> [<image paths list>] + # where: + # <MODEL_PATH> - the absolute path to the .xmodel + # [<image paths list>] - space-separated list of image absolute paths + # Alternatively, you can pass --dataset option with the folder where images are stored. + # Example: + + bash scripts/performance.sh $MODEL_FOLDER/artifacts/models/vehicle_make_resnet18_pt/vehicle_make_resnet18_pt.xmodel --dataset /workspace/Vitis-AI-Library/samples/vehicleclassification/vehicle_images/ + ``` + + +# Links + +- CompCars dataset: http://mmlab.ie.cuhk.edu.hk/datasets/comp_cars/ +- EfficientNet-EdgeTPU: Creating Accelerator-Optimized Neural Networks with AutoML. +Google Research blog post: https://ai.googleblog.com/2019/08/efficientnet-edgetpu-creating.html +- Going deeper with convolutions (Inception): https://arxiv.org/pdf/1409.4842 +- Benchmark on the CompCars (PapersWithCode): https://paperswithcode.com/dataset/compcars + +# Vitis AI Model Zoo Homepage + +Check the official Vitis AI Model Zoo [homepage](https://github.com/Xilinx/Vitis-AI/tree/master/model_zoo). diff --git a/model_zoo/models/classification/pt_vehicle-make-classification/config.env b/model_zoo/models/classification/pt_vehicle-make-classification/config.env new file mode 100644 index 000000000..261486e6e --- /dev/null +++ b/model_zoo/models/classification/pt_vehicle-make-classification/config.env @@ -0,0 +1,5 @@ +#!/bin/bash + +VITIS_ROOT_PATH=/workspace +VAI_LIBRARY_SAMPLES_PATH=$VITIS_ROOT_PATH/examples/vai_library/samples/vehicleclassification +VAI_SAMPLES_POSTFIX=vehicleclassification diff --git a/model_zoo/models/classification/pt_vehicle-make-classification/requirements.txt b/model_zoo/models/classification/pt_vehicle-make-classification/requirements.txt new file mode 100644 index 000000000..de7064cf0 --- /dev/null +++ b/model_zoo/models/classification/pt_vehicle-make-classification/requirements.txt @@ -0,0 +1,2 @@ +numpy +scikit-learn \ No newline at end of file diff --git a/model_zoo/models/classification/pt_vehicle-make-classification/scripts/inference.sh b/model_zoo/models/classification/pt_vehicle-make-classification/scripts/inference.sh new file mode 100644 index 000000000..8d4da1ad9 --- /dev/null +++ b/model_zoo/models/classification/pt_vehicle-make-classification/scripts/inference.sh @@ -0,0 +1,89 @@ +#!/bin/bash + +source config.env +source ../../../scripts/build.sh + +display_help() { + echo "Usage: $0 MODEL_PATH [OPTIONS] [IMAGE PATHS]" + echo " $0 MODEL_PATH --dataset DIRECTORY" + echo + echo "Options:" + echo " --dataset DIRECTORY Specify a directory containing images" + echo " -h, --help Display this help message" + echo + echo "Arguments:" + echo " MODEL_PATH Path to the model" + echo " IMAGE PATHS List of image paths" + echo + +} + +process_image() { + echo "$1" >> $filepaths_list +} + +process_directory() { + local directory="$1" + find "$directory" -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" \) | while read -r file; do + process_image "$file" + done +} + +if [ -z "$1" ] || [ "$1" == "-h" ] || [ "$1" == "--help" ]; then + display_help + exit 0 +fi + +MODEL_PATH="$1" +shift + +filepaths_list="$(pwd)"/artifacts/inference/filepaths.list +if [ -f "$filepaths_list" ]; then + rm "$filepaths_list" +fi + +if [ "$1" == "--dataset" ]; then + if [ -z "$2" ]; then + echo "No directory specified for --dataset option" + exit 1 + elif [ "$2" == "-h" ] || [ "$2" == "--help" ]; then + display_help + exit 0 + elif [ -d "$2" ]; then + process_directory "$2" + else + echo "Invalid directory specified: $2" + exit 1 + fi +else + for arg in "$@"; do + if [ "$arg" == "-h" ] || [ "$arg" == "--help" ]; then + display_help + exit 0 + elif [ -f "$arg" ]; then + process_image "$arg" + else + echo "Invalid file specified: $arg" + fi + done +fi + +RESULTS_FOLDER="$(pwd)"/artifacts/inference/results +if [ -d "RESULTS_FOLDER" ]; then + rm -rf "RESULTS_FOLDER"/* +fi +mkdir -p "$RESULTS_FOLDER" + +cd "$VAI_LIBRARY_SAMPLES_PATH" || exit + +EVAL_APP=test_accuracy_$VAI_SAMPLES_POSTFIX +build_if_not_exists $VAI_LIBRARY_SAMPLES_PATH $EVAL_APP +RESULT_FILE=$RESULTS_FOLDER/result.txt +touch "$RESULT_FILE" +POSTFIX="_acc" +RENAMED_MODEL_PATH="${MODEL_PATH}${POSTFIX}" +mv "$MODEL_PATH" "$RENAMED_MODEL_PATH" +./$EVAL_APP $MODEL_PATH $filepaths_list $RESULT_FILE +mv "$RENAMED_MODEL_PATH" "$MODEL_PATH" + + diff --git a/model_zoo/models/classification/pt_vehicle-make-classification/scripts/performance.sh b/model_zoo/models/classification/pt_vehicle-make-classification/scripts/performance.sh new file mode 100644 index 000000000..439a97d0a --- /dev/null +++ b/model_zoo/models/classification/pt_vehicle-make-classification/scripts/performance.sh @@ -0,0 +1,80 @@ +#!/bin/bash + +source config.env +source ../../../scripts/build.sh + +display_help() { + echo "Usage: $0 MODEL_PATH [OPTIONS] [IMAGE PATHS]" + echo " $0 MODEL_PATH --dataset DIRECTORY" + echo + echo "Options:" + echo " --dataset DIRECTORY Specify a directory containing images" + echo " -h, --help Display this help message" + echo + echo "Arguments:" + echo " MODEL_PATH Path to the model" + echo " IMAGE PATHS List of image paths" + echo + +} + +process_image() { + echo "$1" >> $filepaths_list +} + +process_directory() { + local directory="$1" + find "$directory" -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" \) | while read -r file; do + process_image "$file" + done +} + +if [ -z "$1" ] || [ "$1" == "-h" ] || [ "$1" == "--help" ]; then + display_help + exit 0 +fi + +MODEL_PATH="$1" +shift + +filepaths_list="$(pwd)"/artifacts/inference/filepaths.list +if [ -f "$filepaths_list" ]; then + rm "$filepaths_list" +fi + +if [ "$1" == "--dataset" ]; then + if [ -z "$2" ]; then + echo "No directory specified for --dataset option" + exit 1 + elif [ "$2" == "-h" ] || [ "$2" == "--help" ]; then + display_help + exit 0 + elif [ -d "$2" ]; then + process_directory "$2" + else + echo "Invalid directory specified: $2" + exit 1 + fi +else + for arg in "$@"; do + if [ "$arg" == "-h" ] || [ "$arg" == "--help" ]; then + display_help + exit 0 + elif [ -f "$arg" ]; then + process_image "$arg" + else + echo "Invalid file specified: $arg" + fi + done +fi + +PERFORMANCE_FOLDER="$(pwd)"/artifacts/inference/perfomance +mkdir -p "$PERFORMANCE_FOLDER" +result_file=$PERFORMANCE_FOLDER/result.txt + +cd "$VAI_LIBRARY_SAMPLES_PATH" || exit + +EVAL_APP=test_performance_$VAI_SAMPLES_POSTFIX +build_if_not_exists $VAI_LIBRARY_SAMPLES_PATH $EVAL_APP + +./$EVAL_APP $MODEL_PATH $filepaths_list | tee $result_file diff --git a/model_zoo/models/classification/pt_vehicle-make-classification/scripts/quality.sh b/model_zoo/models/classification/pt_vehicle-make-classification/scripts/quality.sh new file mode 100644 index 000000000..04f543236 --- /dev/null +++ b/model_zoo/models/classification/pt_vehicle-make-classification/scripts/quality.sh @@ -0,0 +1,49 @@ +#!/bin/bash + +source config.env +source ../../../scripts/build.sh + + +display_help() { + echo "Usage: $0 <inference_result> <ground_truth> [--batch] [--dataset]" + echo "" + echo "Evaluate the accuracy of predicted classes on the given image." + echo "" + echo "Positional arguments:" + echo " inference_result Path to the inference result image or folder" + echo " ground_truth Path to the ground truth image or folder" + echo "" + echo "Optional arguments:" + echo " --batch Evaluate a folder (default: individual images)" + echo " --dataset Evaluate CompCars dataset" + echo "" + +} +if [ -z "$1" ] || [ "$1" == "-h" ] || [ "$1" == "--help" ]; then + display_help + exit 0 +fi +bash scripts/setup_venv.sh + +QUALITY_FOLDER="$(pwd)"/artifacts/inference/quality +mkdir -p "$QUALITY_FOLDER" +result_file=$QUALITY_FOLDER/metrics.txt + +inference_result="$1" +ground_truth="$2" +dataset="" +compcars="" + +if [[ "$3" == "--batch" ]]; then + dataset="--dataset" +fi + +if [[ "$3" == "--dataset" ]]; then + compcars="--compcars" +fi + +if [[ "$4" == "--dataset" ]]; then + compcars="--compcars" +fi + +python src/quality.py $inference_result $ground_truth $dataset $compcars | tee $result_file diff --git a/model_zoo/models/classification/pt_vehicle-make-classification/scripts/setup_venv.sh b/model_zoo/models/classification/pt_vehicle-make-classification/scripts/setup_venv.sh new file mode 100644 index 000000000..a55316207 --- /dev/null +++ b/model_zoo/models/classification/pt_vehicle-make-classification/scripts/setup_venv.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +python3 -m venv .venv +source .venv/bin/activate +pip install -r requirements.txt \ No newline at end of file diff --git a/model_zoo/models/classification/pt_vehicle-make-classification/src/quality.py b/model_zoo/models/classification/pt_vehicle-make-classification/src/quality.py new file mode 100644 index 000000000..c66451108 --- /dev/null +++ b/model_zoo/models/classification/pt_vehicle-make-classification/src/quality.py @@ -0,0 +1,63 @@ +import argparse +import os +import numpy as np +from sklearn.metrics import top_k_accuracy_score + + +def calculate_metric_on_single_image(predictions, groundtruth): + # Calculate top-1 accuracy + top1_accuracy = top_k_accuracy_score([groundtruth], predictions, k=1) + # Calculate top-5 accuracy + top5_accuracy = top_k_accuracy_score([groundtruth], predictions, k=5) + return top1_accuracy, top5_accuracy + +def calculate_metric_on_batch(images_folder, results_folder): + image_files = sorted(os.listdir(images_folder)) + result_files = sorted(os.listdir(results_folder)) + if len(image_files) != len(result_files): + raise ValueError("Number of images and results files do not match") + + top1_accuracies = [] + top5_accuracies = [] + for image_file, result_file in zip(image_files, result_files): + result_path = os.path.join(results_folder, result_file) + with open(result_path, 'r') as file: + predictions = file.read().splitlines() + predictions = [int(pred) for pred in predictions] + groundtruth = int(image_file.split('.')[0]) # Assuming image filename corresponds to groundtruth label + top1_accuracy, top5_accuracy = calculate_metric_on_single_image(predictions, groundtruth) + top1_accuracies.append(top1_accuracy) + top5_accuracies.append(top5_accuracy) + + mean_top1_accuracy = np.mean(top1_accuracies) + mean_top5_accuracy = np.mean(top5_accuracies) + return mean_top1_accuracy, mean_top5_accuracy + +def calculate_metric_on_dataset(dataset_path): + images_folder = os.path.join(dataset_path, 'images') + results_folder = os.path.join(dataset_path, 'results') + mean_top1_accuracy, mean_top5_accuracy = calculate_metric_on_batch(images_folder, results_folder) + return mean_top1_accuracy, mean_top5_accuracy + +if __name__ == '__main__': + parser = argparse.ArgumentParser( + description='Calculate top-1 and top-5 accuracy metrics.') + parser.add_argument('image', nargs='?', help='Path to the image inference result (single mode)') + parser.add_argument('groundtruth', nargs='?', type=int, help='Groundtruth label for the image (single mode)') + parser.add_argument('--batch', action='store_true', help='Calculate metrics on a batch of images') + parser.add_argument('--dataset', help='Path to the CompCars dataset') + args = parser.parse_args() + + if args.batch: + mean_top1_accuracy, mean_top5_accuracy = calculate_metric_on_batch(args.image, args.groundtruth) + print(f"Mean top-1 accuracy on the batch: {mean_top1_accuracy}") + print(f"Mean top-5 accuracy on the batch: {mean_top5_accuracy}") + elif args.dataset: + mean_top1_accuracy, mean_top5_accuracy = calculate_metric_on_dataset(args.dataset) + print(f"Mean top-1 accuracy on the dataset: {mean_top1_accuracy}") + print(f"Mean top-5 accuracy on the batch: {mean_top5_accuracy}") + else: + top1_accuracy, top5_accuracy = calculate_metric_on_single_image(args.image, args.groundtruth) + print(f"Top-1 accuracy: {top1_accuracy}") + print(f"Top-5 accuracy: {top5_accuracy}") + diff --git a/model_zoo/models/classification/tf_efficientnet-edgetpu-S/README.md b/model_zoo/models/classification/tf_efficientnet-edgetpu-S/README.md new file mode 100644 index 000000000..885c43539 --- /dev/null +++ b/model_zoo/models/classification/tf_efficientnet-edgetpu-S/README.md @@ -0,0 +1,140 @@ +# Contents + +- [Contents](#contents) +- [Model Description](#model-description) + - [Description](#description) + - [Paper](#paper) +- [Model Architecture](#model-architecture) +- [Dataset](#dataset) +- [Features](#features) +- [Environment Requirements](#environment-requirements) +- [Quick Start](#quick-start) +- [Script Description](#script-description) + - [Structure](#structure) + - [Inference Process](#inference-process) +- [Quality](#quality) +- [Performance](#performance) +- [Links](#links) +- [Vitis AI Model Zoo Homepage](#vitis-ai-model-zoo-homepage) + +# Model Description + +## Description + +EfficientNet-EdgeTPU-S model for image classification customized for deployment on Google TPU. These networks are closely related to EfficientNets +that achieves state-of-the-art performance by efficiently scaling network dimensions, resulting in a balance between model size and accuracy. + +## Paper + Gupta, Suyog, and Mingxing Tan. "EfficientNet-EdgeTPU: Creating accelerator-optimized neural networks with AutoML." Google AI Blog 2.1 (2019). + Link - https://ai.googleblog.com/2019/08/efficientnet-edgetpu-creating.html + +# Model Architecture +EfficientNet is a family of convolutional neural network (CNN) models designed to achieve state-of-the-art performance on various computer vision tasks while maintaining computational efficiency. +The EfficientNet models use a compound scaling method that uniformly scales the network's depth, width, and resolution. +This approach allows the models to achieve excellent accuracy by finding an optimal balance between model size and performance. +The AutoML MNAS framework was utilized to develop EfficientNet-EdgeTPU by incorporating specially optimized building blocks +into the neural network search space. These building blocks were designed to maximize efficiency when executing on the EdgeTPU +neural network accelerator architecture. +# Dataset + +Dataset for testing: ImageNet. The ImageNet dataset is a large-scale visual database widely used in the image classification and object recognition tasks. <br> +The dataset categories cover a wide range of objects, animals, scenes, and everyday items. Each image in the dataset is annotated with a single label indicating the object or concept it represents. +Link to download the dataset: https://www.image-net.org/ + +# Features + +The notable features of the model: + +1. The model introduces a new compound scaling method that uniformly scales the width, depth, and resolution of the network using a single scaling parameter. +2. The architecture consists of stacked layers, including convolutional layers, pooling layers, and fully connected layers. +3. The model is customized from the original EfficientNet for deployment on Google TPU. + +# Environment Requirements + +Before running the model inference, make sure that the latest version of +[Vitis-AI](https://xilinx.github.io/Vitis-AI/3.5/html/docs/install/install.html) is installed and the host computer fully supports +Xilinx FPGA/ACAP and the appropriate accelerator is installed correctly, e.g. Alveo V70. + +# Quick Start + +Follow the [Quick Start guide](../../../README.md#quick-start) in the main Model Zoo README: + +1. Install the Vitis-AI +2. Run the docker container +3. Download test data +4. Run the inference of the model + +# Script Description + +## Structure + +```text +tf_efficientnet-edgetpu-S # model name +├── artifacts # artifacts - will be created during the inference process +│ ├── inference # folder with results values of inference and evaluation +│ │ ├── performance # model productivity measurements +│ │ ├── quality # model quality measurements +│ │ ├── results # model inference results files +│ │ └── vaitrace # vaitrace profiling performance reports +│ └── models # folder with model meta and .xmodel executable files +├── scripts # scripts for model processing +│ ├── inference.sh # model inference +│ ├── performance.sh # model performance report +│ ├── quality.sh # model quality report +│ └── setup_venv.sh # virtual environment creation +├── src # python supporting scripts +│ └── quality.py # quality metric calculation +├── config.env # model configuration - env variables +├── README.md +└── requirements.txt # requirements for the virtual environment +``` + +## Inference Process + +- Native inference - follow the [Quick Start guide](../../../README.md#quick-start) in the main Model Zoo +- AMD Server + +# Quality + +Use the following script: + +```bash + # Format: bash scripts/quality.sh <inference_result> <ground_truth> [--batch] [--dataset] + # where: + # inference_result - Path to the inference result image or folder. + # ground_truth - Path to the ground truth image or folder + # --batch - Evaluate a dataset (default: individual images) + # --dataset - Evaluate CompCars dataset + # The metric values will be stored in the artifacts/inference/quality/metrics.txt file + # Example: + + bash scripts/quality.sh $MODEL_FOLDER/artifacts/inference/results/ /workspace/Vitis-AI-Library/samples/classification/images/ --batch +``` + +# Performance + +- You can profile the model using [vaitrace](https://docs.xilinx.com/r/en-US/ug1414-vitis-ai/Starting-a-Simple-Trace-with-vaitrace) perfomance report, + the script and format described in the [Quick Start guide](../../../README.md#vaitrace) in the main Model Zoo. +- To get performance metrics (FPS, E2E, DPU_MEAN), use: + ```bash + # Format: bash scripts/performance.sh <MODEL_PATH> [<image paths list>] + # where: + # <MODEL_PATH> - the absolute path to the .xmodel + # [<image paths list>] - space-separated list of image absolute paths + # Alternatively, you can pass --dataset option with the folder where images are stored. + # Example: + + bash scripts/performance.sh $MODEL_FOLDER/artifacts/models/efficientNet-edgetpu-S_tf/efficientNet-edgetpu-S_tf.xmodel --dataset /workspace/Vitis-AI-Library/samples/classification/images/ + ``` + + +# Links + +- EfficientNets: https://arxiv.org/abs/1905.11946 +- ImageNet dataset: https://www.image-net.org/ +- Classification: New Annotations, Experiments, and Results: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7830427/pdf/sensors-21-00596.pdf +- EfficientNet (PapersWithCode): https://paperswithcode.com/method/efficientnet + +# Vitis AI Model Zoo Homepage + +Check the official Vitis AI Model Zoo [homepage](https://github.com/Xilinx/Vitis-AI/tree/master/model_zoo). diff --git a/model_zoo/models/classification/tf_efficientnet-edgetpu-S/config.env b/model_zoo/models/classification/tf_efficientnet-edgetpu-S/config.env new file mode 100644 index 000000000..389232136 --- /dev/null +++ b/model_zoo/models/classification/tf_efficientnet-edgetpu-S/config.env @@ -0,0 +1,5 @@ +#!/bin/bash + +VITIS_ROOT_PATH=/workspace +VAI_LIBRARY_SAMPLES_PATH=$VITIS_ROOT_PATH/examples/vai_library/samples/classification +VAI_SAMPLES_POSTFIX=classification diff --git a/model_zoo/models/classification/tf_efficientnet-edgetpu-S/requirements.txt b/model_zoo/models/classification/tf_efficientnet-edgetpu-S/requirements.txt new file mode 100644 index 000000000..de7064cf0 --- /dev/null +++ b/model_zoo/models/classification/tf_efficientnet-edgetpu-S/requirements.txt @@ -0,0 +1,2 @@ +numpy +scikit-learn \ No newline at end of file diff --git a/model_zoo/models/classification/tf_efficientnet-edgetpu-S/scripts/inference.sh b/model_zoo/models/classification/tf_efficientnet-edgetpu-S/scripts/inference.sh new file mode 100644 index 000000000..6d5ae323e --- /dev/null +++ b/model_zoo/models/classification/tf_efficientnet-edgetpu-S/scripts/inference.sh @@ -0,0 +1,90 @@ +#!/bin/bash + +source config.env +source ../../../scripts/build.sh + +display_help() { + echo "Usage: $0 MODEL_PATH [OPTIONS] [IMAGE PATHS]" + echo " $0 MODEL_PATH --dataset DIRECTORY" + echo + echo "Options:" + echo " --dataset DIRECTORY Specify a directory containing images" + echo " -h, --help Display this help message" + echo + echo "Arguments:" + echo " MODEL_PATH Path to the model" + echo " IMAGE PATHS List of image paths" + echo + +} + +process_image() { + echo "$1" >> $filepaths_list +} + +process_directory() { + local directory="$1" + find "$directory" -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" \) | while read -r file; do + process_image "$file" + done +} + +if [ -z "$1" ] || [ "$1" == "-h" ] || [ "$1" == "--help" ]; then + display_help + exit 0 +fi + +MODEL_PATH="$1" +shift + +filepaths_list="$(pwd)"/artifacts/inference/filepaths.list +if [ -f "$filepaths_list" ]; then + rm "$filepaths_list" +fi + +if [ "$1" == "--dataset" ]; then + if [ -z "$2" ]; then + echo "No directory specified for --dataset option" + exit 1 + elif [ "$2" == "-h" ] || [ "$2" == "--help" ]; then + display_help + exit 0 + elif [ -d "$2" ]; then + process_directory "$2" + else + echo "Invalid directory specified: $2" + exit 1 + fi +else + for arg in "$@"; do + if [ "$arg" == "-h" ] || [ "$arg" == "--help" ]; then + display_help + exit 0 + elif [ -f "$arg" ]; then + process_image "$arg" + else + echo "Invalid file specified: $arg" + fi + done +fi + +RESULTS_FOLDER="$(pwd)"/artifacts/inference/results +if [ -d "RESULTS_FOLDER" ]; then + rm -rf "RESULTS_FOLDER"/* +fi +mkdir -p "$RESULTS_FOLDER" + +cd "$VAI_LIBRARY_SAMPLES_PATH" || exit + +EVAL_APP=test_accuracy_"$VAI_SAMPLES_POSTFIX"_mt +build_if_not_exists $VAI_LIBRARY_SAMPLES_PATH $EVAL_APP +RESULT_FILE=$RESULTS_FOLDER/result.txt +touch "$RESULT_FILE" +POSTFIX="_acc" +RENAMED_MODEL_PATH="${MODEL_PATH}${POSTFIX}" +mv "$MODEL_PATH" "$RENAMED_MODEL_PATH" +./$EVAL_APP $MODEL_PATH $filepaths_list $RESULT_FILE +mv "$RENAMED_MODEL_PATH" "$MODEL_PATH" +echo "Result of the inference:" +cat $RESULT_FILE + diff --git a/model_zoo/models/classification/tf_efficientnet-edgetpu-S/scripts/performance.sh b/model_zoo/models/classification/tf_efficientnet-edgetpu-S/scripts/performance.sh new file mode 100644 index 000000000..439a97d0a --- /dev/null +++ b/model_zoo/models/classification/tf_efficientnet-edgetpu-S/scripts/performance.sh @@ -0,0 +1,80 @@ +#!/bin/bash + +source config.env +source ../../../scripts/build.sh + +display_help() { + echo "Usage: $0 MODEL_PATH [OPTIONS] [IMAGE PATHS]" + echo " $0 MODEL_PATH --dataset DIRECTORY" + echo + echo "Options:" + echo " --dataset DIRECTORY Specify a directory containing images" + echo " -h, --help Display this help message" + echo + echo "Arguments:" + echo " MODEL_PATH Path to the model" + echo " IMAGE PATHS List of image paths" + echo + +} + +process_image() { + echo "$1" >> $filepaths_list +} + +process_directory() { + local directory="$1" + find "$directory" -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" \) | while read -r file; do + process_image "$file" + done +} + +if [ -z "$1" ] || [ "$1" == "-h" ] || [ "$1" == "--help" ]; then + display_help + exit 0 +fi + +MODEL_PATH="$1" +shift + +filepaths_list="$(pwd)"/artifacts/inference/filepaths.list +if [ -f "$filepaths_list" ]; then + rm "$filepaths_list" +fi + +if [ "$1" == "--dataset" ]; then + if [ -z "$2" ]; then + echo "No directory specified for --dataset option" + exit 1 + elif [ "$2" == "-h" ] || [ "$2" == "--help" ]; then + display_help + exit 0 + elif [ -d "$2" ]; then + process_directory "$2" + else + echo "Invalid directory specified: $2" + exit 1 + fi +else + for arg in "$@"; do + if [ "$arg" == "-h" ] || [ "$arg" == "--help" ]; then + display_help + exit 0 + elif [ -f "$arg" ]; then + process_image "$arg" + else + echo "Invalid file specified: $arg" + fi + done +fi + +PERFORMANCE_FOLDER="$(pwd)"/artifacts/inference/perfomance +mkdir -p "$PERFORMANCE_FOLDER" +result_file=$PERFORMANCE_FOLDER/result.txt + +cd "$VAI_LIBRARY_SAMPLES_PATH" || exit + +EVAL_APP=test_performance_$VAI_SAMPLES_POSTFIX +build_if_not_exists $VAI_LIBRARY_SAMPLES_PATH $EVAL_APP + +./$EVAL_APP $MODEL_PATH $filepaths_list | tee $result_file diff --git a/model_zoo/models/classification/tf_efficientnet-edgetpu-S/scripts/quality.sh b/model_zoo/models/classification/tf_efficientnet-edgetpu-S/scripts/quality.sh new file mode 100644 index 000000000..086f01314 --- /dev/null +++ b/model_zoo/models/classification/tf_efficientnet-edgetpu-S/scripts/quality.sh @@ -0,0 +1,49 @@ +#!/bin/bash + +source config.env +source ../../../scripts/build.sh + + +display_help() { + echo "Usage: $0 <inference_result> <ground_truth> [--batch] [--dataset]" + echo "" + echo "Evaluate the accuracy of predicted classes on the given image." + echo "" + echo "Positional arguments:" + echo " inference_result Path to the inference result image or folder" + echo " ground_truth Path to the ground truth image or folder" + echo "" + echo "Optional arguments:" + echo " --batch Evaluate a folder (default: individual images)" + echo " --dataset Evaluate CompCars dataset" + echo "" + +} +if [ -z "$1" ] || [ "$1" == "-h" ] || [ "$1" == "--help" ]; then + display_help + exit 0 +fi +bash scripts/setup_venv.sh + +QUALITY_FOLDER="$(pwd)"/artifacts/inference/quality +mkdir -p "$QUALITY_FOLDER" +result_file=$QUALITY_FOLDER/metrics.txt + +inference_result="$1" +ground_truth="$2" +dataset="" +batch="" + +if [[ "$3" == "--batch" ]]; then + batch="--batch" +fi + +if [[ "$3" == "--dataset" ]]; then + dataset="--dataset" +fi + +if [[ "$4" == "--dataset" ]]; then + dataset="--datasets" +fi + +python src/quality.py $inference_result $ground_truth $batch $dataset | tee $result_file diff --git a/model_zoo/models/classification/tf_efficientnet-edgetpu-S/scripts/setup_venv.sh b/model_zoo/models/classification/tf_efficientnet-edgetpu-S/scripts/setup_venv.sh new file mode 100644 index 000000000..a55316207 --- /dev/null +++ b/model_zoo/models/classification/tf_efficientnet-edgetpu-S/scripts/setup_venv.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +python3 -m venv .venv +source .venv/bin/activate +pip install -r requirements.txt \ No newline at end of file diff --git a/model_zoo/models/classification/tf_efficientnet-edgetpu-S/src/quality.py b/model_zoo/models/classification/tf_efficientnet-edgetpu-S/src/quality.py new file mode 100644 index 000000000..8c83a0714 --- /dev/null +++ b/model_zoo/models/classification/tf_efficientnet-edgetpu-S/src/quality.py @@ -0,0 +1,64 @@ +import argparse +import os +import numpy as np +from sklearn.metrics import top_k_accuracy_score + + +def calculate_metric_on_single_image(predictions, groundtruth): + top1_accuracy = top_k_accuracy_score([groundtruth], predictions, k=1) + top5_accuracy = top_k_accuracy_score([groundtruth], predictions, k=5) + return top1_accuracy, top5_accuracy + + +def calculate_metric_on_batch(images_folder, results_folder): + image_files = sorted(os.listdir(images_folder)) + result_files = sorted(os.listdir(results_folder)) + if len(image_files) != len(result_files): + raise ValueError("Number of images and results files do not match") + + top1_accuracies = [] + top5_accuracies = [] + for image_file, result_file in zip(image_files, result_files): + result_path = os.path.join(results_folder, result_file) + with open(result_path, 'r') as file: + predictions = file.read().splitlines() + predictions = [int(pred) for pred in predictions] + groundtruth = int(image_file.split('.')[0]) # Assuming image filename corresponds to groundtruth label + top1_accuracy, top5_accuracy = calculate_metric_on_single_image(predictions, groundtruth) + top1_accuracies.append(top1_accuracy) + top5_accuracies.append(top5_accuracy) + + mean_top1_accuracy = np.mean(top1_accuracies) + mean_top5_accuracy = np.mean(top5_accuracies) + return mean_top1_accuracy, mean_top5_accuracy + + +def calculate_metric_on_dataset(dataset_path): + images_folder = os.path.join(dataset_path, 'images') + results_folder = os.path.join(dataset_path, 'results') + mean_top1_accuracy, mean_top5_accuracy = calculate_metric_on_batch(images_folder, results_folder) + return mean_top1_accuracy, mean_top5_accuracy + + +if __name__ == '__main__': + parser = argparse.ArgumentParser( + description='Calculate top-1 and top-5 accuracy metrics.') + parser.add_argument('image', nargs='?', help='Path to the image inference result (single mode)') + parser.add_argument('groundtruth', nargs='?', type=int, help='Groundtruth label for the image (single mode)') + parser.add_argument('--batch', action='store_true', help='Calculate metrics on a batch of images') + parser.add_argument('--dataset', help='Path to the ImageNet dataset') + args = parser.parse_args() + + if args.batch: + mean_top1_accuracy, mean_top5_accuracy = calculate_metric_on_batch(args.image, args.groundtruth) + print(f"Mean top-1 accuracy on the batch: {mean_top1_accuracy}") + print(f"Mean top-5 accuracy on the batch: {mean_top5_accuracy}") + elif args.dataset: + mean_top1_accuracy, mean_top5_accuracy = calculate_metric_on_dataset(args.dataset) + print(f"Mean top-1 accuracy on the dataset: {mean_top1_accuracy}") + print(f"Mean top-5 accuracy on the batch: {mean_top5_accuracy}") + else: + top1_accuracy, top5_accuracy = calculate_metric_on_single_image(args.image, args.groundtruth) + print(f"Top-1 accuracy: {top1_accuracy}") + print(f"Top-5 accuracy: {top5_accuracy}") + diff --git a/model_zoo/models/classification/tf_inceptionv4/README.md b/model_zoo/models/classification/tf_inceptionv4/README.md new file mode 100644 index 000000000..32256b60d --- /dev/null +++ b/model_zoo/models/classification/tf_inceptionv4/README.md @@ -0,0 +1,145 @@ +# Contents + +- [Contents](#contents) +- [Model Description](#model-description) + - [Description](#description) + - [Paper](#paper) +- [Model Architecture](#model-architecture) +- [Dataset](#dataset) +- [Features](#features) +- [Environment Requirements](#environment-requirements) +- [Quick Start](#quick-start) +- [Script Description](#script-description) + - [Structure](#structure) + - [Inference Process](#inference-process) +- [Quality](#quality) +- [Performance](#performance) +- [Links](#links) +- [Vitis AI Model Zoo Homepage](#vitis-ai-model-zoo-homepage) + +# Model Description + +## Description + +Inception-v4 is a deep convolutional neural network architecture designed for image classification. +It is an evolution of the Inception family of models, known for their innovative use of multiple kernel sizes and parallel +convolutions to capture features at different scales within a single layer. + +## Paper + +Szegedy, Christian, et al. "Inception-v4, inception-resnet and the impact of residual connections on learning." +Proceedings of the AAAI conference on artificial intelligence. Vol. 31. No. 1. 2017. +Link: https://ojs.aaai.org/index.php/aaai/article/view/11231 + +# Model Architecture + +Inception-V4's architecture follows the principles of the Inception family, which emphasizes the use of multi-scale convolutions. +It employs a combination of 1x1, 3x3, and 5x5 convolutional filters, along with pooling layers, to capture various levels of detail. +Additionally, the architecture incorporates auxiliary classifiers at intermediate stages, aiding in training +by combating the vanishing gradient problem. +Inception-V4 also benefits from factorized convolutions, where large convolutions are decomposed into smaller ones, reducing the computational burden. Architectural improvements such as residual connections and improved factorization contribute to enhanced feature extraction capabilities. + +# Dataset + +Dataset for testing: ImageNet. The ImageNet dataset is a large-scale visual database widely used in the image classification and object recognition tasks. <br> +The dataset categories cover a wide range of objects, animals, scenes, and everyday items. Each image in the dataset is annotated with a single label indicating the object or concept it represents. +Link to download the dataset: https://www.image-net.org/ + +# Features + +The notable features of the Inception-V4 model: +1. **Factorized Convolutions**: Large convolutions are factorized into smaller ones, reducing computational complexity. +2. **Residual Connections**: Integration of residual connections helps alleviate the vanishing gradient problem and enables training of deeper networks. +3. **Stem Network**: A specialized initial network module, the "stem," processes input images before feeding them into the main network, enabling efficient feature extraction. +4. **Reduction Blocks**: These blocks utilize 3x3 and 5x5 convolutions with pooling to reduce spatial dimensions and computational load while preserving important features. +5. **Auxiliary Classifiers**: Intermediate auxiliary classifiers aid in training by providing additional gradient flow paths during backpropagation. + +# Environment Requirements + +Before running the model inference, make sure that the latest version of +[Vitis-AI](https://xilinx.github.io/Vitis-AI/3.5/html/docs/install/install.html) is installed and the host computer fully supports +Xilinx FPGA/ACAP and the appropriate accelerator is installed correctly, e.g. Alveo V70. + +# Quick Start + +Follow the [Quick Start guide](../../../README.md#quick-start) in the main Model Zoo README: + +1. Install the Vitis-AI +2. Run the docker container +3. Download test data +4. Run the inference of the model + +# Script Description + +## Structure + +```text +tf_inceptionv4 # model name +├── artifacts # artifacts - will be created during the inference process +│ ├── inference # folder with results values of inference and evaluation +│ │ ├── performance # model productivity measurements +│ │ ├── quality # model quality measurements +│ │ ├── results # model inference results files +│ │ └── vaitrace # vaitrace profiling performance reports +│ └── models # folder with model meta and .xmodel executable files +├── scripts # scripts for model processing +│ ├── inference.sh # model inference +│ ├── performance.sh # model performance report +│ ├── quality.sh # model quality report +│ └── setup_venv.sh # virtual environment creation +├── src # python supporting scripts +│ └── quality.py # quality metric calculation +├── config.env # model configuration - env variables +├── README.md +└── requirements.txt # requirements for the virtual environment +``` + +## Inference Process + +- Native inference - follow the [Quick Start guide](../../../README.md#quick-start) in the main Model Zoo +- AMD Server + +# Quality + +Use the following script: + +```bash + # Format: bash scripts/quality.sh <inference_result> <ground_truth> [--batch] [--dataset] + # where: + # inference_result - Path to the inference result image or folder. + # ground_truth - Path to the ground truth image or folder + # --batch - Evaluate a dataset (default: individual images) + # --dataset - Evaluate ImageNet dataset + # The metric values will be stored in the artifacts/inference/quality/metrics.txt file + # Example: + + bash scripts/quality.sh $MODEL_FOLDER/artifacts/inference/results/ /workspace/Vitis-AI-Library/samples/classification/images/ --batch +``` + +# Performance + +- You can profile the model using [vaitrace](https://docs.xilinx.com/r/en-US/ug1414-vitis-ai/Starting-a-Simple-Trace-with-vaitrace) perfomance report, + the script and format described in the [Quick Start guide](../../../README.md#vaitrace) in the main Model Zoo. +- To get performance metrics (FPS, E2E, DPU_MEAN), use: + ```bash + # Format: bash scripts/performance.sh <MODEL_PATH> [<image paths list>] + # where: + # <MODEL_PATH> - the absolute path to the .xmodel + # [<image paths list>] - space-separated list of image absolute paths + # Alternatively, you can pass --dataset option with the folder where images are stored. + # Example: + + bash scripts/performance.sh $MODEL_FOLDER/artifacts/models/inception_v4_2016_09_09_tf/inception_v4_2016_09_09_tf.xmodel --dataset /workspace/Vitis-AI-Library/samples/classification/images/ + ``` + +# Links + +- ImageNet dataset: https://www.image-net.org/ +- Inception-V4 original paper: https://ojs.aaai.org/index.php/aaai/article/view/11231 +- Inception-V4 explained: https://paperswithcode.com/method/inception-v4 +- Deep residual learning for image recognition: https://arxiv.org/abs/1512.03385 + + +# Vitis AI Model Zoo Homepage + +Check the official Vitis AI Model Zoo [homepage](https://github.com/Xilinx/Vitis-AI/tree/master/model_zoo). diff --git a/model_zoo/models/classification/tf_inceptionv4/config.env b/model_zoo/models/classification/tf_inceptionv4/config.env new file mode 100644 index 000000000..e0b12012d --- /dev/null +++ b/model_zoo/models/classification/tf_inceptionv4/config.env @@ -0,0 +1,6 @@ +#!/bin/bash + +VITIS_ROOT_PATH=/workspace +VAI_LIBRARY_SAMPLES_PATH=$VITIS_ROOT_PATH/examples/vai_library/samples/classification +VAI_SAMPLES_POSTFIX=classification + diff --git a/model_zoo/models/classification/tf_inceptionv4/requirements.txt b/model_zoo/models/classification/tf_inceptionv4/requirements.txt new file mode 100644 index 000000000..de7064cf0 --- /dev/null +++ b/model_zoo/models/classification/tf_inceptionv4/requirements.txt @@ -0,0 +1,2 @@ +numpy +scikit-learn \ No newline at end of file diff --git a/model_zoo/models/classification/tf_inceptionv4/scripts/inference.sh b/model_zoo/models/classification/tf_inceptionv4/scripts/inference.sh new file mode 100644 index 000000000..6d5ae323e --- /dev/null +++ b/model_zoo/models/classification/tf_inceptionv4/scripts/inference.sh @@ -0,0 +1,90 @@ +#!/bin/bash + +source config.env +source ../../../scripts/build.sh + +display_help() { + echo "Usage: $0 MODEL_PATH [OPTIONS] [IMAGE PATHS]" + echo " $0 MODEL_PATH --dataset DIRECTORY" + echo + echo "Options:" + echo " --dataset DIRECTORY Specify a directory containing images" + echo " -h, --help Display this help message" + echo + echo "Arguments:" + echo " MODEL_PATH Path to the model" + echo " IMAGE PATHS List of image paths" + echo + +} + +process_image() { + echo "$1" >> $filepaths_list +} + +process_directory() { + local directory="$1" + find "$directory" -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" \) | while read -r file; do + process_image "$file" + done +} + +if [ -z "$1" ] || [ "$1" == "-h" ] || [ "$1" == "--help" ]; then + display_help + exit 0 +fi + +MODEL_PATH="$1" +shift + +filepaths_list="$(pwd)"/artifacts/inference/filepaths.list +if [ -f "$filepaths_list" ]; then + rm "$filepaths_list" +fi + +if [ "$1" == "--dataset" ]; then + if [ -z "$2" ]; then + echo "No directory specified for --dataset option" + exit 1 + elif [ "$2" == "-h" ] || [ "$2" == "--help" ]; then + display_help + exit 0 + elif [ -d "$2" ]; then + process_directory "$2" + else + echo "Invalid directory specified: $2" + exit 1 + fi +else + for arg in "$@"; do + if [ "$arg" == "-h" ] || [ "$arg" == "--help" ]; then + display_help + exit 0 + elif [ -f "$arg" ]; then + process_image "$arg" + else + echo "Invalid file specified: $arg" + fi + done +fi + +RESULTS_FOLDER="$(pwd)"/artifacts/inference/results +if [ -d "RESULTS_FOLDER" ]; then + rm -rf "RESULTS_FOLDER"/* +fi +mkdir -p "$RESULTS_FOLDER" + +cd "$VAI_LIBRARY_SAMPLES_PATH" || exit + +EVAL_APP=test_accuracy_"$VAI_SAMPLES_POSTFIX"_mt +build_if_not_exists $VAI_LIBRARY_SAMPLES_PATH $EVAL_APP +RESULT_FILE=$RESULTS_FOLDER/result.txt +touch "$RESULT_FILE" +POSTFIX="_acc" +RENAMED_MODEL_PATH="${MODEL_PATH}${POSTFIX}" +mv "$MODEL_PATH" "$RENAMED_MODEL_PATH" +./$EVAL_APP $MODEL_PATH $filepaths_list $RESULT_FILE +mv "$RENAMED_MODEL_PATH" "$MODEL_PATH" +echo "Result of the inference:" +cat $RESULT_FILE + diff --git a/model_zoo/models/classification/tf_inceptionv4/scripts/performance.sh b/model_zoo/models/classification/tf_inceptionv4/scripts/performance.sh new file mode 100644 index 000000000..439a97d0a --- /dev/null +++ b/model_zoo/models/classification/tf_inceptionv4/scripts/performance.sh @@ -0,0 +1,80 @@ +#!/bin/bash + +source config.env +source ../../../scripts/build.sh + +display_help() { + echo "Usage: $0 MODEL_PATH [OPTIONS] [IMAGE PATHS]" + echo " $0 MODEL_PATH --dataset DIRECTORY" + echo + echo "Options:" + echo " --dataset DIRECTORY Specify a directory containing images" + echo " -h, --help Display this help message" + echo + echo "Arguments:" + echo " MODEL_PATH Path to the model" + echo " IMAGE PATHS List of image paths" + echo + +} + +process_image() { + echo "$1" >> $filepaths_list +} + +process_directory() { + local directory="$1" + find "$directory" -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" \) | while read -r file; do + process_image "$file" + done +} + +if [ -z "$1" ] || [ "$1" == "-h" ] || [ "$1" == "--help" ]; then + display_help + exit 0 +fi + +MODEL_PATH="$1" +shift + +filepaths_list="$(pwd)"/artifacts/inference/filepaths.list +if [ -f "$filepaths_list" ]; then + rm "$filepaths_list" +fi + +if [ "$1" == "--dataset" ]; then + if [ -z "$2" ]; then + echo "No directory specified for --dataset option" + exit 1 + elif [ "$2" == "-h" ] || [ "$2" == "--help" ]; then + display_help + exit 0 + elif [ -d "$2" ]; then + process_directory "$2" + else + echo "Invalid directory specified: $2" + exit 1 + fi +else + for arg in "$@"; do + if [ "$arg" == "-h" ] || [ "$arg" == "--help" ]; then + display_help + exit 0 + elif [ -f "$arg" ]; then + process_image "$arg" + else + echo "Invalid file specified: $arg" + fi + done +fi + +PERFORMANCE_FOLDER="$(pwd)"/artifacts/inference/perfomance +mkdir -p "$PERFORMANCE_FOLDER" +result_file=$PERFORMANCE_FOLDER/result.txt + +cd "$VAI_LIBRARY_SAMPLES_PATH" || exit + +EVAL_APP=test_performance_$VAI_SAMPLES_POSTFIX +build_if_not_exists $VAI_LIBRARY_SAMPLES_PATH $EVAL_APP + +./$EVAL_APP $MODEL_PATH $filepaths_list | tee $result_file diff --git a/model_zoo/models/classification/tf_inceptionv4/scripts/quality.sh b/model_zoo/models/classification/tf_inceptionv4/scripts/quality.sh new file mode 100644 index 000000000..086f01314 --- /dev/null +++ b/model_zoo/models/classification/tf_inceptionv4/scripts/quality.sh @@ -0,0 +1,49 @@ +#!/bin/bash + +source config.env +source ../../../scripts/build.sh + + +display_help() { + echo "Usage: $0 <inference_result> <ground_truth> [--batch] [--dataset]" + echo "" + echo "Evaluate the accuracy of predicted classes on the given image." + echo "" + echo "Positional arguments:" + echo " inference_result Path to the inference result image or folder" + echo " ground_truth Path to the ground truth image or folder" + echo "" + echo "Optional arguments:" + echo " --batch Evaluate a folder (default: individual images)" + echo " --dataset Evaluate CompCars dataset" + echo "" + +} +if [ -z "$1" ] || [ "$1" == "-h" ] || [ "$1" == "--help" ]; then + display_help + exit 0 +fi +bash scripts/setup_venv.sh + +QUALITY_FOLDER="$(pwd)"/artifacts/inference/quality +mkdir -p "$QUALITY_FOLDER" +result_file=$QUALITY_FOLDER/metrics.txt + +inference_result="$1" +ground_truth="$2" +dataset="" +batch="" + +if [[ "$3" == "--batch" ]]; then + batch="--batch" +fi + +if [[ "$3" == "--dataset" ]]; then + dataset="--dataset" +fi + +if [[ "$4" == "--dataset" ]]; then + dataset="--datasets" +fi + +python src/quality.py $inference_result $ground_truth $batch $dataset | tee $result_file diff --git a/model_zoo/models/classification/tf_inceptionv4/scripts/setup_venv.sh b/model_zoo/models/classification/tf_inceptionv4/scripts/setup_venv.sh new file mode 100644 index 000000000..a55316207 --- /dev/null +++ b/model_zoo/models/classification/tf_inceptionv4/scripts/setup_venv.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +python3 -m venv .venv +source .venv/bin/activate +pip install -r requirements.txt \ No newline at end of file diff --git a/model_zoo/models/classification/tf_inceptionv4/src/quality.py b/model_zoo/models/classification/tf_inceptionv4/src/quality.py new file mode 100644 index 000000000..39a520cc1 --- /dev/null +++ b/model_zoo/models/classification/tf_inceptionv4/src/quality.py @@ -0,0 +1,110 @@ +import argparse +import os +import numpy as np +from sklearn.metrics import accuracy_score, precision_score, recall_score, f1_score, roc_auc_score + + +def accuracy_at_k(true_classes, predicted_classes, k): + if k > len(predicted_classes): + raise ValueError("K exceeds the number of predicted classes.") + + predicted_k = predicted_classes[:k] + accuracy = np.sum(np.isin(predicted_k, true_classes)) / len(true_classes) + return accuracy + + +def precision_at_k(true_classes, predicted_classes, k): + # Calculate precision at K + if k > len(predicted_classes): + raise ValueError("K exceeds the number of predicted classes.") + + predicted_k = predicted_classes[:k] + precision = np.sum(np.isin(predicted_k, true_classes)) / k + return precision + + +def recall_at_k(true_classes, predicted_classes, k): + # Calculate recall at K + if k > len(predicted_classes): + raise ValueError("K exceeds the number of predicted classes.") + + predicted_k = predicted_classes[:k] + recall = np.sum(np.isin(predicted_k, true_classes)) / len(true_classes) + return recall + +def calculate_metric_on_single_image(predicted_classes, true_classes): + + # print(predicted_classes) + # print(true_classes) + + top1_accuracy = accuracy_at_k(predicted_classes, true_classes, k=1) + top5_accuracy = accuracy_at_k(predicted_classes, true_classes, k=5) + + return top1_accuracy, top5_accuracy + + +def calculate_metric_on_batch(images_folder, results_folder): + image_files = sorted(os.listdir(images_folder)) + result_files = sorted(os.listdir(results_folder)) + if len(image_files) != len(result_files): + raise ValueError("Number of images and results files do not match") + + top1_accuracies = [] + top5_accuracies = [] + for image_file, result_file in zip(image_files, result_files): + result_path = os.path.join(results_folder, result_file) + with open(result_path, 'r') as file: + predictions = file.read().splitlines() + predictions = [int(pred) for pred in predictions] + groundtruth = int(image_file.split('.')[0]) # Assuming image filename corresponds to groundtruth label + top1_accuracy, top5_accuracy = calculate_metric_on_single_image(predictions, groundtruth) + top1_accuracies.append(top1_accuracy) + top5_accuracies.append(top5_accuracy) + + mean_top1_accuracy = np.mean(top1_accuracies) + mean_top5_accuracy = np.mean(top5_accuracies) + return mean_top1_accuracy, mean_top5_accuracy + + +def calculate_metric_on_dataset(dataset_path): + images_folder = os.path.join(dataset_path, 'images') + results_folder = os.path.join(dataset_path, 'results') + mean_top1_accuracy, mean_top5_accuracy = calculate_metric_on_batch(images_folder, results_folder) + return mean_top1_accuracy, mean_top5_accuracy + +def read_file(path): + with open(path, 'r') as file: + content = file.read() + integers = [int(num) for num in content.split() if num.isdigit()] + return integers + +if __name__ == '__main__': + parser = argparse.ArgumentParser( + description='Calculate top-1 and top-5 accuracy metrics.') + parser.add_argument('image', nargs='?', help='Path to the image inference result (single mode)') + parser.add_argument('groundtruth', nargs='?', help='Groundtruth label for the image (single mode)') + parser.add_argument('--batch', action='store_true', help='Calculate metrics on a batch of images') + parser.add_argument('--dataset', help='Path to the ImageNet dataset') + args = parser.parse_args() + + if args.batch: + mean_top1_accuracy, mean_top5_accuracy = calculate_metric_on_batch(args.image, args.groundtruth) + print(f"Mean top-1 accuracy on the batch: {mean_top1_accuracy}") + print(f"Mean top-5 accuracy on the batch: {mean_top5_accuracy}") + elif args.dataset: + mean_top1_accuracy, mean_top5_accuracy = calculate_metric_on_dataset(args.dataset) + print(f"Mean top-1 accuracy on the dataset: {mean_top1_accuracy}") + print(f"Mean top-5 accuracy on the batch: {mean_top5_accuracy}") + else: + l1 = read_file(args.image) + l2 = read_file(args.groundtruth) + # accuracy, precision, recall, f1 = calculate_metric_on_single_image(l1, l2) + top1_accuracy, top5_accuracy = calculate_metric_on_single_image(l1, l2) + + # print("Accuracy:", accuracy) + # print("Precision:", precision) + # print("Recall:", recall) + # print("F1 Score:", f1) + print(f"Top-1 accuracy: {top1_accuracy}") + print(f"Top-5 accuracy: {top5_accuracy}") + diff --git a/model_zoo/models/classification/tf_resnetv1/README.md b/model_zoo/models/classification/tf_resnetv1/README.md new file mode 100644 index 000000000..a18f9dfb3 --- /dev/null +++ b/model_zoo/models/classification/tf_resnetv1/README.md @@ -0,0 +1,147 @@ +# Contents + +- [Contents](#contents) +- [Model Description](#model-description) + - [Description](#description) + - [Paper](#paper) +- [Model Architecture](#model-architecture) +- [Dataset](#dataset) +- [Features](#features) +- [Environment Requirements](#environment-requirements) +- [Quick Start](#quick-start) +- [Script Description](#script-description) + - [Structure](#structure) + - [Inference Process](#inference-process) +- [Quality](#quality) +- [Performance](#performance) +- [Links](#links) +- [Vitis AI Model Zoo Homepage](#vitis-ai-model-zoo-homepage) + +# Model Description + +## Description + +ResNetv1, short for Residual Network version 1, is a deep convolutional neural network architecture that revolutionized +image classification tasks. It introduced the concept of residual connections, allowing for easier training of extremely +deep networks and effectively addressing the problem of vanishing gradients. + +## Paper + +He, Kaiming, et al. "Deep residual learning for image recognition. arXiv 2015." +arXiv preprint arXiv:1512.03385 14 (2015). Link: https://arxiv.org/abs/1512.03385 + +# Model Architecture + +The ResNetv1 architecture consists of multiple layers stacked on top of each other. Each layer consists of convolutional +and batch normalization operations, followed by a non-linear activation function. The key innovation in ResNetv1 is the introduction +of residual connections, which skip one or more layers and directly connect the input to the output of the layer. +This way, the network can learn residual mappings, making it easier to optimize and reducing the degradation problem +with increasing network depth. + +# Dataset + +Dataset for testing: ImageNet. The ImageNet dataset is a large-scale visual database widely used in the image classification and object recognition tasks. <br> +The dataset categories cover a wide range of objects, animals, scenes, and everyday items. Each image in the dataset is annotated with a single label indicating the object or concept it represents. +Link to download the dataset: https://www.image-net.org/ + +# Features + +The notable features of the ResNetv1 model: + +1. **Residual Connections**: The introduction of residual connections in ResNetv1 allows the network to learn residual mappings, +which helps in training deeper models more effectively. +2. **Skip Connections**: The skip connections in ResNetv1 allow the network to learn residual mappings. +3. **Pre-Activation Residual Units**: The building blocks in ResNetv1 follow the pre-activation residual unit design, +which places batch normalization and ReLU activation before each convolutional layer. This helps in reducing "vanishing/exploding gradients" problem. +4. **Deep Architecture**: ResNetv1 can be designed with an extremely deep architecture, going beyond 100 layers, while maintaining good performance. This depth enables the network to capture intricate details and hierarchical representations. +5. **Pre-trained Model**: ResNetv1 is often used as a pre-trained model, meaning it has been trained on a large dataset (e.g., ImageNet). This pre-training enables transfer learning, where the model can be fine-tuned on smaller datasets. + +# Environment Requirements + +Before running the model inference, make sure that the latest version of +[Vitis-AI](https://xilinx.github.io/Vitis-AI/3.5/html/docs/install/install.html) is installed and the host computer fully supports +Xilinx FPGA/ACAP and the appropriate accelerator is installed correctly, e.g. Alveo V70. + +# Quick Start + +Follow the [Quick Start guide](../../../README.md#quick-start) in the main Model Zoo README: + +1. Install the Vitis-AI +2. Run the docker container +3. Download test data +4. Run the inference of the model + +# Script Description + +## Structure + +```text +tf_resnetv1 # model name +├── artifacts # artifacts - will be created during the inference process +│ ├── inference # folder with results values of inference and evaluation +│ │ ├── performance # model productivity measurements +│ │ ├── quality # model quality measurements +│ │ ├── results # model inference results files +│ │ └── vaitrace # vaitrace profiling performance reports +│ └── models # folder with model meta and .xmodel executable files +├── scripts # scripts for model processing +│ ├── inference.sh # model inference +│ ├── performance.sh # model performance report +│ ├── quality.sh # model quality report +│ └── setup_venv.sh # virtual environment creation +├── src # python supporting scripts +│ └── quality.py # quality metric calculation +├── config.env # model configuration - env variables +├── README.md +└── requirements.txt # requirements for the virtual environment +``` + +## Inference Process + +- Native inference - follow the [Quick Start guide](../../../README.md#quick-start) in the main Model Zoo +- AMD Server + +# Quality + +Use the following script: + +```bash + # Format: bash scripts/quality.sh <inference_result> <ground_truth> [--batch] [--dataset] + # where: + # inference_result - Path to the inference result image or folder. + # ground_truth - Path to the ground truth image or folder + # --batch - Evaluate a dataset (default: individual images) + # --dataset - Evaluate ImageNet dataset + # The metric values will be stored in the artifacts/inference/quality/metrics.txt file + # Example: + + bash scripts/quality.sh $MODEL_FOLDER/artifacts/inference/results/ /workspace/Vitis-AI-Library/samples/classification/images/ --batch +``` + +# Performance + +- You can profile the model using [vaitrace](https://docs.xilinx.com/r/en-US/ug1414-vitis-ai/Starting-a-Simple-Trace-with-vaitrace) perfomance report, + the script and format described in the [Quick Start guide](../../../README.md#vaitrace) in the main Model Zoo. +- To get performance metrics (FPS, E2E, DPU_MEAN), use: + ```bash + # Format: bash scripts/performance.sh <MODEL_PATH> [<image paths list>] + # where: + # <MODEL_PATH> - the absolute path to the .xmodel + # [<image paths list>] - space-separated list of image absolute paths + # Alternatively, you can pass --dataset option with the folder where images are stored. + # Example: + + bash scripts/performance.sh $MODEL_FOLDER/artifacts/models/resnet_v1_50_tf/resnet_v1_50_tf.xmodel --dataset /workspace/Vitis-AI-Library/samples/classification/images/ + ``` + +# Links + +- ImageNet dataset: https://www.image-net.org/ +Deep residual learning for image recognition: https://arxiv.org/abs/1512.03385 +- Comparison between ResNet v1 and ResNet v2 on residual blocks: https://www.researchgate.net/figure/A-comparison-between-ResNet-v1-and-ResNet-v2-on-residual-blocks-23_fig2_342334669 +- ResNet guide: https://cv-tricks.com/keras/understand-implement-resnets/ + + +# Vitis AI Model Zoo Homepage + +Check the official Vitis AI Model Zoo [homepage](https://github.com/Xilinx/Vitis-AI/tree/master/model_zoo). diff --git a/model_zoo/models/classification/tf_resnetv1/config.env b/model_zoo/models/classification/tf_resnetv1/config.env new file mode 100644 index 000000000..e0b12012d --- /dev/null +++ b/model_zoo/models/classification/tf_resnetv1/config.env @@ -0,0 +1,6 @@ +#!/bin/bash + +VITIS_ROOT_PATH=/workspace +VAI_LIBRARY_SAMPLES_PATH=$VITIS_ROOT_PATH/examples/vai_library/samples/classification +VAI_SAMPLES_POSTFIX=classification + diff --git a/model_zoo/models/classification/tf_resnetv1/requirements.txt b/model_zoo/models/classification/tf_resnetv1/requirements.txt new file mode 100644 index 000000000..de7064cf0 --- /dev/null +++ b/model_zoo/models/classification/tf_resnetv1/requirements.txt @@ -0,0 +1,2 @@ +numpy +scikit-learn \ No newline at end of file diff --git a/model_zoo/models/classification/tf_resnetv1/scripts/inference.sh b/model_zoo/models/classification/tf_resnetv1/scripts/inference.sh new file mode 100644 index 000000000..6d5ae323e --- /dev/null +++ b/model_zoo/models/classification/tf_resnetv1/scripts/inference.sh @@ -0,0 +1,90 @@ +#!/bin/bash + +source config.env +source ../../../scripts/build.sh + +display_help() { + echo "Usage: $0 MODEL_PATH [OPTIONS] [IMAGE PATHS]" + echo " $0 MODEL_PATH --dataset DIRECTORY" + echo + echo "Options:" + echo " --dataset DIRECTORY Specify a directory containing images" + echo " -h, --help Display this help message" + echo + echo "Arguments:" + echo " MODEL_PATH Path to the model" + echo " IMAGE PATHS List of image paths" + echo + +} + +process_image() { + echo "$1" >> $filepaths_list +} + +process_directory() { + local directory="$1" + find "$directory" -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" \) | while read -r file; do + process_image "$file" + done +} + +if [ -z "$1" ] || [ "$1" == "-h" ] || [ "$1" == "--help" ]; then + display_help + exit 0 +fi + +MODEL_PATH="$1" +shift + +filepaths_list="$(pwd)"/artifacts/inference/filepaths.list +if [ -f "$filepaths_list" ]; then + rm "$filepaths_list" +fi + +if [ "$1" == "--dataset" ]; then + if [ -z "$2" ]; then + echo "No directory specified for --dataset option" + exit 1 + elif [ "$2" == "-h" ] || [ "$2" == "--help" ]; then + display_help + exit 0 + elif [ -d "$2" ]; then + process_directory "$2" + else + echo "Invalid directory specified: $2" + exit 1 + fi +else + for arg in "$@"; do + if [ "$arg" == "-h" ] || [ "$arg" == "--help" ]; then + display_help + exit 0 + elif [ -f "$arg" ]; then + process_image "$arg" + else + echo "Invalid file specified: $arg" + fi + done +fi + +RESULTS_FOLDER="$(pwd)"/artifacts/inference/results +if [ -d "RESULTS_FOLDER" ]; then + rm -rf "RESULTS_FOLDER"/* +fi +mkdir -p "$RESULTS_FOLDER" + +cd "$VAI_LIBRARY_SAMPLES_PATH" || exit + +EVAL_APP=test_accuracy_"$VAI_SAMPLES_POSTFIX"_mt +build_if_not_exists $VAI_LIBRARY_SAMPLES_PATH $EVAL_APP +RESULT_FILE=$RESULTS_FOLDER/result.txt +touch "$RESULT_FILE" +POSTFIX="_acc" +RENAMED_MODEL_PATH="${MODEL_PATH}${POSTFIX}" +mv "$MODEL_PATH" "$RENAMED_MODEL_PATH" +./$EVAL_APP $MODEL_PATH $filepaths_list $RESULT_FILE +mv "$RENAMED_MODEL_PATH" "$MODEL_PATH" +echo "Result of the inference:" +cat $RESULT_FILE + diff --git a/model_zoo/models/classification/tf_resnetv1/scripts/performance.sh b/model_zoo/models/classification/tf_resnetv1/scripts/performance.sh new file mode 100644 index 000000000..439a97d0a --- /dev/null +++ b/model_zoo/models/classification/tf_resnetv1/scripts/performance.sh @@ -0,0 +1,80 @@ +#!/bin/bash + +source config.env +source ../../../scripts/build.sh + +display_help() { + echo "Usage: $0 MODEL_PATH [OPTIONS] [IMAGE PATHS]" + echo " $0 MODEL_PATH --dataset DIRECTORY" + echo + echo "Options:" + echo " --dataset DIRECTORY Specify a directory containing images" + echo " -h, --help Display this help message" + echo + echo "Arguments:" + echo " MODEL_PATH Path to the model" + echo " IMAGE PATHS List of image paths" + echo + +} + +process_image() { + echo "$1" >> $filepaths_list +} + +process_directory() { + local directory="$1" + find "$directory" -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" \) | while read -r file; do + process_image "$file" + done +} + +if [ -z "$1" ] || [ "$1" == "-h" ] || [ "$1" == "--help" ]; then + display_help + exit 0 +fi + +MODEL_PATH="$1" +shift + +filepaths_list="$(pwd)"/artifacts/inference/filepaths.list +if [ -f "$filepaths_list" ]; then + rm "$filepaths_list" +fi + +if [ "$1" == "--dataset" ]; then + if [ -z "$2" ]; then + echo "No directory specified for --dataset option" + exit 1 + elif [ "$2" == "-h" ] || [ "$2" == "--help" ]; then + display_help + exit 0 + elif [ -d "$2" ]; then + process_directory "$2" + else + echo "Invalid directory specified: $2" + exit 1 + fi +else + for arg in "$@"; do + if [ "$arg" == "-h" ] || [ "$arg" == "--help" ]; then + display_help + exit 0 + elif [ -f "$arg" ]; then + process_image "$arg" + else + echo "Invalid file specified: $arg" + fi + done +fi + +PERFORMANCE_FOLDER="$(pwd)"/artifacts/inference/perfomance +mkdir -p "$PERFORMANCE_FOLDER" +result_file=$PERFORMANCE_FOLDER/result.txt + +cd "$VAI_LIBRARY_SAMPLES_PATH" || exit + +EVAL_APP=test_performance_$VAI_SAMPLES_POSTFIX +build_if_not_exists $VAI_LIBRARY_SAMPLES_PATH $EVAL_APP + +./$EVAL_APP $MODEL_PATH $filepaths_list | tee $result_file diff --git a/model_zoo/models/classification/tf_resnetv1/scripts/quality.sh b/model_zoo/models/classification/tf_resnetv1/scripts/quality.sh new file mode 100644 index 000000000..59ad5681a --- /dev/null +++ b/model_zoo/models/classification/tf_resnetv1/scripts/quality.sh @@ -0,0 +1,49 @@ +#!/bin/bash + +source config.env +source ../../../scripts/build.sh + + +display_help() { + echo "Usage: $0 <inference_result> <ground_truth> [--batch] [--dataset]" + echo "" + echo "Evaluate the accuracy of predicted classes on the given image." + echo "" + echo "Positional arguments:" + echo " inference_result Path to the inference result image or folder" + echo " ground_truth Path to the ground truth image or folder" + echo "" + echo "Optional arguments:" + echo " --batch Evaluate a folder (default: individual images)" + echo " --dataset Evaluate CompCars dataset" + echo "" + +} +if [ -z "$1" ] || [ "$1" == "-h" ] || [ "$1" == "--help" ]; then + display_help + exit 0 +fi +bash scripts/setup_venv.sh + +QUALITY_FOLDER="$(pwd)"/artifacts/inference/quality +mkdir -p "$QUALITY_FOLDER" +result_file=$QUALITY_FOLDER/metrics.txt + +inference_result="$1" +ground_truth="$2" +dataset="" +batch="" + +if [[ "$3" == "--batch" ]]; then + batch="--batch" +fi + +if [[ "$3" == "--dataset" ]]; then + dataset="--dataset" +fi + +if [[ "$4" == "--dataset" ]]; then + dataset="--dataset" +fi + +python src/quality.py $inference_result $ground_truth $batch $dataset | tee $result_file diff --git a/model_zoo/models/classification/tf_resnetv1/scripts/setup_venv.sh b/model_zoo/models/classification/tf_resnetv1/scripts/setup_venv.sh new file mode 100644 index 000000000..a55316207 --- /dev/null +++ b/model_zoo/models/classification/tf_resnetv1/scripts/setup_venv.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +python3 -m venv .venv +source .venv/bin/activate +pip install -r requirements.txt \ No newline at end of file diff --git a/model_zoo/models/classification/tf_resnetv1/src/quality.py b/model_zoo/models/classification/tf_resnetv1/src/quality.py new file mode 100644 index 000000000..e21a95001 --- /dev/null +++ b/model_zoo/models/classification/tf_resnetv1/src/quality.py @@ -0,0 +1,105 @@ +import argparse +import os +import numpy as np +from sklearn.metrics import accuracy_score, precision_score, recall_score, f1_score, roc_auc_score + + +def accuracy_at_k(true_classes, predicted_classes, k): + if k > len(predicted_classes): + raise ValueError("K exceeds the number of predicted classes.") + + predicted_k = predicted_classes[:k] + accuracy = np.sum(np.isin(predicted_k, true_classes)) / len(true_classes) + return accuracy + + +def precision_at_k(true_classes, predicted_classes, k): + # Calculate precision at K + if k > len(predicted_classes): + raise ValueError("K exceeds the number of predicted classes.") + + predicted_k = predicted_classes[:k] + precision = np.sum(np.isin(predicted_k, true_classes)) / k + return precision + + +def recall_at_k(true_classes, predicted_classes, k): + # Calculate recall at K + if k > len(predicted_classes): + raise ValueError("K exceeds the number of predicted classes.") + + predicted_k = predicted_classes[:k] + recall = np.sum(np.isin(predicted_k, true_classes)) / len(true_classes) + return recall + +def calculate_metric_on_single_image(predicted_classes, true_classes): + + # print(predicted_classes) + # print(true_classes) + + top1_accuracy = accuracy_at_k(predicted_classes, true_classes, k=1) + top5_accuracy = accuracy_at_k(predicted_classes, true_classes, k=5) + + return top1_accuracy, top5_accuracy + + +def calculate_metric_on_batch(images_folder, results_folder): + image_files = sorted(os.listdir(images_folder)) + result_files = sorted(os.listdir(results_folder)) + if len(image_files) != len(result_files): + raise ValueError("Number of images and results files do not match") + + top1_accuracies = [] + top5_accuracies = [] + for image_file, result_file in zip(image_files, result_files): + result_path = os.path.join(results_folder, result_file) + with open(result_path, 'r') as file: + predictions = file.read().splitlines() + predictions = [int(pred) for pred in predictions] + groundtruth = int(image_file.split('.')[0]) + top1_accuracy, top5_accuracy = calculate_metric_on_single_image(predictions, groundtruth) + top1_accuracies.append(top1_accuracy) + top5_accuracies.append(top5_accuracy) + + mean_top1_accuracy = np.mean(top1_accuracies) + mean_top5_accuracy = np.mean(top5_accuracies) + return mean_top1_accuracy, mean_top5_accuracy + + +def calculate_metric_on_dataset(dataset_path): + images_folder = os.path.join(dataset_path, 'images') + results_folder = os.path.join(dataset_path, 'results') + mean_top1_accuracy, mean_top5_accuracy = calculate_metric_on_batch(images_folder, results_folder) + return mean_top1_accuracy, mean_top5_accuracy + +def read_file(path): + with open(path, 'r') as file: + content = file.read() + integers = [int(num) for num in content.split() if num.isdigit()] + return integers + +if __name__ == '__main__': + parser = argparse.ArgumentParser( + description='Calculate top-1 and top-5 accuracy metrics.') + parser.add_argument('image', nargs='?', help='Path to the image inference result (single mode)') + parser.add_argument('groundtruth', nargs='?', help='Groundtruth label for the image (single mode)') + parser.add_argument('--batch', action='store_true', help='Calculate metrics on a batch of images') + parser.add_argument('--dataset', help='Path to the ImageNet dataset') + args = parser.parse_args() + + if args.batch: + mean_top1_accuracy, mean_top5_accuracy = calculate_metric_on_batch(args.image, args.groundtruth) + print(f"Mean top-1 accuracy on the batch: {mean_top1_accuracy}") + print(f"Mean top-5 accuracy on the batch: {mean_top5_accuracy}") + elif args.dataset: + mean_top1_accuracy, mean_top5_accuracy = calculate_metric_on_dataset(args.dataset) + print(f"Mean top-1 accuracy on the dataset: {mean_top1_accuracy}") + print(f"Mean top-5 accuracy on the batch: {mean_top5_accuracy}") + else: + l1 = read_file(args.image) + l2 = read_file(args.groundtruth) + top1_accuracy, top5_accuracy = calculate_metric_on_single_image(l1, l2) + + print(f"Top-1 accuracy: {top1_accuracy}") + print(f"Top-5 accuracy: {top5_accuracy}") + diff --git a/model_zoo/models/object_detection/pt_OFA-yolo/README.md b/model_zoo/models/object_detection/pt_OFA-yolo/README.md new file mode 100644 index 000000000..1daa028f8 --- /dev/null +++ b/model_zoo/models/object_detection/pt_OFA-yolo/README.md @@ -0,0 +1,137 @@ +# Contents + +- [Contents](#contents) +- [Model Description](#model-description) + - [Description](#description) + - [Paper](#paper) +- [Model Architecture](#model-architecture) +- [Dataset](#dataset) +- [Features](#features) +- [Environment Requirements](#environment-requirements) +- [Quick Start](#quick-start) +- [Script Description](#script-description) + - [Structure](#structure) + - [Inference Process](#inference-process) +- [Quality](#quality) +- [Performance](#performance) +- [Links](#links) +- [Vitis AI Model Zoo Homepage](#vitis-ai-model-zoo-homepage) + +# Model Description + +## Description + +The OFA-YOLO model is an advanced object detection model that combines the concepts of One-Shot Neural Architecture Search (NAS) and the YOLO (You Only Look Once) architecture. + +## Paper + + Ge, Zheng, et al. "Yolox: Exceeding yolo series in 2021." <br> + arXiv preprint arXiv:2107.08430 (2021). Link: https://arxiv.org/abs/2107.08430 + +# Model Architecture +The OFA-YOLO architecture is based on the YOLO framework, which divides the input image into a grid and predicts +bounding boxes and class probabilities for objects within each grid cell. During the architecture search phase, the model explores +a wide range of potential architectures and learns a set of "sub-networks" that can be dynamically combined to create +custom architectures on-the-fly. This adaptability allows OFA-YOLO to efficiently handle different input resolutions +and computational budgets without requiring separate training. + +# Dataset + +Dataset for testing: COCO. The COCO dataset is a widely used benchmark dataset in the field of object detection. +It focuses on high-quality pixel-level annotations for various urban objects, including cars, pedestrians, roads, buildings, traffic signs, and more. + +Link to download the dataset: https://cocodataset.org/ + +# Features + +The notable features of the OFA-yolo model: + + +# Environment Requirements + +Before running the model inference, make sure that the latest version of +[Vitis-AI](https://xilinx.github.io/Vitis-AI/3.5/html/docs/install/install.html) is installed and the host computer fully supports +Xilinx FPGA/ACAP and the appropriate accelerator is installed correctly, e.g. Alveo V70. + +# Quick Start + +Follow the [Quick Start guide](../../../README.md#quick-start) in the main Model Zoo README: + +1. Install the Vitis-AI +2. Run the docker container +3. Download test data +4. Run the inference of the model + +# Script Description + +## Structure + +```text +pt_OFA-yolo # model name +├── artifacts # artifacts - will be created during the inference process +│ ├── inference # folder with results values of inference and evaluation +│ │ ├── performance # model productivity measurements +│ │ ├── quality # model quality measurements +│ │ ├── results # model inference results files +│ │ └── vaitrace # vaitrace profiling performance reports +│ └── models # folder with model meta and .xmodel executable files +├── scripts # scripts for model processing +│ ├── inference.sh # model inference +│ ├── performance.sh # model performance report +│ ├── quality.sh # model quality report +│ └── setup_venv.sh # virtual environment creation +├── src # python supporting scripts +│ └── quality.py # quality metric calculation +├── config.env # model configuration - env variables +├── README.md +└── requirements.txt # requirements for the virtual environment +``` + +## Inference Process + +- Native inference - follow the [Quick Start guide](../../../README.md#quick-start) in the main Model Zoo +- AMD Server + +# Quality + +Use the following script: + +```bash + # Format: bash scripts/quality.sh <inference_result> <ground_truth> [--batch] [--dataset] + # where: + # inference_result - Path to the inference result image or folder. + # ground_truth - Path to the ground truth image or folder + # --batch - Evaluate a dataset (default: individual images) + # --dataset - Evaluate Cityscapes dataset + # The metric values will be stored in the artifacts/inference/quality/metrics.txt file + # Example: + + bash scripts/quality.sh $MODEL_FOLDER/artifacts/inference/results/ /workspace/Vitis-AI-Library/samples/ofa_yolo/images/ --dataset +``` + +# Performance + +- You can profile the model using [vaitrace](https://docs.xilinx.com/r/en-US/ug1414-vitis-ai/Starting-a-Simple-Trace-with-vaitrace) perfomance report, + the script and format described in the [Quick Start guide](../../../README.md#vaitrace) in the main Model Zoo. +- To get performance metrics (FPS, E2E, DPU_MEAN), use: + ```bash + # Format: bash scripts/performance.sh <MODEL_PATH> [<image paths list>] + # where: + # <MODEL_PATH> - the absolute path to the .xmodel + # [<image paths list>] - space-separated list of image absolute paths + # Alternatively, you can pass --dataset option with the folder where images are stored. + # Example: + + bash scripts/performance.sh $MODEL_FOLDER/artifacts/models/ofa_yolo_pt/ofa_yolo_pt.xmodel --dataset /workspace/Vitis-AI-Library/samples/ofa_yolo/images/ + ``` + + +# Links + +- COCO dataset: https://cocodataset.org/ +- OFA-YOLO model Xilinx documentation: https://docs.xilinx.com/r/en-US/ug1354-xilinx-ai-sdk/vitis-ai-OFAYOLO +- Object detection benchmark on the COCO (PapersWithCode): https://paperswithcode.com/sota/object-detection-on-coco + +# Vitis AI Model Zoo Homepage + +Check the official Vitis AI Model Zoo [homepage](https://github.com/Xilinx/Vitis-AI/tree/master/model_zoo). diff --git a/model_zoo/models/object_detection/pt_OFA-yolo/config.env b/model_zoo/models/object_detection/pt_OFA-yolo/config.env new file mode 100644 index 000000000..aafc847a6 --- /dev/null +++ b/model_zoo/models/object_detection/pt_OFA-yolo/config.env @@ -0,0 +1,5 @@ +#!/bin/bash + +VITIS_ROOT_PATH=/workspace +VAI_LIBRARY_SAMPLES_PATH=$VITIS_ROOT_PATH/examples/vai_library/samples/ofa_yolo +VAI_SAMPLES_POSTFIX=ofa_yolo diff --git a/model_zoo/models/object_detection/pt_OFA-yolo/requirements.txt b/model_zoo/models/object_detection/pt_OFA-yolo/requirements.txt new file mode 100644 index 000000000..24ce15ab7 --- /dev/null +++ b/model_zoo/models/object_detection/pt_OFA-yolo/requirements.txt @@ -0,0 +1 @@ +numpy diff --git a/model_zoo/models/object_detection/pt_OFA-yolo/scripts/inference.sh b/model_zoo/models/object_detection/pt_OFA-yolo/scripts/inference.sh new file mode 100644 index 000000000..8263221d5 --- /dev/null +++ b/model_zoo/models/object_detection/pt_OFA-yolo/scripts/inference.sh @@ -0,0 +1,84 @@ +#!/bin/bash + +source config.env +source ../../../scripts/build.sh + +display_help() { + echo "Usage: $0 MODEL_PATH [OPTIONS] [IMAGE PATHS]" + echo " $0 MODEL_PATH --dataset DIRECTORY" + echo + echo "Options:" + echo " --dataset DIRECTORY Specify a directory containing images" + echo " -h, --help Display this help message" + echo + echo "Arguments:" + echo " MODEL_PATH Path to the model" + echo " IMAGE PATHS List of image paths" + echo + +} + +process_image() { + echo "$1" >> $filepaths_list +} + +process_directory() { + local directory="$1" + find "$directory" -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" \) | while read -r file; do + process_image "$file" + done +} + +if [ -z "$1" ] || [ "$1" == "-h" ] || [ "$1" == "--help" ]; then + display_help + exit 0 +fi + +MODEL_PATH="$1" +shift + +filepaths_list="$(pwd)"/artifacts/inference/filepaths.list +if [ -f "$filepaths_list" ]; then + rm "$filepaths_list" +fi + +if [ "$1" == "--dataset" ]; then + if [ -z "$2" ]; then + echo "No directory specified for --dataset option" + exit 1 + elif [ "$2" == "-h" ] || [ "$2" == "--help" ]; then + display_help + exit 0 + elif [ -d "$2" ]; then + process_directory "$2" + else + echo "Invalid directory specified: $2" + exit 1 + fi +else + for arg in "$@"; do + if [ "$arg" == "-h" ] || [ "$arg" == "--help" ]; then + display_help + exit 0 + elif [ -f "$arg" ]; then + process_image "$arg" + else + echo "Invalid file specified: $arg" + fi + done +fi + +RESULTS_FOLDER="$(pwd)"/artifacts/inference/results +mkdir -p "$RESULTS_FOLDER" +RESULT_FILE=$RESULTS_FOLDER/result.txt +touch "$RESULT_FILE" +cd "$VAI_LIBRARY_SAMPLES_PATH" || exit + +EVAL_APP=test_accuracy_"$VAI_SAMPLES_POSTFIX"_nano_mt +build_if_not_exists $VAI_LIBRARY_SAMPLES_PATH $EVAL_APP + +POSTFIX="_acc" +RENAMED_MODEL_PATH="${MODEL_PATH}${POSTFIX}" +mv "$MODEL_PATH" "$RENAMED_MODEL_PATH" +./$EVAL_APP $MODEL_PATH $filepaths_list $RESULT_FILE +mv "$RENAMED_MODEL_PATH" "$MODEL_PATH" \ No newline at end of file diff --git a/model_zoo/models/object_detection/pt_OFA-yolo/scripts/performance.sh b/model_zoo/models/object_detection/pt_OFA-yolo/scripts/performance.sh new file mode 100644 index 000000000..439a97d0a --- /dev/null +++ b/model_zoo/models/object_detection/pt_OFA-yolo/scripts/performance.sh @@ -0,0 +1,80 @@ +#!/bin/bash + +source config.env +source ../../../scripts/build.sh + +display_help() { + echo "Usage: $0 MODEL_PATH [OPTIONS] [IMAGE PATHS]" + echo " $0 MODEL_PATH --dataset DIRECTORY" + echo + echo "Options:" + echo " --dataset DIRECTORY Specify a directory containing images" + echo " -h, --help Display this help message" + echo + echo "Arguments:" + echo " MODEL_PATH Path to the model" + echo " IMAGE PATHS List of image paths" + echo + +} + +process_image() { + echo "$1" >> $filepaths_list +} + +process_directory() { + local directory="$1" + find "$directory" -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" \) | while read -r file; do + process_image "$file" + done +} + +if [ -z "$1" ] || [ "$1" == "-h" ] || [ "$1" == "--help" ]; then + display_help + exit 0 +fi + +MODEL_PATH="$1" +shift + +filepaths_list="$(pwd)"/artifacts/inference/filepaths.list +if [ -f "$filepaths_list" ]; then + rm "$filepaths_list" +fi + +if [ "$1" == "--dataset" ]; then + if [ -z "$2" ]; then + echo "No directory specified for --dataset option" + exit 1 + elif [ "$2" == "-h" ] || [ "$2" == "--help" ]; then + display_help + exit 0 + elif [ -d "$2" ]; then + process_directory "$2" + else + echo "Invalid directory specified: $2" + exit 1 + fi +else + for arg in "$@"; do + if [ "$arg" == "-h" ] || [ "$arg" == "--help" ]; then + display_help + exit 0 + elif [ -f "$arg" ]; then + process_image "$arg" + else + echo "Invalid file specified: $arg" + fi + done +fi + +PERFORMANCE_FOLDER="$(pwd)"/artifacts/inference/perfomance +mkdir -p "$PERFORMANCE_FOLDER" +result_file=$PERFORMANCE_FOLDER/result.txt + +cd "$VAI_LIBRARY_SAMPLES_PATH" || exit + +EVAL_APP=test_performance_$VAI_SAMPLES_POSTFIX +build_if_not_exists $VAI_LIBRARY_SAMPLES_PATH $EVAL_APP + +./$EVAL_APP $MODEL_PATH $filepaths_list | tee $result_file diff --git a/model_zoo/models/object_detection/pt_OFA-yolo/scripts/quality.sh b/model_zoo/models/object_detection/pt_OFA-yolo/scripts/quality.sh new file mode 100644 index 000000000..b4c0d041c --- /dev/null +++ b/model_zoo/models/object_detection/pt_OFA-yolo/scripts/quality.sh @@ -0,0 +1,49 @@ +#!/bin/bash + +source config.env +source ../../../scripts/build.sh + + +display_help() { + echo "Usage: $0 <inference_result> <ground_truth> [--batch] [--dataset]" + echo "" + echo "Evaluate image quality based on inference results and ground truth." + echo "" + echo "Positional arguments:" + echo " inference_result Path to the inference result image or folder" + echo " ground_truth Path to the ground truth image or folder" + echo "" + echo "Optional arguments:" + echo " --batch Evaluate a folder (default: individual images)" + echo " --dataset Evaluate Cityscapes dataset" + echo "" + +} +if [ -z "$1" ] || [ "$1" == "-h" ] || [ "$1" == "--help" ]; then + display_help + exit 0 +fi +bash scripts/setup_venv.sh + +QUALITY_FOLDER="$(pwd)"/artifacts/inference/quality +mkdir -p "$QUALITY_FOLDER" +result_file=$QUALITY_FOLDER/metrics.txt + +inference_result="$1" +ground_truth="$2" +dataset="" +coco="" + +if [[ "$3" == "--batch" ]]; then + dataset="--dataset" +fi + +if [[ "$3" == "--dataset" ]]; then + coco="--coco" +fi + +if [[ "$4" == "--dataset" ]]; then + coco="--coco" +fi + +python src/quality.py $inference_result $ground_truth $dataset $coco | tee $result_file diff --git a/model_zoo/models/object_detection/pt_OFA-yolo/scripts/setup_venv.sh b/model_zoo/models/object_detection/pt_OFA-yolo/scripts/setup_venv.sh new file mode 100644 index 000000000..a55316207 --- /dev/null +++ b/model_zoo/models/object_detection/pt_OFA-yolo/scripts/setup_venv.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +python3 -m venv .venv +source .venv/bin/activate +pip install -r requirements.txt \ No newline at end of file diff --git a/model_zoo/models/object_detection/pt_OFA-yolo/src/quality.py b/model_zoo/models/object_detection/pt_OFA-yolo/src/quality.py new file mode 100644 index 000000000..9f39546df --- /dev/null +++ b/model_zoo/models/object_detection/pt_OFA-yolo/src/quality.py @@ -0,0 +1,107 @@ +import argparse +import os +import numpy as np +from PIL import Image + + +def compute_iou(prediction: np.ndarray, ground_truth: np.ndarray) -> float: + """ + Compute Intersection over Union (IoU) between prediction and ground truth masks. + """ + intersection = np.logical_and(prediction, ground_truth) + union = np.logical_or(prediction, ground_truth) + iou = np.sum(intersection) / np.sum(union) + return iou + + +def compute_pixel_accuracy(prediction: np.ndarray, ground_truth: np.ndarray) -> float: + """ + Compute Pixel-wise Accuracy between prediction and ground truth masks. + """ + correct_pixels = np.sum(prediction == ground_truth) + total_pixels = np.prod(prediction.shape) + accuracy = correct_pixels / total_pixels + return accuracy + + +def evaluate_images(prediction_path: str, ground_truth_path: str) -> tuple[float, float]: + """ + Evaluate IoU and Pixel-wise Accuracy for two individual images. + """ + prediction = np.array(Image.open(prediction_path)) + ground_truth = np.array(Image.open(ground_truth_path)) + + iou = compute_iou(prediction, ground_truth) + accuracy = compute_pixel_accuracy(prediction, ground_truth) + + return iou, accuracy + + +def evaluate_dataset(predictions_folder: str, ground_truth_folder: str) -> tuple[float, float]: + """ + Evaluate mean IoU and mean Pixel-wise Accuracy for a dataset. + """ + iou_list = [] + accuracy_list = [] + + for prediction_file in os.listdir(predictions_folder): + prediction_path = os.path.join(predictions_folder, prediction_file) + ground_truth_path = os.path.join(ground_truth_folder, prediction_file) + + iou, accuracy = evaluate_images(prediction_path, ground_truth_path) + iou_list.append(iou) + accuracy_list.append(accuracy) + + mean_iou = np.mean(iou_list) + mean_accuracy = np.mean(accuracy_list) + + return mean_iou, mean_accuracy + + +def evaluate_coco(results_folder: str, cityscapes_folder: str) -> tuple[float, float]: + """ + Evaluate mean IoU and mean Pixel-wise Accuracy for COCO dataset. + """ + predictions_folder = os.path.join(results_folder, 'predictions') + ground_truth_folder = os.path.join(cityscapes_folder, 'gtFine') + + mean_iou, mean_accuracy = evaluate_dataset(predictions_folder, ground_truth_folder) + + return mean_iou, mean_accuracy + + + +if __name__ == '__main__': + parser = argparse.ArgumentParser(description='Model evaluation script') + parser.add_argument('inference_result', help='Path to the inference result image') + parser.add_argument('ground_truth', help='Path to the ground truth image') + parser.add_argument('--dataset', action='store_true', help='Evaluate a dataset') + parser.add_argument('--coco', action='store_true', help='Evaluate Coco dataset') + args = parser.parse_args() + + if args.coco: + + results_folder = args.inference_result + coco_folder = args.ground_truth + + mean_iou, mean_accuracy = evaluate_coco(results_folder, coco_folder) + + print(f"Mean IoU: {mean_iou}") + print(f"Mean Pixel-wise Accuracy: {mean_accuracy}") + else: + if args.dataset: + predictions_folder = args.inference_result + ground_truth_folder = args.ground_truth + + mean_iou, mean_accuracy = evaluate_dataset(predictions_folder, ground_truth_folder) + + print(f"Mean IoU: {mean_iou}") + print(f"Mean Pixel-wise Accuracy: {mean_accuracy}") + else: + inference_result_path = args.inference_result + ground_truth_path = args.ground_truth + + iou, accuracy = evaluate_images(inference_result_path, ground_truth_path) + + print(f"IoU: {iou}") + print(f"Pixel-wise Accuracy: {accuracy}") diff --git a/model_zoo/models/object_detection/pt_yolox-nano/README.md b/model_zoo/models/object_detection/pt_yolox-nano/README.md new file mode 100644 index 000000000..d5e2a753d --- /dev/null +++ b/model_zoo/models/object_detection/pt_yolox-nano/README.md @@ -0,0 +1,142 @@ +# Contents + +- [Contents](#contents) +- [Model Description](#model-description) + - [Description](#description) + - [Paper](#paper) +- [Model Architecture](#model-architecture) +- [Dataset](#dataset) +- [Features](#features) +- [Environment Requirements](#environment-requirements) +- [Quick Start](#quick-start) +- [Script Description](#script-description) + - [Structure](#structure) + - [Inference Process](#inference-process) +- [Quality](#quality) +- [Performance](#performance) +- [Links](#links) +- [Vitis AI Model Zoo Homepage](#vitis-ai-model-zoo-homepage) + +# Model Description + +## Description + +YOLOX-nano is a lightweight variant of the YOLOX object detection model. It is designed for real-time object detection tasks, +particularly on resource-constrained devices such as embedded systems and mobile devices. Despite its compact size, +YOLOX-nano maintains competitive accuracy and achieves remarkable inference speed. + +## Paper + + Ge, Zheng, et al. "Yolox: Exceeding yolo series in 2021." <br> + arXiv preprint arXiv:2107.08430 (2021). Link: https://arxiv.org/abs/2107.08430 + +# Model Architecture +The architecture of YOLOX-nano is based on the You Only Look Once (YOLO) family of object detection models. +It follows a one-stage detection pipeline, where a single convolutional neural network (CNN) simultaneously predicts object +bounding boxes and class probabilities. YOLOX-nano incorporates several design strategies, including the Darknet backbone, +a Spatial Attention Module (SAM), and a Detect Head, to enhance feature representation, spatial attention, and detection performance. + +# Dataset + +Dataset for testing: COCO. The COCO dataset is a widely used benchmark dataset in the field of object detection. +It focuses on high-quality pixel-level annotations for various urban objects, including cars, pedestrians, roads, buildings, traffic signs, and more. + +Link to download the dataset: https://cocodataset.org/ + +# Features + +The notable features of the YOLOX-nano model: + +1. **Backbone**: YOLOX-nano adopts the Darknet backbone, which consists of a series of convolutional layers followed by downsampling operations. +2. **Spatial Attention Module (SAM)**: YOLOX-nano incorporates a Spatial Attention Module to enhance the model's capability to attend to important spatial regions in the feature maps. +3. **Detect Head**: YOLOX-nano utilizes a Detect Head module responsible for predicting object bounding boxes and class probabilities. +4. **Scaled-YOLOX**: YOLOX-nano follows the Scaled-YOLOX paradigm, which involves progressively decreasing the input resolution during training and inference. + +# Environment Requirements + +Before running the model inference, make sure that the latest version of +[Vitis-AI](https://xilinx.github.io/Vitis-AI/3.5/html/docs/install/install.html) is installed and the host computer fully supports +Xilinx FPGA/ACAP and the appropriate accelerator is installed correctly, e.g. Alveo V70. + +# Quick Start + +Follow the [Quick Start guide](../../../README.md#quick-start) in the main Model Zoo README: + +1. Install the Vitis-AI +2. Run the docker container +3. Download test data +4. Run the inference of the model + +# Script Description + +## Structure + +```text +pt_yolox-nano # model name +├── artifacts # artifacts - will be created during the inference process +│ ├── inference # folder with results values of inference and evaluation +│ │ ├── performance # model productivity measurements +│ │ ├── quality # model quality measurements +│ │ ├── results # model inference results files +│ │ └── vaitrace # vaitrace profiling performance reports +│ └── models # folder with model meta and .xmodel executable files +├── scripts # scripts for model processing +│ ├── inference.sh # model inference +│ ├── performance.sh # model performance report +│ ├── quality.sh # model quality report +│ └── setup_venv.sh # virtual environment creation +├── src # python supporting scripts +│ └── quality.py # quality metric calculation +├── config.env # model configuration - env variables +├── README.md +└── requirements.txt # requirements for the virtual environment +``` + +## Inference Process + +- Native inference - follow the [Quick Start guide](../../../README.md#quick-start) in the main Model Zoo +- AMD Server + +# Quality + +Use the following script: + +```bash + # Format: bash scripts/quality.sh <inference_result> <ground_truth> [--batch] [--dataset] + # where: + # inference_result - Path to the inference result image or folder. + # ground_truth - Path to the ground truth image or folder + # --batch - Evaluate a dataset (default: individual images) + # --dataset - Evaluate Cityscapes dataset + # The metric values will be stored in the artifacts/inference/quality/metrics.txt file + # Example: + + bash scripts/quality.sh $MODEL_FOLDER/artifacts/inference/results/ /workspace/Vitis-AI-Library/samples/yolovx/images/ --dataset +``` + +# Performance + +- You can profile the model using [vaitrace](https://docs.xilinx.com/r/en-US/ug1414-vitis-ai/Starting-a-Simple-Trace-with-vaitrace) perfomance report, + the script and format described in the [Quick Start guide](../../../README.md#vaitrace) in the main Model Zoo. +- To get performance metrics (FPS, E2E, DPU_MEAN), use: + ```bash + # Format: bash scripts/performance.sh <MODEL_PATH> [<image paths list>] + # where: + # <MODEL_PATH> - the absolute path to the .xmodel + # [<image paths list>] - space-separated list of image absolute paths + # Alternatively, you can pass --dataset option with the folder where images are stored. + # Example: + + bash scripts/performance.sh $MODEL_FOLDER/artifacts/models/yolovx_nano_pt/yolovx_nano_pt.xmodel --dataset /workspace/Vitis-AI-Library/samples/yolovx/images/ + ``` + + +# Links + +- YOLOX: Exceeding YOLO Series in 2021: https://arxiv.org/abs/2107.08430 +- COCO dataset: https://cocodataset.org/ +- Object detection benchmark on the COCO (PapersWithCode): https://paperswithcode.com/sota/object-detection-on-coco + +# Vitis AI Model Zoo Homepage + +Check the official Vitis AI Model Zoo [homepage](https://github.com/Xilinx/Vitis-AI/tree/master/model_zoo). diff --git a/model_zoo/models/object_detection/pt_yolox-nano/config.env b/model_zoo/models/object_detection/pt_yolox-nano/config.env new file mode 100644 index 000000000..f58a76ce3 --- /dev/null +++ b/model_zoo/models/object_detection/pt_yolox-nano/config.env @@ -0,0 +1,5 @@ +#!/bin/bash + +VITIS_ROOT_PATH=/workspace +VAI_LIBRARY_SAMPLES_PATH=$VITIS_ROOT_PATH/examples/vai_library/samples/yolovx +VAI_SAMPLES_POSTFIX=yolovx diff --git a/model_zoo/models/object_detection/pt_yolox-nano/requirements.txt b/model_zoo/models/object_detection/pt_yolox-nano/requirements.txt new file mode 100644 index 000000000..24ce15ab7 --- /dev/null +++ b/model_zoo/models/object_detection/pt_yolox-nano/requirements.txt @@ -0,0 +1 @@ +numpy diff --git a/model_zoo/models/object_detection/pt_yolox-nano/scripts/inference.sh b/model_zoo/models/object_detection/pt_yolox-nano/scripts/inference.sh new file mode 100644 index 000000000..8263221d5 --- /dev/null +++ b/model_zoo/models/object_detection/pt_yolox-nano/scripts/inference.sh @@ -0,0 +1,84 @@ +#!/bin/bash + +source config.env +source ../../../scripts/build.sh + +display_help() { + echo "Usage: $0 MODEL_PATH [OPTIONS] [IMAGE PATHS]" + echo " $0 MODEL_PATH --dataset DIRECTORY" + echo + echo "Options:" + echo " --dataset DIRECTORY Specify a directory containing images" + echo " -h, --help Display this help message" + echo + echo "Arguments:" + echo " MODEL_PATH Path to the model" + echo " IMAGE PATHS List of image paths" + echo + +} + +process_image() { + echo "$1" >> $filepaths_list +} + +process_directory() { + local directory="$1" + find "$directory" -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" \) | while read -r file; do + process_image "$file" + done +} + +if [ -z "$1" ] || [ "$1" == "-h" ] || [ "$1" == "--help" ]; then + display_help + exit 0 +fi + +MODEL_PATH="$1" +shift + +filepaths_list="$(pwd)"/artifacts/inference/filepaths.list +if [ -f "$filepaths_list" ]; then + rm "$filepaths_list" +fi + +if [ "$1" == "--dataset" ]; then + if [ -z "$2" ]; then + echo "No directory specified for --dataset option" + exit 1 + elif [ "$2" == "-h" ] || [ "$2" == "--help" ]; then + display_help + exit 0 + elif [ -d "$2" ]; then + process_directory "$2" + else + echo "Invalid directory specified: $2" + exit 1 + fi +else + for arg in "$@"; do + if [ "$arg" == "-h" ] || [ "$arg" == "--help" ]; then + display_help + exit 0 + elif [ -f "$arg" ]; then + process_image "$arg" + else + echo "Invalid file specified: $arg" + fi + done +fi + +RESULTS_FOLDER="$(pwd)"/artifacts/inference/results +mkdir -p "$RESULTS_FOLDER" +RESULT_FILE=$RESULTS_FOLDER/result.txt +touch "$RESULT_FILE" +cd "$VAI_LIBRARY_SAMPLES_PATH" || exit + +EVAL_APP=test_accuracy_"$VAI_SAMPLES_POSTFIX"_nano_mt +build_if_not_exists $VAI_LIBRARY_SAMPLES_PATH $EVAL_APP + +POSTFIX="_acc" +RENAMED_MODEL_PATH="${MODEL_PATH}${POSTFIX}" +mv "$MODEL_PATH" "$RENAMED_MODEL_PATH" +./$EVAL_APP $MODEL_PATH $filepaths_list $RESULT_FILE +mv "$RENAMED_MODEL_PATH" "$MODEL_PATH" \ No newline at end of file diff --git a/model_zoo/models/object_detection/pt_yolox-nano/scripts/performance.sh b/model_zoo/models/object_detection/pt_yolox-nano/scripts/performance.sh new file mode 100644 index 000000000..439a97d0a --- /dev/null +++ b/model_zoo/models/object_detection/pt_yolox-nano/scripts/performance.sh @@ -0,0 +1,80 @@ +#!/bin/bash + +source config.env +source ../../../scripts/build.sh + +display_help() { + echo "Usage: $0 MODEL_PATH [OPTIONS] [IMAGE PATHS]" + echo " $0 MODEL_PATH --dataset DIRECTORY" + echo + echo "Options:" + echo " --dataset DIRECTORY Specify a directory containing images" + echo " -h, --help Display this help message" + echo + echo "Arguments:" + echo " MODEL_PATH Path to the model" + echo " IMAGE PATHS List of image paths" + echo + +} + +process_image() { + echo "$1" >> $filepaths_list +} + +process_directory() { + local directory="$1" + find "$directory" -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" \) | while read -r file; do + process_image "$file" + done +} + +if [ -z "$1" ] || [ "$1" == "-h" ] || [ "$1" == "--help" ]; then + display_help + exit 0 +fi + +MODEL_PATH="$1" +shift + +filepaths_list="$(pwd)"/artifacts/inference/filepaths.list +if [ -f "$filepaths_list" ]; then + rm "$filepaths_list" +fi + +if [ "$1" == "--dataset" ]; then + if [ -z "$2" ]; then + echo "No directory specified for --dataset option" + exit 1 + elif [ "$2" == "-h" ] || [ "$2" == "--help" ]; then + display_help + exit 0 + elif [ -d "$2" ]; then + process_directory "$2" + else + echo "Invalid directory specified: $2" + exit 1 + fi +else + for arg in "$@"; do + if [ "$arg" == "-h" ] || [ "$arg" == "--help" ]; then + display_help + exit 0 + elif [ -f "$arg" ]; then + process_image "$arg" + else + echo "Invalid file specified: $arg" + fi + done +fi + +PERFORMANCE_FOLDER="$(pwd)"/artifacts/inference/perfomance +mkdir -p "$PERFORMANCE_FOLDER" +result_file=$PERFORMANCE_FOLDER/result.txt + +cd "$VAI_LIBRARY_SAMPLES_PATH" || exit + +EVAL_APP=test_performance_$VAI_SAMPLES_POSTFIX +build_if_not_exists $VAI_LIBRARY_SAMPLES_PATH $EVAL_APP + +./$EVAL_APP $MODEL_PATH $filepaths_list | tee $result_file diff --git a/model_zoo/models/object_detection/pt_yolox-nano/scripts/quality.sh b/model_zoo/models/object_detection/pt_yolox-nano/scripts/quality.sh new file mode 100644 index 000000000..b4c0d041c --- /dev/null +++ b/model_zoo/models/object_detection/pt_yolox-nano/scripts/quality.sh @@ -0,0 +1,49 @@ +#!/bin/bash + +source config.env +source ../../../scripts/build.sh + + +display_help() { + echo "Usage: $0 <inference_result> <ground_truth> [--batch] [--dataset]" + echo "" + echo "Evaluate image quality based on inference results and ground truth." + echo "" + echo "Positional arguments:" + echo " inference_result Path to the inference result image or folder" + echo " ground_truth Path to the ground truth image or folder" + echo "" + echo "Optional arguments:" + echo " --batch Evaluate a folder (default: individual images)" + echo " --dataset Evaluate Cityscapes dataset" + echo "" + +} +if [ -z "$1" ] || [ "$1" == "-h" ] || [ "$1" == "--help" ]; then + display_help + exit 0 +fi +bash scripts/setup_venv.sh + +QUALITY_FOLDER="$(pwd)"/artifacts/inference/quality +mkdir -p "$QUALITY_FOLDER" +result_file=$QUALITY_FOLDER/metrics.txt + +inference_result="$1" +ground_truth="$2" +dataset="" +coco="" + +if [[ "$3" == "--batch" ]]; then + dataset="--dataset" +fi + +if [[ "$3" == "--dataset" ]]; then + coco="--coco" +fi + +if [[ "$4" == "--dataset" ]]; then + coco="--coco" +fi + +python src/quality.py $inference_result $ground_truth $dataset $coco | tee $result_file diff --git a/model_zoo/models/object_detection/pt_yolox-nano/scripts/setup_venv.sh b/model_zoo/models/object_detection/pt_yolox-nano/scripts/setup_venv.sh new file mode 100644 index 000000000..a55316207 --- /dev/null +++ b/model_zoo/models/object_detection/pt_yolox-nano/scripts/setup_venv.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +python3 -m venv .venv +source .venv/bin/activate +pip install -r requirements.txt \ No newline at end of file diff --git a/model_zoo/models/object_detection/pt_yolox-nano/src/quality.py b/model_zoo/models/object_detection/pt_yolox-nano/src/quality.py new file mode 100644 index 000000000..9f39546df --- /dev/null +++ b/model_zoo/models/object_detection/pt_yolox-nano/src/quality.py @@ -0,0 +1,107 @@ +import argparse +import os +import numpy as np +from PIL import Image + + +def compute_iou(prediction: np.ndarray, ground_truth: np.ndarray) -> float: + """ + Compute Intersection over Union (IoU) between prediction and ground truth masks. + """ + intersection = np.logical_and(prediction, ground_truth) + union = np.logical_or(prediction, ground_truth) + iou = np.sum(intersection) / np.sum(union) + return iou + + +def compute_pixel_accuracy(prediction: np.ndarray, ground_truth: np.ndarray) -> float: + """ + Compute Pixel-wise Accuracy between prediction and ground truth masks. + """ + correct_pixels = np.sum(prediction == ground_truth) + total_pixels = np.prod(prediction.shape) + accuracy = correct_pixels / total_pixels + return accuracy + + +def evaluate_images(prediction_path: str, ground_truth_path: str) -> tuple[float, float]: + """ + Evaluate IoU and Pixel-wise Accuracy for two individual images. + """ + prediction = np.array(Image.open(prediction_path)) + ground_truth = np.array(Image.open(ground_truth_path)) + + iou = compute_iou(prediction, ground_truth) + accuracy = compute_pixel_accuracy(prediction, ground_truth) + + return iou, accuracy + + +def evaluate_dataset(predictions_folder: str, ground_truth_folder: str) -> tuple[float, float]: + """ + Evaluate mean IoU and mean Pixel-wise Accuracy for a dataset. + """ + iou_list = [] + accuracy_list = [] + + for prediction_file in os.listdir(predictions_folder): + prediction_path = os.path.join(predictions_folder, prediction_file) + ground_truth_path = os.path.join(ground_truth_folder, prediction_file) + + iou, accuracy = evaluate_images(prediction_path, ground_truth_path) + iou_list.append(iou) + accuracy_list.append(accuracy) + + mean_iou = np.mean(iou_list) + mean_accuracy = np.mean(accuracy_list) + + return mean_iou, mean_accuracy + + +def evaluate_coco(results_folder: str, cityscapes_folder: str) -> tuple[float, float]: + """ + Evaluate mean IoU and mean Pixel-wise Accuracy for COCO dataset. + """ + predictions_folder = os.path.join(results_folder, 'predictions') + ground_truth_folder = os.path.join(cityscapes_folder, 'gtFine') + + mean_iou, mean_accuracy = evaluate_dataset(predictions_folder, ground_truth_folder) + + return mean_iou, mean_accuracy + + + +if __name__ == '__main__': + parser = argparse.ArgumentParser(description='Model evaluation script') + parser.add_argument('inference_result', help='Path to the inference result image') + parser.add_argument('ground_truth', help='Path to the ground truth image') + parser.add_argument('--dataset', action='store_true', help='Evaluate a dataset') + parser.add_argument('--coco', action='store_true', help='Evaluate Coco dataset') + args = parser.parse_args() + + if args.coco: + + results_folder = args.inference_result + coco_folder = args.ground_truth + + mean_iou, mean_accuracy = evaluate_coco(results_folder, coco_folder) + + print(f"Mean IoU: {mean_iou}") + print(f"Mean Pixel-wise Accuracy: {mean_accuracy}") + else: + if args.dataset: + predictions_folder = args.inference_result + ground_truth_folder = args.ground_truth + + mean_iou, mean_accuracy = evaluate_dataset(predictions_folder, ground_truth_folder) + + print(f"Mean IoU: {mean_iou}") + print(f"Mean Pixel-wise Accuracy: {mean_accuracy}") + else: + inference_result_path = args.inference_result + ground_truth_path = args.ground_truth + + iou, accuracy = evaluate_images(inference_result_path, ground_truth_path) + + print(f"IoU: {iou}") + print(f"Pixel-wise Accuracy: {accuracy}") diff --git a/model_zoo/models/object_detection/tf_mlperf_resnet34/README.md b/model_zoo/models/object_detection/tf_mlperf_resnet34/README.md new file mode 100644 index 000000000..9c0337a39 --- /dev/null +++ b/model_zoo/models/object_detection/tf_mlperf_resnet34/README.md @@ -0,0 +1,141 @@ +# Contents + +- [Contents](#contents) +- [Model Description](#model-description) + - [Description](#description) + - [Paper](#paper) +- [Model Architecture](#model-architecture) +- [Dataset](#dataset) +- [Features](#features) +- [Environment Requirements](#environment-requirements) +- [Quick Start](#quick-start) +- [Script Description](#script-description) + - [Structure](#structure) + - [Inference Process](#inference-process) +- [Quality](#quality) +- [Performance](#performance) +- [Links](#links) +- [Vitis AI Model Zoo Homepage](#vitis-ai-model-zoo-homepage) + +# Model Description + +## Description + +The SSD-ResNet34 detector is a model designed for object detection tasks based on the COCO dataset. +It combines the ResNet34 architecture with the Single Shot MultiBox Detector (SSD) framework +to achieve accurate and efficient object detection. + +## Paper + +Liu, Wei et al. "Speed/accuracy trade-offs for modern convolutional object detectors." +arXiv preprint arXiv:1611.10012 – 2016. Link: http://arxiv.org/abs/1611.10012/ + +# Model Architecture + +The SSD-ResNet34 model architecture is a fusion of the ResNet34 backbone network and the SSD framework. +The ResNet34 serves as the feature extractor, consisting of multiple convolutional layers with residual connections. +The SSD framework adds additional convolutional layers on top of the ResNet34 to generate a set of default bounding boxes at different scales and aspect ratios. These bounding boxes are then refined to accurately localize objects. + +# Dataset + +Dataset for testing: COCO. The COCO dataset is a widely used benchmark dataset in the field of object detection. +It focuses on high-quality pixel-level annotations for various urban objects, including cars, pedestrians, roads, buildings, traffic signs, and more. + +Link to download the dataset: https://cocodataset.org/ + +# Features + +The notable features of the SSD-ResNet34 detector: + +1. Utilizes the ResNet34 architecture as the backbone for robust feature extraction. +2. Implements the SSD framework for efficient object detection by generating default bounding boxes and predicting class probabilities for each box. +3. Achieves high accuracy in object detection tasks while maintaining real-time processing speeds. +4. Handles objects at different scales and aspect ratios effectively through multi-scale feature maps and anchor boxes. + +# Environment Requirements + +Before running the model inference, make sure that the latest version of +[Vitis-AI](https://xilinx.github.io/Vitis-AI/3.5/html/docs/install/install.html) is installed and the host computer fully supports +Xilinx FPGA/ACAP and the appropriate accelerator is installed correctly, e.g. Alveo V70. + +# Quick Start + +Follow the [Quick Start guide](../../../README.md#quick-start) in the main Model Zoo README: + +1. Install the Vitis-AI +2. Run the docker container +3. Download test data +4. Run the inference of the model + +# Script Description + +## Structure + +```text +tf_mlperf_resnet34 # model name +├── artifacts # artifacts - will be created during the inference process +│ ├── inference # folder with results values of inference and evaluation +│ │ ├── performance # model productivity measurements +│ │ ├── quality # model quality measurements +│ │ ├── results # model inference results files +│ │ └── vaitrace # vaitrace profiling performance reports +│ └── models # folder with model meta and .xmodel executable files +├── scripts # scripts for model processing +│ ├── inference.sh # model inference +│ ├── performance.sh # model performance report +│ ├── quality.sh # model quality report +│ └── setup_venv.sh # virtual environment creation +├── src # python supporting scripts +│ └── quality.py # quality metric calculation +├── config.env # model configuration - env variables +├── README.md +└── requirements.txt # requirements for the virtual environment +``` + +## Inference Process + +- Native inference - follow the [Quick Start guide](../../../README.md#quick-start) in the main Model Zoo +- AMD Server + +# Quality + +Use the following script: + +```bash + # Format: bash scripts/quality.sh <inference_result> <ground_truth> [--batch] [--dataset] + # where: + # inference_result - Path to the inference result image or folder. + # ground_truth - Path to the ground truth image or folder + # --batch - Evaluate a dataset (default: individual images) + # --dataset - Evaluate Cityscapes dataset + # The metric values will be stored in the artifacts/inference/quality/metrics.txt file + # Example: + + bash scripts/quality.sh $MODEL_FOLDER/artifacts/inference/results/ /workspace/Vitis-AI-Library/samples/yolov4/images/ --dataset +``` + +# Performance + +- You can profile the model using [vaitrace](https://docs.xilinx.com/r/en-US/ug1414-vitis-ai/Starting-a-Simple-Trace-with-vaitrace) perfomance report, + the script and format described in the [Quick Start guide](../../../README.md#vaitrace) in the main Model Zoo. +- To get performance metrics (FPS, E2E, DPU_MEAN), use: + ```bash + # Format: bash scripts/performance.sh <MODEL_PATH> [<image paths list>] + # where: + # <MODEL_PATH> - the absolute path to the .xmodel + # [<image paths list>] - space-separated list of image absolute paths + # Alternatively, you can pass --dataset option with the folder where images are stored. + # Example: + + bash scripts/performance.sh $MODEL_FOLDER/artifacts/models/yolov4_leaky_512_tf/yolov4_leaky_512_tf.xmodel --dataset /workspace/Vitis-AI-Library/samples/yolov4/images/ + ``` + +# Links + +- COCO dataset: https://cocodataset.org/ +- Object detection benchmark on the COCO (PapersWithCode): https://paperswithcode.com/sota/object-detection-on-coco + +# Vitis AI Model Zoo Homepage + +Check the official Vitis AI Model Zoo [homepage](https://github.com/Xilinx/Vitis-AI/tree/master/model_zoo). + diff --git a/model_zoo/models/object_detection/tf_mlperf_resnet34/config.env b/model_zoo/models/object_detection/tf_mlperf_resnet34/config.env new file mode 100644 index 000000000..4fd91e9b9 --- /dev/null +++ b/model_zoo/models/object_detection/tf_mlperf_resnet34/config.env @@ -0,0 +1,5 @@ +#!/bin/bash + +VITIS_ROOT_PATH=/workspace +VAI_LIBRARY_SAMPLES_PATH=$VITIS_ROOT_PATH/examples/vai_library/samples/ssd +VAI_SAMPLES_POSTFIX=ssd diff --git a/model_zoo/models/object_detection/tf_mlperf_resnet34/requirements.txt b/model_zoo/models/object_detection/tf_mlperf_resnet34/requirements.txt new file mode 100644 index 000000000..24ce15ab7 --- /dev/null +++ b/model_zoo/models/object_detection/tf_mlperf_resnet34/requirements.txt @@ -0,0 +1 @@ +numpy diff --git a/model_zoo/models/object_detection/tf_mlperf_resnet34/scripts/inference.sh b/model_zoo/models/object_detection/tf_mlperf_resnet34/scripts/inference.sh new file mode 100644 index 000000000..c78db783a --- /dev/null +++ b/model_zoo/models/object_detection/tf_mlperf_resnet34/scripts/inference.sh @@ -0,0 +1,84 @@ +#!/bin/bash + +source config.env +source ../../../scripts/build.sh + +display_help() { + echo "Usage: $0 MODEL_PATH [OPTIONS] [IMAGE PATHS]" + echo " $0 MODEL_PATH --dataset DIRECTORY" + echo + echo "Options:" + echo " --dataset DIRECTORY Specify a directory containing images" + echo " -h, --help Display this help message" + echo + echo "Arguments:" + echo " MODEL_PATH Path to the model" + echo " IMAGE PATHS List of image paths" + echo + +} + +process_image() { + echo "$1" >> $filepaths_list +} + +process_directory() { + local directory="$1" + find "$directory" -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" \) | while read -r file; do + process_image "$file" + done +} + +if [ -z "$1" ] || [ "$1" == "-h" ] || [ "$1" == "--help" ]; then + display_help + exit 0 +fi + +MODEL_PATH="$1" +shift + +filepaths_list="$(pwd)"/artifacts/inference/filepaths.list +if [ -f "$filepaths_list" ]; then + rm "$filepaths_list" +fi + +if [ "$1" == "--dataset" ]; then + if [ -z "$2" ]; then + echo "No directory specified for --dataset option" + exit 1 + elif [ "$2" == "-h" ] || [ "$2" == "--help" ]; then + display_help + exit 0 + elif [ -d "$2" ]; then + process_directory "$2" + else + echo "Invalid directory specified: $2" + exit 1 + fi +else + for arg in "$@"; do + if [ "$arg" == "-h" ] || [ "$arg" == "--help" ]; then + display_help + exit 0 + elif [ -f "$arg" ]; then + process_image "$arg" + else + echo "Invalid file specified: $arg" + fi + done +fi + +RESULTS_FOLDER="$(pwd)"/artifacts/inference/results +mkdir -p "$RESULTS_FOLDER" +RESULT_FILE=$RESULTS_FOLDER/result.txt +touch "$RESULT_FILE" +cd "$VAI_LIBRARY_SAMPLES_PATH" || exit + +EVAL_APP=test_accuracy_"$VAI_SAMPLES_POSTFIX"_mt +build_if_not_exists $VAI_LIBRARY_SAMPLES_PATH $EVAL_APP + +POSTFIX="_acc" +RENAMED_MODEL_PATH="${MODEL_PATH}${POSTFIX}" +mv "$MODEL_PATH" "$RENAMED_MODEL_PATH" +./$EVAL_APP $MODEL_PATH $filepaths_list $RESULT_FILE +mv "$RENAMED_MODEL_PATH" "$MODEL_PATH" diff --git a/model_zoo/models/object_detection/tf_mlperf_resnet34/scripts/performance.sh b/model_zoo/models/object_detection/tf_mlperf_resnet34/scripts/performance.sh new file mode 100644 index 000000000..439a97d0a --- /dev/null +++ b/model_zoo/models/object_detection/tf_mlperf_resnet34/scripts/performance.sh @@ -0,0 +1,80 @@ +#!/bin/bash + +source config.env +source ../../../scripts/build.sh + +display_help() { + echo "Usage: $0 MODEL_PATH [OPTIONS] [IMAGE PATHS]" + echo " $0 MODEL_PATH --dataset DIRECTORY" + echo + echo "Options:" + echo " --dataset DIRECTORY Specify a directory containing images" + echo " -h, --help Display this help message" + echo + echo "Arguments:" + echo " MODEL_PATH Path to the model" + echo " IMAGE PATHS List of image paths" + echo + +} + +process_image() { + echo "$1" >> $filepaths_list +} + +process_directory() { + local directory="$1" + find "$directory" -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" \) | while read -r file; do + process_image "$file" + done +} + +if [ -z "$1" ] || [ "$1" == "-h" ] || [ "$1" == "--help" ]; then + display_help + exit 0 +fi + +MODEL_PATH="$1" +shift + +filepaths_list="$(pwd)"/artifacts/inference/filepaths.list +if [ -f "$filepaths_list" ]; then + rm "$filepaths_list" +fi + +if [ "$1" == "--dataset" ]; then + if [ -z "$2" ]; then + echo "No directory specified for --dataset option" + exit 1 + elif [ "$2" == "-h" ] || [ "$2" == "--help" ]; then + display_help + exit 0 + elif [ -d "$2" ]; then + process_directory "$2" + else + echo "Invalid directory specified: $2" + exit 1 + fi +else + for arg in "$@"; do + if [ "$arg" == "-h" ] || [ "$arg" == "--help" ]; then + display_help + exit 0 + elif [ -f "$arg" ]; then + process_image "$arg" + else + echo "Invalid file specified: $arg" + fi + done +fi + +PERFORMANCE_FOLDER="$(pwd)"/artifacts/inference/perfomance +mkdir -p "$PERFORMANCE_FOLDER" +result_file=$PERFORMANCE_FOLDER/result.txt + +cd "$VAI_LIBRARY_SAMPLES_PATH" || exit + +EVAL_APP=test_performance_$VAI_SAMPLES_POSTFIX +build_if_not_exists $VAI_LIBRARY_SAMPLES_PATH $EVAL_APP + +./$EVAL_APP $MODEL_PATH $filepaths_list | tee $result_file diff --git a/model_zoo/models/object_detection/tf_mlperf_resnet34/scripts/quality.sh b/model_zoo/models/object_detection/tf_mlperf_resnet34/scripts/quality.sh new file mode 100644 index 000000000..b4c0d041c --- /dev/null +++ b/model_zoo/models/object_detection/tf_mlperf_resnet34/scripts/quality.sh @@ -0,0 +1,49 @@ +#!/bin/bash + +source config.env +source ../../../scripts/build.sh + + +display_help() { + echo "Usage: $0 <inference_result> <ground_truth> [--batch] [--dataset]" + echo "" + echo "Evaluate image quality based on inference results and ground truth." + echo "" + echo "Positional arguments:" + echo " inference_result Path to the inference result image or folder" + echo " ground_truth Path to the ground truth image or folder" + echo "" + echo "Optional arguments:" + echo " --batch Evaluate a folder (default: individual images)" + echo " --dataset Evaluate Cityscapes dataset" + echo "" + +} +if [ -z "$1" ] || [ "$1" == "-h" ] || [ "$1" == "--help" ]; then + display_help + exit 0 +fi +bash scripts/setup_venv.sh + +QUALITY_FOLDER="$(pwd)"/artifacts/inference/quality +mkdir -p "$QUALITY_FOLDER" +result_file=$QUALITY_FOLDER/metrics.txt + +inference_result="$1" +ground_truth="$2" +dataset="" +coco="" + +if [[ "$3" == "--batch" ]]; then + dataset="--dataset" +fi + +if [[ "$3" == "--dataset" ]]; then + coco="--coco" +fi + +if [[ "$4" == "--dataset" ]]; then + coco="--coco" +fi + +python src/quality.py $inference_result $ground_truth $dataset $coco | tee $result_file diff --git a/model_zoo/models/object_detection/tf_mlperf_resnet34/scripts/setup_venv.sh b/model_zoo/models/object_detection/tf_mlperf_resnet34/scripts/setup_venv.sh new file mode 100644 index 000000000..a55316207 --- /dev/null +++ b/model_zoo/models/object_detection/tf_mlperf_resnet34/scripts/setup_venv.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +python3 -m venv .venv +source .venv/bin/activate +pip install -r requirements.txt \ No newline at end of file diff --git a/model_zoo/models/object_detection/tf_mlperf_resnet34/src/quality.py b/model_zoo/models/object_detection/tf_mlperf_resnet34/src/quality.py new file mode 100644 index 000000000..8c69d941a --- /dev/null +++ b/model_zoo/models/object_detection/tf_mlperf_resnet34/src/quality.py @@ -0,0 +1,107 @@ +import argparse +import os +import numpy as np +from PIL import Image + + +def compute_iou(prediction: np.ndarray, ground_truth: np.ndarray) -> float: + """ + Compute Intersection over Union (IoU) between prediction and ground truth masks. + """ + intersection = np.logical_and(prediction, ground_truth) + union = np.logical_or(prediction, ground_truth) + iou = np.sum(intersection) / np.sum(union) + return iou + + +def compute_pixel_accuracy(prediction: np.ndarray, ground_truth: np.ndarray) -> float: + """ + Compute Pixel-wise Accuracy between prediction and ground truth masks. + """ + correct_pixels = np.sum(prediction == ground_truth) + total_pixels = np.prod(prediction.shape) + accuracy = correct_pixels / total_pixels + return accuracy + + +def evaluate_images(prediction_path: str, ground_truth_path: str) -> tuple[float, float]: + """ + Evaluate IoU and Pixel-wise Accuracy for two individual images. + """ + prediction = np.array(Image.open(prediction_path)) + ground_truth = np.array(Image.open(ground_truth_path)) + + iou = compute_iou(prediction, ground_truth) + accuracy = compute_pixel_accuracy(prediction, ground_truth) + + return iou, accuracy + + +def evaluate_dataset(predictions_folder: str, ground_truth_folder: str) -> tuple[float, float]: + """ + Evaluate mean IoU and mean Pixel-wise Accuracy for a dataset. + """ + iou_list = [] + accuracy_list = [] + + for prediction_file in os.listdir(predictions_folder): + prediction_path = os.path.join(predictions_folder, prediction_file) + ground_truth_path = os.path.join(ground_truth_folder, prediction_file) + + iou, accuracy = evaluate_images(prediction_path, ground_truth_path) + iou_list.append(iou) + accuracy_list.append(accuracy) + + mean_iou = np.mean(iou_list) + mean_accuracy = np.mean(accuracy_list) + + return mean_iou, mean_accuracy + + +def evaluate_cityscapes(results_folder: str, cityscapes_folder: str) -> tuple[float, float]: + """ + Evaluate mean IoU and mean Pixel-wise Accuracy for Cityscapes dataset. + """ + predictions_folder = os.path.join(results_folder, 'predictions') + ground_truth_folder = os.path.join(cityscapes_folder, 'gtFine') + + mean_iou, mean_accuracy = evaluate_dataset(predictions_folder, ground_truth_folder) + + return mean_iou, mean_accuracy + + + +if __name__ == '__main__': + parser = argparse.ArgumentParser(description='Model evaluation script') + parser.add_argument('inference_result', help='Path to the inference result image') + parser.add_argument('ground_truth', help='Path to the ground truth image') + parser.add_argument('--dataset', action='store_true', help='Evaluate a dataset') + parser.add_argument('--coco', action='store_true', help='Evaluate Coco dataset') + args = parser.parse_args() + + if args.coco: + + results_folder = args.inference_result + coco_folder = args.ground_truth + + mean_iou, mean_accuracy = evaluate_cityscapes(results_folder, coco_folder) + + print(f"Mean IoU: {mean_iou}") + print(f"Mean Pixel-wise Accuracy: {mean_accuracy}") + else: + if args.dataset: + predictions_folder = args.inference_result + ground_truth_folder = args.ground_truth + + mean_iou, mean_accuracy = evaluate_dataset(predictions_folder, ground_truth_folder) + + print(f"Mean IoU: {mean_iou}") + print(f"Mean Pixel-wise Accuracy: {mean_accuracy}") + else: + inference_result_path = args.inference_result + ground_truth_path = args.ground_truth + + iou, accuracy = evaluate_images(inference_result_path, ground_truth_path) + + print(f"IoU: {iou}") + print(f"Pixel-wise Accuracy: {accuracy}") diff --git a/model_zoo/models/object_detection/tf_yolov4/README.md b/model_zoo/models/object_detection/tf_yolov4/README.md new file mode 100644 index 000000000..eaae26de0 --- /dev/null +++ b/model_zoo/models/object_detection/tf_yolov4/README.md @@ -0,0 +1,139 @@ +# Contents + +- [Contents](#contents) +- [Model Description](#model-description) + - [Description](#description) + - [Paper](#paper) +- [Model Architecture](#model-architecture) +- [Dataset](#dataset) +- [Features](#features) +- [Environment Requirements](#environment-requirements) +- [Quick Start](#quick-start) +- [Script Description](#script-description) + - [Structure](#structure) + - [Inference Process](#inference-process) +- [Quality](#quality) +- [Performance](#performance) +- [Links](#links) +- [Vitis AI Model Zoo Homepage](#vitis-ai-model-zoo-homepage) + +# Model Description + +## Description + +YOLOv4 (You Only Look Once version 4) is an advanced real-time object detection model that is widely used in computer +vision applications to detect and classify objects within an image or video frame. + +## Paper + + Bochkovskiy A., Wang C. Y., Liao H. Y. M. "Yolov4: Optimal speed and accuracy of object detection." <br> + //arXiv preprint arXiv:2004.10934. – 2020. Link: https://arxiv.org/abs/2004.10934 + +# Model Architecture +The architecture of YOLOv4 consists of a powerful backbone network (CSPDarknet53), a feature fusion mechanism, +and three detection heads operating at different scales. It also incorporates advanced training techniques such as +data augmentation and multi-scale training. + +# Dataset + +Dataset for testing: COCO. The COCO dataset is a widely used benchmark dataset in the field of object detection. +It focuses on high-quality pixel-level annotations for various urban objects, including cars, pedestrians, roads, buildings, traffic signs, and more. + +Link to download the dataset: https://cocodataset.org/ + +# Features + +The notable features of the YOLO model: + +1. **Efficient backbone network** - CSPDarknet53 +2. **Feature fusion techniques** - FPN and PANet. +3. 3 detection heads operate at different scales to detect objects of various sizes +4. **Performance** - good balance between accuracy and real-time processing speed. + +# Environment Requirements + +Before running the model inference, make sure that the latest version of +[Vitis-AI](https://xilinx.github.io/Vitis-AI/3.5/html/docs/install/install.html) is installed and the host computer fully supports +Xilinx FPGA/ACAP and the appropriate accelerator is installed correctly, e.g. Alveo V70. + +# Quick Start + +Follow the [Quick Start guide](../../../README.md#quick-start) in the main Model Zoo README: + +1. Install the Vitis-AI +2. Run the docker container +3. Download test data +4. Run the inference of the model + +# Script Description + +## Structure + +```text +tf_yolov4 # model name +├── artifacts # artifacts - will be created during the inference process +│ ├── inference # folder with results values of inference and evaluation +│ │ ├── performance # model productivity measurements +│ │ ├── quality # model quality measurements +│ │ ├── results # model inference results files +│ │ └── vaitrace # vaitrace profiling performance reports +│ └── models # folder with model meta and .xmodel executable files +├── scripts # scripts for model processing +│ ├── inference.sh # model inference +│ ├── performance.sh # model performance report +│ ├── quality.sh # model quality report +│ └── setup_venv.sh # virtual environment creation +├── src # python supporting scripts +│ └── quality.py # quality metric calculation +├── config.env # model configuration - env variables +├── README.md +└── requirements.txt # requirements for the virtual environment +``` + +## Inference Process + +- Native inference - follow the [Quick Start guide](../../../README.md#quick-start) in the main Model Zoo +- AMD Server + +# Quality + +Use the following script: + +```bash + # Format: bash scripts/quality.sh <inference_result> <ground_truth> [--batch] [--dataset] + # where: + # inference_result - Path to the inference result image or folder. + # ground_truth - Path to the ground truth image or folder + # --batch - Evaluate a dataset (default: individual images) + # --dataset - Evaluate Cityscapes dataset + # The metric values will be stored in the artifacts/inference/quality/metrics.txt file + # Example: + + bash scripts/quality.sh $MODEL_FOLDER/artifacts/inference/results/ /workspace/Vitis-AI-Library/samples/yolov4/images/ --dataset +``` + +# Performance + +- You can profile the model using [vaitrace](https://docs.xilinx.com/r/en-US/ug1414-vitis-ai/Starting-a-Simple-Trace-with-vaitrace) perfomance report, + the script and format described in the [Quick Start guide](../../../README.md#vaitrace) in the main Model Zoo. +- To get performance metrics (FPS, E2E, DPU_MEAN), use: + ```bash + # Format: bash scripts/performance.sh <MODEL_PATH> [<image paths list>] + # where: + # <MODEL_PATH> - the absolute path to the .xmodel + # [<image paths list>] - space-separated list of image absolute paths + # Alternatively, you can pass --dataset option with the folder where images are stored. + # Example: + + bash scripts/performance.sh $MODEL_FOLDER/artifacts/models/yolov4_leaky_512_tf/yolov4_leaky_512_tf.xmodel --dataset /workspace/Vitis-AI-Library/samples/yolov4/images/ + ``` + + +# Links + +- COCO dataset: https://cocodataset.org/ +- Object detection benchmark on the COCO (PapersWithCode): https://paperswithcode.com/sota/object-detection-on-coco + +# Vitis AI Model Zoo Homepage + +Check the official Vitis AI Model Zoo [homepage](https://github.com/Xilinx/Vitis-AI/tree/master/model_zoo). diff --git a/model_zoo/models/object_detection/tf_yolov4/config.env b/model_zoo/models/object_detection/tf_yolov4/config.env new file mode 100644 index 000000000..5f709b8b6 --- /dev/null +++ b/model_zoo/models/object_detection/tf_yolov4/config.env @@ -0,0 +1,5 @@ +#!/bin/bash + +VITIS_ROOT_PATH=/workspace +VAI_LIBRARY_SAMPLES_PATH=$VITIS_ROOT_PATH/examples/vai_library/samples/yolov4 +VAI_SAMPLES_POSTFIX=yolov4 diff --git a/model_zoo/models/object_detection/tf_yolov4/requirements.txt b/model_zoo/models/object_detection/tf_yolov4/requirements.txt new file mode 100644 index 000000000..24ce15ab7 --- /dev/null +++ b/model_zoo/models/object_detection/tf_yolov4/requirements.txt @@ -0,0 +1 @@ +numpy diff --git a/model_zoo/models/object_detection/tf_yolov4/scripts/inference.sh b/model_zoo/models/object_detection/tf_yolov4/scripts/inference.sh new file mode 100644 index 000000000..891f9ecb6 --- /dev/null +++ b/model_zoo/models/object_detection/tf_yolov4/scripts/inference.sh @@ -0,0 +1,84 @@ +#!/bin/bash + +source config.env +source ../../../scripts/build.sh + +display_help() { + echo "Usage: $0 MODEL_PATH [OPTIONS] [IMAGE PATHS]" + echo " $0 MODEL_PATH --dataset DIRECTORY" + echo + echo "Options:" + echo " --dataset DIRECTORY Specify a directory containing images" + echo " -h, --help Display this help message" + echo + echo "Arguments:" + echo " MODEL_PATH Path to the model" + echo " IMAGE PATHS List of image paths" + echo + +} + +process_image() { + echo "$1" >> $filepaths_list +} + +process_directory() { + local directory="$1" + find "$directory" -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" \) | while read -r file; do + process_image "$file" + done +} + +if [ -z "$1" ] || [ "$1" == "-h" ] || [ "$1" == "--help" ]; then + display_help + exit 0 +fi + +MODEL_PATH="$1" +shift + +filepaths_list="$(pwd)"/artifacts/inference/filepaths.list +if [ -f "$filepaths_list" ]; then + rm "$filepaths_list" +fi + +if [ "$1" == "--dataset" ]; then + if [ -z "$2" ]; then + echo "No directory specified for --dataset option" + exit 1 + elif [ "$2" == "-h" ] || [ "$2" == "--help" ]; then + display_help + exit 0 + elif [ -d "$2" ]; then + process_directory "$2" + else + echo "Invalid directory specified: $2" + exit 1 + fi +else + for arg in "$@"; do + if [ "$arg" == "-h" ] || [ "$arg" == "--help" ]; then + display_help + exit 0 + elif [ -f "$arg" ]; then + process_image "$arg" + else + echo "Invalid file specified: $arg" + fi + done +fi + +RESULTS_FOLDER="$(pwd)"/artifacts/inference/results +mkdir -p "$RESULTS_FOLDER" +RESULT_FILE=$RESULTS_FOLDER/result.txt +touch "$RESULT_FILE" +cd "$VAI_LIBRARY_SAMPLES_PATH" || exit + +EVAL_APP=test_accuracy_"$VAI_SAMPLES_POSTFIX"_mt +build_if_not_exists $VAI_LIBRARY_SAMPLES_PATH $EVAL_APP + +POSTFIX="_acc" +RENAMED_MODEL_PATH="${MODEL_PATH}${POSTFIX}" +mv "$MODEL_PATH" "$RENAMED_MODEL_PATH" +./$EVAL_APP $MODEL_PATH $filepaths_list $RESULT_FILE +mv "$RENAMED_MODEL_PATH" "$MODEL_PATH" \ No newline at end of file diff --git a/model_zoo/models/object_detection/tf_yolov4/scripts/performance.sh b/model_zoo/models/object_detection/tf_yolov4/scripts/performance.sh new file mode 100644 index 000000000..439a97d0a --- /dev/null +++ b/model_zoo/models/object_detection/tf_yolov4/scripts/performance.sh @@ -0,0 +1,80 @@ +#!/bin/bash + +source config.env +source ../../../scripts/build.sh + +display_help() { + echo "Usage: $0 MODEL_PATH [OPTIONS] [IMAGE PATHS]" + echo " $0 MODEL_PATH --dataset DIRECTORY" + echo + echo "Options:" + echo " --dataset DIRECTORY Specify a directory containing images" + echo " -h, --help Display this help message" + echo + echo "Arguments:" + echo " MODEL_PATH Path to the model" + echo " IMAGE PATHS List of image paths" + echo + +} + +process_image() { + echo "$1" >> $filepaths_list +} + +process_directory() { + local directory="$1" + find "$directory" -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" \) | while read -r file; do + process_image "$file" + done +} + +if [ -z "$1" ] || [ "$1" == "-h" ] || [ "$1" == "--help" ]; then + display_help + exit 0 +fi + +MODEL_PATH="$1" +shift + +filepaths_list="$(pwd)"/artifacts/inference/filepaths.list +if [ -f "$filepaths_list" ]; then + rm "$filepaths_list" +fi + +if [ "$1" == "--dataset" ]; then + if [ -z "$2" ]; then + echo "No directory specified for --dataset option" + exit 1 + elif [ "$2" == "-h" ] || [ "$2" == "--help" ]; then + display_help + exit 0 + elif [ -d "$2" ]; then + process_directory "$2" + else + echo "Invalid directory specified: $2" + exit 1 + fi +else + for arg in "$@"; do + if [ "$arg" == "-h" ] || [ "$arg" == "--help" ]; then + display_help + exit 0 + elif [ -f "$arg" ]; then + process_image "$arg" + else + echo "Invalid file specified: $arg" + fi + done +fi + +PERFORMANCE_FOLDER="$(pwd)"/artifacts/inference/perfomance +mkdir -p "$PERFORMANCE_FOLDER" +result_file=$PERFORMANCE_FOLDER/result.txt + +cd "$VAI_LIBRARY_SAMPLES_PATH" || exit + +EVAL_APP=test_performance_$VAI_SAMPLES_POSTFIX +build_if_not_exists $VAI_LIBRARY_SAMPLES_PATH $EVAL_APP + +./$EVAL_APP $MODEL_PATH $filepaths_list | tee $result_file diff --git a/model_zoo/models/object_detection/tf_yolov4/scripts/quality.sh b/model_zoo/models/object_detection/tf_yolov4/scripts/quality.sh new file mode 100644 index 000000000..b4c0d041c --- /dev/null +++ b/model_zoo/models/object_detection/tf_yolov4/scripts/quality.sh @@ -0,0 +1,49 @@ +#!/bin/bash + +source config.env +source ../../../scripts/build.sh + + +display_help() { + echo "Usage: $0 <inference_result> <ground_truth> [--batch] [--dataset]" + echo "" + echo "Evaluate image quality based on inference results and ground truth." + echo "" + echo "Positional arguments:" + echo " inference_result Path to the inference result image or folder" + echo " ground_truth Path to the ground truth image or folder" + echo "" + echo "Optional arguments:" + echo " --batch Evaluate a folder (default: individual images)" + echo " --dataset Evaluate Cityscapes dataset" + echo "" + +} +if [ -z "$1" ] || [ "$1" == "-h" ] || [ "$1" == "--help" ]; then + display_help + exit 0 +fi +bash scripts/setup_venv.sh + +QUALITY_FOLDER="$(pwd)"/artifacts/inference/quality +mkdir -p "$QUALITY_FOLDER" +result_file=$QUALITY_FOLDER/metrics.txt + +inference_result="$1" +ground_truth="$2" +dataset="" +coco="" + +if [[ "$3" == "--batch" ]]; then + dataset="--dataset" +fi + +if [[ "$3" == "--dataset" ]]; then + coco="--coco" +fi + +if [[ "$4" == "--dataset" ]]; then + coco="--coco" +fi + +python src/quality.py $inference_result $ground_truth $dataset $coco | tee $result_file diff --git a/model_zoo/models/object_detection/tf_yolov4/scripts/setup_venv.sh b/model_zoo/models/object_detection/tf_yolov4/scripts/setup_venv.sh new file mode 100644 index 000000000..a55316207 --- /dev/null +++ b/model_zoo/models/object_detection/tf_yolov4/scripts/setup_venv.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +python3 -m venv .venv +source .venv/bin/activate +pip install -r requirements.txt \ No newline at end of file diff --git a/model_zoo/models/object_detection/tf_yolov4/src/quality.py b/model_zoo/models/object_detection/tf_yolov4/src/quality.py new file mode 100644 index 000000000..9f39546df --- /dev/null +++ b/model_zoo/models/object_detection/tf_yolov4/src/quality.py @@ -0,0 +1,107 @@ +import argparse +import os +import numpy as np +from PIL import Image + + +def compute_iou(prediction: np.ndarray, ground_truth: np.ndarray) -> float: + """ + Compute Intersection over Union (IoU) between prediction and ground truth masks. + """ + intersection = np.logical_and(prediction, ground_truth) + union = np.logical_or(prediction, ground_truth) + iou = np.sum(intersection) / np.sum(union) + return iou + + +def compute_pixel_accuracy(prediction: np.ndarray, ground_truth: np.ndarray) -> float: + """ + Compute Pixel-wise Accuracy between prediction and ground truth masks. + """ + correct_pixels = np.sum(prediction == ground_truth) + total_pixels = np.prod(prediction.shape) + accuracy = correct_pixels / total_pixels + return accuracy + + +def evaluate_images(prediction_path: str, ground_truth_path: str) -> tuple[float, float]: + """ + Evaluate IoU and Pixel-wise Accuracy for two individual images. + """ + prediction = np.array(Image.open(prediction_path)) + ground_truth = np.array(Image.open(ground_truth_path)) + + iou = compute_iou(prediction, ground_truth) + accuracy = compute_pixel_accuracy(prediction, ground_truth) + + return iou, accuracy + + +def evaluate_dataset(predictions_folder: str, ground_truth_folder: str) -> tuple[float, float]: + """ + Evaluate mean IoU and mean Pixel-wise Accuracy for a dataset. + """ + iou_list = [] + accuracy_list = [] + + for prediction_file in os.listdir(predictions_folder): + prediction_path = os.path.join(predictions_folder, prediction_file) + ground_truth_path = os.path.join(ground_truth_folder, prediction_file) + + iou, accuracy = evaluate_images(prediction_path, ground_truth_path) + iou_list.append(iou) + accuracy_list.append(accuracy) + + mean_iou = np.mean(iou_list) + mean_accuracy = np.mean(accuracy_list) + + return mean_iou, mean_accuracy + + +def evaluate_coco(results_folder: str, cityscapes_folder: str) -> tuple[float, float]: + """ + Evaluate mean IoU and mean Pixel-wise Accuracy for COCO dataset. + """ + predictions_folder = os.path.join(results_folder, 'predictions') + ground_truth_folder = os.path.join(cityscapes_folder, 'gtFine') + + mean_iou, mean_accuracy = evaluate_dataset(predictions_folder, ground_truth_folder) + + return mean_iou, mean_accuracy + + + +if __name__ == '__main__': + parser = argparse.ArgumentParser(description='Model evaluation script') + parser.add_argument('inference_result', help='Path to the inference result image') + parser.add_argument('ground_truth', help='Path to the ground truth image') + parser.add_argument('--dataset', action='store_true', help='Evaluate a dataset') + parser.add_argument('--coco', action='store_true', help='Evaluate Coco dataset') + args = parser.parse_args() + + if args.coco: + + results_folder = args.inference_result + coco_folder = args.ground_truth + + mean_iou, mean_accuracy = evaluate_coco(results_folder, coco_folder) + + print(f"Mean IoU: {mean_iou}") + print(f"Mean Pixel-wise Accuracy: {mean_accuracy}") + else: + if args.dataset: + predictions_folder = args.inference_result + ground_truth_folder = args.ground_truth + + mean_iou, mean_accuracy = evaluate_dataset(predictions_folder, ground_truth_folder) + + print(f"Mean IoU: {mean_iou}") + print(f"Mean Pixel-wise Accuracy: {mean_accuracy}") + else: + inference_result_path = args.inference_result + ground_truth_path = args.ground_truth + + iou, accuracy = evaluate_images(inference_result_path, ground_truth_path) + + print(f"IoU: {iou}") + print(f"Pixel-wise Accuracy: {accuracy}") diff --git a/model_zoo/models/segmentation/pt_HRNet/README.md b/model_zoo/models/segmentation/pt_HRNet/README.md new file mode 100644 index 000000000..a5cef85e3 --- /dev/null +++ b/model_zoo/models/segmentation/pt_HRNet/README.md @@ -0,0 +1,140 @@ +# Contents + +- [Contents](#contents) +- [Model Description](#model-description) + - [Description](#description) + - [Paper](#paper) +- [Model Architecture](#model-architecture) +- [Dataset](#dataset) +- [Features](#features) +- [Environment Requirements](#environment-requirements) +- [Quick Start](#quick-start) +- [Script Description](#script-description) + - [Structure](#structure) + - [Inference Process](#inference-process) +- [Quality](#quality) +- [Performance](#performance) +- [Links](#links) +- [Vitis AI Model Zoo Homepage](#vitis-ai-model-zoo-homepage) + +# Model Description + +## Description +HRNet is a deep learning model designed for visual recognition tasks such as object detection and segmentation. +## Paper + + Wang, Jingdong, et al. "Deep high-resolution representation learning for visual recognition." + IEEE transactions on pattern analysis and machine intelligence 43.10 (2020): 3349-3364. + Link: https://arxiv.org/abs/1908.07919v2 + +# Model Architecture +HRNet's architecture consists of parallel multi-resolution streams that process the input image at different levels of spatial resolution. +Unlike traditional convolutional neural networks that downsample the resolution early in the network, +HRNet maintains high-resolution feature maps throughout its processing stages. +It employs a high-to-low resolution fusion strategy, where features from lower resolution streams are upsampled +and fused with features from higher resolution streams to preserve fine-grained details. +# Dataset + +Dataset for testing: CityScapes. The Cityscapes dataset is a widely used benchmark dataset for semantic understanding of urban street scenes. +It focuses on high-quality pixel-level annotations for various urban objects, including cars, pedestrians, roads, buildings, traffic signs, and more. + +Link to download the dataset: https://www.cityscapes-dataset.com/ + +# Features + +The notable features of the HRNet model: + +1. **Multi-resolution processing**: HRNet processes the input image at multiple resolutions simultaneously, allowing it to capture both global context and fine-grained details. +2. **High-resolution representation learning**: By maintaining high-resolution feature maps, HRNet preserves fine details that are crucial for accurate visual recognition. +3. **High-to-low resolution fusion**: HRNet employs a fusion strategy to combine features from different resolution streams, enabling the integration of both local and global information. +4. **Scale-aware training**: HRNet incorporates scale-aware training techniques to effectively handle objects of different scales, enhancing its ability to detect and segment objects of varying sizes. + +# Environment Requirements + +Before running the model inference, make sure that the latest version of +[Vitis-AI](https://xilinx.github.io/Vitis-AI/3.5/html/docs/install/install.html) is installed and the host computer fully supports +Xilinx FPGA/ACAP and the appropriate accelerator is installed correctly, e.g. Alveo V70. + +# Quick Start + +Follow the [Quick Start guide](../../../README.md#quick-start) in the main Model Zoo README: + +1. Install the Vitis-AI +2. Run the docker container +3. Download test data +4. Run the inference of the model + +# Script Description + +## Structure + +```text +pt_HRNet # model name +├── artifacts # artifacts - will be created during the inference process +│ ├── inference # folder with results values of inference and evaluation +│ │ ├── performance # model productivity measurements +│ │ ├── quality # model quality measurements +│ │ ├── results # model inference results files +│ │ └── vaitrace # vaitrace profiling performance reports +│ └── models # folder with model meta and .xmodel executable files +├── scripts # scripts for model processing +│ ├── inference.sh # model inference +│ ├── performance.sh # model performance report +│ ├── quality.sh # model quality report +│ └── setup_venv.sh # virtual environment creation +├── src # python supporting scripts +│ └── quality.py # quality metric calculation +├── config.env # model configuration - env variables +├── README.md +└── requirements.txt # requirements for the virtual environment +``` + +## Inference Process + +- Native inference - follow the [Quick Start guide](../../../README.md#quick-start) in the main Model Zoo +- AMD Server + +# Quality + +Use the following script: + +```bash + # Format: bash scripts/quality.sh <inference_result> <ground_truth> [--batch] [--dataset] + # where: + # inference_result - Path to the inference result image or folder. + # ground_truth - Path to the ground truth image or folder + # --batch - Evaluate a dataset (default: individual images) + # --dataset - Evaluate Cityscapes dataset + # The metric values will be stored in the artifacts/inference/quality/metrics.txt file + # Example: + + bash scripts/quality.sh $MODEL_FOLDER/artifacts/inference/results/ /workspace/Vitis-AI-Library/samples/segmentation/images/ --dataset +``` + +# Performance + +- You can profile the model using [vaitrace](https://docs.xilinx.com/r/en-US/ug1414-vitis-ai/Starting-a-Simple-Trace-with-vaitrace) perfomance report, + the script and format described in the [Quick Start guide](../../../README.md#vaitrace) in the main Model Zoo. +- To get performance metrics (FPS, E2E, DPU_MEAN), use: + ```bash + # Format: bash scripts/performance.sh <MODEL_PATH> [<image paths list>] + # where: + # <MODEL_PATH> - the absolute path to the .xmodel + # [<image paths list>] - space-separated list of image absolute paths + # Alternatively, you can pass --dataset option with the folder where images are stored. + # Example: + + bash scripts/performance.sh $MODEL_FOLDER/artifacts/models/HRNet_pt/HRNet_pt.xmodel --dataset /workspace/Vitis-AI-Library/samples/segmentation/images/ + ``` + + +# Links + +- HRNet Architecture (PapersWithCode): https://paperswithcode.com/method/hrnet +- Cityscapes dataset: https://www.cityscapes-dataset.com/ +- Panoptic Feature Pyramid Networks: https://arxiv.org/abs/1901.02446 +- Semantic segmentation benchmark on the Cityscapes (PapersWithCode): https://paperswithcode.com/sota/semantic-segmentation-on-cityscapes + +# Vitis AI Model Zoo Homepage + +Check the official Vitis AI Model Zoo [homepage](https://github.com/Xilinx/Vitis-AI/tree/master/model_zoo). diff --git a/model_zoo/models/segmentation/pt_HRNet/config.env b/model_zoo/models/segmentation/pt_HRNet/config.env new file mode 100644 index 000000000..c94224040 --- /dev/null +++ b/model_zoo/models/segmentation/pt_HRNet/config.env @@ -0,0 +1,5 @@ +#!/bin/bash + +VITIS_ROOT_PATH=/workspace +VAI_LIBRARY_SAMPLES_PATH=$VITIS_ROOT_PATH/examples/vai_library/samples/segmentation +VAI_SAMPLES_POSTFIX=segmentation diff --git a/model_zoo/models/segmentation/pt_HRNet/requirements.txt b/model_zoo/models/segmentation/pt_HRNet/requirements.txt new file mode 100644 index 000000000..24ce15ab7 --- /dev/null +++ b/model_zoo/models/segmentation/pt_HRNet/requirements.txt @@ -0,0 +1 @@ +numpy diff --git a/model_zoo/models/segmentation/pt_HRNet/scripts/inference.sh b/model_zoo/models/segmentation/pt_HRNet/scripts/inference.sh new file mode 100644 index 000000000..a0e4c4ddd --- /dev/null +++ b/model_zoo/models/segmentation/pt_HRNet/scripts/inference.sh @@ -0,0 +1,79 @@ +#!/bin/bash + +source config.env +source ../../../scripts/build.sh + +display_help() { + echo "Usage: $0 MODEL_PATH [OPTIONS] [IMAGE PATHS]" + echo " $0 MODEL_PATH --dataset DIRECTORY" + echo + echo "Options:" + echo " --dataset DIRECTORY Specify a directory containing images" + echo " -h, --help Display this help message" + echo + echo "Arguments:" + echo " MODEL_PATH Path to the model" + echo " IMAGE PATHS List of image paths" + echo + +} + +process_image() { + echo "$1" >> $filepaths_list +} + +process_directory() { + local directory="$1" + find "$directory" -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" \) | while read -r file; do + process_image "$file" + done +} + +if [ -z "$1" ] || [ "$1" == "-h" ] || [ "$1" == "--help" ]; then + display_help + exit 0 +fi + +MODEL_PATH="$1" +shift + +filepaths_list="$(pwd)"/artifacts/inference/filepaths.list +if [ -f "$filepaths_list" ]; then + rm "$filepaths_list" +fi + +if [ "$1" == "--dataset" ]; then + if [ -z "$2" ]; then + echo "No directory specified for --dataset option" + exit 1 + elif [ "$2" == "-h" ] || [ "$2" == "--help" ]; then + display_help + exit 0 + elif [ -d "$2" ]; then + process_directory "$2" + else + echo "Invalid directory specified: $2" + exit 1 + fi +else + for arg in "$@"; do + if [ "$arg" == "-h" ] || [ "$arg" == "--help" ]; then + display_help + exit 0 + elif [ -f "$arg" ]; then + process_image "$arg" + else + echo "Invalid file specified: $arg" + fi + done +fi + +RESULTS_FOLDER="$(pwd)"/artifacts/inference/results +mkdir -p "$RESULTS_FOLDER" + +cd "$VAI_LIBRARY_SAMPLES_PATH" || exit + +EVAL_APP=test_accuracy_$VAI_SAMPLES_POSTFIX +build_if_not_exists $VAI_LIBRARY_SAMPLES_PATH $EVAL_APP + +./$EVAL_APP $MODEL_PATH $filepaths_list $RESULTS_FOLDER diff --git a/model_zoo/models/segmentation/pt_HRNet/scripts/performance.sh b/model_zoo/models/segmentation/pt_HRNet/scripts/performance.sh new file mode 100644 index 000000000..439a97d0a --- /dev/null +++ b/model_zoo/models/segmentation/pt_HRNet/scripts/performance.sh @@ -0,0 +1,80 @@ +#!/bin/bash + +source config.env +source ../../../scripts/build.sh + +display_help() { + echo "Usage: $0 MODEL_PATH [OPTIONS] [IMAGE PATHS]" + echo " $0 MODEL_PATH --dataset DIRECTORY" + echo + echo "Options:" + echo " --dataset DIRECTORY Specify a directory containing images" + echo " -h, --help Display this help message" + echo + echo "Arguments:" + echo " MODEL_PATH Path to the model" + echo " IMAGE PATHS List of image paths" + echo + +} + +process_image() { + echo "$1" >> $filepaths_list +} + +process_directory() { + local directory="$1" + find "$directory" -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" \) | while read -r file; do + process_image "$file" + done +} + +if [ -z "$1" ] || [ "$1" == "-h" ] || [ "$1" == "--help" ]; then + display_help + exit 0 +fi + +MODEL_PATH="$1" +shift + +filepaths_list="$(pwd)"/artifacts/inference/filepaths.list +if [ -f "$filepaths_list" ]; then + rm "$filepaths_list" +fi + +if [ "$1" == "--dataset" ]; then + if [ -z "$2" ]; then + echo "No directory specified for --dataset option" + exit 1 + elif [ "$2" == "-h" ] || [ "$2" == "--help" ]; then + display_help + exit 0 + elif [ -d "$2" ]; then + process_directory "$2" + else + echo "Invalid directory specified: $2" + exit 1 + fi +else + for arg in "$@"; do + if [ "$arg" == "-h" ] || [ "$arg" == "--help" ]; then + display_help + exit 0 + elif [ -f "$arg" ]; then + process_image "$arg" + else + echo "Invalid file specified: $arg" + fi + done +fi + +PERFORMANCE_FOLDER="$(pwd)"/artifacts/inference/perfomance +mkdir -p "$PERFORMANCE_FOLDER" +result_file=$PERFORMANCE_FOLDER/result.txt + +cd "$VAI_LIBRARY_SAMPLES_PATH" || exit + +EVAL_APP=test_performance_$VAI_SAMPLES_POSTFIX +build_if_not_exists $VAI_LIBRARY_SAMPLES_PATH $EVAL_APP + +./$EVAL_APP $MODEL_PATH $filepaths_list | tee $result_file diff --git a/model_zoo/models/segmentation/pt_HRNet/scripts/quality.sh b/model_zoo/models/segmentation/pt_HRNet/scripts/quality.sh new file mode 100644 index 000000000..d1b31db5b --- /dev/null +++ b/model_zoo/models/segmentation/pt_HRNet/scripts/quality.sh @@ -0,0 +1,49 @@ +#!/bin/bash + +source config.env +source ../../../scripts/build.sh + + +display_help() { + echo "Usage: $0 <inference_result> <ground_truth> [--batch] [--dataset]" + echo "" + echo "Evaluate image quality based on inference results and ground truth." + echo "" + echo "Positional arguments:" + echo " inference_result Path to the inference result image or folder" + echo " ground_truth Path to the ground truth image or folder" + echo "" + echo "Optional arguments:" + echo " --batch Evaluate a folder (default: individual images)" + echo " --dataset Evaluate Cityscapes dataset" + echo "" + +} +if [ -z "$1" ] || [ "$1" == "-h" ] || [ "$1" == "--help" ]; then + display_help + exit 0 +fi +bash scripts/setup_venv.sh + +QUALITY_FOLDER="$(pwd)"/artifacts/inference/quality +mkdir -p "$QUALITY_FOLDER" +result_file=$QUALITY_FOLDER/metrics.txt + +inference_result="$1" +ground_truth="$2" +dataset="" +cityscapes="" + +if [[ "$3" == "--batch" ]]; then + dataset="--dataset" +fi + +if [[ "$3" == "--dataset" ]]; then + cityscapes="--cityscapes" +fi + +if [[ "$4" == "--dataset" ]]; then + cityscapes="--cityscapes" +fi + +python src/quality.py $inference_result $ground_truth $dataset $cityscapes | tee $result_file diff --git a/model_zoo/models/segmentation/pt_HRNet/scripts/setup_venv.sh b/model_zoo/models/segmentation/pt_HRNet/scripts/setup_venv.sh new file mode 100644 index 000000000..a55316207 --- /dev/null +++ b/model_zoo/models/segmentation/pt_HRNet/scripts/setup_venv.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +python3 -m venv .venv +source .venv/bin/activate +pip install -r requirements.txt \ No newline at end of file diff --git a/model_zoo/models/segmentation/pt_HRNet/src/quality.py b/model_zoo/models/segmentation/pt_HRNet/src/quality.py new file mode 100644 index 000000000..72079b1ef --- /dev/null +++ b/model_zoo/models/segmentation/pt_HRNet/src/quality.py @@ -0,0 +1,107 @@ +import argparse +import os +import numpy as np +from PIL import Image +from typing import Tuple + +def compute_iou(prediction: np.ndarray, ground_truth: np.ndarray) -> float: + """ + Compute Intersection over Union (IoU) between prediction and ground truth masks. + """ + intersection = np.logical_and(prediction, ground_truth) + union = np.logical_or(prediction, ground_truth) + iou = np.sum(intersection) / np.sum(union) + return iou + + +def compute_pixel_accuracy(prediction: np.ndarray, ground_truth: np.ndarray) -> float: + """ + Compute Pixel-wise Accuracy between prediction and ground truth masks. + """ + correct_pixels = np.sum(prediction == ground_truth) + total_pixels = np.prod(prediction.shape) + accuracy = correct_pixels / total_pixels + return accuracy + + +def evaluate_images(prediction_path: str, ground_truth_path: str) -> Tuple[float, float]: + """ + Evaluate IoU and Pixel-wise Accuracy for two individual images. + """ + prediction = np.array(Image.open(prediction_path)) + ground_truth = np.array(Image.open(ground_truth_path)) + + iou = compute_iou(prediction, ground_truth) + accuracy = compute_pixel_accuracy(prediction, ground_truth) + + return iou, accuracy + + +def evaluate_dataset(predictions_folder: str, ground_truth_folder: str) -> Tuple[float, float]: + """ + Evaluate mean IoU and mean Pixel-wise Accuracy for a dataset. + """ + iou_list = [] + accuracy_list = [] + + for prediction_file in os.listdir(predictions_folder): + prediction_path = os.path.join(predictions_folder, prediction_file) + ground_truth_path = os.path.join(ground_truth_folder, prediction_file) + + iou, accuracy = evaluate_images(prediction_path, ground_truth_path) + iou_list.append(iou) + accuracy_list.append(accuracy) + + mean_iou = np.mean(iou_list) + mean_accuracy = np.mean(accuracy_list) + + return mean_iou, mean_accuracy + + +def evaluate_cityscapes(results_folder: str, cityscapes_folder: str) -> Tuple[float, float]: + """ + Evaluate mean IoU and mean Pixel-wise Accuracy for Cityscapes dataset. + """ + predictions_folder = os.path.join(results_folder, 'predictions') + ground_truth_folder = os.path.join(cityscapes_folder, 'gtFine') + + mean_iou, mean_accuracy = evaluate_dataset(predictions_folder, ground_truth_folder) + + return mean_iou, mean_accuracy + + + +if __name__ == '__main__': + parser = argparse.ArgumentParser(description='Model evaluation script') + parser.add_argument('inference_result', help='Path to the inference result image') + parser.add_argument('ground_truth', help='Path to the ground truth image') + parser.add_argument('--dataset', action='store_true', help='Evaluate a dataset') + parser.add_argument('--cityscapes', action='store_true', help='Evaluate Cityscapes dataset') + args = parser.parse_args() + + if args.cityscapes: + + results_folder = args.inference_result + cityscapes_folder = args.ground_truth + + mean_iou, mean_accuracy = evaluate_cityscapes(results_folder, cityscapes_folder) + + print(f"Mean IoU: {mean_iou}") + print(f"Mean Pixel-wise Accuracy: {mean_accuracy}") + else: + if args.dataset: + predictions_folder = args.inference_result + ground_truth_folder = args.ground_truth + + mean_iou, mean_accuracy = evaluate_dataset(predictions_folder, ground_truth_folder) + + print(f"Mean IoU: {mean_iou}") + print(f"Mean Pixel-wise Accuracy: {mean_accuracy}") + else: + inference_result_path = args.inference_result + ground_truth_path = args.ground_truth + + iou, accuracy = evaluate_images(inference_result_path, ground_truth_path) + + print(f"IoU: {iou}") + print(f"Pixel-wise Accuracy: {accuracy}") diff --git a/model_zoo/models/segmentation/tf2_2D-UNet/README.md b/model_zoo/models/segmentation/tf2_2D-UNet/README.md new file mode 100644 index 000000000..6928cecc8 --- /dev/null +++ b/model_zoo/models/segmentation/tf2_2D-UNet/README.md @@ -0,0 +1,138 @@ +# Contents + +- [Contents](#contents) +- [Model Description](#model-description) + - [Description](#description) + - [Paper](#paper) +- [Model Architecture](#model-architecture) +- [Dataset](#dataset) +- [Features](#features) +- [Environment Requirements](#environment-requirements) +- [Quick Start](#quick-start) +- [Script Description](#script-description) + - [Structure](#structure) + - [Inference Process](#inference-process) +- [Quality](#quality) +- [Performance](#performance) +- [Links](#links) +- [Vitis AI Model Zoo Homepage](#vitis-ai-model-zoo-homepage) + +# Model Description + +## Description +The 2D U-Net model is a convolutional neural network architecture designed for image segmentation tasks. +It utilizes an encoder-decoder structure with skip connections, enabling it to effectively capture both local and global features in the input image. +## Paper + + Ronneberger, Olaf, Philipp Fischer, and Thomas Brox. "U-net: Convolutional networks for biomedical image segmentation." + Medical Image Computing and Computer-Assisted Intervention–MICCAI 2015: 18th International Conference, Munich, Germany, October 5-9, 2015, Proceedings, Part III 18. Springer International Publishing, 2015. + Link: https://arxiv.org/abs/1505.04597 + +# Model Architecture +The architecture of the 2D U-Net model consists of two main parts: the contracting path (encoder) and the expansive path (decoder). +The encoder consists of multiple convolutional and pooling layers, gradually reducing the spatial dimensions of the input +image while increasing the number of channels. The decoder then upsamples the encoded features using transposed convolutions +to recover the original input size. Skip connections are established between corresponding layers in the encoder and decoder to combine local and global information. +The final output is a pixel-wise segmentation map. +# Dataset + +Dataset for testing: CityScapes. The Cityscapes dataset is a widely used benchmark dataset for semantic understanding of urban street scenes. +It focuses on high-quality pixel-level annotations for various urban objects, including cars, pedestrians, roads, buildings, traffic signs, and more. + +Link to download the dataset: https://www.cityscapes-dataset.com/ + +# Features + +The notable features of the HRNet model: + +1. **Skip connections** +2. **Transposed convolutions** +3. **Contracting and expanding paths**: The contracting path captures context and reduces the spatial resolution, while the expanding path recovers the spatial resolution and localizes the features. +# Environment Requirements + +Before running the model inference, make sure that the latest version of +[Vitis-AI](https://xilinx.github.io/Vitis-AI/3.5/html/docs/install/install.html) is installed and the host computer fully supports +Xilinx FPGA/ACAP and the appropriate accelerator is installed correctly, e.g. Alveo V70. + +# Quick Start + +Follow the [Quick Start guide](../../../README.md#quick-start) in the main Model Zoo README: + +1. Install the Vitis-AI +2. Run the docker container +3. Download test data +4. Run the inference of the model + +# Script Description + +## Structure + +```text +tf2_2D-UNet # model name +├── artifacts # artifacts - will be created during the inference process +│ ├── inference # folder with results values of inference and evaluation +│ │ ├── performance # model productivity measurements +│ │ ├── quality # model quality measurements +│ │ ├── results # model inference results files +│ │ └── vaitrace # vaitrace profiling performance reports +│ └── models # folder with model meta and .xmodel executable files +├── scripts # scripts for model processing +│ ├── inference.sh # model inference +│ ├── performance.sh # model performance report +│ ├── quality.sh # model quality report +│ └── setup_venv.sh # virtual environment creation +├── src # python supporting scripts +│ └── quality.py # quality metric calculation +├── config.env # model configuration - env variables +├── README.md +└── requirements.txt # requirements for the virtual environment +``` + +## Inference Process + +- Native inference - follow the [Quick Start guide](../../../README.md#quick-start) in the main Model Zoo +- AMD Server + +# Quality + +Use the following script: + +```bash + # Format: bash scripts/quality.sh <inference_result> <ground_truth> [--batch] [--dataset] + # where: + # inference_result - Path to the inference result image or folder. + # ground_truth - Path to the ground truth image or folder + # --batch - Evaluate a dataset (default: individual images) + # --dataset - Evaluate Cityscapes dataset + # The metric values will be stored in the artifacts/inference/quality/metrics.txt file + # Example: + + bash scripts/quality.sh $MODEL_FOLDER/artifacts/inference/results/ /workspace/Vitis-AI-Library/samples/segmentation/images/ --dataset +``` + +# Performance + +- You can profile the model using [vaitrace](https://docs.xilinx.com/r/en-US/ug1414-vitis-ai/Starting-a-Simple-Trace-with-vaitrace) perfomance report, + the script and format described in the [Quick Start guide](../../../README.md#vaitrace) in the main Model Zoo. +- To get performance metrics (FPS, E2E, DPU_MEAN), use: + ```bash + # Format: bash scripts/performance.sh <MODEL_PATH> [<image paths list>] + # where: + # <MODEL_PATH> - the absolute path to the .xmodel + # [<image paths list>] - space-separated list of image absolute paths + # Alternatively, you can pass --dataset option with the folder where images are stored. + # Example: + + bash scripts/performance.sh $MODEL_FOLDER/artifacts/models/unet2d_tf2/unet2d_tf2.xmodel --dataset /workspace/Vitis-AI-Library/samples/segmentation/images/ + ``` + + +# Links + +- U-Net: Convolutional Networks for Biomedical Image Segmentation: https://arxiv.org/abs/1505.04597 +- Cityscapes dataset: https://www.cityscapes-dataset.com/ +- Semantic segmentation benchmark on the Cityscapes (PapersWithCode): https://paperswithcode.com/sota/semantic-segmentation-on-cityscapes + +# Vitis AI Model Zoo Homepage + +Check the official Vitis AI Model Zoo [homepage](https://github.com/Xilinx/Vitis-AI/tree/master/model_zoo). diff --git a/model_zoo/models/segmentation/tf2_2D-UNet/config.env b/model_zoo/models/segmentation/tf2_2D-UNet/config.env new file mode 100644 index 000000000..c94224040 --- /dev/null +++ b/model_zoo/models/segmentation/tf2_2D-UNet/config.env @@ -0,0 +1,5 @@ +#!/bin/bash + +VITIS_ROOT_PATH=/workspace +VAI_LIBRARY_SAMPLES_PATH=$VITIS_ROOT_PATH/examples/vai_library/samples/segmentation +VAI_SAMPLES_POSTFIX=segmentation diff --git a/model_zoo/models/segmentation/tf2_2D-UNet/requirements.txt b/model_zoo/models/segmentation/tf2_2D-UNet/requirements.txt new file mode 100644 index 000000000..24ce15ab7 --- /dev/null +++ b/model_zoo/models/segmentation/tf2_2D-UNet/requirements.txt @@ -0,0 +1 @@ +numpy diff --git a/model_zoo/models/segmentation/tf2_2D-UNet/scripts/inference.sh b/model_zoo/models/segmentation/tf2_2D-UNet/scripts/inference.sh new file mode 100644 index 000000000..a0e4c4ddd --- /dev/null +++ b/model_zoo/models/segmentation/tf2_2D-UNet/scripts/inference.sh @@ -0,0 +1,79 @@ +#!/bin/bash + +source config.env +source ../../../scripts/build.sh + +display_help() { + echo "Usage: $0 MODEL_PATH [OPTIONS] [IMAGE PATHS]" + echo " $0 MODEL_PATH --dataset DIRECTORY" + echo + echo "Options:" + echo " --dataset DIRECTORY Specify a directory containing images" + echo " -h, --help Display this help message" + echo + echo "Arguments:" + echo " MODEL_PATH Path to the model" + echo " IMAGE PATHS List of image paths" + echo + +} + +process_image() { + echo "$1" >> $filepaths_list +} + +process_directory() { + local directory="$1" + find "$directory" -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" \) | while read -r file; do + process_image "$file" + done +} + +if [ -z "$1" ] || [ "$1" == "-h" ] || [ "$1" == "--help" ]; then + display_help + exit 0 +fi + +MODEL_PATH="$1" +shift + +filepaths_list="$(pwd)"/artifacts/inference/filepaths.list +if [ -f "$filepaths_list" ]; then + rm "$filepaths_list" +fi + +if [ "$1" == "--dataset" ]; then + if [ -z "$2" ]; then + echo "No directory specified for --dataset option" + exit 1 + elif [ "$2" == "-h" ] || [ "$2" == "--help" ]; then + display_help + exit 0 + elif [ -d "$2" ]; then + process_directory "$2" + else + echo "Invalid directory specified: $2" + exit 1 + fi +else + for arg in "$@"; do + if [ "$arg" == "-h" ] || [ "$arg" == "--help" ]; then + display_help + exit 0 + elif [ -f "$arg" ]; then + process_image "$arg" + else + echo "Invalid file specified: $arg" + fi + done +fi + +RESULTS_FOLDER="$(pwd)"/artifacts/inference/results +mkdir -p "$RESULTS_FOLDER" + +cd "$VAI_LIBRARY_SAMPLES_PATH" || exit + +EVAL_APP=test_accuracy_$VAI_SAMPLES_POSTFIX +build_if_not_exists $VAI_LIBRARY_SAMPLES_PATH $EVAL_APP + +./$EVAL_APP $MODEL_PATH $filepaths_list $RESULTS_FOLDER diff --git a/model_zoo/models/segmentation/tf2_2D-UNet/scripts/performance.sh b/model_zoo/models/segmentation/tf2_2D-UNet/scripts/performance.sh new file mode 100644 index 000000000..439a97d0a --- /dev/null +++ b/model_zoo/models/segmentation/tf2_2D-UNet/scripts/performance.sh @@ -0,0 +1,80 @@ +#!/bin/bash + +source config.env +source ../../../scripts/build.sh + +display_help() { + echo "Usage: $0 MODEL_PATH [OPTIONS] [IMAGE PATHS]" + echo " $0 MODEL_PATH --dataset DIRECTORY" + echo + echo "Options:" + echo " --dataset DIRECTORY Specify a directory containing images" + echo " -h, --help Display this help message" + echo + echo "Arguments:" + echo " MODEL_PATH Path to the model" + echo " IMAGE PATHS List of image paths" + echo + +} + +process_image() { + echo "$1" >> $filepaths_list +} + +process_directory() { + local directory="$1" + find "$directory" -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" \) | while read -r file; do + process_image "$file" + done +} + +if [ -z "$1" ] || [ "$1" == "-h" ] || [ "$1" == "--help" ]; then + display_help + exit 0 +fi + +MODEL_PATH="$1" +shift + +filepaths_list="$(pwd)"/artifacts/inference/filepaths.list +if [ -f "$filepaths_list" ]; then + rm "$filepaths_list" +fi + +if [ "$1" == "--dataset" ]; then + if [ -z "$2" ]; then + echo "No directory specified for --dataset option" + exit 1 + elif [ "$2" == "-h" ] || [ "$2" == "--help" ]; then + display_help + exit 0 + elif [ -d "$2" ]; then + process_directory "$2" + else + echo "Invalid directory specified: $2" + exit 1 + fi +else + for arg in "$@"; do + if [ "$arg" == "-h" ] || [ "$arg" == "--help" ]; then + display_help + exit 0 + elif [ -f "$arg" ]; then + process_image "$arg" + else + echo "Invalid file specified: $arg" + fi + done +fi + +PERFORMANCE_FOLDER="$(pwd)"/artifacts/inference/perfomance +mkdir -p "$PERFORMANCE_FOLDER" +result_file=$PERFORMANCE_FOLDER/result.txt + +cd "$VAI_LIBRARY_SAMPLES_PATH" || exit + +EVAL_APP=test_performance_$VAI_SAMPLES_POSTFIX +build_if_not_exists $VAI_LIBRARY_SAMPLES_PATH $EVAL_APP + +./$EVAL_APP $MODEL_PATH $filepaths_list | tee $result_file diff --git a/model_zoo/models/segmentation/tf2_2D-UNet/scripts/quality.sh b/model_zoo/models/segmentation/tf2_2D-UNet/scripts/quality.sh new file mode 100644 index 000000000..d1b31db5b --- /dev/null +++ b/model_zoo/models/segmentation/tf2_2D-UNet/scripts/quality.sh @@ -0,0 +1,49 @@ +#!/bin/bash + +source config.env +source ../../../scripts/build.sh + + +display_help() { + echo "Usage: $0 <inference_result> <ground_truth> [--batch] [--dataset]" + echo "" + echo "Evaluate image quality based on inference results and ground truth." + echo "" + echo "Positional arguments:" + echo " inference_result Path to the inference result image or folder" + echo " ground_truth Path to the ground truth image or folder" + echo "" + echo "Optional arguments:" + echo " --batch Evaluate a folder (default: individual images)" + echo " --dataset Evaluate Cityscapes dataset" + echo "" + +} +if [ -z "$1" ] || [ "$1" == "-h" ] || [ "$1" == "--help" ]; then + display_help + exit 0 +fi +bash scripts/setup_venv.sh + +QUALITY_FOLDER="$(pwd)"/artifacts/inference/quality +mkdir -p "$QUALITY_FOLDER" +result_file=$QUALITY_FOLDER/metrics.txt + +inference_result="$1" +ground_truth="$2" +dataset="" +cityscapes="" + +if [[ "$3" == "--batch" ]]; then + dataset="--dataset" +fi + +if [[ "$3" == "--dataset" ]]; then + cityscapes="--cityscapes" +fi + +if [[ "$4" == "--dataset" ]]; then + cityscapes="--cityscapes" +fi + +python src/quality.py $inference_result $ground_truth $dataset $cityscapes | tee $result_file diff --git a/model_zoo/models/segmentation/tf2_2D-UNet/scripts/setup_venv.sh b/model_zoo/models/segmentation/tf2_2D-UNet/scripts/setup_venv.sh new file mode 100644 index 000000000..a55316207 --- /dev/null +++ b/model_zoo/models/segmentation/tf2_2D-UNet/scripts/setup_venv.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +python3 -m venv .venv +source .venv/bin/activate +pip install -r requirements.txt \ No newline at end of file diff --git a/model_zoo/models/segmentation/tf2_2D-UNet/src/quality.py b/model_zoo/models/segmentation/tf2_2D-UNet/src/quality.py new file mode 100644 index 000000000..72079b1ef --- /dev/null +++ b/model_zoo/models/segmentation/tf2_2D-UNet/src/quality.py @@ -0,0 +1,107 @@ +import argparse +import os +import numpy as np +from PIL import Image +from typing import Tuple + +def compute_iou(prediction: np.ndarray, ground_truth: np.ndarray) -> float: + """ + Compute Intersection over Union (IoU) between prediction and ground truth masks. + """ + intersection = np.logical_and(prediction, ground_truth) + union = np.logical_or(prediction, ground_truth) + iou = np.sum(intersection) / np.sum(union) + return iou + + +def compute_pixel_accuracy(prediction: np.ndarray, ground_truth: np.ndarray) -> float: + """ + Compute Pixel-wise Accuracy between prediction and ground truth masks. + """ + correct_pixels = np.sum(prediction == ground_truth) + total_pixels = np.prod(prediction.shape) + accuracy = correct_pixels / total_pixels + return accuracy + + +def evaluate_images(prediction_path: str, ground_truth_path: str) -> Tuple[float, float]: + """ + Evaluate IoU and Pixel-wise Accuracy for two individual images. + """ + prediction = np.array(Image.open(prediction_path)) + ground_truth = np.array(Image.open(ground_truth_path)) + + iou = compute_iou(prediction, ground_truth) + accuracy = compute_pixel_accuracy(prediction, ground_truth) + + return iou, accuracy + + +def evaluate_dataset(predictions_folder: str, ground_truth_folder: str) -> Tuple[float, float]: + """ + Evaluate mean IoU and mean Pixel-wise Accuracy for a dataset. + """ + iou_list = [] + accuracy_list = [] + + for prediction_file in os.listdir(predictions_folder): + prediction_path = os.path.join(predictions_folder, prediction_file) + ground_truth_path = os.path.join(ground_truth_folder, prediction_file) + + iou, accuracy = evaluate_images(prediction_path, ground_truth_path) + iou_list.append(iou) + accuracy_list.append(accuracy) + + mean_iou = np.mean(iou_list) + mean_accuracy = np.mean(accuracy_list) + + return mean_iou, mean_accuracy + + +def evaluate_cityscapes(results_folder: str, cityscapes_folder: str) -> Tuple[float, float]: + """ + Evaluate mean IoU and mean Pixel-wise Accuracy for Cityscapes dataset. + """ + predictions_folder = os.path.join(results_folder, 'predictions') + ground_truth_folder = os.path.join(cityscapes_folder, 'gtFine') + + mean_iou, mean_accuracy = evaluate_dataset(predictions_folder, ground_truth_folder) + + return mean_iou, mean_accuracy + + + +if __name__ == '__main__': + parser = argparse.ArgumentParser(description='Model evaluation script') + parser.add_argument('inference_result', help='Path to the inference result image') + parser.add_argument('ground_truth', help='Path to the ground truth image') + parser.add_argument('--dataset', action='store_true', help='Evaluate a dataset') + parser.add_argument('--cityscapes', action='store_true', help='Evaluate Cityscapes dataset') + args = parser.parse_args() + + if args.cityscapes: + + results_folder = args.inference_result + cityscapes_folder = args.ground_truth + + mean_iou, mean_accuracy = evaluate_cityscapes(results_folder, cityscapes_folder) + + print(f"Mean IoU: {mean_iou}") + print(f"Mean Pixel-wise Accuracy: {mean_accuracy}") + else: + if args.dataset: + predictions_folder = args.inference_result + ground_truth_folder = args.ground_truth + + mean_iou, mean_accuracy = evaluate_dataset(predictions_folder, ground_truth_folder) + + print(f"Mean IoU: {mean_iou}") + print(f"Mean Pixel-wise Accuracy: {mean_accuracy}") + else: + inference_result_path = args.inference_result + ground_truth_path = args.ground_truth + + iou, accuracy = evaluate_images(inference_result_path, ground_truth_path) + + print(f"IoU: {iou}") + print(f"Pixel-wise Accuracy: {accuracy}") diff --git a/model_zoo/models/super_resolution/pt_OFA-RCAN/README.md b/model_zoo/models/super_resolution/pt_OFA-RCAN/README.md new file mode 100644 index 000000000..ecbbe0bf8 --- /dev/null +++ b/model_zoo/models/super_resolution/pt_OFA-RCAN/README.md @@ -0,0 +1,145 @@ +# Contents + +- [Contents](#contents) +- [Model Description](#model-description) + - [Description](#description) + - [Paper](#paper) +- [Model Architecture](#model-architecture) +- [Dataset](#dataset) +- [Features](#features) +- [Environment Requirements](#environment-requirements) +- [Quick Start](#quick-start) +- [Script Description](#script-description) + - [Structure](#structure) + - [Inference Process](#inference-process) +- [Quality](#quality) +- [Performance](#performance) +- [Links](#links) +- [Vitis AI Model Zoo Homepage](#vitis-ai-model-zoo-homepage) + +# Model Description + +## Description + +The OFA-RCAN (Omnidirectional Feature Aggregation and Recursive Channel Attention Networks) is a deep learning model +designed for single-image super-resolution tasks. It leverages omnidirectional feature aggregation and recursive channel +attention mechanisms to effectively enhance the resolution and details of low-resolution images. + +## Paper + +Cai, Han, et al. "Once-for-all: Train one network and specialize it for efficient deployment." +arXiv preprint arXiv:1908.09791 (2019). Link: https://arxiv.org/abs/1908.09791 + +# Model Architecture + +The architecture of OFA-RCAN consists of two main components: the Omnidirectional Feature Aggregation module and +the Recursive Channel Attention module. The Omnidirectional Feature Aggregation module captures multi-scale features +by integrating multiple receptive fields, enabling the model to extract rich spatial information. +The Recursive Channel Attention module incorporates recursive connections and channel attention mechanisms to refine +feature representations and selectively enhance important features for high-resolution reconstruction. + +# Dataset + +Dataset for testing: DIV2K. The DIV2K dataset is a benchmark dataset consisting of 2,000 diverse high-quality images with a resolution of 2K. +It is specifically designed for evaluating single-image super-resolution models + +Link to download the dataset: https://data.vision.ee.ethz.ch/cvl/DIV2K/ + +# Features + +The notable features of the OFA-RCAN model: + +1. **Omnidirectional Feature Aggregation**: The model incorporates multiple receptive fields to capture features at different scales, allowing it to effectively extract spatial information. +2. **Recursive Channel Attention**: By using recursive connections and channel attention mechanisms, the model iteratively refines feature representations and selectively enhances important features. +3. **Efficient and Scalable**: Despite its high performance, the model is designed to be computationally efficient and scalable, making it practical for real-time and large-scale super-resolution applications. +4. **Generalization**: The model exhibits good generalization capabilities, allowing it to perform well on a wide range of images and diverse super-resolution scenarios. + +# Environment Requirements + +Before running the model inference, make sure that the latest version of +[Vitis-AI](https://xilinx.github.io/Vitis-AI/3.5/html/docs/install/install.html) is installed and the host computer fully supports +Xilinx FPGA/ACAP and the appropriate accelerator is installed correctly, e.g. Alveo V70. + +# Quick Start + +Follow the [Quick Start guide](../../../README.md#quick-start) in the main Model Zoo README: + +1. Install the Vitis-AI +2. Run the docker container +3. Download test data +4. Run the inference of the model + +# Script Description + +## Structure + +```text +pt_OFA-RCAN # model name +├── artifacts # artifacts - will be created during the inference process +│ ├── inference # folder with results values of inference and evaluation +│ │ ├── performance # model productivity measurements +│ │ ├── quality # model quality measurements +│ │ ├── results # model inference results files +│ │ └── vaitrace # vaitrace profiling performance reports +│ └── models # folder with model meta and .xmodel executable files +├── scripts # scripts for model processing +│ ├── inference.sh # model inference +│ ├── performance.sh # model performance report +│ ├── quality.sh # model quality report +│ └── setup_venv.sh # virtual environment creation +├── src # python supporting scripts +│ └── quality.py # quality metric calculation +├── config.env # model configuration - env variables +├── README.md +└── requirements.txt # requirements for the virtual environment +``` + +## Inference Process + +- Native inference - follow the [Quick Start guide](../../../README.md#quick-start) in the main Model Zoo +- AMD Server + +# Quality + +To evaluate the model inference results, you may compute [PNSR](https://en.wikipedia.org/wiki/Peak_signal-to-noise_ratio) metric. +Use the following script: + +```bash + # Format: bash scripts/quality.sh <DATASET_FOLDER> <INFERENCE_FOLDER> + # where: + # <DATASET_FOLDER> - The path of folder where original dataset is stored. + # <INFERENCE_FOLDER> - The path of folder where results of model inference is stored. + # The metric values will be stored in the artifacts/inference/quality/psnr.txt file + # Example: + + bash scripts/quality.sh /workspace/Vitis-AI-Library/samples/rcan/images/ $MODEL_FOLDER/artifacts/inference/results/ +``` + +# Performance + +- You can profile the model using [vaitrace](https://docs.xilinx.com/r/en-US/ug1414-vitis-ai/Starting-a-Simple-Trace-with-vaitrace) perfomance report, + the script and format described in the [Quick Start guide](../../../README.md#vaitrace) in the main Model Zoo. +- To get performance metrics (FPS, E2E, DPU_MEAN), use: + ```bash + # Format: bash scripts/performance.sh <MODEL_PATH> [<image paths list>] + # where: + # <MODEL_PATH> - the absolute path to the .xmodel + # [<image paths list>] - space-separated list of image absolute paths + # Alternatively, you can pass --dataset option with the folder where images are stored. + # Example: + + bash scripts/performance.sh $MODEL_FOLDER/artifacts/models/ofa_rcan_latency_pt/ofa_rcan_latency_pt.xmodel --dataset /workspace/Vitis-AI-Library/samples/rcan/images/ + ``` + + +# Links + +- Xilinx article: review of OFA technique: https://www.xilinx.com/developer/articles/advantages-of-using-ofa.html +- PapersWithCode - OFA technique: https://paperswithcode.com/method/ofa +- DIV2K dataset: https://data.vision.ee.ethz.ch/cvl/DIV2K/ +- Plug-and-Play Image Restoration with Deep Denoiser Prior: https://arxiv.org/pdf/2008.13751.pdf +- Learning Deep CNN Denoiser Prior for Image Restoration: https://arxiv.org/pdf/1704.03264.pdf + +# Vitis AI Model Zoo Homepage + +Check the official Vitis AI Model Zoo [homepage](https://github.com/Xilinx/Vitis-AI/tree/master/model_zoo). diff --git a/model_zoo/models/super_resolution/pt_OFA-RCAN/config.env b/model_zoo/models/super_resolution/pt_OFA-RCAN/config.env new file mode 100644 index 000000000..5b00a57b4 --- /dev/null +++ b/model_zoo/models/super_resolution/pt_OFA-RCAN/config.env @@ -0,0 +1,5 @@ +#!/bin/bash + +VITIS_ROOT_PATH=/workspace +VAI_LIBRARY_SAMPLES_PATH=$VITIS_ROOT_PATH/examples/vai_library/samples/rcan +VAI_SAMPLES_POSTFIX=rcan diff --git a/model_zoo/models/super_resolution/pt_OFA-RCAN/requirements.txt b/model_zoo/models/super_resolution/pt_OFA-RCAN/requirements.txt new file mode 100644 index 000000000..ba0df04eb --- /dev/null +++ b/model_zoo/models/super_resolution/pt_OFA-RCAN/requirements.txt @@ -0,0 +1,3 @@ +pandas +numpy +opencv-python \ No newline at end of file diff --git a/model_zoo/models/super_resolution/pt_OFA-RCAN/scripts/inference.sh b/model_zoo/models/super_resolution/pt_OFA-RCAN/scripts/inference.sh new file mode 100644 index 000000000..a0e4c4ddd --- /dev/null +++ b/model_zoo/models/super_resolution/pt_OFA-RCAN/scripts/inference.sh @@ -0,0 +1,79 @@ +#!/bin/bash + +source config.env +source ../../../scripts/build.sh + +display_help() { + echo "Usage: $0 MODEL_PATH [OPTIONS] [IMAGE PATHS]" + echo " $0 MODEL_PATH --dataset DIRECTORY" + echo + echo "Options:" + echo " --dataset DIRECTORY Specify a directory containing images" + echo " -h, --help Display this help message" + echo + echo "Arguments:" + echo " MODEL_PATH Path to the model" + echo " IMAGE PATHS List of image paths" + echo + +} + +process_image() { + echo "$1" >> $filepaths_list +} + +process_directory() { + local directory="$1" + find "$directory" -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" \) | while read -r file; do + process_image "$file" + done +} + +if [ -z "$1" ] || [ "$1" == "-h" ] || [ "$1" == "--help" ]; then + display_help + exit 0 +fi + +MODEL_PATH="$1" +shift + +filepaths_list="$(pwd)"/artifacts/inference/filepaths.list +if [ -f "$filepaths_list" ]; then + rm "$filepaths_list" +fi + +if [ "$1" == "--dataset" ]; then + if [ -z "$2" ]; then + echo "No directory specified for --dataset option" + exit 1 + elif [ "$2" == "-h" ] || [ "$2" == "--help" ]; then + display_help + exit 0 + elif [ -d "$2" ]; then + process_directory "$2" + else + echo "Invalid directory specified: $2" + exit 1 + fi +else + for arg in "$@"; do + if [ "$arg" == "-h" ] || [ "$arg" == "--help" ]; then + display_help + exit 0 + elif [ -f "$arg" ]; then + process_image "$arg" + else + echo "Invalid file specified: $arg" + fi + done +fi + +RESULTS_FOLDER="$(pwd)"/artifacts/inference/results +mkdir -p "$RESULTS_FOLDER" + +cd "$VAI_LIBRARY_SAMPLES_PATH" || exit + +EVAL_APP=test_accuracy_$VAI_SAMPLES_POSTFIX +build_if_not_exists $VAI_LIBRARY_SAMPLES_PATH $EVAL_APP + +./$EVAL_APP $MODEL_PATH $filepaths_list $RESULTS_FOLDER diff --git a/model_zoo/models/super_resolution/pt_OFA-RCAN/scripts/performance.sh b/model_zoo/models/super_resolution/pt_OFA-RCAN/scripts/performance.sh new file mode 100644 index 000000000..439a97d0a --- /dev/null +++ b/model_zoo/models/super_resolution/pt_OFA-RCAN/scripts/performance.sh @@ -0,0 +1,80 @@ +#!/bin/bash + +source config.env +source ../../../scripts/build.sh + +display_help() { + echo "Usage: $0 MODEL_PATH [OPTIONS] [IMAGE PATHS]" + echo " $0 MODEL_PATH --dataset DIRECTORY" + echo + echo "Options:" + echo " --dataset DIRECTORY Specify a directory containing images" + echo " -h, --help Display this help message" + echo + echo "Arguments:" + echo " MODEL_PATH Path to the model" + echo " IMAGE PATHS List of image paths" + echo + +} + +process_image() { + echo "$1" >> $filepaths_list +} + +process_directory() { + local directory="$1" + find "$directory" -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" \) | while read -r file; do + process_image "$file" + done +} + +if [ -z "$1" ] || [ "$1" == "-h" ] || [ "$1" == "--help" ]; then + display_help + exit 0 +fi + +MODEL_PATH="$1" +shift + +filepaths_list="$(pwd)"/artifacts/inference/filepaths.list +if [ -f "$filepaths_list" ]; then + rm "$filepaths_list" +fi + +if [ "$1" == "--dataset" ]; then + if [ -z "$2" ]; then + echo "No directory specified for --dataset option" + exit 1 + elif [ "$2" == "-h" ] || [ "$2" == "--help" ]; then + display_help + exit 0 + elif [ -d "$2" ]; then + process_directory "$2" + else + echo "Invalid directory specified: $2" + exit 1 + fi +else + for arg in "$@"; do + if [ "$arg" == "-h" ] || [ "$arg" == "--help" ]; then + display_help + exit 0 + elif [ -f "$arg" ]; then + process_image "$arg" + else + echo "Invalid file specified: $arg" + fi + done +fi + +PERFORMANCE_FOLDER="$(pwd)"/artifacts/inference/perfomance +mkdir -p "$PERFORMANCE_FOLDER" +result_file=$PERFORMANCE_FOLDER/result.txt + +cd "$VAI_LIBRARY_SAMPLES_PATH" || exit + +EVAL_APP=test_performance_$VAI_SAMPLES_POSTFIX +build_if_not_exists $VAI_LIBRARY_SAMPLES_PATH $EVAL_APP + +./$EVAL_APP $MODEL_PATH $filepaths_list | tee $result_file diff --git a/model_zoo/models/super_resolution/pt_OFA-RCAN/scripts/quality.sh b/model_zoo/models/super_resolution/pt_OFA-RCAN/scripts/quality.sh new file mode 100644 index 000000000..5824dd49b --- /dev/null +++ b/model_zoo/models/super_resolution/pt_OFA-RCAN/scripts/quality.sh @@ -0,0 +1,30 @@ +#!/bin/bash + +source config.env +source ../../../scripts/build.sh + + + +display_help() { + echo "Usage: $0 DATASET_FOLDER INFERENCE_FOLDER" + echo + echo "Options:" + echo " -h, --help Display this help message" + echo + echo "Arguments:" + echo " DATASET_FOLDER The folder where original dataset is stored." + echo " INFERENCE_FOLDER The folder where results of model inference is stored." + echo + +} +if [ -z "$1" ] || [ "$1" == "-h" ] || [ "$1" == "--help" ]; then + display_help + exit 0 +fi +bash scripts/setup_venv.sh + +QUALITY_FOLDER="$(pwd)"/artifacts/inference/quality +mkdir -p "$QUALITY_FOLDER" +result_file=$QUALITY_FOLDER/psnr.txt + +python src/quality.py $1 $2 | tee $result_file diff --git a/model_zoo/models/super_resolution/pt_OFA-RCAN/scripts/setup_venv.sh b/model_zoo/models/super_resolution/pt_OFA-RCAN/scripts/setup_venv.sh new file mode 100644 index 000000000..a55316207 --- /dev/null +++ b/model_zoo/models/super_resolution/pt_OFA-RCAN/scripts/setup_venv.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +python3 -m venv .venv +source .venv/bin/activate +pip install -r requirements.txt \ No newline at end of file diff --git a/model_zoo/models/super_resolution/pt_OFA-RCAN/src/quality.py b/model_zoo/models/super_resolution/pt_OFA-RCAN/src/quality.py new file mode 100644 index 000000000..4a9d97240 --- /dev/null +++ b/model_zoo/models/super_resolution/pt_OFA-RCAN/src/quality.py @@ -0,0 +1,134 @@ +import os +import argparse +from typing import Dict, List +import numpy as np +import cv2 +from tqdm import tqdm +from pprint import pprint + +def get_image(image_path: str): + """ + Get image by given path + :param image_path: Path to the image + :return: Image in rgb format + """ + image = cv2.imread(image_path) + rgb_img = cv2.cvtColor(image, cv2.COLOR_BGR2RGB) + return rgb_img + + +def resize_denoised_image(denoised_image, original_image): + """ + Resize the denoised result of image to its original format + :param denoised_image: Denoised cv2 image + :param original_image: Original cv2 image + :return: cv2 resized image + """ + return cv2.resize( + denoised_image, + (original_image.shape[1], original_image.shape[0]), + interpolation=cv2.INTER_AREA + ) + + +def get_images_to_compare(original_image_path: str, denoised_image_path: str): + """ + Get the original image and its denoised result for further comparison, and resize the denoised image if it is needed. + :param original_image_path: Path to original image. + :param denoised_image_path: Path to resulted denoised image. + :return: + """ + original_image = get_image(original_image_path) + denoised_image = get_image(denoised_image_path) + if not original_image.shape == denoised_image.shape: + denoised_image = resize_denoised_image(denoised_image, original_image) + return original_image, denoised_image + + +def get_psnr(original_image_path: str, denoised_image_path: str) -> float: + """ + Computation of psnr metric value between 2 images. + :param original_image_path: Path to original image. + :param denoised_image_path: Path to resulted denoised image. + :return: PSNR value + """ + original_image, denoised_image = get_images_to_compare( + original_image_path, denoised_image_path + ) + return cv2.PSNR(original_image, denoised_image) + + +def get_psnr_all(dataset_folder: str, inference_folder: str) -> Dict: + """ + Function that computes the pnsr metric for each inference result + :param dataset_folder: Path where the whole dataset is stored. + :param inference_folder: Path where inference results are stored. + :return: Dictionary of psnr values for every result in each noisy level sub-folder. + Format: <noisy_subfolder> -> List[Dict[results of psnr metric]] + """ + psnr_all = {} + inference_folder_names = os.listdir(inference_folder) + original_files_folder = os.path.join(dataset_folder, 'original_png') + for noisy_folder in tqdm(inference_folder_names): + psnr_all[noisy_folder] = [] + noisy_folder_path = os.path.join(inference_folder, noisy_folder) + inference_file_names = os.listdir(noisy_folder_path) + for inference_filename in sorted(inference_file_names): + denoised_image_path = os.path.join(noisy_folder_path, inference_filename) + original_filename = inference_filename.split('_')[0] + '.png' + original_image_path = os.path.join(original_files_folder, original_filename) + noisy_image_path = os.path.join(dataset_folder, noisy_folder, original_filename) + psnr_all[noisy_folder].append({ + 'original_image_path': original_image_path, + 'noisy_image_path': noisy_image_path, + 'denoised_image_path': denoised_image_path, + 'psnr_denoised': get_psnr(original_image_path, denoised_image_path), + 'psnr_noisy': get_psnr(original_image_path, noisy_image_path), + }) + return psnr_all + +def compute_psnr(dataset_folder: str, inference_folder: str) -> Dict: + """ + Function that computes the pnsr metric for each inference result + :param dataset_folder: Path where the whole dataset is stored. + :param inference_folder: Path where inference results are stored. + :return: + """ + psnr_all = {} + inference_files_names = os.listdir(inference_folder) + + for inference_filename in sorted(inference_files_names): + denoised_image_path = os.path.join(inference_folder, inference_filename) + original_filename = inference_filename.split('_')[0] + '.png' + original_image_path = os.path.join(dataset_folder, original_filename) + psnr_all[original_filename] = get_psnr(original_image_path, denoised_image_path) + return psnr_all + +def get_psnr_mean(psnr_all: Dict) -> Dict: + """ + Function that computes the mean of psnr metric in one noise level + :param psnr_all: All results of psnr metric + :return: Mean values for each noise level. Format <noisy_subfolder> -> mean psnr value + """ + psnr_mean = {} + for noisy_sigma in psnr_all: + psnrs = [e['psnr_denoised'] for e in psnr_all[noisy_sigma]] + psnr_mean[noisy_sigma] = np.mean(psnrs) + return psnr_mean + + +if __name__ == '__main__': + parser = argparse.ArgumentParser(description='Model evaluation script') + + parser.add_argument('dataset_folder', help='The folder where original dataset is stored.') + parser.add_argument('inference_folder', help='The folder where results of model inference is stored.') + + args = parser.parse_args() + + psnr = compute_psnr(args.dataset_folder, args.inference_folder) + print("PSNR:") + pprint(psnr) + + + + diff --git a/model_zoo/models/super_resolution/pt_SESR-S/README.md b/model_zoo/models/super_resolution/pt_SESR-S/README.md new file mode 100644 index 000000000..c7dc462ac --- /dev/null +++ b/model_zoo/models/super_resolution/pt_SESR-S/README.md @@ -0,0 +1,152 @@ +# Contents + +- [Contents](#contents) +- [Model Description](#model-description) + - [Description](#description) + - [Paper](#paper) +- [Model Architecture](#model-architecture) +- [Dataset](#dataset) +- [Features](#features) +- [Environment Requirements](#environment-requirements) +- [Quick Start](#quick-start) +- [Script Description](#script-description) + - [Structure](#structure) + - [Inference Process](#inference-process) +- [Quality](#quality) +- [Performance](#performance) +- [Links](#links) +- [Vitis AI Model Zoo Homepage](#vitis-ai-model-zoo-homepage) + +# Model Description + +## Description + +SESR-S (Single Image Super Resolution with Recursive Squeeze and Excitation Networks) is an advanced model that pushes +the boundaries of single image super-resolution by effectively exploiting recursive architecture and squeeze-and-excitation +modules to generate high-quality, high-resolution images from their low-resolution counterparts. + + +## Paper + +Cheng, Xi, et al. "SESR: Single image super resolution with recursive squeeze and excitation networks." +2018 24th International conference on pattern recognition (ICPR). IEEE, 2018. +Link: https://ieeexplore.ieee.org/abstract/document/8546130 + +# Model Architecture + +The model consists of multiple stages, each responsible for progressively refining the image resolution. +At the core of SESR is the recursive architecture, where the output of each stage is fed back into the network as an input +for the next stage. This recursive process allows the model to iteratively refine the details and generate high-resolution images. + +One of the key components of SESR is the squeeze-and-excitation module. +This module focuses on capturing channel-wise dependencies within the network by adaptively recalibrating feature maps. +It consists of two main operations: squeezing and exciting. The squeezing operation aggregates global information from the +feature maps by applying global average pooling. The exciting operation utilizes learned parameters to generate channel-wise +weights that are applied to the feature maps. This mechanism enables the model to emphasize important features and suppress less relevant ones, +enhancing the overall image quality. + +# Dataset + +Dataset for testing: DIV2K. The DIV2K dataset is a popular benchmark dataset for image super-resolution. +It consists of 800 high-quality, high-resolution images divided into training and validation sets. +These images cover a wide range of scenes and contain different types of content, making it suitable for evaluating super-resolution algorithms. + +Link to download the dataset: https://data.vision.ee.ethz.ch/cvl/DIV2K/ + +# Features + +The notable features of the SESR-S model: + +1. **Recursive Architecture**: The model utilizes a recursive approach where the output of each stage is fed back into the network as input for the next stage, allowing for iterative refinement of image resolution. +2. **Squeeze-and-Excitation Modules**: SESR incorporates squeeze-and-excitation modules to capture channel-wise dependencies and recalibrate feature maps, emphasizing important features and suppressing less relevant ones. +3. **Deep Convolutional Neural Networks**: The model leverages the power of deep CNNs to learn the mapping between low-resolution and high-resolution image spaces, enabling accurate and detailed super-resolution results. +4. **Local and Global Dependency Capture**: SESR combines recursive architecture and squeeze-and-excitation modules to capture both local and global dependencies within the image, enhancing overall image quality. + +# Environment Requirements + +Before running the model inference, make sure that the latest version of +[Vitis-AI](https://xilinx.github.io/Vitis-AI/3.5/html/docs/install/install.html) is installed and the host computer fully supports +Xilinx FPGA/ACAP and the appropriate accelerator is installed correctly, e.g. Alveo V70. + +# Quick Start + +Follow the [Quick Start guide](../../../README.md#quick-start) in the main Model Zoo README: + +1. Install the Vitis-AI +2. Run the docker container +3. Download test data +4. Run the inference of the model + +# Script Description + +## Structure + +```text +pt_SESR-S # model name +├── artifacts # artifacts - will be created during the inference process +│ ├── inference # folder with results values of inference and evaluation +│ │ ├── performance # model productivity measurements +│ │ ├── quality # model quality measurements +│ │ ├── results # model inference results files +│ │ └── vaitrace # vaitrace profiling performance reports +│ └── models # folder with model meta and .xmodel executable files +├── scripts # scripts for model processing +│ ├── inference.sh # model inference +│ ├── performance.sh # model performance report +│ ├── quality.sh # model quality report +│ └── setup_venv.sh # virtual environment creation +├── src # python supporting scripts +│ └── quality.py # quality metric calculation +├── config.env # model configuration - env variables +├── README.md +└── requirements.txt # requirements for the virtual environment +``` + +## Inference Process + +- Native inference - follow the [Quick Start guide](../../../README.md#quick-start) in the main Model Zoo +- AMD Server + +# Quality + +To evaluate the model inference results, you may compute [PNSR](https://en.wikipedia.org/wiki/Peak_signal-to-noise_ratio) metric. +Use the following script: + +```bash + # Format: bash scripts/quality.sh <DATASET_FOLDER> <INFERENCE_FOLDER> + # where: + # <DATASET_FOLDER> - The path of folder where original dataset is stored. + # <INFERENCE_FOLDER> - The path of folder where results of model inference is stored. + # The metric values will be stored in the artifacts/inference/quality/psnr.txt file + # Example: + + bash scripts/quality.sh /workspace/Vitis-AI-Library/samples/rcan/images/ $MODEL_FOLDER/artifacts/inference/results/ +``` + +# Performance + +- You can profile the model using [vaitrace](https://docs.xilinx.com/r/en-US/ug1414-vitis-ai/Starting-a-Simple-Trace-with-vaitrace) perfomance report, + the script and format described in the [Quick Start guide](../../../README.md#vaitrace) in the main Model Zoo. +- To get performance metrics (FPS, E2E, DPU_MEAN), use: + ```bash + # Format: bash scripts/performance.sh <MODEL_PATH> [<image paths list>] + # where: + # <MODEL_PATH> - the absolute path to the .xmodel + # [<image paths list>] - space-separated list of image absolute paths + # Alternatively, you can pass --dataset option with the folder where images are stored. + # Example: + + bash scripts/performance.sh $MODEL_FOLDER/artifacts/models/SESR_S_pt/SESR_S_pt.xmodel --dataset /workspace/Vitis-AI-Library/samples/rcan/images/ + ``` + + +# Links + +- The DIV2K dataset: https://data.vision.ee.ethz.ch/cvl/DIV2K/ +- Plug-and-Play Image Restoration with Deep Denoiser Prior: https://arxiv.org/pdf/2008.13751.pdf +- Learning Deep CNN Denoiser Prior for Image Restoration: https://arxiv.org/pdf/1704.03264.pdf + + +# Vitis AI Model Zoo Homepage + +Check the official Vitis AI Model Zoo [homepage](https://github.com/Xilinx/Vitis-AI/tree/master/model_zoo). diff --git a/model_zoo/models/super_resolution/pt_SESR-S/config.env b/model_zoo/models/super_resolution/pt_SESR-S/config.env new file mode 100644 index 000000000..5b00a57b4 --- /dev/null +++ b/model_zoo/models/super_resolution/pt_SESR-S/config.env @@ -0,0 +1,5 @@ +#!/bin/bash + +VITIS_ROOT_PATH=/workspace +VAI_LIBRARY_SAMPLES_PATH=$VITIS_ROOT_PATH/examples/vai_library/samples/rcan +VAI_SAMPLES_POSTFIX=rcan diff --git a/model_zoo/models/super_resolution/pt_SESR-S/requirements.txt b/model_zoo/models/super_resolution/pt_SESR-S/requirements.txt new file mode 100644 index 000000000..ba0df04eb --- /dev/null +++ b/model_zoo/models/super_resolution/pt_SESR-S/requirements.txt @@ -0,0 +1,3 @@ +pandas +numpy +opencv-python \ No newline at end of file diff --git a/model_zoo/models/super_resolution/pt_SESR-S/scripts/inference.sh b/model_zoo/models/super_resolution/pt_SESR-S/scripts/inference.sh new file mode 100644 index 000000000..a0e4c4ddd --- /dev/null +++ b/model_zoo/models/super_resolution/pt_SESR-S/scripts/inference.sh @@ -0,0 +1,79 @@ +#!/bin/bash + +source config.env +source ../../../scripts/build.sh + +display_help() { + echo "Usage: $0 MODEL_PATH [OPTIONS] [IMAGE PATHS]" + echo " $0 MODEL_PATH --dataset DIRECTORY" + echo + echo "Options:" + echo " --dataset DIRECTORY Specify a directory containing images" + echo " -h, --help Display this help message" + echo + echo "Arguments:" + echo " MODEL_PATH Path to the model" + echo " IMAGE PATHS List of image paths" + echo + +} + +process_image() { + echo "$1" >> $filepaths_list +} + +process_directory() { + local directory="$1" + find "$directory" -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" \) | while read -r file; do + process_image "$file" + done +} + +if [ -z "$1" ] || [ "$1" == "-h" ] || [ "$1" == "--help" ]; then + display_help + exit 0 +fi + +MODEL_PATH="$1" +shift + +filepaths_list="$(pwd)"/artifacts/inference/filepaths.list +if [ -f "$filepaths_list" ]; then + rm "$filepaths_list" +fi + +if [ "$1" == "--dataset" ]; then + if [ -z "$2" ]; then + echo "No directory specified for --dataset option" + exit 1 + elif [ "$2" == "-h" ] || [ "$2" == "--help" ]; then + display_help + exit 0 + elif [ -d "$2" ]; then + process_directory "$2" + else + echo "Invalid directory specified: $2" + exit 1 + fi +else + for arg in "$@"; do + if [ "$arg" == "-h" ] || [ "$arg" == "--help" ]; then + display_help + exit 0 + elif [ -f "$arg" ]; then + process_image "$arg" + else + echo "Invalid file specified: $arg" + fi + done +fi + +RESULTS_FOLDER="$(pwd)"/artifacts/inference/results +mkdir -p "$RESULTS_FOLDER" + +cd "$VAI_LIBRARY_SAMPLES_PATH" || exit + +EVAL_APP=test_accuracy_$VAI_SAMPLES_POSTFIX +build_if_not_exists $VAI_LIBRARY_SAMPLES_PATH $EVAL_APP + +./$EVAL_APP $MODEL_PATH $filepaths_list $RESULTS_FOLDER diff --git a/model_zoo/models/super_resolution/pt_SESR-S/scripts/performance.sh b/model_zoo/models/super_resolution/pt_SESR-S/scripts/performance.sh new file mode 100644 index 000000000..439a97d0a --- /dev/null +++ b/model_zoo/models/super_resolution/pt_SESR-S/scripts/performance.sh @@ -0,0 +1,80 @@ +#!/bin/bash + +source config.env +source ../../../scripts/build.sh + +display_help() { + echo "Usage: $0 MODEL_PATH [OPTIONS] [IMAGE PATHS]" + echo " $0 MODEL_PATH --dataset DIRECTORY" + echo + echo "Options:" + echo " --dataset DIRECTORY Specify a directory containing images" + echo " -h, --help Display this help message" + echo + echo "Arguments:" + echo " MODEL_PATH Path to the model" + echo " IMAGE PATHS List of image paths" + echo + +} + +process_image() { + echo "$1" >> $filepaths_list +} + +process_directory() { + local directory="$1" + find "$directory" -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" \) | while read -r file; do + process_image "$file" + done +} + +if [ -z "$1" ] || [ "$1" == "-h" ] || [ "$1" == "--help" ]; then + display_help + exit 0 +fi + +MODEL_PATH="$1" +shift + +filepaths_list="$(pwd)"/artifacts/inference/filepaths.list +if [ -f "$filepaths_list" ]; then + rm "$filepaths_list" +fi + +if [ "$1" == "--dataset" ]; then + if [ -z "$2" ]; then + echo "No directory specified for --dataset option" + exit 1 + elif [ "$2" == "-h" ] || [ "$2" == "--help" ]; then + display_help + exit 0 + elif [ -d "$2" ]; then + process_directory "$2" + else + echo "Invalid directory specified: $2" + exit 1 + fi +else + for arg in "$@"; do + if [ "$arg" == "-h" ] || [ "$arg" == "--help" ]; then + display_help + exit 0 + elif [ -f "$arg" ]; then + process_image "$arg" + else + echo "Invalid file specified: $arg" + fi + done +fi + +PERFORMANCE_FOLDER="$(pwd)"/artifacts/inference/perfomance +mkdir -p "$PERFORMANCE_FOLDER" +result_file=$PERFORMANCE_FOLDER/result.txt + +cd "$VAI_LIBRARY_SAMPLES_PATH" || exit + +EVAL_APP=test_performance_$VAI_SAMPLES_POSTFIX +build_if_not_exists $VAI_LIBRARY_SAMPLES_PATH $EVAL_APP + +./$EVAL_APP $MODEL_PATH $filepaths_list | tee $result_file diff --git a/model_zoo/models/super_resolution/pt_SESR-S/scripts/quality.sh b/model_zoo/models/super_resolution/pt_SESR-S/scripts/quality.sh new file mode 100644 index 000000000..5824dd49b --- /dev/null +++ b/model_zoo/models/super_resolution/pt_SESR-S/scripts/quality.sh @@ -0,0 +1,30 @@ +#!/bin/bash + +source config.env +source ../../../scripts/build.sh + + + +display_help() { + echo "Usage: $0 DATASET_FOLDER INFERENCE_FOLDER" + echo + echo "Options:" + echo " -h, --help Display this help message" + echo + echo "Arguments:" + echo " DATASET_FOLDER The folder where original dataset is stored." + echo " INFERENCE_FOLDER The folder where results of model inference is stored." + echo + +} +if [ -z "$1" ] || [ "$1" == "-h" ] || [ "$1" == "--help" ]; then + display_help + exit 0 +fi +bash scripts/setup_venv.sh + +QUALITY_FOLDER="$(pwd)"/artifacts/inference/quality +mkdir -p "$QUALITY_FOLDER" +result_file=$QUALITY_FOLDER/psnr.txt + +python src/quality.py $1 $2 | tee $result_file diff --git a/model_zoo/models/super_resolution/pt_SESR-S/scripts/setup_venv.sh b/model_zoo/models/super_resolution/pt_SESR-S/scripts/setup_venv.sh new file mode 100644 index 000000000..a55316207 --- /dev/null +++ b/model_zoo/models/super_resolution/pt_SESR-S/scripts/setup_venv.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +python3 -m venv .venv +source .venv/bin/activate +pip install -r requirements.txt \ No newline at end of file diff --git a/model_zoo/models/super_resolution/pt_SESR-S/src/quality.py b/model_zoo/models/super_resolution/pt_SESR-S/src/quality.py new file mode 100644 index 000000000..4a9d97240 --- /dev/null +++ b/model_zoo/models/super_resolution/pt_SESR-S/src/quality.py @@ -0,0 +1,134 @@ +import os +import argparse +from typing import Dict, List +import numpy as np +import cv2 +from tqdm import tqdm +from pprint import pprint + +def get_image(image_path: str): + """ + Get image by given path + :param image_path: Path to the image + :return: Image in rgb format + """ + image = cv2.imread(image_path) + rgb_img = cv2.cvtColor(image, cv2.COLOR_BGR2RGB) + return rgb_img + + +def resize_denoised_image(denoised_image, original_image): + """ + Resize the denoised result of image to its original format + :param denoised_image: Denoised cv2 image + :param original_image: Original cv2 image + :return: cv2 resized image + """ + return cv2.resize( + denoised_image, + (original_image.shape[1], original_image.shape[0]), + interpolation=cv2.INTER_AREA + ) + + +def get_images_to_compare(original_image_path: str, denoised_image_path: str): + """ + Get the original image and its denoised result for further comparison, and resize the denoised image if it is needed. + :param original_image_path: Path to original image. + :param denoised_image_path: Path to resulted denoised image. + :return: + """ + original_image = get_image(original_image_path) + denoised_image = get_image(denoised_image_path) + if not original_image.shape == denoised_image.shape: + denoised_image = resize_denoised_image(denoised_image, original_image) + return original_image, denoised_image + + +def get_psnr(original_image_path: str, denoised_image_path: str) -> float: + """ + Computation of psnr metric value between 2 images. + :param original_image_path: Path to original image. + :param denoised_image_path: Path to resulted denoised image. + :return: PSNR value + """ + original_image, denoised_image = get_images_to_compare( + original_image_path, denoised_image_path + ) + return cv2.PSNR(original_image, denoised_image) + + +def get_psnr_all(dataset_folder: str, inference_folder: str) -> Dict: + """ + Function that computes the pnsr metric for each inference result + :param dataset_folder: Path where the whole dataset is stored. + :param inference_folder: Path where inference results are stored. + :return: Dictionary of psnr values for every result in each noisy level sub-folder. + Format: <noisy_subfolder> -> List[Dict[results of psnr metric]] + """ + psnr_all = {} + inference_folder_names = os.listdir(inference_folder) + original_files_folder = os.path.join(dataset_folder, 'original_png') + for noisy_folder in tqdm(inference_folder_names): + psnr_all[noisy_folder] = [] + noisy_folder_path = os.path.join(inference_folder, noisy_folder) + inference_file_names = os.listdir(noisy_folder_path) + for inference_filename in sorted(inference_file_names): + denoised_image_path = os.path.join(noisy_folder_path, inference_filename) + original_filename = inference_filename.split('_')[0] + '.png' + original_image_path = os.path.join(original_files_folder, original_filename) + noisy_image_path = os.path.join(dataset_folder, noisy_folder, original_filename) + psnr_all[noisy_folder].append({ + 'original_image_path': original_image_path, + 'noisy_image_path': noisy_image_path, + 'denoised_image_path': denoised_image_path, + 'psnr_denoised': get_psnr(original_image_path, denoised_image_path), + 'psnr_noisy': get_psnr(original_image_path, noisy_image_path), + }) + return psnr_all + +def compute_psnr(dataset_folder: str, inference_folder: str) -> Dict: + """ + Function that computes the pnsr metric for each inference result + :param dataset_folder: Path where the whole dataset is stored. + :param inference_folder: Path where inference results are stored. + :return: + """ + psnr_all = {} + inference_files_names = os.listdir(inference_folder) + + for inference_filename in sorted(inference_files_names): + denoised_image_path = os.path.join(inference_folder, inference_filename) + original_filename = inference_filename.split('_')[0] + '.png' + original_image_path = os.path.join(dataset_folder, original_filename) + psnr_all[original_filename] = get_psnr(original_image_path, denoised_image_path) + return psnr_all + +def get_psnr_mean(psnr_all: Dict) -> Dict: + """ + Function that computes the mean of psnr metric in one noise level + :param psnr_all: All results of psnr metric + :return: Mean values for each noise level. Format <noisy_subfolder> -> mean psnr value + """ + psnr_mean = {} + for noisy_sigma in psnr_all: + psnrs = [e['psnr_denoised'] for e in psnr_all[noisy_sigma]] + psnr_mean[noisy_sigma] = np.mean(psnrs) + return psnr_mean + + +if __name__ == '__main__': + parser = argparse.ArgumentParser(description='Model evaluation script') + + parser.add_argument('dataset_folder', help='The folder where original dataset is stored.') + parser.add_argument('inference_folder', help='The folder where results of model inference is stored.') + + args = parser.parse_args() + + psnr = compute_psnr(args.dataset_folder, args.inference_folder) + print("PSNR:") + pprint(psnr) + + + + diff --git a/model_zoo/models/super_resolution/tf_RCAN/README.md b/model_zoo/models/super_resolution/tf_RCAN/README.md new file mode 100644 index 000000000..aa481a30b --- /dev/null +++ b/model_zoo/models/super_resolution/tf_RCAN/README.md @@ -0,0 +1,141 @@ +# Contents + +- [Contents](#contents) +- [Model Description](#model-description) + - [Description](#description) + - [Paper](#paper) +- [Model Architecture](#model-architecture) +- [Dataset](#dataset) +- [Features](#features) +- [Environment Requirements](#environment-requirements) +- [Quick Start](#quick-start) +- [Script Description](#script-description) + - [Structure](#structure) + - [Inference Process](#inference-process) +- [Quality](#quality) +- [Performance](#performance) +- [Links](#links) +- [Vitis AI Model Zoo Homepage](#vitis-ai-model-zoo-homepage) + +# Model Description + +## Description + +RCAN (Residual Channel Attention Networks) model is a deep learning model designed for single image super-resolution. + +## Paper + +Zhang, Yulun, et al. "Residual non-local attention networks for image restoration." +arXiv preprint arXiv:1903.10082 (2019). Link: https://arxiv.org/abs/1903.10082 + +# Model Architecture + +The architecture of RCAN consists of a deep residual network with multiple residual blocks. +Each residual block contains a residual channel attention module (RCAM), which selectively emphasizes informative +features and suppresses irrelevant ones. The RCAM operates on feature maps to generate channel attention weights that are +multiplied with the feature maps to enhance important information. + +# Dataset + +Dataset for testing: CBSD68. The CBSD68 dataset is a widely used benchmark dataset for image denoising. CBSD stands for "Color and Binary Shape Database". +It consists of 68 grayscale images with various scenes and objects. + +Link to download the dataset: https://github.com/clausmichele/CBSD68-dataset + +# Features + +The notable features of the RCAN model: + +1. **Residual Learning**: RCAN employs residual connections to enable the direct flow of information from input to output. +2. **Channel Attention**: The RCAM module dynamically weights the importance of each channel in a feature map, allowing the model to focus on relevant information. +3. **Multi-scale Processing**: RCAN processes images at different scales by utilizing cascading residual blocks. + +# Environment Requirements + +Before running the model inference, make sure that the latest version of +[Vitis-AI](https://xilinx.github.io/Vitis-AI/3.5/html/docs/install/install.html) is installed and the host computer fully supports +Xilinx FPGA/ACAP and the appropriate accelerator is installed correctly, e.g. Alveo V70. + +# Quick Start + +Follow the [Quick Start guide](../../../README.md#quick-start) in the main Model Zoo README: + +1. Install the Vitis-AI +2. Run the docker container +3. Download test data +4. Run the inference of the model + +# Script Description + +## Structure + +```text +tf_RCAN # model name +├── artifacts # artifacts - will be created during the inference process +│ ├── inference # folder with results values of inference and evaluation +│ │ ├── performance # model productivity measurements +│ │ ├── quality # model quality measurements +│ │ ├── results # model inference results files +│ │ └── vaitrace # vaitrace profiling performance reports +│ └── models # folder with model meta and .xmodel executable files +├── scripts # scripts for model processing +│ ├── inference.sh # model inference +│ ├── performance.sh # model performance report +│ ├── quality.sh # model quality report +│ └── setup_venv.sh # virtual environment creation +├── src # python supporting scripts +│ └── quality.py # quality metric calculation +├── config.env # model configuration - env variables +├── README.md +└── requirements.txt # requirements for the virtual environment +``` + +## Inference Process + +- Native inference - follow the [Quick Start guide](../../../README.md#quick-start) in the main Model Zoo +- AMD Server + +# Quality + +To evaluate the model inference results, you may compute [PNSR](https://en.wikipedia.org/wiki/Peak_signal-to-noise_ratio) metric. +Use the following script: + +```bash + # Format: bash scripts/quality.sh <DATASET_FOLDER> <INFERENCE_FOLDER> + # where: + # <DATASET_FOLDER> - The path of folder where original dataset is stored. + # <INFERENCE_FOLDER> - The path of folder where results of model inference is stored. + # The metric values will be stored in the artifacts/inference/quality/psnr.txt file + # Example: + + bash scripts/quality.sh /workspace/Vitis-AI-Library/samples/rcan/images/ $MODEL_FOLDER/artifacts/inference/results/ +``` + +# Performance + +- You can profile the model using [vaitrace](https://docs.xilinx.com/r/en-US/ug1414-vitis-ai/Starting-a-Simple-Trace-with-vaitrace) perfomance report, + the script and format described in the [Quick Start guide](../../../README.md#vaitrace) in the main Model Zoo. +- To get performance metrics (FPS, E2E, DPU_MEAN), use: + ```bash + # Format: bash scripts/performance.sh <MODEL_PATH> [<image paths list>] + # where: + # <MODEL_PATH> - the absolute path to the .xmodel + # [<image paths list>] - space-separated list of image absolute paths + # Alternatively, you can pass --dataset option with the folder where images are stored. + # Example: + + bash scripts/performance.sh $MODEL_FOLDER/artifacts/models/rcan_pruned_tf/rcan_pruned_tf.xmodel --dataset /workspace/Vitis-AI-Library/samples/rcan/images/ + ``` + + +# Links + +- The Berkeley Segmentation Dataset and Benchmark (original): https://www2.eecs.berkeley.edu/Research/Projects/CS/vision/bsds/ +- CBSD68-dataset for image denoising benchmarks: https://github.com/clausmichele/CBSD68-dataset +- Plug-and-Play Image Restoration with Deep Denoiser Prior: https://arxiv.org/pdf/2008.13751.pdf +- Learning Deep CNN Denoiser Prior for Image Restoration: https://arxiv.org/pdf/1704.03264.pdf +- Benchmarks based on the CBSD68-dataset with SOTA solutions: https://paperswithcode.com/dataset/cbsd68 + +# Vitis AI Model Zoo Homepage + +Check the official Vitis AI Model Zoo [homepage](https://github.com/Xilinx/Vitis-AI/tree/master/model_zoo). diff --git a/model_zoo/models/super_resolution/tf_RCAN/config.env b/model_zoo/models/super_resolution/tf_RCAN/config.env new file mode 100644 index 000000000..5b00a57b4 --- /dev/null +++ b/model_zoo/models/super_resolution/tf_RCAN/config.env @@ -0,0 +1,5 @@ +#!/bin/bash + +VITIS_ROOT_PATH=/workspace +VAI_LIBRARY_SAMPLES_PATH=$VITIS_ROOT_PATH/examples/vai_library/samples/rcan +VAI_SAMPLES_POSTFIX=rcan diff --git a/model_zoo/models/super_resolution/tf_RCAN/requirements.txt b/model_zoo/models/super_resolution/tf_RCAN/requirements.txt new file mode 100644 index 000000000..ba0df04eb --- /dev/null +++ b/model_zoo/models/super_resolution/tf_RCAN/requirements.txt @@ -0,0 +1,3 @@ +pandas +numpy +opencv-python \ No newline at end of file diff --git a/model_zoo/models/super_resolution/tf_RCAN/scripts/inference.sh b/model_zoo/models/super_resolution/tf_RCAN/scripts/inference.sh new file mode 100644 index 000000000..a0e4c4ddd --- /dev/null +++ b/model_zoo/models/super_resolution/tf_RCAN/scripts/inference.sh @@ -0,0 +1,79 @@ +#!/bin/bash + +source config.env +source ../../../scripts/build.sh + +display_help() { + echo "Usage: $0 MODEL_PATH [OPTIONS] [IMAGE PATHS]" + echo " $0 MODEL_PATH --dataset DIRECTORY" + echo + echo "Options:" + echo " --dataset DIRECTORY Specify a directory containing images" + echo " -h, --help Display this help message" + echo + echo "Arguments:" + echo " MODEL_PATH Path to the model" + echo " IMAGE PATHS List of image paths" + echo + +} + +process_image() { + echo "$1" >> $filepaths_list +} + +process_directory() { + local directory="$1" + find "$directory" -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" \) | while read -r file; do + process_image "$file" + done +} + +if [ -z "$1" ] || [ "$1" == "-h" ] || [ "$1" == "--help" ]; then + display_help + exit 0 +fi + +MODEL_PATH="$1" +shift + +filepaths_list="$(pwd)"/artifacts/inference/filepaths.list +if [ -f "$filepaths_list" ]; then + rm "$filepaths_list" +fi + +if [ "$1" == "--dataset" ]; then + if [ -z "$2" ]; then + echo "No directory specified for --dataset option" + exit 1 + elif [ "$2" == "-h" ] || [ "$2" == "--help" ]; then + display_help + exit 0 + elif [ -d "$2" ]; then + process_directory "$2" + else + echo "Invalid directory specified: $2" + exit 1 + fi +else + for arg in "$@"; do + if [ "$arg" == "-h" ] || [ "$arg" == "--help" ]; then + display_help + exit 0 + elif [ -f "$arg" ]; then + process_image "$arg" + else + echo "Invalid file specified: $arg" + fi + done +fi + +RESULTS_FOLDER="$(pwd)"/artifacts/inference/results +mkdir -p "$RESULTS_FOLDER" + +cd "$VAI_LIBRARY_SAMPLES_PATH" || exit + +EVAL_APP=test_accuracy_$VAI_SAMPLES_POSTFIX +build_if_not_exists $VAI_LIBRARY_SAMPLES_PATH $EVAL_APP + +./$EVAL_APP $MODEL_PATH $filepaths_list $RESULTS_FOLDER diff --git a/model_zoo/models/super_resolution/tf_RCAN/scripts/performance.sh b/model_zoo/models/super_resolution/tf_RCAN/scripts/performance.sh new file mode 100644 index 000000000..439a97d0a --- /dev/null +++ b/model_zoo/models/super_resolution/tf_RCAN/scripts/performance.sh @@ -0,0 +1,80 @@ +#!/bin/bash + +source config.env +source ../../../scripts/build.sh + +display_help() { + echo "Usage: $0 MODEL_PATH [OPTIONS] [IMAGE PATHS]" + echo " $0 MODEL_PATH --dataset DIRECTORY" + echo + echo "Options:" + echo " --dataset DIRECTORY Specify a directory containing images" + echo " -h, --help Display this help message" + echo + echo "Arguments:" + echo " MODEL_PATH Path to the model" + echo " IMAGE PATHS List of image paths" + echo + +} + +process_image() { + echo "$1" >> $filepaths_list +} + +process_directory() { + local directory="$1" + find "$directory" -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" \) | while read -r file; do + process_image "$file" + done +} + +if [ -z "$1" ] || [ "$1" == "-h" ] || [ "$1" == "--help" ]; then + display_help + exit 0 +fi + +MODEL_PATH="$1" +shift + +filepaths_list="$(pwd)"/artifacts/inference/filepaths.list +if [ -f "$filepaths_list" ]; then + rm "$filepaths_list" +fi + +if [ "$1" == "--dataset" ]; then + if [ -z "$2" ]; then + echo "No directory specified for --dataset option" + exit 1 + elif [ "$2" == "-h" ] || [ "$2" == "--help" ]; then + display_help + exit 0 + elif [ -d "$2" ]; then + process_directory "$2" + else + echo "Invalid directory specified: $2" + exit 1 + fi +else + for arg in "$@"; do + if [ "$arg" == "-h" ] || [ "$arg" == "--help" ]; then + display_help + exit 0 + elif [ -f "$arg" ]; then + process_image "$arg" + else + echo "Invalid file specified: $arg" + fi + done +fi + +PERFORMANCE_FOLDER="$(pwd)"/artifacts/inference/perfomance +mkdir -p "$PERFORMANCE_FOLDER" +result_file=$PERFORMANCE_FOLDER/result.txt + +cd "$VAI_LIBRARY_SAMPLES_PATH" || exit + +EVAL_APP=test_performance_$VAI_SAMPLES_POSTFIX +build_if_not_exists $VAI_LIBRARY_SAMPLES_PATH $EVAL_APP + +./$EVAL_APP $MODEL_PATH $filepaths_list | tee $result_file diff --git a/model_zoo/models/super_resolution/tf_RCAN/scripts/quality.sh b/model_zoo/models/super_resolution/tf_RCAN/scripts/quality.sh new file mode 100644 index 000000000..5824dd49b --- /dev/null +++ b/model_zoo/models/super_resolution/tf_RCAN/scripts/quality.sh @@ -0,0 +1,30 @@ +#!/bin/bash + +source config.env +source ../../../scripts/build.sh + + + +display_help() { + echo "Usage: $0 DATASET_FOLDER INFERENCE_FOLDER" + echo + echo "Options:" + echo " -h, --help Display this help message" + echo + echo "Arguments:" + echo " DATASET_FOLDER The folder where original dataset is stored." + echo " INFERENCE_FOLDER The folder where results of model inference is stored." + echo + +} +if [ -z "$1" ] || [ "$1" == "-h" ] || [ "$1" == "--help" ]; then + display_help + exit 0 +fi +bash scripts/setup_venv.sh + +QUALITY_FOLDER="$(pwd)"/artifacts/inference/quality +mkdir -p "$QUALITY_FOLDER" +result_file=$QUALITY_FOLDER/psnr.txt + +python src/quality.py $1 $2 | tee $result_file diff --git a/model_zoo/models/super_resolution/tf_RCAN/scripts/setup_venv.sh b/model_zoo/models/super_resolution/tf_RCAN/scripts/setup_venv.sh new file mode 100644 index 000000000..a55316207 --- /dev/null +++ b/model_zoo/models/super_resolution/tf_RCAN/scripts/setup_venv.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +python3 -m venv .venv +source .venv/bin/activate +pip install -r requirements.txt \ No newline at end of file diff --git a/model_zoo/models/super_resolution/tf_RCAN/src/quality.py b/model_zoo/models/super_resolution/tf_RCAN/src/quality.py new file mode 100644 index 000000000..4a9d97240 --- /dev/null +++ b/model_zoo/models/super_resolution/tf_RCAN/src/quality.py @@ -0,0 +1,134 @@ +import os +import argparse +from typing import Dict, List +import numpy as np +import cv2 +from tqdm import tqdm +from pprint import pprint + +def get_image(image_path: str): + """ + Get image by given path + :param image_path: Path to the image + :return: Image in rgb format + """ + image = cv2.imread(image_path) + rgb_img = cv2.cvtColor(image, cv2.COLOR_BGR2RGB) + return rgb_img + + +def resize_denoised_image(denoised_image, original_image): + """ + Resize the denoised result of image to its original format + :param denoised_image: Denoised cv2 image + :param original_image: Original cv2 image + :return: cv2 resized image + """ + return cv2.resize( + denoised_image, + (original_image.shape[1], original_image.shape[0]), + interpolation=cv2.INTER_AREA + ) + + +def get_images_to_compare(original_image_path: str, denoised_image_path: str): + """ + Get the original image and its denoised result for further comparison, and resize the denoised image if it is needed. + :param original_image_path: Path to original image. + :param denoised_image_path: Path to resulted denoised image. + :return: + """ + original_image = get_image(original_image_path) + denoised_image = get_image(denoised_image_path) + if not original_image.shape == denoised_image.shape: + denoised_image = resize_denoised_image(denoised_image, original_image) + return original_image, denoised_image + + +def get_psnr(original_image_path: str, denoised_image_path: str) -> float: + """ + Computation of psnr metric value between 2 images. + :param original_image_path: Path to original image. + :param denoised_image_path: Path to resulted denoised image. + :return: PSNR value + """ + original_image, denoised_image = get_images_to_compare( + original_image_path, denoised_image_path + ) + return cv2.PSNR(original_image, denoised_image) + + +def get_psnr_all(dataset_folder: str, inference_folder: str) -> Dict: + """ + Function that computes the pnsr metric for each inference result + :param dataset_folder: Path where the whole dataset is stored. + :param inference_folder: Path where inference results are stored. + :return: Dictionary of psnr values for every result in each noisy level sub-folder. + Format: <noisy_subfolder> -> List[Dict[results of psnr metric]] + """ + psnr_all = {} + inference_folder_names = os.listdir(inference_folder) + original_files_folder = os.path.join(dataset_folder, 'original_png') + for noisy_folder in tqdm(inference_folder_names): + psnr_all[noisy_folder] = [] + noisy_folder_path = os.path.join(inference_folder, noisy_folder) + inference_file_names = os.listdir(noisy_folder_path) + for inference_filename in sorted(inference_file_names): + denoised_image_path = os.path.join(noisy_folder_path, inference_filename) + original_filename = inference_filename.split('_')[0] + '.png' + original_image_path = os.path.join(original_files_folder, original_filename) + noisy_image_path = os.path.join(dataset_folder, noisy_folder, original_filename) + psnr_all[noisy_folder].append({ + 'original_image_path': original_image_path, + 'noisy_image_path': noisy_image_path, + 'denoised_image_path': denoised_image_path, + 'psnr_denoised': get_psnr(original_image_path, denoised_image_path), + 'psnr_noisy': get_psnr(original_image_path, noisy_image_path), + }) + return psnr_all + +def compute_psnr(dataset_folder: str, inference_folder: str) -> Dict: + """ + Function that computes the pnsr metric for each inference result + :param dataset_folder: Path where the whole dataset is stored. + :param inference_folder: Path where inference results are stored. + :return: + """ + psnr_all = {} + inference_files_names = os.listdir(inference_folder) + + for inference_filename in sorted(inference_files_names): + denoised_image_path = os.path.join(inference_folder, inference_filename) + original_filename = inference_filename.split('_')[0] + '.png' + original_image_path = os.path.join(dataset_folder, original_filename) + psnr_all[original_filename] = get_psnr(original_image_path, denoised_image_path) + return psnr_all + +def get_psnr_mean(psnr_all: Dict) -> Dict: + """ + Function that computes the mean of psnr metric in one noise level + :param psnr_all: All results of psnr metric + :return: Mean values for each noise level. Format <noisy_subfolder> -> mean psnr value + """ + psnr_mean = {} + for noisy_sigma in psnr_all: + psnrs = [e['psnr_denoised'] for e in psnr_all[noisy_sigma]] + psnr_mean[noisy_sigma] = np.mean(psnrs) + return psnr_mean + + +if __name__ == '__main__': + parser = argparse.ArgumentParser(description='Model evaluation script') + + parser.add_argument('dataset_folder', help='The folder where original dataset is stored.') + parser.add_argument('inference_folder', help='The folder where results of model inference is stored.') + + args = parser.parse_args() + + psnr = compute_psnr(args.dataset_folder, args.inference_folder) + print("PSNR:") + pprint(psnr) + + + + diff --git a/model_zoo/scripts/build.sh b/model_zoo/scripts/build.sh new file mode 100644 index 000000000..d8054cdfe --- /dev/null +++ b/model_zoo/scripts/build.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +build_if_not_exists() { + EVAL_SCRIPT_FOLDER=$1 + EVAL_APP=$2 + cd $EVAL_SCRIPT_FOLDER + if [ -e "$EVAL_APP" ]; then + echo "Run $EVAL_APP" + else + echo "Run build.sh" + bash build.sh + echo "Run $EVAL_APP" + fi +} diff --git a/model_zoo/scripts/download_test_data.sh b/model_zoo/scripts/download_test_data.sh new file mode 100644 index 000000000..3a288ad93 --- /dev/null +++ b/model_zoo/scripts/download_test_data.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +test_data_archive_filename=vitis_ai_library_r3.0.0_images.tar.gz + +VITIS_AI_LIBRARY_FOLDER=/workspace/Vitis-AI-Library +if [ -d $VITIS_AI_LIBRARY_FOLDER ] +then + echo "$VITIS_AI_LIBRARY_FOLDER exists. Skipping downloading the data." +else + echo "Downloading test data" + wget https://www.xilinx.com/bin/public/openDownload?filename=$test_data_archive_filename -O $test_data_archive_filename + echo "Making the directory $VITIS_AI_LIBRARY_FOLDER for test data" + mkdir Vitis-AI-Library + echo "Unzipping" + tar -xzvf vitis_ai_library_r3.0.0_images.tar.gz -C $VITIS_AI_LIBRARY_FOLDER + echo "Removing the downloaded archive" + rm $test_data_archive_filename +fi diff --git a/model_zoo/scripts/make_artifacts_folders.sh b/model_zoo/scripts/make_artifacts_folders.sh new file mode 100644 index 000000000..0c2e19e1c --- /dev/null +++ b/model_zoo/scripts/make_artifacts_folders.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +for model_folder in "$(pwd)"/models/*/*/; do + cd "$model_folder" + mkdir -p artifacts/models + mkdir -p artifacts/inference +done diff --git a/model_zoo/scripts/vaitrace.sh b/model_zoo/scripts/vaitrace.sh new file mode 100644 index 000000000..edffc8fc2 --- /dev/null +++ b/model_zoo/scripts/vaitrace.sh @@ -0,0 +1,45 @@ +#!/bin/bash + + +display_help() { + echo "Usage: $0 MODEL_PATH TEST_IMAGE_PATH" + echo " $0 MODEL_PATH --dataset DIRECTORY" + echo + echo "Options:" + echo " --dataset DIRECTORY Specify a directory containing images" + echo " -h, --help Display this help message" + echo + echo "Arguments:" + echo " MODEL_PATH Path to the model" + echo " TEST_IMAGE_PATH Path to the image to be processed via vaitrace" + echo + +} +if [ -z "$1" ] || [ "$1" == "-h" ] || [ "$1" == "--help" ]; then + display_help + exit 0 +fi +MODEL_PATH="$1" +TEST_IMAGE="$2" +MODEL_FOLDER=${MODEL_PATH%%/artifacts*} + +source $MODEL_FOLDER/config.env +source scripts/build.sh + +VAITRACE_PATH=$MODEL_FOLDER/artifacts/inference/vaitrace +if [ -f "$VAITRACE_PATH" ]; then + rm -rf "$VAITRACE_PATH" +fi +mkdir -p $VAITRACE_PATH + + + +cd "$VAI_LIBRARY_SAMPLES_PATH" || exit + +EVAL_APP=test_jpeg_$VAI_SAMPLES_POSTFIX +build_if_not_exists $VAI_LIBRARY_SAMPLES_PATH $EVAL_APP + +echo "Run vaitrace on $EVAL_APP" +sudo -E vaitrace --txt_summary -o trace.txt ./$EVAL_APP $MODEL_PATH $TEST_IMAGE +sudo mv -t $VAITRACE_PATH summary.csv trace.txt xrt.run_summary +echo "Vaitrace completed."