|
|
|
@@ -57,14 +57,14 @@ |
|
|
|
<div class="repository"> |
|
|
|
{{template "repo/header" .}} |
|
|
|
<div class="ui container"> |
|
|
|
<div class="cloudbrain-type" style="display: none;" data-cloudbrain-type="{{.datasetType}}" data-repo-link="{{.RepoLink}}" data-flag-model="true"></div> |
|
|
|
<div class="cloudbrain-type" style="display: none;" data-cloudbrain-type="{{.datasetType}}" data-repo-link="{{.RepoLink}}" data-flag-model="true" data-dataset-uuid="{{.uuid}}" data-dataset-name="{{.dataset_name}}"></div> |
|
|
|
{{template "base/alert" .}} |
|
|
|
<h4 class="ui top attached header"> |
|
|
|
{{.i18n.Tr "repo.modelarts.train_job.new"}} |
|
|
|
</h4> |
|
|
|
<div class="ui attached segment"> |
|
|
|
<!-- equal width --> |
|
|
|
<form id="form_id" class="ui form" action="{{.Link}}" method="post"> |
|
|
|
<form id="form_id" class="ui form" action="{{.Link}}?compute_resource=NPU" method="post"> |
|
|
|
{{.CsrfTokenHtml}} |
|
|
|
<input type="hidden" name="action" value="update"> |
|
|
|
<input type="hidden" id="ai_engine_name" name="engine_name" value=""> |
|
|
|
@@ -184,7 +184,9 @@ |
|
|
|
<a href="https://git.openi.org.cn/OpenIOSSG/MNIST_Example/src/branch/master/train_for_c2net.py" target="_blank">{{.i18n.Tr "cloudbrain.view_sample"}}</a> |
|
|
|
</div> |
|
|
|
|
|
|
|
{{template "custom/select_dataset_train" .}} |
|
|
|
<div id="select-multi-dataset"> |
|
|
|
|
|
|
|
</div> |
|
|
|
<span class="tooltips" style="margin-left: 11.5rem;margin-bottom: 1rem;"></span> |
|
|
|
<div class="inline min_title field"> |
|
|
|
<label class="label-fix-width" style="font-weight: normal;">{{.i18n.Tr "repo.modelarts.train_job.run_parameter"}}</label> |
|
|
|
@@ -398,12 +400,14 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
function send_run_para() { |
|
|
|
console.log("-----------") |
|
|
|
var run_parameters = [] |
|
|
|
var msg = {} |
|
|
|
$(".dynamic.field .two.fields").each(function () { |
|
|
|
var para_name = $(this).find('input.shipping_first-name').val() |
|
|
|
var para_value = $(this).find('input.shipping_last-name').val() |
|
|
|
run_parameters.push({ "label": para_name, "value": para_value }) |
|
|
|
console.log(run_parameters) |
|
|
|
}) |
|
|
|
msg["parameter"] = run_parameters |
|
|
|
msg = JSON.stringify(msg) |
|
|
|
|