getName static method

String getName(
  1. int type
)

Implementation

static String getName(int type) {
  switch (type) {
    case cpu:
      return 'CPU';
    case gpu:
      return 'GPU';
    case npu:
      return 'NPU';
    case auto:
      return 'Auto';
    default:
      return 'Unknown';
  }
}