|
|
@@ -756,18 +756,27 @@ |
|
|
|
onShow: function () { |
|
|
|
$('input[name="Version"]').addClass('model_disabled') |
|
|
|
// $('input[name="JobId"]').text(obj.JobName) |
|
|
|
$('#JobName').val(obj.DisplayJobName).addClass('model_disabled') |
|
|
|
// $('#JobName').val(obj.DisplayJobName).addClass('model_disabled') |
|
|
|
$('input[name="JobId"]').val(obj.JobID) |
|
|
|
$('input[name="VersionName"]').val("V0001") |
|
|
|
|
|
|
|
if(obj.ComputeResource=="NPU"){ |
|
|
|
$('#choice_Engine .default.text').text("TensorFlow"); |
|
|
|
$('#choice_Engine input[name="Engine"]').val(1) |
|
|
|
if (obj.EngineName != null && obj.EngineName != "") { |
|
|
|
srcEngine = obj.EngineName.split('-')[0] |
|
|
|
srcEngine = srcEngine.trim().toLowerCase(); |
|
|
|
if (srcEngine == 'tensorflow') { |
|
|
|
$('#choice_Engine .default.text').text("TensorFlow"); |
|
|
|
$('#choice_Engine input[name="Engine"]').val(1) |
|
|
|
} |
|
|
|
if (srcEngine == 'mindspore') { |
|
|
|
$('#choice_Engine .default.text').text("MindSpore"); |
|
|
|
$('#choice_Engine input[name="Engine"]').val(1) |
|
|
|
} |
|
|
|
} |
|
|
|
}else{ |
|
|
|
$('#choice_Engine .default.text').text("PyTorch"); |
|
|
|
$('#choice_Engine input[name="Engine"]').val(0) |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
$('.ui.dimmer').css({ "background-color": "rgb(136, 136, 136,0.7)" }) |
|
|
|
createModelName(); |
|
|
|
loadSelectedModelFile(obj); |
|
|
|