-
Notifications
You must be signed in to change notification settings - Fork 310
/
SupportedDevicesInfo.ts
84 lines (75 loc) · 2.03 KB
/
SupportedDevicesInfo.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
/* tslint:disable */
/* eslint-disable */
/**
* DUMMY Engine
* DUMMY の音声合成エンジンです。
*
* The version of the OpenAPI document: latest
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { exists, mapValues } from '../runtime';
/**
* 対応しているデバイスの情報
* @export
* @interface SupportedDevicesInfo
*/
export interface SupportedDevicesInfo {
/**
* CPUに対応しているか
* @type {boolean}
* @memberof SupportedDevicesInfo
*/
cpu: boolean;
/**
* CUDA(Nvidia GPU)に対応しているか
* @type {boolean}
* @memberof SupportedDevicesInfo
*/
cuda: boolean;
/**
* DirectML(Nvidia GPU/Radeon GPU等)に対応しているか
* @type {boolean}
* @memberof SupportedDevicesInfo
*/
dml: boolean;
}
/**
* Check if a given object implements the SupportedDevicesInfo interface.
*/
export function instanceOfSupportedDevicesInfo(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "cpu" in value;
isInstance = isInstance && "cuda" in value;
isInstance = isInstance && "dml" in value;
return isInstance;
}
export function SupportedDevicesInfoFromJSON(json: any): SupportedDevicesInfo {
return SupportedDevicesInfoFromJSONTyped(json, false);
}
export function SupportedDevicesInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupportedDevicesInfo {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'cpu': json['cpu'],
'cuda': json['cuda'],
'dml': json['dml'],
};
}
export function SupportedDevicesInfoToJSON(value?: SupportedDevicesInfo | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'cpu': value.cpu,
'cuda': value.cuda,
'dml': value.dml,
};
}