Add On-Device Training Mac & iOS package installation options (#16992)

This commit is contained in:
Caroline 2023-08-17 15:47:54 -07:00 committed by GitHub
parent fcd241f145
commit d5d960e6ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 28 additions and 3 deletions

View file

@ -625,7 +625,7 @@ Console.WriteLine(outputs[0].AsTensor<float>()[0]);</code>
<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"
@ -640,10 +640,18 @@ Console.WriteLine(outputs[0].AsTensor<float>()[0]);</code>
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>
@ -652,7 +660,7 @@ Console.WriteLine(outputs[0].AsTensor<float>()[0]);</code>
<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"
@ -679,6 +687,10 @@ Console.WriteLine(outputs[0].AsTensor<float>()[0]);</code>
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>

View file

@ -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>",
@ -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) {