2019-10-30 16:35:16 +00:00
var supportedOperatingSystems = new Map ( [
[ 'linux' , 'linux' ] ,
[ 'mac' , 'macos' ] ,
[ 'win' , 'windows' ] ,
2021-06-03 17:12:02 +00:00
[ 'web' , 'web' ] ,
2019-10-30 16:35:16 +00:00
] ) ;
var supportedOperatingSystemsNew = [
{ key : 'linux' , value : 'linux' } ,
{ key : 'mac' , value : 'macos' } ,
2021-06-03 17:12:02 +00:00
{ key : 'win' , value : 'windows' } ,
{ key : 'web' , value : 'web' }
2019-10-30 16:35:16 +00:00
]
var opts = {
2021-04-07 00:15:17 +00:00
os : '' ,
architecture : '' ,
language : '' ,
hardwareAcceleration : '' ,
2019-10-30 16:35:16 +00:00
} ;
2020-05-19 14:56:27 +00:00
var ot _opts = {
// os: getAnchorSelectedOS() || getDefaultSelectedOS(),
ot _os : 'ot_linux' ,
ot _architecture : 'ot_X64' ,
2021-07-09 20:36:50 +00:00
ot _language : 'ot_PyTorch19' ,
2021-06-03 17:12:02 +00:00
ot _hardwareAcceleration : 'ot_CUDA10' ,
2020-05-19 14:56:27 +00:00
} ;
2019-10-30 16:35:16 +00:00
var os = $ ( ".os > .r-option" ) ;
var architecture = $ ( ".architecture > .r-option" ) ;
var language = $ ( ".language > .r-option" ) ;
var hardwareAcceleration = $ ( ".hardwareAcceleration > .r-option" ) ;
2020-05-19 14:56:27 +00:00
var ot _os = $ ( ".ot_os > .r-option" ) ;
2021-04-07 00:15:17 +00:00
var ot _tab = $ ( '#OT_tab' ) ;
2020-05-19 14:56:27 +00:00
var ot _architecture = $ ( ".ot_architecture > .r-option" ) ;
var ot _language = $ ( ".ot_language > .r-option" ) ;
var ot _hardwareAcceleration = $ ( ".ot_hardwareAcceleration > .r-option" ) ;
2019-10-30 16:35:16 +00:00
2021-04-07 00:15:17 +00:00
var supported = true ;
var ot _defaultSelection = true ;
2019-10-30 16:35:16 +00:00
function checkKeyPress ( event ) {
var keycode = ( event . keyCode ? event . keyCode : event . which ) ;
if ( keycode == '13' || keycode == '32' || ( keycode >= '37' && keycode <= '40' ) ) {
return true ;
} else {
return false ;
}
}
2020-05-19 14:56:27 +00:00
2021-04-07 00:15:17 +00:00
2019-10-30 16:35:16 +00:00
os . on ( "click" , function ( ) {
selectedOption ( os , this , "os" ) ;
2021-04-07 00:15:17 +00:00
2019-10-30 16:35:16 +00:00
} ) ;
os . on ( "keypress keyup" , function ( event ) {
if ( checkKeyPress ( event ) ) {
selectedOption ( os , this , "os" ) ;
}
} ) ;
2020-05-19 14:56:27 +00:00
ot _os . on ( "click" , function ( ) {
ot _selectedOption ( ot _os , this , "ot_os" ) ;
} ) ;
ot _os . on ( "keypress keyup" , function ( event ) {
if ( checkKeyPress ( event ) ) {
ot _selectedOption ( ot _os , this , "ot_os" ) ;
}
} ) ;
2021-04-07 00:15:17 +00:00
ot _tab . on ( "click" , function ( ) {
ot _commandMessage ( ot _buildMatcher ( ) ) ;
2021-07-09 20:36:50 +00:00
ot _checkValidity ( ) ;
2021-04-07 00:15:17 +00:00
} ) ;
2019-10-30 16:35:16 +00:00
architecture . on ( "click" , function ( ) {
selectedOption ( architecture , this , "architecture" ) ;
} ) ;
architecture . on ( "keypress keyup" , function ( event ) {
if ( checkKeyPress ( event ) ) {
selectedOption ( architecture , this , "architecture" ) ;
}
} ) ;
2020-05-19 14:56:27 +00:00
ot _architecture . on ( "click" , function ( ) {
ot _selectedOption ( ot _architecture , this , "ot_architecture" ) ;
} ) ;
ot _architecture . on ( "keypress keyup" , function ( event ) {
if ( checkKeyPress ( event ) ) {
ot _selectedOption ( ot _architecture , this , "ot_architecture" ) ;
}
} ) ;
2019-10-30 16:35:16 +00:00
language . on ( "click" , function ( ) {
selectedOption ( language , this , "language" ) ;
} ) ;
language . on ( "keypress keyup" , function ( event ) {
if ( checkKeyPress ( event ) ) {
selectedOption ( language , this , "language" ) ;
}
} ) ;
2020-05-19 14:56:27 +00:00
ot _language . on ( "click" , function ( ) {
ot _selectedOption ( ot _language , this , "ot_language" ) ;
} ) ;
ot _language . on ( "keypress keyup" , function ( event ) {
if ( checkKeyPress ( event ) ) {
ot _selectedOption ( ot _language , this , "ot_language" ) ;
}
} ) ;
2019-10-30 16:35:16 +00:00
hardwareAcceleration . on ( "click" , function ( ) {
selectedOption ( hardwareAcceleration , this , "hardwareAcceleration" ) ;
} ) ;
hardwareAcceleration . on ( "keypress keyup" , function ( event ) {
if ( checkKeyPress ( event ) ) {
selectedOption ( hardwareAcceleration , this , "hardwareAcceleration" ) ;
}
} ) ;
2020-05-19 14:56:27 +00:00
ot _hardwareAcceleration . on ( "click" , function ( ) {
ot _selectedOption ( ot _hardwareAcceleration , this , "ot_hardwareAcceleration" ) ;
} ) ;
ot _hardwareAcceleration . on ( "keypress keyup" , function ( event ) {
if ( checkKeyPress ( event ) ) {
ot _selectedOption ( ot _hardwareAcceleration , this , "ot_hardwareAcceleration" ) ;
}
} ) ;
2021-04-07 00:15:17 +00:00
2019-10-30 16:35:16 +00:00
// Pre-select user's operating system
2021-04-07 00:15:17 +00:00
// $(document).ready(function () {
// var userOsOption = document.getElementById(opts.os);
// var ot_userOsOption = document.getElementById(ot_opts.ot_os);
// if (userOsOption) {
// selectedOption(os, userOsOption, "os");
// }
// if (ot_userOsOption) {
// ot_selectedOption(ot_os, ot_userOsOption, "ot_os");
// }
// });
2019-10-30 16:35:16 +00:00
2021-04-07 00:15:17 +00:00
// determine os (mac, linux, windows) based on user's platform
// function getDefaultSelectedOS() {
// var platform = navigator.platform.toLowerCase();
// for (var idx = 0; idx < supportedOperatingSystemsNew.length; idx++ ) {
// if (platform.indexOf(supportedOperatingSystemsNew[idx].key) !== -1) {
// return supportedOperatingSystemsNew[idx].value;
// }
// }
// // Just return something if user platform is not in our supported map
// return supportedOperatingSystemsNew[0].value;
// }
// determine os based on location hash
// function getAnchorSelectedOS() {
// var anchor = location.hash;
// var ANCHOR_REGEX = /^#[^ ]+$/;
// // Look for anchor in the href
// if (!ANCHOR_REGEX.test(anchor)) {
// return false;
// }
// // Look for anchor with OS in the first portion
// var testOS = anchor.slice(1).split("-")[0];
// for (var idx = 0; idx < supportedOperatingSystemsNew.length; idx++ ) {
// if (testOS.indexOf(supportedOperatingSystemsNew[idx].key) !== -1) {
// return supportedOperatingSystemsNew[idx].value;
// }
// }
// return false;
// }
function checkValidity ( ) {
var current _os = opts [ 'os' ] ;
var current _lang = opts [ 'language' ] ;
var current _arch = opts [ 'architecture' ] ;
var current _hw = opts [ 'hardwareAcceleration' ] ;
// console.log("current: "+current_os);
// console.log("current: "+current_arch);
// console.log("current: "+current_lang);
// console.log("current: "+current_hw);
var valid = Object . getOwnPropertyNames ( validCombos ) ;
//os section
for ( var i = 0 ; i < os . length ; i ++ ) {
//disable other selections once item in category selected
// if(os[i].id!=current_os && current_os!=''){
// $(os[i]).addClass("gray");
// continue;
// }
var isvalidcombo = false ;
for ( var k = 0 ; k < valid . length ; k ++ ) {
if ( valid [ k ] . indexOf ( os [ i ] . id ) != - 1 && valid [ k ] . indexOf ( current _arch ) != - 1 && valid [ k ] . indexOf ( current _lang ) != - 1 && valid [ k ] . indexOf ( current _hw ) != - 1 ) {
isvalidcombo = true ;
break ;
}
}
if ( isvalidcombo == false && os [ i ] . id != current _os ) {
$ ( os [ i ] ) . addClass ( "gray" ) ;
}
2019-10-30 16:35:16 +00:00
}
2021-04-07 00:15:17 +00:00
//language section
for ( var i = 0 ; i < language . length ; i ++ ) {
//disable other selections once item in category selected
// if(language[i].id!=current_lang && current_lang!=''){
// $(language[i]).addClass("gray");
// continue;
// }
var isvalidcombo = false ;
for ( var k = 0 ; k < valid . length ; k ++ ) {
if ( valid [ k ] . indexOf ( current _os ) != - 1 && valid [ k ] . indexOf ( current _arch ) != - 1 && valid [ k ] . indexOf ( language [ i ] . id ) != - 1 && valid [ k ] . indexOf ( current _hw ) != - 1 ) {
isvalidcombo = true ;
break ;
}
}
if ( isvalidcombo == false && language [ i ] . id != current _lang ) {
$ ( language [ i ] ) . addClass ( "gray" ) ;
}
}
//architecture section
for ( var i = 0 ; i < architecture . length ; i ++ ) {
//disable other selections once item in category selected
// if(architecture[i].id!=current_arch && current_arch!=''){
// $(architecture[i]).addClass("gray");
// continue;
// }
var isvalidcombo = false ;
for ( var k = 0 ; k < valid . length ; k ++ ) {
if ( valid [ k ] . indexOf ( current _os ) != - 1 && valid [ k ] . indexOf ( architecture [ i ] . id ) != - 1 && valid [ k ] . indexOf ( current _lang ) != - 1 && valid [ k ] . indexOf ( current _hw ) != - 1 ) {
isvalidcombo = true ;
break ;
}
}
if ( isvalidcombo == false && architecture [ i ] . id != current _arch ) {
$ ( architecture [ i ] ) . addClass ( "gray" ) ;
}
2020-05-19 14:56:27 +00:00
}
2019-10-30 16:35:16 +00:00
2021-04-07 00:15:17 +00:00
//accelerator section
for ( var i = 0 ; i < hardwareAcceleration . length ; i ++ ) {
//disable other selections once item in category selected
// if(hardwareAcceleration[i].id!=current_hw && current_hw!=''){
// $(hardwareAcceleration[i]).addClass("gray");
// continue;
// }
var isvalidcombo = false ;
//go thru all valid options
for ( var k = 0 ; k < valid . length ; k ++ ) {
if ( valid [ k ] . indexOf ( current _os ) != - 1 && valid [ k ] . indexOf ( current _arch ) != - 1 && valid [ k ] . indexOf ( current _lang ) != - 1 && valid [ k ] . indexOf ( hardwareAcceleration [ i ] . id ) != - 1 ) {
isvalidcombo = true ;
break ;
}
}
if ( isvalidcombo == false && hardwareAcceleration [ i ] . id != current _hw ) {
// console.log(hardwareAcceleration[i]);
$ ( hardwareAcceleration [ i ] ) . addClass ( "gray" ) ;
}
}
}
2019-10-30 16:35:16 +00:00
2021-04-07 00:15:17 +00:00
function ot _checkValidity ( ) {
var current _os = ot _opts [ 'ot_os' ] ;
var current _lang = ot _opts [ 'ot_language' ] ;
var current _arch = ot _opts [ 'ot_architecture' ] ;
var current _hw = ot _opts [ 'ot_hardwareAcceleration' ] ;
// console.log("current: "+current_os);
// console.log("current: "+current_arch);
// console.log("current: "+current_lang);
// console.log("current: "+current_hw);
var valid = Object . getOwnPropertyNames ( ot _validCombos ) ;
//os section
for ( var i = 0 ; i < ot _os . length ; i ++ ) {
//disable other selections once item in category selected
// if(ot_os[i].id!=current_os && current_os!=''){
// $(ot_os[i]).addClass("gray");
// continue;
// }
var isvalidcombo = false ;
for ( var k = 0 ; k < valid . length ; k ++ ) {
if ( valid [ k ] . indexOf ( ot _os [ i ] . id ) != - 1 && valid [ k ] . indexOf ( current _arch ) != - 1 && valid [ k ] . indexOf ( current _lang ) != - 1 && valid [ k ] . indexOf ( current _hw ) != - 1 ) {
isvalidcombo = true ;
break ;
}
}
if ( isvalidcombo == false && ot _os [ i ] . id != current _os ) {
$ ( ot _os [ i ] ) . addClass ( "gray" ) ;
2019-10-30 16:35:16 +00:00
}
}
2021-04-07 00:15:17 +00:00
//language section
for ( var i = 0 ; i < ot _language . length ; i ++ ) {
//disable other selections once item in category selected
// if(ot_language[i].id!=current_lang && current_lang!=''){
// $(ot_language[i]).addClass("gray");
// continue;
// }
var isvalidcombo = false ;
for ( var k = 0 ; k < valid . length ; k ++ ) {
if ( valid [ k ] . indexOf ( current _os ) != - 1 && valid [ k ] . indexOf ( current _arch ) != - 1 && valid [ k ] . indexOf ( ot _language [ i ] . id ) != - 1 && valid [ k ] . indexOf ( current _hw ) != - 1 ) {
isvalidcombo = true ;
break ;
}
}
if ( isvalidcombo == false && ot _language [ i ] . id != current _lang ) {
$ ( ot _language [ i ] ) . addClass ( "gray" ) ;
}
}
//architecture section
for ( var i = 0 ; i < ot _architecture . length ; i ++ ) {
// //disable other selections once item in category selected
// if(ot_architecture[i].id!=current_arch && current_arch!=''){
// $(ot_architecture[i]).addClass("gray");
// continue;
// }
var isvalidcombo = false ;
for ( var k = 0 ; k < valid . length ; k ++ ) {
if ( valid [ k ] . indexOf ( current _os ) != - 1 && valid [ k ] . indexOf ( ot _architecture [ i ] . id ) != - 1 && valid [ k ] . indexOf ( current _lang ) != - 1 && valid [ k ] . indexOf ( current _hw ) != - 1 ) {
isvalidcombo = true ;
break ;
}
}
if ( isvalidcombo == false && ot _architecture [ i ] . id != current _arch ) {
$ ( ot _architecture [ i ] ) . addClass ( "gray" ) ;
}
}
//accelerator section
for ( var i = 0 ; i < ot _hardwareAcceleration . length ; i ++ ) {
//disable other selections once item in category selected
// if(ot_hardwareAcceleration[i].id!=current_hw && current_hw!=''){
// $(ot_hardwareAcceleration[i]).addClass("gray");
// continue;
// }
var isvalidcombo = false ;
for ( var k = 0 ; k < valid . length ; k ++ ) {
if ( valid [ k ] . indexOf ( current _os ) != - 1 && valid [ k ] . indexOf ( current _arch ) != - 1 && valid [ k ] . indexOf ( current _lang ) != - 1 && valid [ k ] . indexOf ( ot _hardwareAcceleration [ i ] . id ) != - 1 ) {
isvalidcombo = true ;
break ;
}
}
if ( isvalidcombo == false && ot _hardwareAcceleration [ i ] . id != current _hw ) {
$ ( ot _hardwareAcceleration [ i ] ) . addClass ( "gray" ) ;
}
}
2019-10-30 16:35:16 +00:00
}
2021-04-07 00:15:17 +00:00
function mark _unsupported ( selection , training ) {
if ( training == true ) {
for ( var i = 0 ; i < selection . length ; i ++ ) {
if ( selection [ i ] . id . indexOf ( 'ot_' ) != - 1 ) {
$ ( selection [ i ] ) . addClass ( "unsupported" ) ;
}
}
2019-10-30 16:35:16 +00:00
}
2021-04-07 00:15:17 +00:00
else {
for ( var i = 0 ; i < selection . length ; i ++ ) {
if ( selection [ i ] . id . indexOf ( 'ot_' ) == - 1 ) {
$ ( selection [ i ] ) . addClass ( "unsupported" ) ;
}
2019-10-30 16:35:16 +00:00
}
}
}
function selectedOption ( option , selection , category ) {
2021-04-07 00:15:17 +00:00
//allow deselect
if ( selection . id == opts [ category ] ) {
$ ( selection ) . removeClass ( "selected" ) ;
$ ( selection ) . removeClass ( "unsupported" ) ;
opts [ category ] = '' ;
}
else {
$ ( option ) . removeClass ( "selected" ) ;
$ ( option ) . removeClass ( "unsupported" ) ;
$ ( selection ) . addClass ( "selected" ) ;
opts [ category ] = selection . id ;
}
resetOptions ( ) ;
var all _selected = document . getElementsByClassName ( 'selected r-option' ) ;
//get list of supported combos
var isSupported = commandMessage ( buildMatcher ( ) ) ;
//mark unsupported for selected elements
if ( isSupported == false ) {
mark _unsupported ( all _selected , false ) ;
}
else {
for ( var i = 0 ; i < all _selected . length ; i ++ ) {
$ ( all _selected [ i ] ) . removeClass ( "unsupported" ) ;
}
}
checkValidity ( ) ;
//if full selection is valid, don't gray out other options
if ( opts [ 'os' ] != "" && opts [ 'architecture' ] != "" && opts [ 'hardwareAcceleration' ] != "" && opts [ 'language' ] != "" && isSupported == true ) {
// console.log(opts);
resetOptions ( ) ;
}
2019-10-30 16:35:16 +00:00
}
2020-05-19 14:56:27 +00:00
function ot _selectedOption ( option , selection , category ) {
2021-04-07 00:15:17 +00:00
//allow deselect, disable for architecture since they only have 1 item
if ( selection . id == ot _opts [ category ] && ot _defaultSelection == false && category != 'ot_architecture' ) {
$ ( selection ) . removeClass ( "selected" ) ;
$ ( selection ) . removeClass ( "unsupported" ) ;
ot _opts [ category ] = '' ;
}
else {
$ ( option ) . removeClass ( "selected" ) ;
$ ( option ) . removeClass ( "unsupported" ) ;
$ ( selection ) . addClass ( "selected" ) ;
ot _opts [ category ] = selection . id ;
}
ot _resetOptions ( ) ;
var all _selected = document . getElementsByClassName ( 'selected r-option' ) ;
var isSupported = ot _commandMessage ( ot _buildMatcher ( ) ) ;
//mark unsupported combos
if ( isSupported == false ) {
mark _unsupported ( all _selected , true ) ;
}
else {
for ( var i = 0 ; i < all _selected . length ; i ++ ) {
$ ( all _selected [ i ] ) . removeClass ( "unsupported" ) ;
}
}
ot _checkValidity ( ) ;
//if full selection is valid, don't gray out other options
if ( ot _opts [ 'os' ] != "" && ot _opts [ 'architecture' ] != "" && ot _opts [ 'hardwareAcceleration' ] != "" && ot _opts [ 'language' ] != "" && isSupported == true ) {
// console.log(opts);
// ot_resetOptions();
}
2020-05-19 14:56:27 +00:00
}
2021-04-07 00:15:17 +00:00
function resetOptions ( ) {
for ( var i = 0 ; i < os . length ; i ++ ) {
$ ( os [ i ] ) . removeClass ( "gray" ) ;
}
for ( var i = 0 ; i < language . length ; i ++ ) {
$ ( language [ i ] ) . removeClass ( "gray" ) ;
}
for ( var i = 0 ; i < architecture . length ; i ++ ) {
$ ( architecture [ i ] ) . removeClass ( "gray" ) ;
}
for ( var i = 0 ; i < hardwareAcceleration . length ; i ++ ) {
$ ( hardwareAcceleration [ i ] ) . removeClass ( "gray" ) ;
}
}
function ot _resetOptions ( ) {
for ( var i = 0 ; i < ot _os . length ; i ++ ) {
$ ( ot _os [ i ] ) . removeClass ( "gray" ) ;
}
for ( var i = 0 ; i < ot _language . length ; i ++ ) {
$ ( ot _language [ i ] ) . removeClass ( "gray" ) ;
}
for ( var i = 0 ; i < ot _architecture . length ; i ++ ) {
$ ( ot _architecture [ i ] ) . removeClass ( "gray" ) ;
}
for ( var i = 0 ; i < ot _hardwareAcceleration . length ; i ++ ) {
$ ( ot _hardwareAcceleration [ i ] ) . removeClass ( "gray" ) ;
}
ot _defaultSelection = false ;
}
2019-10-30 16:35:16 +00:00
function display ( selection , id , category ) {
var container = document . getElementById ( id ) ;
// Check if there's a container to display the selection
if ( container === null ) {
return ;
}
var elements = container . getElementsByClassName ( category ) ;
for ( var i = 0 ; i < elements . length ; i ++ ) {
if ( elements [ i ] . classList . contains ( selection ) ) {
$ ( elements [ i ] ) . addClass ( "selected" ) ;
} else {
$ ( elements [ i ] ) . removeClass ( "selected" ) ;
}
}
}
function buildMatcher ( ) {
2021-06-03 17:12:02 +00:00
2019-10-30 16:35:16 +00:00
return (
opts . os +
"," +
opts . language +
"," +
opts . architecture +
"," +
opts . hardwareAcceleration
) ;
2021-06-03 17:12:02 +00:00
2019-10-30 16:35:16 +00:00
}
2020-05-19 14:56:27 +00:00
function ot _buildMatcher ( ) {
return (
ot _opts . ot _os +
"," +
ot _opts . ot _language +
"," +
ot _opts . ot _architecture +
"," +
ot _opts . ot _hardwareAcceleration
) ;
}
2021-04-07 00:15:17 +00:00
var ot _validCombos = {
//linux
2021-07-08 01:39:12 +00:00
"ot_linux,ot_PyTorch18,ot_X64,ot_CUDA10" :
2021-09-23 01:02:33 +00:00
"pip install torch-ort<br/> python -m torch_ort.configure" ,
2021-06-03 17:12:02 +00:00
2021-07-08 01:39:12 +00:00
"ot_linux,ot_PyTorch18,ot_X64,ot_CUDA11" :
2021-09-23 01:02:33 +00:00
"pip install torch-ort -f https://download.onnxruntime.ai/onnxruntime_stable_cu111.html<br/> python -m torch_ort.configure" ,
2021-04-07 00:15:17 +00:00
2021-07-08 01:39:12 +00:00
"ot_linux,ot_PyTorch18,ot_X64,ot_DefaultCPU" :
2021-04-07 00:15:17 +00:00
"Follow sample notebook from <a href='https://github.com/microsoft/onnxruntime-training-examples' target='_blank'>here</a>" ,
2021-09-23 01:02:33 +00:00
"ot_linux,ot_PyTorch18,ot_X64,ot_ROCm42" :
"This combination requires an AMD docker image. See <a href=https://github.com/pytorch/ort>the torch-ort repo</a> for details" ,
"ot_linux,ot_PyTorch18,ot_X64,ot_ROCm431" :
2021-07-10 00:50:30 +00:00
"This combination requires an AMD docker image. See <a href=https://github.com/pytorch/ort>the torch-ort repo</a> for details" ,
2021-04-07 00:15:17 +00:00
2021-07-08 01:39:12 +00:00
"ot_linux,ot_PyTorch18,ot_X64,ot_DNNL" :
2021-10-05 18:50:38 +00:00
"This combination of resources is not fully tested. It may be possible to <a href='https://www.onnxruntime.ai/docs/build/training' target='_blank'>build from source</a>." ,
2021-04-07 00:15:17 +00:00
2021-07-08 01:39:12 +00:00
"ot_linux,ot_PyTorch19,ot_X64,ot_CUDA10" :
2021-07-09 20:36:50 +00:00
"pip install torch-ort<br/> python -m torch_ort.configure" ,
2021-07-08 01:39:12 +00:00
"ot_linux,ot_PyTorch19,ot_X64,ot_CUDA11" :
2021-09-23 01:02:33 +00:00
"pip install torch-ort -f https://download.onnxruntime.ai/onnxruntime_stable_cu111.html<br/> python -m torch_ort.configure" ,
2021-07-08 01:39:12 +00:00
2021-09-23 01:02:33 +00:00
"ot_linux,ot_PyTorch19,ot_X64,ot_ROCm42" :
"(Preview) pip install torch -f https://download.pytorch.org/whl/rocm4.2/torch_stable.html<br/>pip install torch-ort -f https://download.onnxruntime.ai/onnxruntime_stable_rocm42.html<br/>python -m torch_ort.configure</br>" ,
"ot_linux,ot_PyTorch19,ot_X64,ot_ROCm431" :
"This combination requires an AMD docker image. See <a href=https://github.com/pytorch/ort>the torch-ort repo</a> for details" ,
2021-07-08 01:39:12 +00:00
2021-06-03 17:12:02 +00:00
"ot_linux,ot_C++,ot_X64,ot_CUDA10" :
2021-10-05 18:50:38 +00:00
"This combination of resources is not fully tested. It may be possible to <a href='https://www.onnxruntime.ai/docs/build/training' target='_blank'>build from source</a>." ,
2021-04-07 00:15:17 +00:00
"ot_linux,ot_C++,ot_X64,ot_DefaultCPU" :
2021-10-05 18:50:38 +00:00
"This combination of resources is not fully tested. It may be possible to <a href='https://www.onnxruntime.ai/docs/build/training' target='_blank'>build from source</a>." ,
2021-04-07 00:15:17 +00:00
//windows
2021-07-08 01:39:12 +00:00
"ot_windows,ot_PyTorch18,ot_X64,ot_CUDA10" :
2021-10-05 18:50:38 +00:00
"This combination of resources is not fully tested. It may be possible to <a href='https://www.onnxruntime.ai/docs/build/training' target='_blank'>build from source</a>." ,
2019-10-30 16:35:16 +00:00
2021-07-08 01:39:12 +00:00
"ot_windows,ot_PyTorch18,ot_X64,ot_DefaultCPU" :
2021-10-05 18:50:38 +00:00
"This combination of resources is not fully tested. It may be possible to <a href='https://www.onnxruntime.ai/docs/build/training' target='_blank'>build from source</a>." ,
2019-10-30 16:35:16 +00:00
2021-04-07 00:15:17 +00:00
"ot_windows,ot_C++,ot_X64,ot_DefaultCPU" :
2021-10-05 18:50:38 +00:00
"This combination of resources is not fully tested. It may be possible to <a href='https://www.onnxruntime.ai/docs/build/training' target='_blank'>build from source</a>." ,
2019-10-30 16:35:16 +00:00
2021-06-03 17:12:02 +00:00
"ot_windows,ot_C++,ot_X64,ot_CUDA10" :
2021-10-05 18:50:38 +00:00
"This combination of resources is not fully tested. It may be possible to <a href='https://www.onnxruntime.ai/docs/build/training' target='_blank'>build from source</a>." ,
2019-10-30 16:35:16 +00:00
2021-04-07 00:15:17 +00:00
//mac
2021-07-08 01:39:12 +00:00
"ot_mac,ot_PyTorch18,ot_X64,ot_DefaultCPU" :
2021-10-05 18:50:38 +00:00
"This combination of resources is not fully tested. It may be possible to <a href='https://www.onnxruntime.ai/docs/build/training' target='_blank'>build from source</a>." ,
2019-10-30 16:35:16 +00:00
2021-04-07 00:15:17 +00:00
"ot_mac,ot_C++,ot_X64,ot_DefaultCPU" :
2021-10-05 18:50:38 +00:00
"This combination of resources is not fully tested. It may be possible to <a href='https://www.onnxruntime.ai/docs/build/training' target='_blank'>build from source</a>."
2021-04-07 00:15:17 +00:00
} ;
2019-10-30 16:35:16 +00:00
2021-04-07 00:15:17 +00:00
function ot _commandMessage ( key ) {
$ ( "#ot_command" ) . removeClass ( "valid" ) ;
$ ( "#ot_command" ) . removeClass ( "invalid" ) ;
2019-10-30 16:35:16 +00:00
2021-04-07 00:15:17 +00:00
if ( ot _opts [ 'ot_os' ] == '' || ot _opts [ 'ot_architecture' ] == '' || ot _opts [ 'ot_language' ] == '' || ot _opts [ 'ot_hardwareAcceleration' ] == '' ) {
// console.log(ot_opts);
$ ( "#ot_command span" ) . html (
"Please select a combination of resources"
)
}
else if ( ! ot _validCombos . hasOwnProperty ( key ) ) {
$ ( "#ot_command span" ) . html (
"This combination is not supported. De-select to make another selection."
)
$ ( "#ot_command" ) . addClass ( "invalid" ) ;
return false ;
}
else {
$ ( "#ot_command span" ) . html ( ot _validCombos [ key ] ) ;
$ ( "#ot_command" ) . addClass ( "valid" ) ;
return true ;
}
2019-10-30 16:35:16 +00:00
2021-04-07 00:15:17 +00:00
// //console.log('key- '+key);
// var ot_object = {
2021-07-08 01:39:12 +00:00
// "ot_linux,ot_PyTorch18,ot_X64,ot_CUDA10":
2021-04-07 00:15:17 +00:00
// "Follow sample notebook from <a href='https://github.com/microsoft/onnxruntime-training-examples' target='_blank'>here</a>",
2021-06-03 17:12:02 +00:00
// "ot_linux,ot_TensorFlow,ot_X64,ot_CUDA10":
2021-04-07 00:15:17 +00:00
// "Coming Soon",
// };
// if (!ot_object.hasOwnProperty(key)) {
// $("#ot_command span").html(
// "Coming Soon"
// );
// } else {
// $("#ot_command span").html(ot_object[key]);
// }
}
2019-10-30 16:35:16 +00:00
2021-04-07 00:15:17 +00:00
var validCombos = {
"windows,C-API,X64,CUDA" :
2021-10-05 18:50:38 +00:00
"Install Nuget package <a href='https://www.nuget.org/packages/Microsoft.ML.OnnxRuntime.Gpu' target='_blank'>Microsoft.ML.OnnxRuntime.Gpu</a> <br/>Refer to <a href='http://www.onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html#requirements' target='_blank'>docs</a> for requirements." ,
2019-10-30 16:35:16 +00:00
2021-04-07 00:15:17 +00:00
"windows,C++,X64,CUDA" :
2021-10-05 18:50:38 +00:00
"Install Nuget package <a href='https://www.nuget.org/packages/Microsoft.ML.OnnxRuntime.Gpu' target='_blank'>Microsoft.ML.OnnxRuntime.Gpu</a> <br/>Refer to <a href='http://www.onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html#requirements' target='_blank'>docs</a> for requirements." ,
2019-10-30 16:35:16 +00:00
2021-04-07 00:15:17 +00:00
"windows,C#,X64,CUDA" :
2021-10-05 18:50:38 +00:00
"Install Nuget package <a href='https://www.nuget.org/packages/Microsoft.ML.OnnxRuntime.Gpu' target='_blank'>Microsoft.ML.OnnxRuntime.Gpu</a> <br/>Refer to <a href='http://www.onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html#requirements' target='_blank'>docs</a> for requirements." ,
2019-10-30 16:35:16 +00:00
2021-06-03 17:12:02 +00:00
"windows,Python,X64,CUDA" :
2021-10-05 18:50:38 +00:00
"pip install onnxruntime-gpu <br/>Refer to <a href='http://www.onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html#requirements' target='_blank'>docs</a> for requirements." ,
2019-10-30 16:35:16 +00:00
2021-06-03 17:12:02 +00:00
"linux,Python,ARM64,CUDA" :
2021-04-07 00:15:17 +00:00
"For Jetpack 4.4+, follow installation instructions from <a href='https://elinux.org/Jetson_Zoo#ONNX_Runtime' target='_blank'>here</a>" ,
"linux,C-API,X64,CUDA" :
2021-10-05 18:50:38 +00:00
"Download .tgz file from <a href='https://github.com/microsoft/onnxruntime/releases' target='_blank'>Github</a> <br/>Refer to <a href='http://www.onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html#requirements' target='_blank'>docs</a> for requirements." ,
2019-10-30 16:35:16 +00:00
2021-04-07 00:15:17 +00:00
"linux,C++,X64,CUDA" :
2021-10-05 18:50:38 +00:00
"Install Nuget package <a href='https://www.nuget.org/packages/Microsoft.ML.OnnxRuntime.Gpu' target='_blank'>Microsoft.ML.OnnxRuntime.Gpu</a> <br/>Refer to <a href='http://www.onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html#requirements' target='_blank'>docs</a> for requirements." ,
2019-10-30 16:35:16 +00:00
2021-04-07 00:15:17 +00:00
"linux,C#,X64,CUDA" :
2021-10-05 18:50:38 +00:00
"Install Nuget package <a href='https://www.nuget.org/packages/Microsoft.ML.OnnxRuntime.Gpu' target='_blank'>Microsoft.ML.OnnxRuntime.Gpu</a> <br/>Refer to <a href='http://www.onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html#requirements' target='_blank'>docs</a> for requirements." ,
2019-10-30 16:35:16 +00:00
2021-06-03 17:12:02 +00:00
"linux,Python,X64,CUDA" :
2021-10-05 18:50:38 +00:00
"pip install onnxruntime-gpu <br/>Refer to <a href='http://www.onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html#requirements' target='_blank'>docs</a> for requirements." ,
2019-10-30 16:35:16 +00:00
2021-04-07 00:15:17 +00:00
"linux,C-API,ARM32,DefaultCPU" :
"Follow build instructions from <a href='https://aka.ms/build-ort-arm' target='_blank'>here</a>" ,
2019-10-30 16:35:16 +00:00
2021-04-07 00:15:17 +00:00
"linux,C++,ARM32,DefaultCPU" :
"Follow build instructions from <a href='https://aka.ms/build-ort-arm' target='_blank'>here</a>" ,
2019-10-30 16:35:16 +00:00
2021-06-03 17:12:02 +00:00
"linux,Python,ARM32,DefaultCPU" :
2021-04-07 00:15:17 +00:00
"Follow build instructions from <a href='https://aka.ms/build-ort-arm' target='_blank'>here</a>" ,
2019-10-30 16:35:16 +00:00
2021-04-07 00:15:17 +00:00
"windows,C-API,X64,DefaultCPU" :
2019-10-30 16:35:16 +00:00
"Install Nuget package <a href='https://www.nuget.org/packages/Microsoft.ML.OnnxRuntime' target='_blank'>Microsoft.ML.OnnxRuntime</a>" ,
2021-04-07 00:15:17 +00:00
"windows,C-API,X86,DefaultCPU" :
"Install Nuget package <a href='https://www.nuget.org/packages/Microsoft.ML.OnnxRuntime' target='_blank'>Microsoft.ML.OnnxRuntime</a>" ,
2019-10-30 16:35:16 +00:00
2021-04-07 00:15:17 +00:00
"windows,C-API,ARM32,DefaultCPU" :
"Install Nuget package <a href='https://www.nuget.org/packages/Microsoft.ML.OnnxRuntime' target='_blank'>Microsoft.ML.OnnxRuntime</a>" ,
"windows,C++,ARM32,DefaultCPU" :
"Install Nuget package <a href='https://www.nuget.org/packages/Microsoft.ML.OnnxRuntime' target='_blank'>Microsoft.ML.OnnxRuntime</a>" ,
"windows,C#,ARM32,DefaultCPU" :
"Install Nuget package <a href='https://www.nuget.org/packages/Microsoft.ML.OnnxRuntime' target='_blank'>Microsoft.ML.OnnxRuntime</a>" ,
"windows,C-API,ARM64,DefaultCPU" :
"Install Nuget package <a href='https://www.nuget.org/packages/Microsoft.ML.OnnxRuntime' target='_blank'>Microsoft.ML.OnnxRuntime</a>" ,
"windows,C++,ARM64,DefaultCPU" :
"Install Nuget package <a href='https://www.nuget.org/packages/Microsoft.ML.OnnxRuntime' target='_blank'>Microsoft.ML.OnnxRuntime</a>" ,
"windows,C#,ARM64,DefaultCPU" :
"Install Nuget package <a href='https://www.nuget.org/packages/Microsoft.ML.OnnxRuntime' target='_blank'>Microsoft.ML.OnnxRuntime</a>" ,
"windows,C++,X64,DefaultCPU" :
"Install Nuget package <a href='https://www.nuget.org/packages/Microsoft.ML.OnnxRuntime' target='_blank'>Microsoft.ML.OnnxRuntime</a>" ,
"windows,C++,X86,DefaultCPU" :
"Install Nuget package <a href='https://www.nuget.org/packages/Microsoft.ML.OnnxRuntime' target='_blank'>Microsoft.ML.OnnxRuntime</a>" ,
"windows,C#,X64,DefaultCPU" :
"Install Nuget package <a href='https://www.nuget.org/packages/Microsoft.ML.OnnxRuntime' target='_blank'>Microsoft.ML.OnnxRuntime</a>" ,
2019-10-30 16:35:16 +00:00
2021-04-07 00:15:17 +00:00
"windows,C#,X86,DefaultCPU" :
"Install Nuget package <a href='https://www.nuget.org/packages/Microsoft.ML.OnnxRuntime' target='_blank'>Microsoft.ML.OnnxRuntime</a>" ,
2019-10-30 16:35:16 +00:00
2021-04-07 00:15:17 +00:00
"linux,C-API,X64,DefaultCPU" :
"Download .tgz file from <a href='https://github.com/microsoft/onnxruntime/releases' target='_blank'>Github</a>" ,
2019-10-30 16:35:16 +00:00
2021-04-07 00:15:17 +00:00
"linux,C++,X64,DefaultCPU" :
"Download .tgz file from <a href='https://github.com/microsoft/onnxruntime/releases' target='_blank'>Github</a>" ,
2019-10-30 16:35:16 +00:00
2021-04-07 00:15:17 +00:00
"linux,C#,X64,DefaultCPU" :
"Install Nuget package <a href='https://www.nuget.org/packages/Microsoft.ML.OnnxRuntime' target='_blank'>Microsoft.ML.OnnxRuntime</a>" ,
2019-10-30 16:35:16 +00:00
2021-04-07 00:15:17 +00:00
"mac,C-API,X64,DefaultCPU" :
"Download .tgz file from <a href='https://github.com/microsoft/onnxruntime/releases' target='_blank'>Github</a>" ,
2019-10-30 16:35:16 +00:00
2021-04-07 00:15:17 +00:00
"mac,C++,X64,DefaultCPU" :
"Download .tgz file from <a href='https://github.com/microsoft/onnxruntime/releases' target='_blank'>Github</a>" ,
2019-10-30 16:35:16 +00:00
2021-04-07 00:15:17 +00:00
"mac,C#,X64,DefaultCPU" :
"Download .tgz file from <a href='https://github.com/microsoft/onnxruntime/releases' target='_blank'>Github</a>" ,
2019-10-30 16:35:16 +00:00
2022-07-22 17:04:40 +00:00
"mac,C#,X64,CoreML" :
"Download .tgz file from <a href='https://github.com/microsoft/onnxruntime/releases' target='_blank'>Github</a>" ,
2021-06-03 17:12:02 +00:00
"windows,Python,X64,DefaultCPU" :
2021-04-07 00:15:17 +00:00
"pip install onnxruntime" ,
2019-10-30 16:35:16 +00:00
2021-06-03 17:12:02 +00:00
"mac,Python,X64,DefaultCPU" :
2021-04-07 00:15:17 +00:00
"pip install onnxruntime" ,
2019-10-30 16:35:16 +00:00
2021-06-03 17:12:02 +00:00
"linux,Python,X64,DefaultCPU" :
2021-04-07 00:15:17 +00:00
"pip install onnxruntime" ,
2019-10-30 16:35:16 +00:00
2021-06-03 17:12:02 +00:00
"linux,Python,ARM64,DefaultCPU" :
2021-04-07 00:15:17 +00:00
"pip install onnxruntime" ,
2019-10-30 16:35:16 +00:00
2021-04-07 00:15:17 +00:00
"windows,C-API,X64,DNNL" :
"Follow build instructions from <a href='https://aka.ms/build-ort-mkldnn' target='_blank'>here</a>" ,
2019-10-30 16:35:16 +00:00
2021-04-07 00:15:17 +00:00
"windows,C++,X64,DNNL" :
"Follow build instructions from <a href='https://aka.ms/build-ort-mkldnn' target='_blank'>here</a>" ,
2019-10-30 16:35:16 +00:00
2021-04-07 00:15:17 +00:00
"windows,C#,X64,DNNL" :
"Follow build instructions from <a href='https://aka.ms/build-ort-mkldnn' target='_blank'>here</a>" ,
2019-10-30 16:35:16 +00:00
2021-06-03 17:12:02 +00:00
"windows,Python,X64,DNNL" :
2021-04-07 00:15:17 +00:00
"Follow build instructions from <a href='https://aka.ms/build-ort-mkldnn' target='_blank'>here</a>" ,
2019-10-30 16:35:16 +00:00
2021-04-07 00:15:17 +00:00
"linux,C-API,X64,DNNL" :
"Follow build instructions from <a href='https://aka.ms/build-ort-mkldnn' target='_blank'>here</a>" ,
2019-10-30 16:35:16 +00:00
2021-04-07 00:15:17 +00:00
"linux,C++,X64,DNNL" :
"Follow build instructions from <a href='https://aka.ms/build-ort-mkldnn' target='_blank'>here</a>" ,
2019-10-30 16:35:16 +00:00
2021-04-07 00:15:17 +00:00
"linux,C#,X64,DNNL" :
"Follow build instructions from <a href='https://aka.ms/build-ort-mkldnn' target='_blank'>here</a>" ,
2019-10-30 16:35:16 +00:00
2021-06-03 17:12:02 +00:00
"linux,Python,X64,DNNL" :
2021-04-07 00:15:17 +00:00
"Follow build instructions from <a href='https://aka.ms/build-ort-mkldnn' target='_blank'>here</a>" ,
2019-10-30 16:35:16 +00:00
2022-01-05 22:06:35 +00:00
"linux,Python,X64,TVM" :
2021-12-17 00:35:08 +00:00
"Follow build instructions from <a href='https://aka.ms/build-ort-stvm' target='_blank'>here</a>" ,
2019-10-30 16:35:16 +00:00
2022-01-05 22:06:35 +00:00
"linux,Python,X86,TVM" :
2021-12-17 00:35:08 +00:00
"Follow build instructions from <a href='https://aka.ms/build-ort-stvm' target='_blank'>here</a>" ,
2019-10-30 16:35:16 +00:00
2022-01-05 22:06:35 +00:00
"linux,Python,ARM32,TVM" :
2021-12-17 00:35:08 +00:00
"Follow build instructions from <a href='https://aka.ms/build-ort-stvm' target='_blank'>here</a>" ,
2022-01-05 22:06:35 +00:00
"linux,Python,ARM64,TVM" :
2021-12-17 00:35:08 +00:00
"Follow build instructions from <a href='https://aka.ms/build-ort-stvm' target='_blank'>here</a>" ,
2022-07-22 17:04:40 +00:00
"windows,Python,X64,TVM" :
"Follow build instructions from <a href='https://aka.ms/build-ort-stvm' target='_blank'>here</a>" ,
"windows,Python,X86,TVM" :
"Follow build instructions from <a href='https://aka.ms/build-ort-stvm' target='_blank'>here</a>" ,
"windows,Python,ARM32,TVM" :
"Follow build instructions from <a href='https://aka.ms/build-ort-stvm' target='_blank'>here</a>" ,
"windows,Python,ARM64,TVM" :
2021-12-17 00:35:08 +00:00
"Follow build instructions from <a href='https://aka.ms/build-ort-stvm' target='_blank'>here</a>" ,
2021-04-07 00:15:17 +00:00
"linux,C-API,X64,OpenVINO" :
"Follow build instructions from <a href='https://aka.ms/build-ort-openvino' target='_blank'>here</a>" ,
2019-10-30 16:35:16 +00:00
2021-04-07 00:15:17 +00:00
"linux,C++,X64,OpenVINO" :
"Follow build instructions from <a href='https://aka.ms/build-ort-openvino' target='_blank'>here</a>" ,
2019-10-30 16:35:16 +00:00
2021-04-07 00:15:17 +00:00
"linux,C#,X64,OpenVINO" :
"Follow build instructions from <a href='https://aka.ms/build-ort-openvino' target='_blank'>here</a>" ,
2019-10-30 16:35:16 +00:00
2021-06-03 17:12:02 +00:00
"linux,Python,X64,OpenVINO" :
2022-06-06 02:43:10 +00:00
"pip install onnxruntime-openvino <br/>Docker image also <a href='https://hub.docker.com/r/openvino/onnxruntime_ep_ubuntu18' target='_blank'>available</a>." ,
2019-10-30 16:35:16 +00:00
2021-04-07 00:15:17 +00:00
"windows,C-API,X64,OpenVINO" :
"Follow build instructions from <a href='https://aka.ms/build-ort-openvino' target='_blank'>here</a>" ,
2019-10-30 16:35:16 +00:00
2021-04-07 00:15:17 +00:00
"windows,C++,X64,OpenVINO" :
"Follow build instructions from <a href='https://aka.ms/build-ort-openvino' target='_blank'>here</a>" ,
2019-10-30 16:35:16 +00:00
2021-04-07 00:15:17 +00:00
"windows,C#,X64,OpenVINO" :
"Follow build instructions from <a href='https://aka.ms/build-ort-openvino' target='_blank'>here</a>" ,
2019-10-30 16:35:16 +00:00
2021-06-03 17:12:02 +00:00
"windows,Python,X64,OpenVINO" :
2022-06-06 02:43:10 +00:00
"pip install onnxruntime-openvino" ,
2019-10-30 16:35:16 +00:00
2021-04-07 00:15:17 +00:00
"windows,C-API,X64,TensorRT" :
2021-10-05 18:50:38 +00:00
"Install Nuget package <a href='https://www.nuget.org/packages/Microsoft.ML.OnnxRuntime.Gpu' target='_blank'>Microsoft.ML.OnnxRuntime.Gpu</a> <br/>Refer to <a href='http://www.onnxruntime.ai/docs/execution-providers/TensorRT-ExecutionProvider.html' target='_blank'>docs</a> for usage details." ,
2019-10-30 16:35:16 +00:00
2021-04-07 00:15:17 +00:00
"windows,C++,X64,TensorRT" :
2021-10-05 18:50:38 +00:00
"Install Nuget package <a href='https://www.nuget.org/packages/Microsoft.ML.OnnxRuntime.Gpu' target='_blank'>Microsoft.ML.OnnxRuntime.Gpu</a> <br/>Refer to <a href='http://www.onnxruntime.ai/docs/execution-providers/TensorRT-ExecutionProvider.html' target='_blank'>docs</a> for usage details." ,
2019-10-30 16:35:16 +00:00
2021-04-07 00:15:17 +00:00
"windows,C#,X64,TensorRT" :
2021-10-05 18:50:38 +00:00
"Install Nuget package <a href='https://www.nuget.org/packages/Microsoft.ML.OnnxRuntime.Gpu' target='_blank'>Microsoft.ML.OnnxRuntime.Gpu</a> <br/>Refer to <a href='http://www.onnxruntime.ai/docs/execution-providers/TensorRT-ExecutionProvider.html' target='_blank'>docs</a> for usage details." ,
2019-10-30 16:35:16 +00:00
2021-06-03 17:12:02 +00:00
"windows,Python,X64,TensorRT" :
2021-12-09 23:23:52 +00:00
"pip install onnxruntime-gpu <br/>Refer to <a href='http://www.onnxruntime.ai/docs/execution-providers/TensorRT-ExecutionProvider.html#requirements' target='_blank'>docs</a> for requirements." ,
2019-10-30 16:35:16 +00:00
2021-04-07 00:15:17 +00:00
"linux,C-API,X64,TensorRT" :
2021-10-05 18:50:38 +00:00
"Install Nuget package <a href='https://www.nuget.org/packages/Microsoft.ML.OnnxRuntime.Gpu' target='_blank'>Microsoft.ML.OnnxRuntime.Gpu</a> <br/>Refer to <a href='http://www.onnxruntime.ai/docs/execution-providers/TensorRT-ExecutionProvider.html' target='_blank'>docs</a> for usage details." ,
2019-10-30 16:35:16 +00:00
2021-04-07 00:15:17 +00:00
"linux,C++,X64,TensorRT" :
2021-10-05 18:50:38 +00:00
"Install Nuget package <a href='https://www.nuget.org/packages/Microsoft.ML.OnnxRuntime.Gpu' target='_blank'>Microsoft.ML.OnnxRuntime.Gpu</a> <br/>Refer to <a href='http://www.onnxruntime.ai/docs/execution-providers/TensorRT-ExecutionProvider.html' target='_blank'>docs</a> for usage details." ,
2019-10-30 16:35:16 +00:00
2021-04-07 00:15:17 +00:00
"linux,C#,X64,TensorRT" :
2021-10-05 18:50:38 +00:00
"Install Nuget package <a href='https://www.nuget.org/packages/Microsoft.ML.OnnxRuntime.Gpu' target='_blank'>Microsoft.ML.OnnxRuntime.Gpu</a> <br/>Refer to <a href='http://www.onnxruntime.ai/docs/execution-providers/TensorRT-ExecutionProvider.html' target='_blank'>docs</a> for usage details." ,
2019-10-30 16:35:16 +00:00
2021-06-03 17:12:02 +00:00
"linux,Python,X64,TensorRT" :
2021-12-09 23:23:52 +00:00
"pip install onnxruntime-gpu <br/>Refer to <a href='http://www.onnxruntime.ai/docs/execution-providers/TensorRT-ExecutionProvider.html#requirements' target='_blank'>docs</a> for requirements." ,
2019-10-30 16:35:16 +00:00
2021-12-09 23:23:52 +00:00
"linux,C#,ARM64,DefaultCPU" :
"Install Nuget package <a href='https://www.nuget.org/packages/Microsoft.ML.OnnxRuntime' target='_blank'>Microsoft.ML.OnnxRuntime" ,
2019-10-30 16:35:16 +00:00
2021-06-03 17:12:02 +00:00
"linux,Python,ARM64,TensorRT" :
2021-12-09 23:23:52 +00:00
"pip install onnxruntime-gpu <br/>Refer to <a href='http://www.onnxruntime.ai/docs/execution-providers/TensorRT-ExecutionProvider.html#requirements' target='_blank'>docs</a> for requirements." ,
2019-10-30 16:35:16 +00:00
2021-04-07 00:15:17 +00:00
"windows,C-API,X86,DirectML" :
2021-10-05 18:50:38 +00:00
"Install Nuget package <a href='https://www.nuget.org/packages/Microsoft.ML.OnnxRuntime.DirectML' target='_blank'>Microsoft.ML.OnnxRuntime.DirectML</a> <br/>Refer to <a href='http://www.onnxruntime.ai/docs/execution-providers/DirectML-ExecutionProvider.html#requirements' target='_blank'>docs</a> for requirements." ,
2021-04-07 00:15:17 +00:00
"windows,C++,X86,DirectML" :
2021-08-03 00:20:41 +00:00
"Install Nuget package <a href='https://www.nuget.org/packages/Microsoft.ML.OnnxRuntime.DirectML' target='_blank'>Microsoft.ML.OnnxRuntime.DirectML</a>" ,
2019-10-30 16:35:16 +00:00
2021-04-07 00:15:17 +00:00
"windows,C#,X86,DirectML" :
"Install Nuget package <a href='https://www.nuget.org/packages/Microsoft.ML.OnnxRuntime.DirectML' target='_blank'>Microsoft.ML.OnnxRuntime.DirectML</a>" ,
2021-06-03 17:12:02 +00:00
"windows,Python,X86,DirectML" :
2022-03-16 21:52:09 +00:00
"Follow build instructions from <a href='https://aka.ms/build-ort-directml' target='_blank'>here</a>" ,
2021-04-07 00:15:17 +00:00
"windows,C-API,X64,DirectML" :
"Install Nuget package <a href='https://www.nuget.org/packages/Microsoft.ML.OnnxRuntime.DirectML' target='_blank'>Microsoft.ML.OnnxRuntime.DirectML</a>" ,
2019-10-30 16:35:16 +00:00
2021-04-07 00:15:17 +00:00
"windows,C++,X64,DirectML" :
"Install Nuget package <a href='https://www.nuget.org/packages/Microsoft.ML.OnnxRuntime.DirectML' target='_blank'>Microsoft.ML.OnnxRuntime.DirectML</a>" ,
"windows,C#,X64,DirectML" :
"Install Nuget package <a href='https://www.nuget.org/packages/Microsoft.ML.OnnxRuntime.DirectML' target='_blank'>Microsoft.ML.OnnxRuntime.DirectML</a>" ,
2021-06-03 17:12:02 +00:00
"windows,Python,X64,DirectML" :
2021-09-23 01:02:33 +00:00
"pip install onnxruntime-directml" ,
2021-08-03 00:20:41 +00:00
"windows,C-API,ARM64,DirectML" :
"Install Nuget package <a href='https://www.nuget.org/packages/Microsoft.ML.OnnxRuntime.DirectML' target='_blank'>Microsoft.ML.OnnxRuntime.DirectML</a>" ,
2019-10-30 16:35:16 +00:00
2021-08-03 00:20:41 +00:00
"windows,C++,ARM64,DirectML" :
"Install Nuget package <a href='https://www.nuget.org/packages/Microsoft.ML.OnnxRuntime.DirectML' target='_blank'>Microsoft.ML.OnnxRuntime.DirectML</a>" ,
"windows,C#,ARM64,DirectML" :
"Install Nuget package <a href='https://www.nuget.org/packages/Microsoft.ML.OnnxRuntime.DirectML' target='_blank'>Microsoft.ML.OnnxRuntime.DirectML</a>" ,
"windows,Python,ARM64,DirectML" :
2022-03-16 21:52:09 +00:00
"Follow build instructions from <a href='https://aka.ms/build-ort-directml' target='_blank'>here</a>" ,
2021-08-03 00:20:41 +00:00
2021-04-07 00:15:17 +00:00
"linux,Java,X64,DefaultCPU" :
"Add a dependency on <a href='https://search.maven.org/artifact/com.microsoft.onnxruntime/onnxruntime' target='_blank'>com.microsoft.onnxruntime:onnxruntime</a> using Maven/Gradle" ,
2019-10-30 16:35:16 +00:00
2021-04-07 00:15:17 +00:00
"linux,Java,X64,CUDA" :
2021-10-05 18:50:38 +00:00
"Add a dependency on <a href='https://search.maven.org/artifact/com.microsoft.onnxruntime/onnxruntime_gpu' target='_blank'>com.microsoft.onnxruntime:onnxruntime_gpu</a> using Maven/Gradle. <br/>Refer to <a href='http://www.onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html#requirements' target='_blank'>docs</a> for requirements." ,
2019-10-30 16:35:16 +00:00
2021-04-07 00:15:17 +00:00
"mac,Java,X64,DefaultCPU" :
"Add a dependency on <a href='https://search.maven.org/artifact/com.microsoft.onnxruntime/onnxruntime' target='_blank'>com.microsoft.onnxruntime:onnxruntime</a> using Maven/Gradle" ,
2019-10-30 16:35:16 +00:00
2021-06-03 17:12:02 +00:00
//javascript
"linux,JS,X64,DefaultCPU" :
"npm install onnxruntime-node" ,
"mac,JS,X64,DefaultCPU" :
"npm install onnxruntime-node" ,
2019-10-30 16:35:16 +00:00
2021-06-03 17:12:02 +00:00
"windows,JS,X64,DefaultCPU" :
"npm install onnxruntime-node" ,
"web,JS,," :
"npm install onnxruntime-web" ,
"android,JS,ARM64,DefaultCPU" :
2021-07-08 01:39:12 +00:00
"npm install onnxruntime-react-native" ,
2021-06-03 17:12:02 +00:00
"android,JS,X64,DefaultCPU" :
2021-07-08 01:39:12 +00:00
"npm install onnxruntime-react-native" ,
2021-06-03 17:12:02 +00:00
"android,JS,X86,DefaultCPU" :
2021-07-08 01:39:12 +00:00
"npm install onnxruntime-react-native" ,
2021-06-03 17:12:02 +00:00
"ios,JS,ARM64,DefaultCPU" :
2021-07-08 01:39:12 +00:00
"npm install onnxruntime-react-native" ,
2021-06-03 17:12:02 +00:00
2021-04-07 00:15:17 +00:00
"windows,WinRT,X86,DefaultCPU" :
"Install Nuget package <a href='https://www.nuget.org/packages/Microsoft.AI.MachineLearning' target='_blank'>Microsoft.AI.MachineLearning</a>" ,
2019-10-30 16:35:16 +00:00
2021-04-07 00:15:17 +00:00
"windows,WinRT,X64,DefaultCPU" :
"Install Nuget package <a href='https://www.nuget.org/packages/Microsoft.AI.MachineLearning' target='_blank'>Microsoft.AI.MachineLearning</a>" ,
2019-10-30 16:35:16 +00:00
2021-04-07 00:15:17 +00:00
"windows,WinRT,ARM64,DefaultCPU" :
"Install Nuget package <a href='https://www.nuget.org/packages/Microsoft.AI.MachineLearning' target='_blank'>Microsoft.AI.MachineLearning</a>" ,
2019-10-30 16:35:16 +00:00
2021-04-07 00:15:17 +00:00
"windows,WinRT,ARM32,DefaultCPU" :
"Install Nuget package <a href='https://www.nuget.org/packages/Microsoft.AI.MachineLearning' target='_blank'>Microsoft.AI.MachineLearning</a>" ,
2020-05-19 14:56:27 +00:00
2021-04-07 00:15:17 +00:00
"windows,WinRT,X86,DirectML" :
"Install Nuget package <a href='https://www.nuget.org/packages/Microsoft.AI.MachineLearning' target='_blank'>Microsoft.AI.MachineLearning</a>" ,
2020-05-19 14:56:27 +00:00
2021-04-07 00:15:17 +00:00
"windows,WinRT,X64,DirectML" :
"Install Nuget package <a href='https://www.nuget.org/packages/Microsoft.AI.MachineLearning' target='_blank'>Microsoft.AI.MachineLearning</a>" ,
2020-05-19 14:56:27 +00:00
2021-08-03 00:20:41 +00:00
"windows,WinRT,ARM64,DirectML" :
"Install Nuget package <a href='https://www.nuget.org/packages/Microsoft.AI.MachineLearning' target='_blank'>Microsoft.AI.MachineLearning</a>" ,
2021-04-07 00:15:17 +00:00
"windows,Java,X64,DefaultCPU" :
"Add a dependency on <a href='https://search.maven.org/artifact/com.microsoft.onnxruntime/onnxruntime' target='_blank'>com.microsoft.onnxruntime:onnxruntime</a> using Maven/Gradle" ,
2020-05-19 14:56:27 +00:00
2021-04-07 00:15:17 +00:00
"windows,Java,X64,CUDA" :
2021-10-05 18:50:38 +00:00
"Add a dependency on <a href='https://search.maven.org/artifact/com.microsoft.onnxruntime/onnxruntime_gpu' target='_blank'>com.microsoft.onnxruntime:onnxruntime_gpu</a> using Maven/Gradle. <br/>Refer to <a href='http://www.onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html#requirements' target='_blank'>docs</a> for requirements." ,
2020-05-19 14:56:27 +00:00
2021-04-07 00:15:17 +00:00
"windows,Java,X64,TensorRT" :
2021-10-05 18:50:38 +00:00
"Add a dependency on <a href='https://search.maven.org/artifact/com.microsoft.onnxruntime/onnxruntime_gpu' target='_blank'>com.microsoft.onnxruntime:onnxruntime_gpu</a> using Maven/Gradle. <br/>Refer to <a href='http://www.onnxruntime.ai/docs/execution-providers/TensorRT-ExecutionProvider.html' target='_blank'>docs</a> for usage details." ,
2020-05-19 14:56:27 +00:00
2021-04-07 00:15:17 +00:00
"windows,Java,X64,DNNL" :
2021-10-05 18:50:38 +00:00
"Follow <a href='http://www.onnxruntime.ai/docs/build/inferencing.html#common-build-instructions' target='_blank'>build</a> and <a href='https://aka.ms/onnxruntime-java' target='_blank'>API instructions</a>" ,
2020-05-19 14:56:27 +00:00
2021-04-07 00:15:17 +00:00
"windows,Java,X64,NUPHAR" :
2021-10-05 18:50:38 +00:00
"Follow <a href='http://www.onnxruntime.ai/docs/build/inferencing.html#common-build-instructions' target='_blank'>build</a> and <a href='https://aka.ms/onnxruntime-java' target='_blank'>API instructions</a>" ,
2020-05-19 14:56:27 +00:00
2021-04-07 00:15:17 +00:00
"windows,Java,X64,OpenVINO" :
2021-10-05 18:50:38 +00:00
"Follow <a href='http://www.onnxruntime.ai/docs/build/inferencing.html#common-build-instructions' target='_blank'>build</a> and <a href='https://aka.ms/onnxruntime-java' target='_blank'>API instructions</a>" ,
2019-10-30 16:35:16 +00:00
2021-04-07 00:15:17 +00:00
"linux,Java,X64,TensorRT" :
2021-10-05 18:50:38 +00:00
"Add a dependency on <a href='https://search.maven.org/artifact/com.microsoft.onnxruntime/onnxruntime_gpu' target='_blank'>com.microsoft.onnxruntime:onnxruntime_gpu</a> using Maven/Gradle. <br/>Refer to <a href='http://www.onnxruntime.ai/docs/execution-providers/TensorRT-ExecutionProvider.html' target='_blank'>docs</a> for usage details." ,
2020-05-19 14:56:27 +00:00
2021-04-07 00:15:17 +00:00
"linux,Java,X64,DNNL" :
2021-10-05 18:50:38 +00:00
"Follow <a href='http://www.onnxruntime.ai/docs/build/inferencing.html#common-build-instructions' target='_blank'>build</a> and <a href='https://aka.ms/onnxruntime-java' target='_blank'>API instructions</a>" ,
2020-05-19 14:56:27 +00:00
2021-04-07 00:15:17 +00:00
"linux,Java,X64,NUPHAR" :
2021-10-05 18:50:38 +00:00
"Follow <a href='http://www.onnxruntime.ai/docs/build/inferencing.html#common-build-instructions' target='_blank'>build</a> and <a href='https://aka.ms/onnxruntime-java' target='_blank'>API instructions</a>" ,
2020-05-19 14:56:27 +00:00
2021-04-07 00:15:17 +00:00
"linux,Java,X64,OpenVINO" :
2021-10-05 18:50:38 +00:00
"Follow <a href='http://www.onnxruntime.ai/docs/build/inferencing.html#common-build-instructions' target='_blank'>build</a> and <a href='https://aka.ms/onnxruntime-java' target='_blank'>API instructions</a>" ,
2021-04-07 00:15:17 +00:00
"android,C-API,ARM64,NNAPI" :
2021-06-03 17:12:02 +00:00
"Follow build instructions from <a href='https://aka.ms/build-ort-nnapi' target='_blank'>here</a>" ,
2021-04-07 00:15:17 +00:00
"android,C++,ARM64,NNAPI" :
2021-06-03 17:12:02 +00:00
"Follow build instructions from <a href='https://aka.ms/build-ort-nnapi' target='_blank'>here</a>" ,
2021-04-07 00:15:17 +00:00
"android,Java,ARM64,NNAPI" :
2022-04-06 16:50:44 +00:00
"Add a dependency on <a href='https://mvnrepository.com/artifact/com.microsoft.onnxruntime/onnxruntime-android' target='_blank'>com.microsoft.onnxruntime:onnxruntime-android</a> or <a href='https://mvnrepository.com/artifact/com.microsoft.onnxruntime/onnxruntime-mobile' target='_blank'>com.microsoft.onnxruntime:onnxruntime-mobile</a> using Maven/Gradle and refer to the <a href='https://onnxruntime.ai/docs/tutorials/mobile/' target='_blank'>mobile deployment guide</a>" ,
2021-06-03 17:12:02 +00:00
"android,C-API,X86,NNAPI" :
"Follow build instructions from <a href='https://aka.ms/build-ort-nnapi' target='_blank'>here</a>" ,
"android,C++,X86,NNAPI" :
"Follow build instructions from <a href='https://aka.ms/build-ort-nnapi' target='_blank'>here</a>" ,
2022-07-22 17:04:40 +00:00
"android,C#,X86,NNAPI" :
"Install Nuget package <a href='https://www.nuget.org/packages/Microsoft.ML.OnnxRuntime' target='_blank'>Microsoft.ML.OnnxRuntime</a>." ,
2021-06-03 17:12:02 +00:00
"android,Java,X64,NNAPI" :
2022-04-06 16:50:44 +00:00
"Add a dependency on <a href='https://mvnrepository.com/artifact/com.microsoft.onnxruntime/onnxruntime-android' target='_blank'>com.microsoft.onnxruntime:onnxruntime-android</a> or <a href='https://mvnrepository.com/artifact/com.microsoft.onnxruntime/onnxruntime-mobile' target='_blank'>com.microsoft.onnxruntime:onnxruntime-mobile</a> using Maven/Gradle and refer to the <a href='https://onnxruntime.ai/docs/tutorials/mobile/' target='_blank'>mobile deployment guide</a>" ,
2021-06-03 17:12:02 +00:00
"android,C-API,X64,NNAPI" :
"Follow build instructions from <a href='https://aka.ms/build-ort-nnapi' target='_blank'>here</a>" ,
"android,C++,X64,NNAPI" :
"Follow build instructions from <a href='https://aka.ms/build-ort-nnapi' target='_blank'>here</a>" ,
2022-07-22 17:04:40 +00:00
"android,C#,X64,NNAPI" :
"Install Nuget package <a href='https://www.nuget.org/packages/Microsoft.ML.OnnxRuntime' target='_blank'>Microsoft.ML.OnnxRuntime</a>." ,
2021-06-03 17:12:02 +00:00
"android,Java,X86,NNAPI" :
2022-04-06 16:50:44 +00:00
"Add a dependency on <a href='https://mvnrepository.com/artifact/com.microsoft.onnxruntime/onnxruntime-android' target='_blank'>com.microsoft.onnxruntime:onnxruntime-android</a> or <a href='https://mvnrepository.com/artifact/com.microsoft.onnxruntime/onnxruntime-mobile' target='_blank'>com.microsoft.onnxruntime:onnxruntime-mobile</a> using Maven/Gradle and refer to the <a href='https://onnxruntime.ai/docs/tutorials/mobile/' target='_blank'>mobile deployment guide</a>" ,
2021-06-03 17:12:02 +00:00
"android,C-API,ARM32,NNAPI" :
"Follow build instructions from <a href='https://aka.ms/build-ort-nnapi' target='_blank'>here</a>" ,
"android,C++,ARM32,NNAPI" :
"Follow build instructions from <a href='https://aka.ms/build-ort-nnapi' target='_blank'>here</a>" ,
2022-07-22 17:04:40 +00:00
"android,C#,ARM32,NNAPI" :
"Install Nuget package <a href='https://www.nuget.org/packages/Microsoft.ML.OnnxRuntime' target='_blank'>Microsoft.ML.OnnxRuntime</a>." ,
2021-06-03 17:12:02 +00:00
"android,Java,ARM32,NNAPI" :
2022-04-06 16:50:44 +00:00
"Add a dependency on <a href='https://mvnrepository.com/artifact/com.microsoft.onnxruntime/onnxruntime-android' target='_blank'>com.microsoft.onnxruntime:onnxruntime-android</a> or <a href='https://mvnrepository.com/artifact/com.microsoft.onnxruntime/onnxruntime-mobile' target='_blank'>com.microsoft.onnxruntime:onnxruntime-mobile</a> using Maven/Gradle and refer to the <a href='https://onnxruntime.ai/docs/tutorials/mobile/' target='_blank'>mobile deployment guide</a>" ,
2021-04-07 00:15:17 +00:00
"android,C-API,ARM64,DefaultCPU" :
2021-06-03 17:12:02 +00:00
"Follow build instructions from <a href='https://aka.ms/build-ort-android' target='_blank'>here</a>" ,
2021-04-07 00:15:17 +00:00
"android,C++,ARM64,DefaultCPU" :
2021-06-03 17:12:02 +00:00
"Follow build instructions from <a href='https://aka.ms/build-ort-android' target='_blank'>here</a>" ,
2022-07-22 17:04:40 +00:00
2021-04-07 00:15:17 +00:00
"android,Java,ARM64,DefaultCPU" :
2022-04-06 16:50:44 +00:00
"Add a dependency on <a href='https://mvnrepository.com/artifact/com.microsoft.onnxruntime/onnxruntime-android' target='_blank'>com.microsoft.onnxruntime:onnxruntime-android</a> or <a href='https://mvnrepository.com/artifact/com.microsoft.onnxruntime/onnxruntime-mobile' target='_blank'>com.microsoft.onnxruntime:onnxruntime-mobile</a> using Maven/Gradle and refer to the <a href='https://onnxruntime.ai/docs/tutorials/mobile/' target='_blank'>mobile deployment guide</a>" ,
2021-04-07 00:15:17 +00:00
"android,C-API,ARM32,DefaultCPU" :
2021-06-03 17:12:02 +00:00
"Follow build instructions from <a href='https://aka.ms/build-ort-android' target='_blank'>here</a>" ,
2021-04-07 00:15:17 +00:00
"android,C++,ARM32,DefaultCPU" :
2021-06-03 17:12:02 +00:00
"Follow build instructions from <a href='https://aka.ms/build-ort-android' target='_blank'>here</a>" ,
2022-07-22 17:04:40 +00:00
"android,C#,ARM32,DefaultCPU" :
"Install Nuget package <a href='https://www.nuget.org/packages/Microsoft.ML.OnnxRuntime' target='_blank'>Microsoft.ML.OnnxRuntime</a>." ,
2021-04-07 00:15:17 +00:00
"android,Java,ARM32,DefaultCPU" :
2022-04-06 16:50:44 +00:00
"Add a dependency on <a href='https://mvnrepository.com/artifact/com.microsoft.onnxruntime/onnxruntime-android' target='_blank'>com.microsoft.onnxruntime:onnxruntime-android</a> or <a href='https://mvnrepository.com/artifact/com.microsoft.onnxruntime/onnxruntime-mobile' target='_blank'>com.microsoft.onnxruntime:onnxruntime-mobile</a> using Maven/Gradle and refer to the <a href='https://onnxruntime.ai/docs/tutorials/mobile/' target='_blank'>mobile deployment guide</a>" ,
2021-04-07 00:15:17 +00:00
"android,C-API,X86,DefaultCPU" :
2021-06-03 17:12:02 +00:00
"Follow build instructions from <a href='https://aka.ms/build-ort-android' target='_blank'>here</a>" ,
2021-04-07 00:15:17 +00:00
"android,C++,X86,DefaultCPU" :
2021-06-03 17:12:02 +00:00
"Follow build instructions from <a href='https://aka.ms/build-ort-android' target='_blank'>here</a>" ,
2022-07-22 17:04:40 +00:00
"android,C#,X86,DefaultCPU" :
"Install Nuget package <a href='https://www.nuget.org/packages/Microsoft.ML.OnnxRuntime' target='_blank'>Microsoft.ML.OnnxRuntime</a>." ,
2021-04-07 00:15:17 +00:00
"android,Java,X86,DefaultCPU" :
2022-04-06 16:50:44 +00:00
"Add a dependency on <a href='https://mvnrepository.com/artifact/com.microsoft.onnxruntime/onnxruntime-android' target='_blank'>com.microsoft.onnxruntime:onnxruntime-android</a> or <a href='https://mvnrepository.com/artifact/com.microsoft.onnxruntime/onnxruntime-mobile' target='_blank'>com.microsoft.onnxruntime:onnxruntime-mobile</a> using Maven/Gradle and refer to the <a href='https://onnxruntime.ai/docs/tutorials/mobile/' target='_blank'>mobile deployment guide</a>" ,
2021-04-07 00:15:17 +00:00
"android,C-API,X64,DefaultCPU" :
2021-06-03 17:12:02 +00:00
"Follow build instructions from <a href='https://aka.ms/build-ort-android' target='_blank'>here</a>" ,
2021-04-07 00:15:17 +00:00
"android,C++,X64,DefaultCPU" :
2021-06-03 17:12:02 +00:00
"Follow build instructions from <a href='https://aka.ms/build-ort-android' target='_blank'>here</a>" ,
2021-04-07 00:15:17 +00:00
2022-07-22 17:04:40 +00:00
"android,C#,X64,DefaultCPU" :
"Install Nuget package <a href='https://www.nuget.org/packages/Microsoft.ML.OnnxRuntime' target='_blank'>Microsoft.ML.OnnxRuntime</a>." ,
2021-04-07 00:15:17 +00:00
"android,Java,X64,DefaultCPU" :
2022-04-06 16:50:44 +00:00
"Add a dependency on <a href='https://mvnrepository.com/artifact/com.microsoft.onnxruntime/onnxruntime-android' target='_blank'>com.microsoft.onnxruntime:onnxruntime-android</a> or <a href='https://mvnrepository.com/artifact/com.microsoft.onnxruntime/onnxruntime-mobile' target='_blank'>com.microsoft.onnxruntime:onnxruntime-mobile</a> using Maven/Gradle and refer to the <a href='https://onnxruntime.ai/docs/tutorials/mobile/' target='_blank'>mobile deployment guide</a>" ,
2021-12-09 23:23:52 +00:00
"android,C#,ARM64,DefaultCPU" :
2022-07-22 17:04:40 +00:00
"Install Nuget package <a href='https://www.nuget.org/packages/Microsoft.ML.OnnxRuntime' target='_blank'>Microsoft.ML.OnnxRuntime</a>." ,
2021-12-09 23:23:52 +00:00
"android,C#,ARM64,NNAPI" :
2022-07-22 17:04:40 +00:00
"Install Nuget package <a href='https://www.nuget.org/packages/Microsoft.ML.OnnxRuntime' target='_blank'>Microsoft.ML.OnnxRuntime</a>." ,
2021-12-09 23:23:52 +00:00
2021-04-07 00:15:17 +00:00
"ios,C-API,ARM64,DefaultCPU" :
2022-04-06 16:50:44 +00:00
"Add 'onnxruntime-c' or 'onnxruntime-mobile-c' using CocoaPods and refer to the <a href='https://onnxruntime.ai/docs/tutorials/mobile/' target='_blank'>mobile deployment guide</a>" ,
2021-04-07 00:15:17 +00:00
"ios,C++,ARM64,DefaultCPU" :
2022-04-06 16:50:44 +00:00
"Add 'onnxruntime-c' or 'onnxruntime-mobile-c' using CocoaPods and refer to the <a href='https://onnxruntime.ai/docs/tutorials/mobile/' target='_blank'>mobile deployment guide</a>" ,
2021-04-07 00:15:17 +00:00
"ios,C-API,ARM64,CoreML" :
2022-04-06 16:50:44 +00:00
"Add 'onnxruntime-c' or 'onnxruntime-mobile-c' using CocoaPods and refer to the <a href='https://onnxruntime.ai/docs/tutorials/mobile/' target='_blank'>mobile deployment guide</a>" ,
2021-04-07 00:15:17 +00:00
"ios,C++,ARM64,CoreML" :
2022-04-06 16:50:44 +00:00
"Add 'onnxruntime-c' or 'onnxruntime-mobile-c' using CocoaPods and refer to the <a href='https://onnxruntime.ai/docs/tutorials/mobile/' target='_blank'>mobile deployment guide</a>" ,
2021-06-03 17:12:02 +00:00
"ios,objectivec,ARM64,DefaultCPU" :
2022-04-06 16:50:44 +00:00
"Add 'onnxruntime-objc' or 'onnxruntime-mobile-objc' using CocoaPods and refer to the <a href='https://onnxruntime.ai/docs/tutorials/mobile/' target='_blank'>mobile deployment guide</a>" ,
2021-07-12 23:06:26 +00:00
"ios,objectivec,ARM64,CoreML" :
2022-04-06 16:50:44 +00:00
"Add 'onnxruntime-objc' or 'onnxruntime-mobile-objc' using CocoaPods and refer to the <a href='https://onnxruntime.ai/docs/tutorials/mobile/' target='_blank'>mobile deployment guide</a>" ,
2021-04-07 00:15:17 +00:00
2021-12-09 23:23:52 +00:00
"ios,C#,ARM64,DefaultCPU" :
2022-07-22 17:04:40 +00:00
"Install Nuget package <a href='https://www.nuget.org/packages/Microsoft.ML.OnnxRuntime' target='_blank'>Microsoft.ML.OnnxRuntime</a>." ,
2021-12-09 23:23:52 +00:00
"ios,C#,ARM64,CoreML" :
2022-07-22 17:04:40 +00:00
"Install Nuget package <a href='https://www.nuget.org/packages/Microsoft.ML.OnnxRuntime' target='_blank'>Microsoft.ML.OnnxRuntime</a>." ,
2021-12-09 23:23:52 +00:00
2021-06-03 17:12:02 +00:00
"windows,Python,X86,VitisAI" :
"Follow build instructions from <a href='https://aka.ms/build-ort-vitisai' target='_blank'>here</a>" ,
2021-04-07 00:15:17 +00:00
2021-06-03 17:12:02 +00:00
"linux,Python,X86,VitisAI" :
"Follow build instructions from <a href='https://aka.ms/build-ort-vitisai' target='_blank'>here</a>" ,
2021-04-07 00:15:17 +00:00
2021-06-03 17:12:02 +00:00
"linux,Python,X86,MIGraphX" :
"Follow build instructions from <a href='https://aka.ms/build-ort-migraphx' target='_blank'>here</a>" ,
2021-04-07 00:15:17 +00:00
"linux,C-API,X86,MIGraphX" :
2021-06-03 17:12:02 +00:00
"Follow build instructions from <a href='https://aka.ms/build-ort-migraphx' target='_blank'>here</a>" ,
2021-04-07 00:15:17 +00:00
"linux,C++,X86,MIGraphX" :
2021-06-03 17:12:02 +00:00
"Follow build instructions from <a href='https://aka.ms/build-ort-migraphx' target='_blank'>here</a>" ,
2021-04-07 00:15:17 +00:00
2021-06-03 17:12:02 +00:00
"linux,Python,ARM64,ACL" :
"Follow build instructions from <a href='https://aka.ms/build-ort-acl' target='_blank'>here</a>" ,
2021-04-07 00:15:17 +00:00
"linux,C-API,ARM64,ACL" :
2021-06-03 17:12:02 +00:00
"Follow build instructions from <a href='https://aka.ms/build-ort-acl' target='_blank'>here</a>" ,
2021-04-07 00:15:17 +00:00
"linux,C++,ARM64,ACL" :
2021-06-03 17:12:02 +00:00
"Follow build instructions from <a href='https://aka.ms/build-ort-acl' target='_blank'>here</a>" ,
2021-04-07 00:15:17 +00:00
2021-06-03 17:12:02 +00:00
"linux,Python,ARM32,ACL" :
"Follow build instructions from <a href='https://aka.ms/build-ort-acl' target='_blank'>here</a>" ,
2021-04-07 00:15:17 +00:00
"linux,C-API,ARM32,ACL" :
2021-06-03 17:12:02 +00:00
"Follow build instructions from <a href='https://aka.ms/build-ort-acl' target='_blank'>here</a>" ,
2021-04-07 00:15:17 +00:00
"linux,C++,ARM32,ACL" :
2021-06-03 17:12:02 +00:00
"Follow build instructions from <a href='https://aka.ms/build-ort-acl' target='_blank'>here</a>" ,
2021-04-07 00:15:17 +00:00
2021-06-03 17:12:02 +00:00
"linux,Python,ARM64,ArmNN" :
"Follow build instructions from <a href='https://aka.ms/build-ort-armnn' target='_blank'>here</a>" ,
2021-04-07 00:15:17 +00:00
"linux,C-API,ARM64,ArmNN" :
2021-06-03 17:12:02 +00:00
"Follow build instructions from <a href='https://aka.ms/build-ort-armnn' target='_blank'>here</a>" ,
2021-04-07 00:15:17 +00:00
"linux,C++,ARM64,ArmNN" :
2021-06-03 17:12:02 +00:00
"Follow build instructions from <a href='https://aka.ms/build-ort-armnn' target='_blank'>here</a>" ,
2021-04-07 00:15:17 +00:00
2021-06-03 17:12:02 +00:00
"linux,Python,ARM32,ArmNN" :
"Follow build instructions from <a href='https://aka.ms/build-ort-armnn' target='_blank'>here</a>" ,
2021-04-07 00:15:17 +00:00
"linux,C-API,ARM32,ArmNN" :
2021-06-03 17:12:02 +00:00
"Follow build instructions from <a href='https://aka.ms/build-ort-armnn' target='_blank'>here</a>" ,
2021-04-07 00:15:17 +00:00
"linux,C++,ARM32,ArmNN" :
2021-06-03 17:12:02 +00:00
"Follow build instructions from <a href='https://aka.ms/build-ort-armnn' target='_blank'>here</a>" ,
2021-04-07 00:15:17 +00:00
2021-06-03 17:12:02 +00:00
"linux,Python,ARM64,RockchipNPU" :
"Follow build instructions from <a href='https://aka.ms/build-ort-rknpu' target='_blank'>here</a>" ,
2021-04-07 00:15:17 +00:00
"linux,C-API,ARM64,RockchipNPU" :
2021-06-03 17:12:02 +00:00
"Follow build instructions from <a href='https://aka.ms/build-ort-rknpu' target='_blank'>here</a>" ,
2021-04-07 00:15:17 +00:00
"linux,C++,ARM64,RockchipNPU" :
2021-06-03 17:12:02 +00:00
"Follow build instructions from <a href='https://aka.ms/build-ort-rknpu' target='_blank'>here</a>" ,
2021-04-09 17:35:28 +00:00
2021-04-07 00:15:17 +00:00
"mac,C-API,ARM64,CoreML" :
2022-07-22 17:04:40 +00:00
"Download .tgz file from <a href='https://github.com/microsoft/onnxruntime/releases' target='_blank'>Github</a>" ,
"mac,C#,ARM64,CoreML" :
"Install Nuget package <a href='https://www.nuget.org/packages/Microsoft.ML.OnnxRuntime' target='_blank'>Microsoft.ML.OnnxRuntime</a> <br/>Refer to <a href='http://www.onnxruntime.ai/docs/execution-providers/CoreML-ExecutionProvider.html#requirements' target='_blank'>docs</a> for requirements." ,
2020-05-19 14:56:27 +00:00
2021-04-07 00:15:17 +00:00
"mac,C++,ARM64,CoreML" :
2022-07-22 17:04:40 +00:00
"Download .tgz file from <a href='https://github.com/microsoft/onnxruntime/releases' target='_blank'>Github</a>" ,
2020-05-19 14:56:27 +00:00
2021-04-07 00:15:17 +00:00
"mac,Java,ARM64,CoreML" :
2022-07-22 17:04:40 +00:00
"Download .tgz file from <a href='https://github.com/microsoft/onnxruntime/releases' target='_blank'>Github</a>" ,
2021-04-07 00:15:17 +00:00
"mac,C-API,ARM64,CoreML" :
2022-07-22 17:04:40 +00:00
"Download .tgz file from <a href='https://github.com/microsoft/onnxruntime/releases' target='_blank'>Github</a>" ,
2021-09-23 01:02:33 +00:00
//power
"linux,C-API,Power,DefaultCPU" :
2022-02-28 22:32:04 +00:00
"pip install onnxruntime-powerpc64le" ,
2021-04-07 00:15:17 +00:00
2021-09-23 01:02:33 +00:00
"linux,C++,Power,DefaultCPU" :
2022-02-28 22:32:04 +00:00
"pip install onnxruntime-powerpc64le" ,
2021-09-23 01:02:33 +00:00
"linux,Python,Power,DefaultCPU" :
2022-07-22 17:04:40 +00:00
"pip install onnxruntime-powerpc64le" ,
//SNPE
"windows,C-API,ARM64,SNPE" :
"Follow build instructions from <a href='https://aka.ms/build-ort-snpe' target='_blank'>here</a>" ,
"windows,C++,ARM64,SNPE" :
"Follow build instructions from <a href='https://aka.ms/build-ort-snpe' target='_blank'>here</a>" ,
"linux,C-API,ARM64,SNPE" :
"Follow build instructions from <a href='https://aka.ms/build-ort-snpe' target='_blank'>here</a>" ,
"linux,C++,ARM64,SNPE" :
"Follow build instructions from <a href='https://aka.ms/build-ort-snpe' target='_blank'>here</a>" ,
"android,C-API,ARM64,SNPE" :
"Follow build instructions from <a href='https://aka.ms/build-ort-snpe' target='_blank'>here</a>" ,
2021-09-23 01:02:33 +00:00
2022-07-22 17:04:40 +00:00
"android,C++,ARM64,SNPE" :
"Follow build instructions from <a href='https://aka.ms/build-ort-snpe' target='_blank'>here</a>"
2021-04-07 00:15:17 +00:00
} ;
2020-05-19 14:56:27 +00:00
2021-04-07 00:15:17 +00:00
function commandMessage ( key ) {
// console.log('key- '.key);
2020-05-19 14:56:27 +00:00
2021-04-07 00:15:17 +00:00
$ ( "#command" ) . removeClass ( "valid" ) ;
$ ( "#command" ) . removeClass ( "invalid" ) ;
2019-10-30 16:35:16 +00:00
2021-06-03 17:12:02 +00:00
if ( opts [ 'os' ] == 'web' && opts [ 'language' ] == 'JS' && validCombos . hasOwnProperty ( key ) ) {
$ ( "#command span" ) . html ( validCombos [ key ] ) ;
// console.log(element);
$ ( "#command" ) . addClass ( "valid" ) ;
return true ;
}
else if ( opts [ 'os' ] == '' || opts [ 'architecture' ] == '' || opts [ 'language' ] == '' || opts [ 'hardwareAcceleration' ] == '' ) {
$ ( "#command span" ) . html (
"Please select a combination of resources"
)
2021-04-07 00:15:17 +00:00
}
else if ( ! validCombos . hasOwnProperty ( key ) ) {
2019-10-30 16:35:16 +00:00
$ ( "#command span" ) . html (
2021-04-07 00:15:17 +00:00
"This combination is not supported. De-select to make another selection."
)
$ ( "#command" ) . addClass ( "invalid" ) ;
return false ;
2019-10-30 16:35:16 +00:00
} else {
2021-04-07 00:15:17 +00:00
$ ( "#command span" ) . html ( validCombos [ key ] ) ;
// console.log(element);
$ ( "#command" ) . addClass ( "valid" ) ;
return true ;
2019-10-30 16:35:16 +00:00
}
}
//Accesibility Get started tabel
var KEYCODE = {
DOWN : 40 ,
LEFT : 37 ,
RIGHT : 39 ,
SPACE : 32 ,
UP : 38
}
window . addEventListener ( 'load' , function ( ) {
var radiobuttons = document . querySelectorAll ( '[role=option]' ) ;
for ( var i = 0 ; i < radiobuttons . length ; i ++ ) {
var rb = radiobuttons [ i ] ;
rb . addEventListener ( 'click' , clickRadioGroup ) ;
rb . addEventListener ( 'keydown' , keyDownRadioGroup ) ;
rb . addEventListener ( 'focus' , focusRadioButton ) ;
rb . addEventListener ( 'blur' , blurRadioButton ) ;
}
} ) ;
function firstRadioButton ( node ) {
var first = node . parentNode . firstChild ;
while ( first ) {
if ( first . nodeType === Node . ELEMENT _NODE ) {
if ( first . getAttribute ( "role" ) === 'option' ) return first ;
}
first = first . nextSibling ;
}
return null ;
}
function lastRadioButton ( node ) {
var last = node . parentNode . lastChild ;
while ( last ) {
if ( last . nodeType === Node . ELEMENT _NODE ) {
if ( last . getAttribute ( "role" ) === 'option' ) return last ;
}
last = last . previousSibling ;
}
return last ;
}
function nextRadioButton ( node ) {
var next = node . nextSibling ;
while ( next ) {
if ( next . nodeType === Node . ELEMENT _NODE ) {
if ( next . getAttribute ( "role" ) === 'option' ) return next ;
}
next = next . nextSibling ;
}
return null ;
}
function previousRadioButton ( node ) {
var prev = node . previousSibling ;
while ( prev ) {
if ( prev . nodeType === Node . ELEMENT _NODE ) {
if ( prev . getAttribute ( "role" ) === 'option' ) return prev ;
}
prev = prev . previousSibling ;
}
return null ;
}
function getImage ( node ) {
var child = node . firstChild ;
while ( child ) {
if ( child . nodeType === Node . ELEMENT _NODE ) {
if ( child . tagName === 'IMG' ) return child ;
}
child = child . nextSibling ;
}
return null ;
}
function setRadioButton ( node , state ) {
var image = getImage ( node ) ;
if ( state == 'true' ) {
node . setAttribute ( 'aria-selected' , 'true' ) ;
// $(node).trigger()
node . tabIndex = 0 ;
node . focus ( ) ;
}
else {
node . setAttribute ( 'aria-selected' , 'false' ) ;
node . tabIndex = - 1 ;
}
}
function clickRadioGroup ( event ) {
var type = event . type ;
if ( type === 'click' ) {
var node = event . currentTarget ;
var radioButton = firstRadioButton ( node ) ;
while ( radioButton ) {
setRadioButton ( radioButton , "false" ) ;
radioButton = nextRadioButton ( radioButton ) ;
}
setRadioButton ( node , "true" ) ;
event . preventDefault ( ) ;
event . stopPropagation ( ) ;
}
}
function keyDownRadioGroup ( event ) {
var type = event . type ;
var next = false ;
if ( type === "keydown" ) {
var node = event . currentTarget ;
switch ( event . keyCode ) {
case KEYCODE . DOWN :
case KEYCODE . RIGHT :
var next = nextRadioButton ( node ) ;
if ( ! next ) next = firstRadioButton ( node ) ; //if node is the last node, node cycles to first.
break ;
case KEYCODE . UP :
case KEYCODE . LEFT :
next = previousRadioButton ( node ) ;
if ( ! next ) next = lastRadioButton ( node ) ; //if node is the last node, node cycles to first.
break ;
case KEYCODE . SPACE :
next = node ;
break ;
}
if ( next ) {
var radioButton = firstRadioButton ( node ) ;
while ( radioButton ) {
setRadioButton ( radioButton , "false" ) ;
radioButton = nextRadioButton ( radioButton ) ;
}
setRadioButton ( next , "true" ) ;
event . preventDefault ( ) ;
event . stopPropagation ( ) ;
}
}
}
function focusRadioButton ( event ) {
event . currentTarget . className += ' focus' ;
document . getElementById ( "command" ) . innerHTML ;
}
function blurRadioButton ( event ) {
event . currentTarget . className = event . currentTarget . className . replace ( ' focus' , '' ) ;
}
2020-05-19 14:56:27 +00:00
$ ( document ) . ready ( function ( ) {
$ ( ".tbl_tablist li[role='tab']" ) . click ( function ( ) {
$ ( ".tbl_tablist li[role='tab']:not(this)" ) . attr ( "aria-selected" , "false" ) ;
$ ( this ) . attr ( "aria-selected" , "true" ) ;
var tabpanid = $ ( this ) . attr ( "aria-controls" ) ;
var tabpan = $ ( "#" + tabpanid ) ;
$ ( "div[role='tabpanel']:not(tabpan)" ) . attr ( "aria-hidden" , "true" ) ;
$ ( "div[role='tabpanel']:not(tabpan)" ) . addClass ( "hidden" ) ;
2019-10-30 16:35:16 +00:00
2020-05-19 14:56:27 +00:00
tabpan . removeClass ( "hidden" ) ;
tabpan . attr ( "aria-hidden" , "false" ) ;
} ) ;
2019-10-30 16:35:16 +00:00
2020-05-19 14:56:27 +00:00
$ ( ".tbl_tablist li[role='tab']" ) . keydown ( function ( ev ) {
if ( ev . which == 13 ) {
$ ( this ) . click ( ) ;
}
} ) ;
2019-10-30 16:35:16 +00:00
2020-05-19 14:56:27 +00:00
//This adds keyboard function that pressing an arrow left or arrow right from the tabs toggel the tabs.
$ ( ".tbl_tablist li[role='tab']" ) . keydown ( function ( ev ) {
if ( ev . which == 39 || ev . which == 37 ) {
var selected = $ ( this ) . attr ( "aria-selected" ) ;
if ( selected == "true" ) {
$ ( "li[aria-selected='false']" ) . attr ( "aria-selected" , "true" ) . focus ( ) ;
$ ( this ) . attr ( "aria-selected" , "false" ) ;
2019-10-30 16:35:16 +00:00
2020-05-19 14:56:27 +00:00
var tabpanid = $ ( "li[aria-selected='true']" ) . attr ( "aria-controls" ) ;
var tabpan = $ ( "#" + tabpanid ) ;
$ ( "div[role='tabpanel']:not(tabpan)" ) . attr ( "aria-hidden" , "true" ) ;
$ ( "div[role='tabpanel']:not(tabpan)" ) . addClass ( "hidden" ) ;
2019-10-30 16:35:16 +00:00
2020-05-19 14:56:27 +00:00
tabpan . attr ( "aria-hidden" , "false" ) ;
tabpan . removeClass ( "hidden" ) ;
}
}
} ) ;
} ) ;
// Modal Extension
// ===============================
$ ( '.modal-dialog' ) . attr ( { 'role' : 'document' } )
var modalhide = $ . fn . modal . Constructor . prototype . hide
$ . fn . modal . Constructor . prototype . hide = function ( ) {
modalhide . apply ( this , arguments )
$ ( document ) . off ( 'keydown.bs.modal' )
}
var modalfocus = $ . fn . modal . Constructor . prototype . enforceFocus
$ . fn . modal . Constructor . prototype . enforceFocus = function ( ) {
var $content = this . $element . find ( ".modal-content" )
var focEls = $content . find ( ":tabbable" )
, $lastEl = $ ( focEls [ focEls . length - 1 ] )
, $firstEl = $ ( focEls [ 0 ] )
$lastEl . on ( 'keydown.bs.modal' , $ . proxy ( function ( ev ) {
if ( ev . keyCode === 9 && ! ( ev . shiftKey | ev . ctrlKey | ev . metaKey | ev . altKey ) ) { // TAB pressed
ev . preventDefault ( ) ;
$firstEl . focus ( ) ;
}
} , this ) )
$firstEl . on ( 'keydown.bs.modal' , $ . proxy ( function ( ev ) {
if ( ev . keyCode === 9 && ev . shiftKey ) { // SHIFT-TAB pressed
ev . preventDefault ( ) ;
$lastEl . focus ( ) ;
2019-10-30 16:35:16 +00:00
}
2020-05-19 14:56:27 +00:00
} , this ) )
modalfocus . apply ( this , arguments )
}
$ ( function ( ) {
var tabs = $ ( ".custom-tab" ) ;
// For each individual tab DIV, set class and aria role attributes, and hide it
$ ( tabs ) . find ( ".tab-content > div.tab-pane" ) . attr ( {
"class" : "tabPanel" ,
"role" : "tabpanel" ,
"aria-hidden" : "true"
} ) . hide ( ) ;
// Get the list of tab links
var tabsList = tabs . find ( "ul:first" ) . attr ( {
"role" : "tablist"
} ) ;
// For each item in the tabs list...
$ ( tabsList ) . find ( "li > a" ) . each (
function ( a ) {
var tab = $ ( this ) ;
// Create a unique id using the tab link's href
var tabId = "tab-" + tab . attr ( "href" ) . slice ( 1 ) ;
// Assign tab id, aria and tabindex attributes to the tab control, but do not remove the href
tab . attr ( {
"id" : tabId ,
"role" : "tab" ,
"aria-selected" : "false" ,
// "tabindex": "-1"
} ) . parent ( ) . attr ( "role" , "presentation" ) ;
// Assign aria attribute to the relevant tab panel
$ ( tabs ) . find ( ".tabPanel" ) . eq ( a ) . attr ( "aria-labelledby" , tabId ) ;
// Set the click event for each tab link
tab . click (
function ( e ) {
// Prevent default click event
e . preventDefault ( ) ;
// Change state of previously selected tabList item
$ ( tabsList ) . find ( "> li.active" ) . removeClass ( "active" ) . find ( "> a" ) . attr ( {
"aria-selected" : "false" ,
// "tabindex": "-1"
} ) ;
// Hide previously selected tabPanel
$ ( tabs ) . find ( ".tabPanel:visible" ) . attr ( "aria-hidden" , "true" ) . hide ( ) ;
// Show newly selected tabPanel
$ ( tabs ) . find ( ".tabPanel" ) . eq ( tab . parent ( ) . index ( ) ) . attr ( "aria-hidden" , "false" ) . show ( ) ;
// Set state of newly selected tab list item
tab . attr ( {
"aria-selected" : "true" ,
"tabindex" : "0"
} ) . parent ( ) . addClass ( "active" ) ;
tab . focus ( ) ;
2019-10-30 16:35:16 +00:00
}
2020-05-19 14:56:27 +00:00
) ;
}
) ;
// Set keydown events on tabList item for navigating tabs
$ ( tabsList ) . delegate ( "a" , "keydown" ,
function ( e ) {
var tab = $ ( this ) ;
switch ( e . which ) {
case 37 :
//case 38:
if ( tab . parent ( ) . prev ( ) . length != 0 ) {
tab . parent ( ) . prev ( ) . find ( "> a" ) . click ( ) ;
} else {
$ ( tabsList ) . find ( "li:last > a" ) . click ( ) ;
2019-10-30 16:35:16 +00:00
}
2020-05-19 14:56:27 +00:00
break ;
case 39 :
//case 40:
if ( tab . parent ( ) . next ( ) . length != 0 ) {
tab . parent ( ) . next ( ) . find ( "> a" ) . click ( ) ;
} else {
$ ( tabsList ) . find ( "li:first > a" ) . click ( ) ;
}
break ;
}
}
) ;
// Show the first tabPanel
$ ( tabs ) . find ( ".tabPanel:first" ) . attr ( "aria-hidden" , "false" ) . show ( ) ;
// Set state for the first tabsList li
$ ( tabsList ) . find ( "li:first" ) . addClass ( "active" ) . find ( " > a" ) . attr ( {
"aria-selected" : "true" ,
"tabindex" : "0"
} ) ;
2020-08-14 05:36:57 +00:00
} ) ;