diff --git a/templates/repo/cloudbrain/inference/new.tmpl b/templates/repo/cloudbrain/inference/new.tmpl index e023a5fe7..d63bf06ca 100644 --- a/templates/repo/cloudbrain/inference/new.tmpl +++ b/templates/repo/cloudbrain/inference/new.tmpl @@ -229,18 +229,18 @@ {{if .resource_spec_id}} {{range .inference_resource_specs}} {{if eq $.resource_spec_id .Id}} - + {{end}} {{end}} {{range .inference_resource_specs}} {{if ne $.resource_spec_id .Id}} - + {{end}} {{end}} {{else}} {{range .inference_resource_specs}} + {{$.i18n.Tr "cloudbrain.gpu_num"}}:{{.GpuNum}},{{$.i18n.Tr "cloudbrain.cpu_num"}}:{{.CpuNum}},{{$.i18n.Tr "cloudbrain.memory"}}(MB):{{$.i18n.Tr "cloudbrain.shared_memory"}}(MB):{{.ShareMemMiB}} {{end}} {{end}} diff --git a/templates/repo/cloudbrain/trainjob/new.tmpl b/templates/repo/cloudbrain/trainjob/new.tmpl index 8b31a22fa..7d21138d4 100755 --- a/templates/repo/cloudbrain/trainjob/new.tmpl +++ b/templates/repo/cloudbrain/trainjob/new.tmpl @@ -234,18 +234,18 @@ {{if .resource_spec_id}} {{range .train_resource_specs}} {{if eq $.resource_spec_id .Id}} - + {{end}} {{end}} {{range .train_resource_specs}} {{if ne $.resource_spec_id .Id}} - + {{end}} {{end}} {{else}} {{range .train_resource_specs}} + {{$.i18n.Tr "cloudbrain.gpu_num"}}:{{.GpuNum}},{{$.i18n.Tr "cloudbrain.cpu_num"}}:{{.CpuNum}},{{$.i18n.Tr "cloudbrain.memory"}}(MB):{{.MemMiB}},{{$.i18n.Tr "cloudbrain.shared_memory"}}(MB):{{.ShareMemMiB}} {{end}} {{end}}