var supportedOperatingSystems = new Map([ ['linux', 'linux'], ['mac', 'macos'], ['win', 'windows'], ['web', 'web'], ]); var supportedOperatingSystemsNew = [ {key: 'linux', value: 'linux'}, {key: 'mac', value: 'macos'}, {key: 'win', value: 'windows'}, {key: 'web', value: 'web'} ] var opts = { os: '', architecture: '', language: '', hardwareAcceleration: '', }; var ot_opts = { // os: getAnchorSelectedOS() || getDefaultSelectedOS(), ot_scenario: '', ot_os: '', ot_architecture: 'ot_X64', ot_language: '', ot_hardwareAcceleration: '', ot_build: '' }; var os = $(".os > .r-option"); var architecture = $(".architecture > .r-option"); var language = $(".language > .r-option"); var hardwareAcceleration = $(".hardwareAcceleration > .r-option"); var ot_os = $(".ot_os > .r-option"); var ot_tab = $('#OT_tab'); var ot_scenario = $(".ot_scenario > .r-option"); var ot_architecture = $(".ot_architecture > .r-option"); var ot_language = $(".ot_language > .r-option"); var ot_hardwareAcceleration = $(".ot_hardwareAcceleration > .r-option"); var ot_build = $(".ot_build > .r-option"); var supported = true; var ot_defaultSelection = true; 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; } } os.on("click", function () { selectedOption(os, this, "os"); }); os.on("keypress keyup", function (event) { if (checkKeyPress(event)) { selectedOption(os, this, "os"); } }); 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"); } }); ot_tab.on("click", function() { ot_commandMessage(ot_buildMatcher()); ot_checkValidity(); }); ot_scenario.on("click", function () { ot_selectedOption(ot_scenario, this, "ot_scenario"); }); ot_scenario.on("keypress keyup", function (event) { if (checkKeyPress(event)) { ot_selectedOption(ot_scenario, this, "ot_scenario"); } }); ot_build.on("click", function () { ot_selectedOption(ot_build, this, "ot_build"); }); ot_build.on("keypress keyup", function (event) { if (checkKeyPress(event)) { ot_selectedOption(ot_build, this, "ot_build"); } }); architecture.on("click", function () { selectedOption(architecture, this, "architecture"); }); architecture.on("keypress keyup", function (event) { if (checkKeyPress(event)) { selectedOption(architecture, this, "architecture"); } }); 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"); } }); language.on("click", function () { selectedOption(language, this, "language"); }); language.on("keypress keyup", function (event) { if (checkKeyPress(event)) { selectedOption(language, this, "language"); } }); 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"); } }); hardwareAcceleration.on("click", function () { selectedOption(hardwareAcceleration, this, "hardwareAcceleration"); }); hardwareAcceleration.on("keypress keyup", function (event) { if (checkKeyPress(event)) { selectedOption(hardwareAcceleration, this, "hardwareAcceleration"); } }); 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"); } }); // Pre-select user's operating system // $(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"); // } // }); // 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']; var valid = Object.getOwnPropertyNames(validCombos); //os section for(var i =0; i=1.16.6 onnx packaging protobuf sympy setuptools>=41.4.0
pip install -i https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/ORT/pypi/simple/ onnxruntime-training
pip install torch-ort
python -m torch_ort.configure", "ot_linux,ot_large_model,ot_python,ot_X64,ot_CUDA118,ot_nightly": "python -m pip install cerberus flatbuffers h5py numpy>=1.16.6 onnx packaging protobuf sympy setuptools>=41.4.0
pip install -i https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/ORT-Nightly/pypi/simple/ onnxruntime-training
pip install torch-ort
python -m torch_ort.configure", "ot_linux,ot_large_model,ot_python,ot_X64,ot_ROCm,ot_stable": "pip install onnxruntime-training -f https://download.onnxruntime.ai/onnxruntime_stable_<rocm_version*>.html
pip install torch-ort
python -m torch_ort.configure

*Available versions", "ot_linux,ot_large_model,ot_python,ot_X64,ot_ROCm,ot_nightly": "pip install onnxruntime-training -f https://download.onnxruntime.ai/onnxruntime_nightly_<rocm_version*>.html
pip install torch-ort
python -m torch_ort.configure

*Available versions", "ot_linux,ot_on_device,ot_python,ot_X64,ot_CPU,ot_stable": "python -m pip install cerberus flatbuffers h5py numpy>=1.16.6 onnx packaging protobuf sympy setuptools>=41.4.0
pip install -i https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/ORT/pypi/simple/ onnxruntime-training-cpu", "ot_linux,ot_on_device,ot_python,ot_X64,ot_CPU,ot_nightly": "python -m pip install cerberus flatbuffers h5py numpy>=1.16.6 onnx packaging protobuf sympy setuptools>=41.4.0
pip install -i https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/ORT-Nightly/pypi/simple/ onnxruntime-training-cpu", "ot_linux,ot_on_device,ot_python,ot_X64,ot_CUDA118,ot_stable": "python -m pip install cerberus flatbuffers h5py numpy>=1.16.6 onnx packaging protobuf sympy setuptools>=41.4.0
pip install -i https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/ORT/pypi/simple/ onnxruntime-training", "ot_linux,ot_on_device,ot_python,ot_X64,ot_CUDA118,ot_nightly": "python -m pip install cerberus flatbuffers h5py numpy>=1.16.6 onnx packaging protobuf sympy setuptools>=41.4.0
pip install -i https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/ORT-Nightly/pypi/simple/ onnxruntime-training", "ot_linux,ot_on_device,ot_cplusplus,ot_X64,ot_CPU,ot_stable": "Download .tgz file from Github
Refer to docs for requirements.", "ot_linux,ot_on_device,ot_csharp,ot_X64,ot_CPU,ot_stable": "Install Nuget package Microsoft.ML.OnnxRuntime.Training", "ot_linux,ot_on_device,ot_c,ot_X64,ot_CUDA118,ot_stable": "Follow build instructions from here", "ot_linux,ot_on_device,ot_cplusplus,ot_X64,ot_CUDA118,ot_stable": "Follow build instructions from here", "ot_linux,ot_on_device,ot_csharp,ot_X64,ot_CUDA118,ot_stable": "Follow build instructions from here", "ot_linux,ot_on_device,ot_c,ot_X64,ot_CPU,ot_stable": "Download .tgz file from Github
Refer to docs for requirements.", "ot_windows,ot_on_device,ot_python,ot_X64,ot_CPU,ot_stable": "python -m pip install cerberus flatbuffers h5py numpy>=1.16.6 onnx packaging protobuf sympy setuptools>=41.4.0
pip install -i https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/ORT/pypi/simple/ onnxruntime-training-cpu", "ot_windows,ot_on_device,ot_python,ot_X64,ot_CPU,ot_nightly": "python -m pip install cerberus flatbuffers h5py numpy>=1.16.6 onnx packaging protobuf sympy setuptools>=41.4.0
pip install -i https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/ORT-Nightly/pypi/simple/ onnxruntime-training-cpu", "ot_windows,ot_on_device,ot_python,ot_X64,ot_CUDA118,ot_stable": "Follow build instructions from here", "ot_windows,ot_on_device,ot_c,ot_X64,ot_CPU,ot_stable": "Install Nuget package Microsoft.ML.OnnxRuntime.Training", "ot_windows,ot_on_device,ot_cplusplus,ot_X64,ot_CPU,ot_stable": "Install Nuget package Microsoft.ML.OnnxRuntime.Training", "ot_windows,ot_on_device,ot_csharp,ot_X64,ot_CPU,ot_stable": "Install Nuget package Microsoft.ML.OnnxRuntime.Training", "ot_windows,ot_on_device,ot_c,ot_X64,ot_CUDA118,ot_stable": "Follow build instructions from here", "ot_windows,ot_on_device,ot_cplusplus,ot_X64,ot_CUDA118,ot_stable": "Follow build instructions from here", "ot_windows,ot_on_device,ot_csharp,ot_X64,ot_CUDA118,ot_stable": "Follow build instructions from here", "ot_android,ot_on_device,ot_c,ot_X64,ot_CPU,ot_stable": "Follow installation instructions from here", "ot_android,ot_on_device,ot_cplusplus,ot_X64,ot_CPU,ot_stable": "Follow installation instructions from here", "ot_android,ot_on_device,ot_java,ot_X64,ot_CPU,ot_stable": "Add a dependency on com.microsoft.onnxruntime:onnxruntime-training-android using Maven/Gradle and refer to the instructions here.", "ot_android,ot_on_device,ot_c,ot_X64,ot_CPU,ot_nightly": "Follow build instructions from here", "ot_android,ot_on_device,ot_cplusplus,ot_X64,ot_CPU,ot_nightly": "Follow build instructions from here", "ot_android,ot_on_device,ot_java,ot_X64,ot_CPU,ot_nightly": "Follow build instructions from here", "ot_mac,ot_on_device,ot_python,ot_X64,ot_CPU,ot_stable": "python -m pip install cerberus flatbuffers h5py numpy>=1.16.6 onnx packaging protobuf sympy setuptools>=41.4.0
pip install -i https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/ORT/pypi/simple/ onnxruntime-training-cpu", "ot_mac,ot_on_device,ot_python,ot_X64,ot_CPU,ot_nightly": "python -m pip install cerberus flatbuffers h5py numpy>=1.16.6 onnx packaging protobuf sympy setuptools>=41.4.0
pip install -i https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/ORT-Nightly/pypi/simple/ onnxruntime-training-cpu", "ot_ios,ot_on_device,ot_objc,ot_X64,ot_CPU,ot_stable": "Add 'onnxruntime-training-objc' using CocoaPods and refer to the mobile deployment guide", "ot_ios,ot_on_device,ot_c,ot_X64,ot_CPU,ot_stable": "Add 'onnxruntime-training-c' using CocoaPods and refer to the mobile deployment guide", "ot_ios,ot_on_device,ot_cplusplus,ot_X64,ot_CPU,ot_stable": "Add 'onnxruntime-training-c' using CocoaPods and refer to the mobile deployment guide", "ot_ios,ot_on_device,ot_objc,ot_X64,ot_CPU,ot_nightly": "Follow build instructions from here", "ot_ios,ot_on_device,ot_c,ot_X64,ot_CPU,ot_nightly": "Follow build instructions from here", "ot_ios,ot_on_device,ot_cplusplus,ot_X64,ot_CPU,ot_nightly": "Follow build instructions from here", }; function ot_commandMessage(key) { $("#ot_command").removeClass("valid"); $("#ot_command").removeClass("invalid"); if(ot_opts['ot_os']=='' || ot_opts['ot_scenario'] == '' || ot_opts['ot_architecture'] == '' || ot_opts['ot_language']=='' || ot_opts['ot_hardwareAcceleration'] == '' || ot_opts['ot_build'] == ''){ $("#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; } } var validCombos = { "windows,C-API,X64,CUDA": "Install Nuget package Microsoft.ML.OnnxRuntime.Gpu
Refer to docs for requirements.", "windows,C++,X64,CUDA": "Install Nuget package Microsoft.ML.OnnxRuntime.Gpu
Refer to docs for requirements.", "windows,C#,X64,CUDA": "Install Nuget package Microsoft.ML.OnnxRuntime.Gpu
Refer to docs for requirements.", "windows,Python,X64,CUDA": "pip install onnxruntime-gpu
Refer to docs for requirements.", "linux,Python,ARM64,CUDA": "For Jetpack 4.4+, follow installation instructions from here", "linux,C-API,X64,CUDA": "Download .tgz file from Github
Refer to docs for requirements.", "linux,C++,X64,CUDA": "Install Nuget package Microsoft.ML.OnnxRuntime.Gpu
Refer to docs for requirements.", "linux,C#,X64,CUDA": "Install Nuget package Microsoft.ML.OnnxRuntime.Gpu
Refer to docs for requirements.", "linux,Python,X64,CUDA": "pip install onnxruntime-gpu
Refer to docs for requirements.", "linux,C-API,ARM32,DefaultCPU": "Follow build instructions from here", "linux,C++,ARM32,DefaultCPU": "Follow build instructions from here", "linux,Python,ARM32,DefaultCPU": "Follow build instructions from here", "windows,C-API,X64,DefaultCPU": "Install Nuget package Microsoft.ML.OnnxRuntime", "windows,C-API,X86,DefaultCPU": "Install Nuget package Microsoft.ML.OnnxRuntime", "windows,C-API,ARM32,DefaultCPU": "Install Nuget package Microsoft.ML.OnnxRuntime", "windows,C++,ARM32,DefaultCPU": "Install Nuget package Microsoft.ML.OnnxRuntime", "windows,C#,ARM32,DefaultCPU": "Install Nuget package Microsoft.ML.OnnxRuntime", "windows,C-API,ARM64,DefaultCPU": "Install Nuget package Microsoft.ML.OnnxRuntime", "windows,C++,ARM64,DefaultCPU": "Install Nuget package Microsoft.ML.OnnxRuntime", "windows,C#,ARM64,DefaultCPU": "Install Nuget package Microsoft.ML.OnnxRuntime", "windows,C++,X64,DefaultCPU": "Install Nuget package Microsoft.ML.OnnxRuntime", "windows,C++,X86,DefaultCPU": "Install Nuget package Microsoft.ML.OnnxRuntime", "windows,C#,X64,DefaultCPU": "Install Nuget package Microsoft.ML.OnnxRuntime", "windows,C#,X86,DefaultCPU": "Install Nuget package Microsoft.ML.OnnxRuntime", "linux,C-API,X64,DefaultCPU": "Download .tgz file from Github", "linux,C++,X64,DefaultCPU": "Download .tgz file from Github", "linux,C#,X64,DefaultCPU": "Install Nuget package Microsoft.ML.OnnxRuntime", "mac,C-API,X64,DefaultCPU": "Download .tgz file from Github", "mac,C++,X64,DefaultCPU": "Download .tgz file from Github", "mac,C#,X64,DefaultCPU": "Download .tgz file from Github", "mac,C#,X64,CoreML": "Download .tgz file from Github", "windows,Python,X64,DefaultCPU": "pip install onnxruntime", "mac,Python,X64,DefaultCPU": "pip install onnxruntime", "linux,Python,X64,DefaultCPU": "pip install onnxruntime", "linux,Python,ARM64,DefaultCPU": "pip install onnxruntime", "windows,C-API,X64,DNNL": "Follow build instructions from here", "windows,C++,X64,DNNL": "Follow build instructions from here", "windows,C#,X64,DNNL": "Follow build instructions from here", "windows,Python,X64,DNNL": "Follow build instructions from here", "linux,C-API,X64,DNNL": "Follow build instructions from here", "linux,C++,X64,DNNL": "Follow build instructions from here", "linux,C#,X64,DNNL": "Follow build instructions from here", "linux,Python,X64,DNNL": "Follow build instructions from here", "linux,Python,X64,TVM": "Follow build instructions from here", "linux,Python,X86,TVM": "Follow build instructions from here", "linux,Python,ARM32,TVM": "Follow build instructions from here", "linux,Python,ARM64,TVM": "Follow build instructions from here", "windows,Python,X64,TVM": "Follow build instructions from here", "windows,Python,X86,TVM": "Follow build instructions from here", "windows,Python,ARM32,TVM": "Follow build instructions from here", "windows,Python,ARM64,TVM": "Follow build instructions from here", "linux,C-API,X64,OpenVINO": "Follow build instructions from here", "linux,C++,X64,OpenVINO": "Follow build instructions from here", "linux,C#,X64,OpenVINO": "Follow build instructions from here", "linux,Python,X64,OpenVINO": "pip install onnxruntime-openvino
Docker image also available.", "windows,C-API,X64,OpenVINO": "Follow build instructions from here", "windows,C++,X64,OpenVINO": "Follow build instructions from here", "windows,C#,X64,OpenVINO": "Follow build instructions from here", "windows,Python,X64,OpenVINO": "pip install onnxruntime-openvino", "windows,C-API,X64,TensorRT": "Install Nuget package Microsoft.ML.OnnxRuntime.Gpu
Refer to docs for usage details.", "windows,C++,X64,TensorRT": "Install Nuget package Microsoft.ML.OnnxRuntime.Gpu
Refer to docs for usage details.", "windows,C#,X64,TensorRT": "Install Nuget package Microsoft.ML.OnnxRuntime.Gpu
Refer to docs for usage details.", "windows,Python,X64,TensorRT": "pip install onnxruntime-gpu
Refer to docs for requirements.", "linux,C-API,X64,TensorRT": "Install Nuget package Microsoft.ML.OnnxRuntime.Gpu
Refer to docs for usage details.", "linux,C++,X64,TensorRT": "Install Nuget package Microsoft.ML.OnnxRuntime.Gpu
Refer to docs for usage details.", "linux,C#,X64,TensorRT": "Install Nuget package Microsoft.ML.OnnxRuntime.Gpu
Refer to docs for usage details.", "linux,Python,X64,TensorRT": "pip install onnxruntime-gpu
Refer to docs for requirements.", "linux,C#,ARM64,DefaultCPU": "Install Nuget package Microsoft.ML.OnnxRuntime", "linux,Python,ARM64,TensorRT": "pip install onnxruntime-gpu
Refer to
docs for requirements.", "windows,C-API,X86,DirectML": "Install Nuget package Microsoft.ML.OnnxRuntime.DirectML
Refer to docs for requirements.", "windows,C++,X86,DirectML": "Install Nuget package Microsoft.ML.OnnxRuntime.DirectML", "windows,C#,X86,DirectML": "Install Nuget package Microsoft.ML.OnnxRuntime.DirectML", "windows,Python,X86,DirectML": "Follow build instructions from here", "windows,C-API,X64,DirectML": "Install Nuget package Microsoft.ML.OnnxRuntime.DirectML", "windows,C++,X64,DirectML": "Install Nuget package Microsoft.ML.OnnxRuntime.DirectML", "windows,C#,X64,DirectML": "Install Nuget package Microsoft.ML.OnnxRuntime.DirectML", "windows,Python,X64,DirectML": "pip install onnxruntime-directml", "windows,C-API,ARM64,DirectML": "Install Nuget package Microsoft.ML.OnnxRuntime.DirectML", "windows,C++,ARM64,DirectML": "Install Nuget package Microsoft.ML.OnnxRuntime.DirectML", "windows,C#,ARM64,DirectML": "Install Nuget package Microsoft.ML.OnnxRuntime.DirectML", "windows,Python,ARM64,DirectML": "Follow build instructions from here", "linux,Java,X64,DefaultCPU": "Add a dependency on com.microsoft.onnxruntime:onnxruntime using Maven/Gradle", "linux,Java,X64,CUDA": "Add a dependency on com.microsoft.onnxruntime:onnxruntime_gpu using Maven/Gradle.
Refer to docs for requirements.", "mac,Java,X64,DefaultCPU": "Add a dependency on com.microsoft.onnxruntime:onnxruntime using Maven/Gradle", //javascript "linux,JS,X64,DefaultCPU": "npm install onnxruntime-node", "mac,JS,X64,DefaultCPU": "npm install onnxruntime-node", "windows,JS,X64,DefaultCPU": "npm install onnxruntime-node", "web,JS,,": "npm install onnxruntime-web", "android,JS,ARM64,DefaultCPU": "npm install onnxruntime-react-native", "android,JS,X64,DefaultCPU": "npm install onnxruntime-react-native", "android,JS,X86,DefaultCPU": "npm install onnxruntime-react-native", "ios,JS,ARM64,DefaultCPU": "npm install onnxruntime-react-native", "windows,WinRT,X86,DefaultCPU": "Install Nuget package Microsoft.AI.MachineLearning", "windows,WinRT,X64,DefaultCPU": "Install Nuget package Microsoft.AI.MachineLearning", "windows,WinRT,ARM64,DefaultCPU": "Install Nuget package Microsoft.AI.MachineLearning", "windows,WinRT,ARM32,DefaultCPU": "Install Nuget package Microsoft.AI.MachineLearning", "windows,WinRT,X86,DirectML": "Install Nuget package Microsoft.AI.MachineLearning", "windows,WinRT,X64,DirectML": "Install Nuget package Microsoft.AI.MachineLearning", "windows,WinRT,ARM64,DirectML": "Install Nuget package Microsoft.AI.MachineLearning", "windows,Java,X64,DefaultCPU": "Add a dependency on com.microsoft.onnxruntime:onnxruntime using Maven/Gradle", "windows,Java,X64,CUDA": "Add a dependency on com.microsoft.onnxruntime:onnxruntime_gpu using Maven/Gradle.
Refer to docs for requirements.", "windows,Java,X64,TensorRT": "Add a dependency on com.microsoft.onnxruntime:onnxruntime_gpu using Maven/Gradle.
Refer to docs for usage details.", "windows,Java,X64,DNNL": "Follow build and API instructions", "windows,Java,X64,OpenVINO": "Follow build and API instructions", "linux,Java,X64,TensorRT": "Add a dependency on com.microsoft.onnxruntime:onnxruntime_gpu using Maven/Gradle.
Refer to docs for usage details.", "linux,Java,X64,DNNL": "Follow build and API instructions", "linux,Java,X64,OpenVINO": "Follow build and API instructions", "android,C-API,ARM64,NNAPI": "Follow build instructions from here", "android,C++,ARM64,NNAPI": "Follow build instructions from here", "android,Java,ARM64,NNAPI": "Add a dependency on com.microsoft.onnxruntime:onnxruntime-android or com.microsoft.onnxruntime:onnxruntime-mobile using Maven/Gradle and refer to the mobile deployment guide", "android,C-API,X86,NNAPI": "Follow build instructions from here", "android,C++,X86,NNAPI": "Follow build instructions from here", "android,C#,X86,NNAPI": "Install Nuget package Microsoft.ML.OnnxRuntime.", "android,Java,X64,NNAPI": "Add a dependency on com.microsoft.onnxruntime:onnxruntime-android or com.microsoft.onnxruntime:onnxruntime-mobile using Maven/Gradle and refer to the mobile deployment guide", "android,C-API,X64,NNAPI": "Follow build instructions from here", "android,C++,X64,NNAPI": "Follow build instructions from here", "android,C#,X64,NNAPI": "Install Nuget package Microsoft.ML.OnnxRuntime.", "android,Java,X86,NNAPI": "Add a dependency on com.microsoft.onnxruntime:onnxruntime-android or com.microsoft.onnxruntime:onnxruntime-mobile using Maven/Gradle and refer to the mobile deployment guide", "android,C-API,ARM32,NNAPI": "Follow build instructions from here", "android,C++,ARM32,NNAPI": "Follow build instructions from here", "android,C#,ARM32,NNAPI": "Install Nuget package Microsoft.ML.OnnxRuntime.", "android,Java,ARM32,NNAPI": "Add a dependency on com.microsoft.onnxruntime:onnxruntime-android or com.microsoft.onnxruntime:onnxruntime-mobile using Maven/Gradle and refer to the mobile deployment guide", "android,C-API,ARM64,DefaultCPU": "Follow build instructions from here", "android,C++,ARM64,DefaultCPU": "Follow build instructions from here", "android,Java,ARM64,DefaultCPU": "Add a dependency on com.microsoft.onnxruntime:onnxruntime-android or com.microsoft.onnxruntime:onnxruntime-mobile using Maven/Gradle and refer to the mobile deployment guide", "android,C-API,ARM32,DefaultCPU": "Follow build instructions from here", "android,C++,ARM32,DefaultCPU": "Follow build instructions from here", "android,C#,ARM32,DefaultCPU": "Install Nuget package Microsoft.ML.OnnxRuntime.", "android,Java,ARM32,DefaultCPU": "Add a dependency on com.microsoft.onnxruntime:onnxruntime-android or com.microsoft.onnxruntime:onnxruntime-mobile using Maven/Gradle and refer to the mobile deployment guide", "android,C-API,X86,DefaultCPU": "Follow build instructions from here", "android,C++,X86,DefaultCPU": "Follow build instructions from here", "android,C#,X86,DefaultCPU": "Install Nuget package Microsoft.ML.OnnxRuntime.", "android,Java,X86,DefaultCPU": "Add a dependency on com.microsoft.onnxruntime:onnxruntime-android or com.microsoft.onnxruntime:onnxruntime-mobile using Maven/Gradle and refer to the mobile deployment guide", "android,C-API,X64,DefaultCPU": "Follow build instructions from here", "android,C++,X64,DefaultCPU": "Follow build instructions from here", "android,C#,X64,DefaultCPU": "Install Nuget package Microsoft.ML.OnnxRuntime.", "android,Java,X64,DefaultCPU": "Add a dependency on com.microsoft.onnxruntime:onnxruntime-android or com.microsoft.onnxruntime:onnxruntime-mobile using Maven/Gradle and refer to the mobile deployment guide", "android,C#,ARM64,DefaultCPU": "Install Nuget package Microsoft.ML.OnnxRuntime.", "android,C#,ARM64,NNAPI": "Install Nuget package Microsoft.ML.OnnxRuntime.", "ios,C-API,ARM64,DefaultCPU": "Add 'onnxruntime-c' or 'onnxruntime-mobile-c' using CocoaPods and refer to the mobile deployment guide", "ios,C++,ARM64,DefaultCPU": "Add 'onnxruntime-c' or 'onnxruntime-mobile-c' using CocoaPods and refer to the mobile deployment guide", "ios,C-API,ARM64,CoreML": "Add 'onnxruntime-c' or 'onnxruntime-mobile-c' using CocoaPods and refer to the mobile deployment guide", "ios,C++,ARM64,CoreML": "Add 'onnxruntime-c' or 'onnxruntime-mobile-c' using CocoaPods and refer to the mobile deployment guide", "ios,objectivec,ARM64,DefaultCPU": "Add 'onnxruntime-objc' or 'onnxruntime-mobile-objc' using CocoaPods and refer to the mobile deployment guide", "ios,objectivec,ARM64,CoreML": "Add 'onnxruntime-objc' or 'onnxruntime-mobile-objc' using CocoaPods and refer to the mobile deployment guide", "ios,C#,ARM64,DefaultCPU": "Install Nuget package Microsoft.ML.OnnxRuntime.", "ios,C#,ARM64,CoreML": "Install Nuget package Microsoft.ML.OnnxRuntime.", "windows,Python,X64,VitisAI": "Follow build instructions from here", "windows,C++,X64,VitisAI": "Follow build instructions from here", "linux,C++,ARM64,VitisAI": "Follow build instructions from here", "linux,Python,ARM64,VitisAI": "Follow build instructions from here", "linux,Python,X64,MIGraphX": "Follow build instructions from here", "linux,C-API,X64,MIGraphX": "Follow build instructions from here", "linux,C++,X64,MIGraphX": "Follow build instructions from here", "linux,Python,X64,ROCm": "Follow build instructions from here", "linux,C-API,X64,ROCm": "Follow build instructions from here", "linux,C++,X64,ROCm": "Follow build instructions from here", "linux,Python,ARM64,ACL": "Follow build instructions from here", "linux,C-API,ARM64,ACL": "Follow build instructions from here", "linux,C++,ARM64,ACL": "Follow build instructions from here", "linux,Python,ARM32,ACL": "Follow build instructions from here", "linux,C-API,ARM32,ACL": "Follow build instructions from here", "linux,C++,ARM32,ACL": "Follow build instructions from here", "linux,Python,ARM64,ArmNN": "Follow build instructions from here", "linux,C-API,ARM64,ArmNN": "Follow build instructions from here", "linux,C++,ARM64,ArmNN": "Follow build instructions from here", "linux,Python,ARM32,ArmNN": "Follow build instructions from here", "linux,C-API,ARM32,ArmNN": "Follow build instructions from here", "linux,C++,ARM32,ArmNN": "Follow build instructions from here", "linux,Python,ARM64,RockchipNPU": "Follow build instructions from here", "linux,C-API,ARM64,RockchipNPU": "Follow build instructions from here", "linux,C++,ARM64,RockchipNPU": "Follow build instructions from here", //mac m1 "mac,C-API,ARM64,CoreML": "Install Nuget package Microsoft.ML.OnnxRuntime", "mac,C#,ARM64,CoreML": "Install Nuget package Microsoft.ML.OnnxRuntime
Refer to docs for requirements.", "mac,C++,ARM64,CoreML": "Download .tgz file from Github", "mac,Java,ARM64,CoreML": "Add a dependency on com.microsoft.onnxruntime:onnxruntime using Maven/Gradle", "mac,C-API,ARM64,CoreML": "Install Nuget package Microsoft.ML.OnnxRuntime", "mac,Python,ARM64,DefaultCPU": "pip install onnxruntime", "mac,Python,ARM64,DefaultCPU": "pip install onnxruntime", "mac,Java,ARM64,DefaultCPU": "Add a dependency on com.microsoft.onnxruntime:onnxruntime using Maven/Gradle", "mac,C#,ARM64,DefaultCPU": "Install Nuget package Microsoft.ML.OnnxRuntime", "mac,C-API,ARM64,DefaultCPU": "Install Nuget package Microsoft.ML.OnnxRuntime", "mac,C++,ARM64,DefaultCPU": "Install Nuget package Microsoft.ML.OnnxRuntime", //power "linux,C-API,Power,DefaultCPU": "Follow build instructions from here", "linux,C++,Power,DefaultCPU": "Follow build instructions from here", "linux,Python,Power,DefaultCPU": "pip install onnxruntime-powerpc64le", //QNN "windows,C-API,ARM64,QNN": "View installation instructions here", "windows,C++,ARM64,QNN": "View installation instructions here", "windows,C#,ARM64,QNN": "View installation instructions here", "linux,C-API,ARM64,QNN": "Follow build instructions from here", "linux,C++,ARM64,QNN": "Follow build instructions from here", "android,C-API,ARM64,QNN": "Follow build instructions from here", "android,C++,ARM64,QNN": "Follow build instructions from here", //Xnnpack "ios,C-API,ARM64,XNNPACK": "Add 'onnxruntime-c' using CocoaPods and refer to the mobile deployment guide or Follow build instructions from here", "ios,objectivec,ARM64,XNNPACK": "Add 'onnxruntime-objc' using CocoaPods and refer to the mobile deployment guide", "android,C-API,ARM64,XNNPACK": "Follow build instructions from here", "android,C++,ARM64,XNNPACK": "Follow build instructions from here", "android,Java,ARM64,XNNPACK": "Add a dependency on com.microsoft.onnxruntime:onnxruntime-android using Maven/Gradle and refer to the mobile deployment guide", "android,C-API,ARM32,XNNPACK": "Follow build instructions from here", "android,C++,ARM32,XNNPACK": "Follow build instructions from here", "android,Java,ARM32,XNNPACK": "Add a dependency on com.microsoft.onnxruntime:onnxruntime-android using Maven/Gradle and refer to the mobile deployment guide", "windows,C-API,X86,XNNPACK": "Follow build instructions from here", "windows,C++,X86,XNNPACK": "Follow build instructions from here", "linux,C-API,X86,XNNPACK": "Follow build instructions from here", "linux,C++,X86,XNNPACK": "Follow build instructions from here", "linux,Python,ARM64,CANN": "pip install onnxruntime-cann
Refer to docs for requirements.", "linux,C-API,ARM64,CANN": "Follow build instructions from here.", "linux,C++,ARM64,CANN": "Follow build instructions from here.", "linux,Python,X64,CANN": "pip install onnxruntime-cann
Refer to docs for requirements.", "linux,C-API,X64,CANN": "Follow build instructions from here.", "linux,C++,X64,CANN": "Follow build instructions from here.", "windows,Python,X64,Azure": "Follow build instructions from here", "linux,Python,X64,Azure": "Follow build instructions from here", }; function commandMessage(key) { $("#command").removeClass("valid"); $("#command").removeClass("invalid"); if(opts['os']=='web' && opts['language']=='JS' &&validCombos.hasOwnProperty(key)){ $("#command span").html(validCombos[key]); $("#command").addClass("valid"); return true; } else if(opts['os']=='' || opts['architecture'] == '' || opts['language']=='' || opts['hardwareAcceleration'] == ''){ $("#command span").html( "Please select a combination of resources" ) } else if (!validCombos.hasOwnProperty(key)) { $("#command span").html( "This combination is not supported. De-select to make another selection." ) $("#command").addClass("invalid"); return false; } else { $("#command span").html(validCombos[key]); $("#command").addClass("valid"); return true; } } //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', ''); } $(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"); tabpan.removeClass("hidden"); tabpan.attr("aria-hidden", "false"); }); $(".tbl_tablist li[role='tab']").keydown(function (ev) { if (ev.which == 13) { $(this).click(); } }); //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"); 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"); 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(); } }, 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(); } ); } ); // 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(); } 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" }); });