Nano: fix stable version installation panel (#7430)
This commit is contained in:
parent
06e6935ba9
commit
4b8b6b7d0e
1 changed files with 29 additions and 18 deletions
|
|
@ -37,15 +37,6 @@ function refresh_cmd(){
|
|||
reset_color(versions);
|
||||
set_color(version);
|
||||
|
||||
if(release!="nightly"){
|
||||
disable(versions);
|
||||
disable(inferences);
|
||||
}
|
||||
else{
|
||||
enable(versions);
|
||||
enable(inferences);
|
||||
}
|
||||
|
||||
// if (framework=="pytorch"){
|
||||
// document.getElementById("cmd").style.whiteSpace = "normal";
|
||||
// }
|
||||
|
|
@ -54,7 +45,27 @@ function refresh_cmd(){
|
|||
// }
|
||||
if(framework=="pytorch"){
|
||||
if(release=="stable"){
|
||||
cmd="pip install bigdl-nano[pytorch]==2.1.0";
|
||||
if(inference=="inferenceyes"){
|
||||
if(version=="pytorch_110"){
|
||||
cmd="pip install bigdl-nano[pytorch_110,inference] -f https://software.intel.com/ipex-whl-stable";
|
||||
}else if(version=="pytorch_111"){
|
||||
cmd="pip install bigdl-nano[pytorch_111,inference]";
|
||||
}else if(version=="pytorch_112"){
|
||||
cmd="pip install bigdl-nano[pytorch_112,inference]";
|
||||
}else if(version=="pytorch_113"){
|
||||
cmd="pip install bigdl-nano[pytorch,inference]";
|
||||
}
|
||||
}else if(inference="inferenceno"){
|
||||
if(version=="pytorch_110"){
|
||||
cmd="pip install bigdl-nano[pytorch_110] -f https://software.intel.com/ipex-whl-stable";
|
||||
}else if(version=="pytorch_111"){
|
||||
cmd="pip install bigdl-nano[pytorch_111]";
|
||||
}else if(version=="pytorch_112"){
|
||||
cmd="pip install bigdl-nano[pytorch_112]";
|
||||
}else if(version=="pytorch_113"){
|
||||
cmd="pip install bigdl-nano[pytorch]";
|
||||
}
|
||||
}
|
||||
}else if(release=="nightly"){
|
||||
if(inference=="inferenceyes"){
|
||||
if(version=="pytorch_110"){
|
||||
|
|
@ -84,25 +95,25 @@ function refresh_cmd(){
|
|||
if (release=="nightly"){
|
||||
cmd="pip install --pre --upgrade bigdl-nano[tensorflow_27,inference]";
|
||||
}else if(release=="stable"){
|
||||
cmd="pip install bigdl-nano[tensorflow]==2.1.0";
|
||||
cmd="pip install bigdl-nano[tensorflow_27,inference]";
|
||||
}
|
||||
}else if(version=="tf2_28"){
|
||||
if (release=="nightly"){
|
||||
cmd="pip install --pre --upgrade bigdl-nano[tensorflow_28,inference]";
|
||||
}else if(release=="stable"){
|
||||
cmd="pip install bigdl-nano[tensorflow]==2.1.0";
|
||||
cmd="pip install bigdl-nano[tensorflow_28,inference]";
|
||||
}
|
||||
}else if(version=="tf2_29"){
|
||||
if (release=="nightly"){
|
||||
cmd="pip install --pre --upgrade bigdl-nano[tensorflow,inference]";
|
||||
}else if(release=="stable"){
|
||||
cmd="pip install bigdl-nano[tensorflow]==2.1.0";
|
||||
cmd="pip install bigdl-nano[tensorflow,inference]";
|
||||
}
|
||||
}else if(version=="tf2_210"){
|
||||
if (release=="nightly"){
|
||||
cmd="pip install --pre --upgrade bigdl-nano[tensorflow_210,inference]";
|
||||
}else if(release=="stable"){
|
||||
cmd="pip install bigdl-nano[tensorflow]==2.1.0";
|
||||
cmd="pip install bigdl-nano[tensorflow_210,inference]";
|
||||
}
|
||||
}
|
||||
}else if(inference=="inferenceno"){
|
||||
|
|
@ -110,25 +121,25 @@ function refresh_cmd(){
|
|||
if(release=="nightly"){
|
||||
cmd="pip install --pre --upgrade bigdl-nano[tensorflow_27]";
|
||||
}else if(release=="stable"){
|
||||
cmd="pip install bigdl-nano[tensorflow]==2.1.0";
|
||||
cmd="pip install bigdl-nano[tensorflow_27]";
|
||||
}
|
||||
}else if(version=="tf2_28"){
|
||||
if(release=="nightly"){
|
||||
cmd="pip install --pre --upgrade bigdl-nano[tensorflow_28]";
|
||||
}else if(release=="stable"){
|
||||
cmd="pip install bigdl-nano[tensorflow]==2.1.0";
|
||||
cmd="pip install bigdl-nano[tensorflow_28]";
|
||||
}
|
||||
}else if(version=="tf2_29"){
|
||||
if(release=="nightly"){
|
||||
cmd="pip install --pre --upgrade bigdl-nano[tensorflow]";
|
||||
}else if(release=="stable"){
|
||||
cmd="pip install bigdl-nano[tensorflow]==2.1.0";
|
||||
cmd="pip install bigdl-nano[tensorflow]";
|
||||
}
|
||||
}else if(version=="tf2_210"){
|
||||
if(release=="nightly"){
|
||||
cmd="pip install --pre --upgrade bigdl-nano[tensorflow_210]";
|
||||
}else if(release=="stable"){
|
||||
cmd="pip install bigdl-nano[tensorflow]==2.1.0";
|
||||
cmd="pip install bigdl-nano[tensorflow_210]";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue