Class TensorFlowSettings
java.lang.Object
com.microsoft.azure.management.batchai.TensorFlowSettings
TensorFlow job settings.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet command line arguments that need to be passed to the python script for the master task.Get command line arguments that need to be passed to the python script for the parameter server.Get the number of parameter server tasks.Get the path to the Python interpreter.Get the python script to execute.withMasterCommandLineArgs
(String masterCommandLineArgs) Set command line arguments that need to be passed to the python script for the master task.withParameterServerCommandLineArgs
(String parameterServerCommandLineArgs) Set command line arguments that need to be passed to the python script for the parameter server.withParameterServerCount
(Integer parameterServerCount) Set the number of parameter server tasks.withPythonInterpreterPath
(String pythonInterpreterPath) Set the path to the Python interpreter.withPythonScriptFilePath
(String pythonScriptFilePath) Set the python script to execute.withWorkerCommandLineArgs
(String workerCommandLineArgs) Set command line arguments that need to be passed to the python script for the worker task.withWorkerCount
(Integer workerCount) Set the number of worker tasks.Get command line arguments that need to be passed to the python script for the worker task.Get the number of worker tasks.
-
Constructor Details
-
TensorFlowSettings
public TensorFlowSettings()
-
-
Method Details
-
pythonScriptFilePath
Get the python script to execute.- Returns:
- the pythonScriptFilePath value
-
withPythonScriptFilePath
Set the python script to execute.- Parameters:
pythonScriptFilePath
- the pythonScriptFilePath value to set- Returns:
- the TensorFlowSettings object itself.
-
pythonInterpreterPath
Get the path to the Python interpreter.- Returns:
- the pythonInterpreterPath value
-
withPythonInterpreterPath
Set the path to the Python interpreter.- Parameters:
pythonInterpreterPath
- the pythonInterpreterPath value to set- Returns:
- the TensorFlowSettings object itself.
-
masterCommandLineArgs
Get command line arguments that need to be passed to the python script for the master task.- Returns:
- the masterCommandLineArgs value
-
withMasterCommandLineArgs
Set command line arguments that need to be passed to the python script for the master task.- Parameters:
masterCommandLineArgs
- the masterCommandLineArgs value to set- Returns:
- the TensorFlowSettings object itself.
-
workerCommandLineArgs
Get command line arguments that need to be passed to the python script for the worker task. Optional for single process jobs.- Returns:
- the workerCommandLineArgs value
-
withWorkerCommandLineArgs
Set command line arguments that need to be passed to the python script for the worker task. Optional for single process jobs.- Parameters:
workerCommandLineArgs
- the workerCommandLineArgs value to set- Returns:
- the TensorFlowSettings object itself.
-
parameterServerCommandLineArgs
Get command line arguments that need to be passed to the python script for the parameter server. Optional for single process jobs.- Returns:
- the parameterServerCommandLineArgs value
-
withParameterServerCommandLineArgs
Set command line arguments that need to be passed to the python script for the parameter server. Optional for single process jobs.- Parameters:
parameterServerCommandLineArgs
- the parameterServerCommandLineArgs value to set- Returns:
- the TensorFlowSettings object itself.
-
workerCount
Get the number of worker tasks. If specified, the value must be less than or equal to (nodeCount * numberOfGPUs per VM). If not specified, the default value is equal to nodeCount. This property can be specified only for distributed TensorFlow training.- Returns:
- the workerCount value
-
withWorkerCount
Set the number of worker tasks. If specified, the value must be less than or equal to (nodeCount * numberOfGPUs per VM). If not specified, the default value is equal to nodeCount. This property can be specified only for distributed TensorFlow training.- Parameters:
workerCount
- the workerCount value to set- Returns:
- the TensorFlowSettings object itself.
-
parameterServerCount
Get the number of parameter server tasks. If specified, the value must be less than or equal to nodeCount. If not specified, the default value is equal to 1 for distributed TensorFlow training. This property can be specified only for distributed TensorFlow training.- Returns:
- the parameterServerCount value
-
withParameterServerCount
Set the number of parameter server tasks. If specified, the value must be less than or equal to nodeCount. If not specified, the default value is equal to 1 for distributed TensorFlow training. This property can be specified only for distributed TensorFlow training.- Parameters:
parameterServerCount
- the parameterServerCount value to set- Returns:
- the TensorFlowSettings object itself.
-