-
Notifications
You must be signed in to change notification settings - Fork 346
/
zgen_slurm_config_v0.go
45 lines (33 loc) · 1.03 KB
/
zgen_slurm_config_v0.go
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
// Code generated by gen.py. DO NOT EDIT.
package expconf
import (
"github.com/santhosh-tekuri/jsonschema/v2"
"github.com/determined-ai/determined/master/pkg/schemas"
)
func (s SlurmConfigV0) SlotsPerNode() *int {
return s.RawSlotsPerNode
}
func (s *SlurmConfigV0) SetSlotsPerNode(val *int) {
s.RawSlotsPerNode = val
}
func (s SlurmConfigV0) GpuType() *string {
return s.RawGpuType
}
func (s *SlurmConfigV0) SetGpuType(val *string) {
s.RawGpuType = val
}
func (s SlurmConfigV0) SbatchArgs() []string {
return s.RawSbatchArgs
}
func (s *SlurmConfigV0) SetSbatchArgs(val []string) {
s.RawSbatchArgs = val
}
func (s SlurmConfigV0) ParsedSchema() interface{} {
return schemas.ParsedSlurmConfigV0()
}
func (s SlurmConfigV0) SanityValidator() *jsonschema.Schema {
return schemas.GetSanityValidator("http://determined.ai/schemas/expconf/v0/hpc-cluster-slurm.json")
}
func (s SlurmConfigV0) CompletenessValidator() *jsonschema.Schema {
return schemas.GetCompletenessValidator("http://determined.ai/schemas/expconf/v0/hpc-cluster-slurm.json")
}