Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.7.1
zouap 3 years ago
parent
commit
fb27aec2a1
1 changed files with 15 additions and 4 deletions
  1. +15
    -4
      templates/repo/modelmanage/convertIndex.tmpl

+ 15
- 4
templates/repo/modelmanage/convertIndex.tmpl View File

@@ -221,9 +221,7 @@
<label>原模型框架</label>
<span>&nbsp;&nbsp;</span>
<select id="SrcEngine" class="ui search dropdown" placeholder="" style='width:385px' name="SrcEngine">
<option name="Pytorch" value="0">Pytorch</option>
<option name="TensorFlow" value="1">TensorFlow</option>
<option name="MindSpore" value="2">MindSpore</option>
</select>
</div>
<div class="unite min_title required inline field" id="inputdataformat_div">
@@ -433,7 +431,20 @@
$('#choice_version input[name="ModelVersion"]').val(versionList[0].ID)
loadModelFile(versionList[0].ID);
}
}
function setEngineValue(value){
$('#SrcEngine').dropdown('clear');
console.log("setEngineValue value=" + value);
let html = ""

if(value ==null || value ==""){
html +="<option name=\"Pytorch\" value=\"0\">Pytorch</option>";
html +="<option name=\"TensorFlow\" value=\"1\">TensorFlow</option>";
html +="<option name=\"MindSpore\" value=\"2\">MindSpore</option>";
}else{

}

}
</script>


Loading…
Cancel
Save