You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

dataset.go 271 B

1234567891011121314151617
  1. package dataset
  2. func GetResourceType(cloudbrainType int) string {
  3. if cloudbrainType == 0 {
  4. return "CPU/GPU"
  5. } else {
  6. return "NPU"
  7. }
  8. }
  9. func GetStatusText(isPrivate bool) string {
  10. if isPrivate {
  11. return "dataset.private"
  12. } else {
  13. return "dataset.public"
  14. }
  15. }