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.

constant.py 441 B

1234567891011121314151617181920212223
  1. import logging
  2. from enum import Enum
  3. LOG = logging.getLogger(__name__)
  4. class Framework(Enum):
  5. Tensorflow = "tensorflow"
  6. Pytorch = "pytorch"
  7. Mindspore = "mindspore"
  8. class K8sResourceKind(Enum):
  9. JOINT_INFERENCE_SERVICE = "jointinferenceservice"
  10. class K8sResourceKindStatus(Enum):
  11. COMPLETED = "completed"
  12. FAILED = "failed"
  13. RUNNING = "running"
  14. FRAMEWORK = Framework.Tensorflow # TODO: should read from env.