| @@ -553,10 +553,22 @@ | |||||
| <label>模型版本</label> | <label>模型版本</label> | ||||
| <input style="width: 45%;" id="version" name="Version" value="" readonly required maxlength="255"> | <input style="width: 45%;" id="version" name="Version" value="" readonly required maxlength="255"> | ||||
| </div> | </div> | ||||
| <div class="unite min_title inline field required"> | |||||
| <div class="unite min_title inline field required"> | |||||
| <label>模型框架</label> | <label>模型框架</label> | ||||
| <input type="hidden" id="Engine" name="Engine" required> | |||||
| <input style="width: 45%;" id="Engine_name" name="Engine_name" readonly required maxlength="255"> | |||||
| <div class="ui dropdown selection search width70" id="choice_Engine"> | |||||
| <input type="hidden" id="Engine" name="Engine" required> | |||||
| <div class="default text">选择模型框架</div> | |||||
| <i class="dropdown icon"></i> | |||||
| <div class="menu" id="job-Engine"> | |||||
| <option class="active item" data-value="0">Pytorch</option> | |||||
| <option class="item" data-value="1">TensorFlow</option> | |||||
| <option class="item" data-value="4">PaddlePaddle</option> | |||||
| <option class="item" data-value="5">OneFlow</option> | |||||
| <option class="item" data-value="6">MXNet</option> | |||||
| <option class="item" data-value="3">Other</option> | |||||
| </div> | |||||
| </div> | |||||
| </div> | </div> | ||||
| <div class="unite min_title inline field required"> | <div class="unite min_title inline field required"> | ||||
| <label>模型文件</label> | <label>模型文件</label> | ||||
| @@ -721,14 +733,10 @@ | |||||
| $('#JobName').val(obj.DisplayJobName).addClass('model_disabled') | $('#JobName').val(obj.DisplayJobName).addClass('model_disabled') | ||||
| $('input[name="JobId"]').val(obj.JobID) | $('input[name="JobId"]').val(obj.JobID) | ||||
| $('input[name="VersionName"]').val(obj.VersionName).addClass('model_disabled') | $('input[name="VersionName"]').val(obj.VersionName).addClass('model_disabled') | ||||
| if(obj.EngineID ==122 || obj.EngineID ==35){ | |||||
| $('input[name="Engine_name"]').val("MindSpore").addClass('model_disabled'); | |||||
| $('input[name="Engine"]').val(2); | |||||
| } | |||||
| if(obj.EngineID ==121){ | |||||
| $('input[name="Engine_name"]').val("TensorFlow").addClass('model_disabled'); | |||||
| $('input[name="Engine"]').val(1); | |||||
| } | |||||
| $('#choice_Engine .default.text').text("Pytorch"); | |||||
| $('#choice_Engine input[name="Engine"]').val(0) | |||||
| $('.ui.dimmer').css({ "background-color": "rgb(136, 136, 136,0.7)" }) | $('.ui.dimmer').css({ "background-color": "rgb(136, 136, 136,0.7)" }) | ||||
| createModelName(); | createModelName(); | ||||
| loadSelectedModelFile(obj); | loadSelectedModelFile(obj); | ||||