Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License. See License.txt in the project root for
license information.
Code generated by Microsoft (R) AutoRest Code Generator.
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.batchai;
import com.fasterxml.jackson.annotation.JsonProperty;
Specifies the settings for Horovod job.
/**
* Specifies the settings for Horovod job.
*/
public class HorovodSettings {
Python script file path.
The python script to execute.
/**
* Python script file path.
* The python script to execute.
*/
@JsonProperty(value = "pythonScriptFilePath", required = true)
private String pythonScriptFilePath;
Python interpreter path.
The path to the Python interpreter.
/**
* Python interpreter path.
* The path to the Python interpreter.
*/
@JsonProperty(value = "pythonInterpreterPath")
private String pythonInterpreterPath;
Command line arguments.
Command line arguments that need to be passed to the python script.
/**
* Command line arguments.
* Command line arguments that need to be passed to the python script.
*/
@JsonProperty(value = "commandLineArgs")
private String commandLineArgs;
Process count.
Number of processes to launch for the job execution. The default value
for this property is equal to nodeCount property.
/**
* Process count.
* Number of processes to launch for the job execution. The default value
* for this property is equal to nodeCount property.
*/
@JsonProperty(value = "processCount")
private Integer processCount;
Get the python script to execute.
Returns: the pythonScriptFilePath value
/**
* Get the python script to execute.
*
* @return the pythonScriptFilePath value
*/
public String pythonScriptFilePath() {
return this.pythonScriptFilePath;
}
Set the python script to execute.
Params: - pythonScriptFilePath – the pythonScriptFilePath value to set
Returns: the HorovodSettings object itself.
/**
* Set the python script to execute.
*
* @param pythonScriptFilePath the pythonScriptFilePath value to set
* @return the HorovodSettings object itself.
*/
public HorovodSettings withPythonScriptFilePath(String pythonScriptFilePath) {
this.pythonScriptFilePath = pythonScriptFilePath;
return this;
}
Get the path to the Python interpreter.
Returns: the pythonInterpreterPath value
/**
* Get the path to the Python interpreter.
*
* @return the pythonInterpreterPath value
*/
public String pythonInterpreterPath() {
return this.pythonInterpreterPath;
}
Set the path to the Python interpreter.
Params: - pythonInterpreterPath – the pythonInterpreterPath value to set
Returns: the HorovodSettings object itself.
/**
* Set the path to the Python interpreter.
*
* @param pythonInterpreterPath the pythonInterpreterPath value to set
* @return the HorovodSettings object itself.
*/
public HorovodSettings withPythonInterpreterPath(String pythonInterpreterPath) {
this.pythonInterpreterPath = pythonInterpreterPath;
return this;
}
Get command line arguments that need to be passed to the python script.
Returns: the commandLineArgs value
/**
* Get command line arguments that need to be passed to the python script.
*
* @return the commandLineArgs value
*/
public String commandLineArgs() {
return this.commandLineArgs;
}
Set command line arguments that need to be passed to the python script.
Params: - commandLineArgs – the commandLineArgs value to set
Returns: the HorovodSettings object itself.
/**
* Set command line arguments that need to be passed to the python script.
*
* @param commandLineArgs the commandLineArgs value to set
* @return the HorovodSettings object itself.
*/
public HorovodSettings withCommandLineArgs(String commandLineArgs) {
this.commandLineArgs = commandLineArgs;
return this;
}
Get number of processes to launch for the job execution. The default value for this property is equal to nodeCount property.
Returns: the processCount value
/**
* Get number of processes to launch for the job execution. The default value for this property is equal to nodeCount property.
*
* @return the processCount value
*/
public Integer processCount() {
return this.processCount;
}
Set number of processes to launch for the job execution. The default value for this property is equal to nodeCount property.
Params: - processCount – the processCount value to set
Returns: the HorovodSettings object itself.
/**
* Set number of processes to launch for the job execution. The default value for this property is equal to nodeCount property.
*
* @param processCount the processCount value to set
* @return the HorovodSettings object itself.
*/
public HorovodSettings withProcessCount(Integer processCount) {
this.processCount = processCount;
return this;
}
}