Skip to content

Commit

Permalink
Add On-Device Training Mac & iOS package installation options (#16992)
Browse files Browse the repository at this point in the history
  • Loading branch information
carzh authored Aug 17, 2023
1 parent fcd241f commit d5d960e
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 3 deletions.
16 changes: 14 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ <h3 id="ot_selectScenario">Scenario</h3>
<div class="col-md-3 r-heading">
<h3 id="ot_selectOS">Platform</h3>
<p id="ot_decriptionOS" class="sr-only">
Platform list contains three items
Platform list contains five items
</p>
</div>
<div class="col-md-9 r-content pr-0 pl-md-4" role="listbox"
Expand All @@ -640,10 +640,18 @@ <h3 id="ot_selectOS">Platform</h3>
aria-selected="true" id="ot_windows">
<span>Windows</span>
</div>
<div class="col r-option" role="option" tabindex="0"
aria-selected="true" id="ot_mac">
<span>Mac</span>
</div>
<div class="col r-option" role="option" tabindex="0"
aria-selected="true" id="ot_android">
<span>Android</span>
</div>
<div class="col r-option" role="option" tabindex="0"
aria-selected="true" id="ot_ios">
<span>iOS</span>
</div>
</div>
</div>
</div>
Expand All @@ -652,7 +660,7 @@ <h3 id="ot_selectOS">Platform</h3>
<div class="col-md-3 r-heading">
<h3 id="ot_selectLanguage">API</h3>
<p id="ot_decriptionLanguage" class="sr-only">
API list contains five items
API list contains six items
</p>
</div>
<div class="col-md-9 r-content pr-0 pl-md-4" role="listbox"
Expand All @@ -679,6 +687,10 @@ <h3 id="ot_selectLanguage">API</h3>
aria-selected="true" id="ot_java">
<span>Java</span>
</div>
<div class="col r-option" role="option" tabindex="0"
aria-selected="true" id="ot_objc">
<span>Obj-C</span>
</div>
</div>
</div>
</div>
Expand Down
15 changes: 14 additions & 1 deletion js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ var ot_validCombos = {
"pip install onnxruntime-training -f https://downloads.onnxruntime.ai/onnxruntime_stable_<b>&lt;rocm_version*</b>&gt;.html<br/>pip install torch-ort<br/>python -m torch_ort.configure<br/><br/>*<a href='https://download.onnxruntime.ai/' target='blank'>Available versions</a>",

"ot_linux,ot_on_device,ot_python,ot_X64,ot_CPU":
"pip install onnxruntime-training -f https://downloads.onnxruntime.ai/onnxruntime_stable_<b>&lt;cu_version*</b>&gt;.html<br/><br/>*</b><a href='https://download.onnxruntime.ai/' target='blank'>Available versions</a>",
"pip install onnxruntime-training<br/><br/>*</b><a href='https://download.onnxruntime.ai/' target='blank'>Available versions</a>",

"ot_linux,ot_on_device,ot_python,ot_X64,ot_CUDA":
"Follow build instructions from&nbsp;<a href='https://onnxruntime.ai/docs/build/training.html' target='_blank'>here</a>",
Expand Down Expand Up @@ -631,6 +631,19 @@ var ot_validCombos = {

"ot_android,ot_on_device,ot_java,ot_X64,ot_CPU":
"Add a dependency on <a href='https://mvnrepository.com/artifact/com.microsoft.onnxruntime/onnxruntime-training-android' target='_blank'>com.microsoft.onnxruntime:onnxruntime-training-android</a> using Maven/Gradle and refer to the instructions <a href='https://onnxruntime.ai/docs/install/#install-for-on-device-training' target='_blank'>here.</a>",

"ot_mac,ot_on_device,ot_python,ot_X64,ot_CPU":
"pip install onnxruntime-training<br/><br/>*</b><a href='https://download.onnxruntime.ai/' target='blank'>Available versions</a>",

"ot_ios,ot_on_device,ot_objc,ot_X64,ot_CPU":
"Add 'onnxruntime-training-objc' using CocoaPods and refer to the <a href='https://onnxruntime.ai/docs/tutorials/mobile/' target='_blank'>mobile deployment guide</a>",

"ot_ios,ot_on_device,ot_c,ot_X64,ot_CPU":
"Add 'onnxruntime-training-c' using CocoaPods and refer to the <a href='https://onnxruntime.ai/docs/tutorials/mobile/' target='_blank'>mobile deployment guide</a>",

"ot_ios,ot_on_device,ot_cplusplus,ot_X64,ot_CPU":
"Add 'onnxruntime-training-c' using CocoaPods and refer to the <a href='https://onnxruntime.ai/docs/tutorials/mobile/' target='_blank'>mobile deployment guide</a>",

};

function ot_commandMessage(key) {
Expand Down

0 comments on commit d5d960e

Please sign in to comment.