Reviewed-on: https://git.openi.org.cn/OpenI/aiforge/pulls/2515 Reviewed-by: ychao_1983 <ychao_1983@sina.com>pull/2526/head
@@ -1,13 +1,13 @@ | |||||
<div class="tooltip-wati-count" style="margin-left: 155px"> | <div class="tooltip-wati-count" style="margin-left: 155px"> | ||||
{{$queue := ""}} | {{$queue := ""}} | ||||
{{$gpuQueue := 0}} | {{$gpuQueue := 0}} | ||||
{{range $k,$v :=.gpu_types}} | |||||
{{range $k,$v :=.type}} | |||||
{{if eq $k 0}} | {{if eq $k 0}} | ||||
{{ $queue = $v.Queue }} | {{ $queue = $v.Queue }} | ||||
{{ end }} | {{ end }} | ||||
{{ end }} | {{ end }} | ||||
{{ range $k,$v :=.QueuesDetail }} | |||||
{{ range $k,$v :=.ctx.QueuesDetail }} | |||||
{{if eq $k $queue}} | {{if eq $k $queue}} | ||||
{{$gpuQueue =$v}} | {{$gpuQueue =$v}} | ||||
{{ end }} | {{ end }} | ||||
@@ -17,12 +17,12 @@ | |||||
style="margin-right: 0.5rem; font-size: 16px" | style="margin-right: 0.5rem; font-size: 16px" | ||||
></i> | ></i> | ||||
<span | <span | ||||
>{{.i18n.Tr "repo.wait_count_start"}} | |||||
{{if .QueuesDetail}} | |||||
>{{.ctx.i18n.Tr "repo.wait_count_start"}} | |||||
{{if .type}} | |||||
{{ $gpuQueue }} | {{ $gpuQueue }} | ||||
{{else}} | {{else}} | ||||
{{.WaitCount}} | |||||
{{.ctx.WaitCount}} | |||||
{{ end }} | {{ end }} | ||||
{{.i18n.Tr "repo.wait_count_end"}}</span | |||||
{{.ctx.i18n.Tr "repo.wait_count_end"}}</span | |||||
> | > | ||||
</div> | </div> |
@@ -62,7 +62,7 @@ | |||||
<a class="active item model_benchmark" | <a class="active item model_benchmark" | ||||
href="{{.Link}}?benchmarkMode=model">{{.i18n.Tr "repo.cloudbrain.benchmark.model"}}</a> | href="{{.Link}}?benchmarkMode=model">{{.i18n.Tr "repo.cloudbrain.benchmark.model"}}</a> | ||||
</div> | </div> | ||||
{{template "custom/wait_count_train" .}} | |||||
{{template "custom/wait_count_train" Dict "ctx" $ "type" .benchmark_gpu_types}} | |||||
</div> | </div> | ||||
<div> | <div> | ||||
<div class="required min_title inline field"> | <div class="required min_title inline field"> | ||||
@@ -157,7 +157,7 @@ | |||||
<a class="item model_benchmark" | <a class="item model_benchmark" | ||||
href="{{.Link}}?benchmarkMode=model">{{.i18n.Tr "repo.cloudbrain.benchmark.model"}}</a> | href="{{.Link}}?benchmarkMode=model">{{.i18n.Tr "repo.cloudbrain.benchmark.model"}}</a> | ||||
</div> | </div> | ||||
{{template "custom/wait_count_train" .}} | |||||
{{template "custom/wait_count_train" Dict "ctx" $ "type" .benchmark_gpu_types}} | |||||
</div> | </div> | ||||
<div> | <div> | ||||
@@ -92,7 +92,7 @@ | |||||
</svg> | </svg> | ||||
Ascend NPU</a> | Ascend NPU</a> | ||||
</div> | </div> | ||||
{{template "custom/wait_count_train" .}} | |||||
{{template "custom/wait_count_train" Dict "ctx" $ "type" .inference_gpu_types}} | |||||
</div> | </div> | ||||
<div class="required min_title inline field"> | <div class="required min_title inline field"> | ||||
<label class="label-fix-width" style="font-weight: normal;">{{.i18n.Tr "repo.modelarts.train_job.job_name"}}</label> | <label class="label-fix-width" style="font-weight: normal;">{{.i18n.Tr "repo.modelarts.train_job.job_name"}}</label> | ||||
@@ -126,7 +126,7 @@ | |||||
</svg> | </svg> | ||||
Ascend NPU</a> | Ascend NPU</a> | ||||
</div> | </div> | ||||
{{template "custom/wait_count_train" .}} | |||||
{{template "custom/wait_count_train" Dict "ctx" $ "type" .train_gpu_types}} | |||||
</div> | </div> | ||||
<div class="required min_title inline field"> | <div class="required min_title inline field"> | ||||
<label class="label-fix-width" style="font-weight: normal;">{{.i18n.Tr "repo.modelarts.train_job.job_name"}}</label> | <label class="label-fix-width" style="font-weight: normal;">{{.i18n.Tr "repo.modelarts.train_job.job_name"}}</label> | ||||
@@ -113,7 +113,7 @@ | |||||
</svg> | </svg> | ||||
Ascend NPU</a> | Ascend NPU</a> | ||||
</div> | </div> | ||||
{{template "custom/wait_count_train" .}} | |||||
{{template "custom/wait_count_train" Dict "ctx" $}} | |||||
</div> | </div> | ||||
<div class="required min_title inline field"> | <div class="required min_title inline field"> | ||||
<label class="label-fix-width" style="font-weight: normal;">{{.i18n.Tr "repo.modelarts.train_job.job_name"}}</label> | <label class="label-fix-width" style="font-weight: normal;">{{.i18n.Tr "repo.modelarts.train_job.job_name"}}</label> | ||||
@@ -108,7 +108,7 @@ | |||||
</svg> | </svg> | ||||
Ascend NPU</a> | Ascend NPU</a> | ||||
</div> | </div> | ||||
{{template "custom/wait_count_train" .}} | |||||
{{template "custom/wait_count_train" Dict "ctx" $}} | |||||
</div> | </div> | ||||
<div class="required min_title inline field"> | <div class="required min_title inline field"> | ||||
@@ -90,7 +90,7 @@ | |||||
</svg> | </svg> | ||||
Ascend NPU</a> | Ascend NPU</a> | ||||
</div> | </div> | ||||
{{template "custom/wait_count_train" .}} | |||||
{{template "custom/wait_count_train" Dict "ctx" $}} | |||||
</div> | </div> | ||||
<div class="required min_title inline field"> | <div class="required min_title inline field"> | ||||
<label class="label-fix-width" style="font-weight: normal;">{{.i18n.Tr "repo.modelarts.train_job.job_name"}}</label> | <label class="label-fix-width" style="font-weight: normal;">{{.i18n.Tr "repo.modelarts.train_job.job_name"}}</label> | ||||
@@ -118,7 +118,7 @@ | |||||
</svg> | </svg> | ||||
Ascend NPU</a> | Ascend NPU</a> | ||||
</div> | </div> | ||||
{{template "custom/wait_count_train" .}} | |||||
{{template "custom/wait_count_train" Dict "ctx" $}} | |||||
</div> | </div> | ||||
<div class="required inline min_title field"> | <div class="required inline min_title field"> | ||||
<label class="label-fix-width" style="font-weight: normal;">{{.i18n.Tr "repo.modelarts.train_job.job_name"}}</label> | <label class="label-fix-width" style="font-weight: normal;">{{.i18n.Tr "repo.modelarts.train_job.job_name"}}</label> | ||||