trialConfig.ts 772 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
chicm-ms's avatar
chicm-ms committed
12
    public readonly command: string;
13

14
    // Code directory
chicm-ms's avatar
chicm-ms committed
15
    public readonly codeDir: string;
16

17
    // Required GPU number for trial job. The number should be in [0,100]
chicm-ms's avatar
chicm-ms committed
18
    public readonly gpuNum: number;
19
20
21
22
23
24
25

    /**
     * Constructor
     * @param command Trail command
     * @param codeDir Code directory
     * @param gpuNum Required GPU number for trial job
     */
chicm-ms's avatar
chicm-ms committed
26
    constructor(command: string, codeDir: string, gpuNum: number) {
27
28
29
30
        this.command = command;
        this.codeDir = codeDir;
        this.gpuNum = gpuNum;
    }
31
}