Browse Source

提交代码,增加模型框架选项。

Signed-off-by: zouap <zouap@pcl.ac.cn>
pull/2480/head
zouap 3 years ago
parent
commit
939a886b51
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      templates/repo/modelmanage/index.tmpl

+ 3
- 1
templates/repo/modelmanage/index.tmpl View File

@@ -324,10 +324,12 @@
$("#job-Engine").append(itemHtml);
$("#job-Engine").css('disabled','disabled')
}else{
let itemHtml = "<option class=\"item\" data-value=\"0\">Pytorch</option>";
let itemHtml = "<option class=\"active item\" data-value=\"0\">Pytorch</option>";
itemHtml += "<option class=\"item\" data-value=\"1\">TensorFlow</option>"
itemHtml += "<option class=\"item\" data-value=\"2\">MindSpore</option>"
itemHtml += "<option class=\"item\" data-value=\"3\">Other</option>"
$('#choice_Engine .default.text').text("Pytorch");
$('#choice_Engine input[name="Engine"]').val(0)
$("#job-Engine").append(itemHtml);
$("#job-Engine").removeAttr('disabled');
}


Loading…
Cancel
Save