trialConfig.ts 778 Bytes
Newer Older
liuzhe-lz's avatar
liuzhe-lz committed
1
2
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
3
4
5
6
7
8
9
10

'use strict';

/**
 * Trial job configuration class
 * Representing trial job configurable properties
 */
export class TrialConfig {
11
    // Trail command
12
13
    public readonly command : string;

14
    // Code directory
15
16
    public readonly codeDir : string;

17
    // Required GPU number for trial job. The number should be in [0,100]
18
19
20
21
22
23
24
25
26
27
28
29
30
    public readonly gpuNum : number;

    /**
     * Constructor
     * @param command Trail command
     * @param codeDir Code directory
     * @param gpuNum Required GPU number for trial job
     */
    constructor(command : string, codeDir : string, gpuNum : number) {
        this.command = command;
        this.codeDir = codeDir;
        this.gpuNum = gpuNum;
    }
31
}