Class PyTorchSettings

java.lang.Object
com.microsoft.azure.management.batchai.PyTorchSettings

public class PyTorchSettings extends Object
pyTorch job settings.
  • Constructor Details

    • PyTorchSettings

      public PyTorchSettings()
  • Method Details

    • pythonScriptFilePath

      public String pythonScriptFilePath()
      Get the python script to execute.
      Returns:
      the pythonScriptFilePath value
    • withPythonScriptFilePath

      public PyTorchSettings withPythonScriptFilePath(String pythonScriptFilePath)
      Set the python script to execute.
      Parameters:
      pythonScriptFilePath - the pythonScriptFilePath value to set
      Returns:
      the PyTorchSettings object itself.
    • pythonInterpreterPath

      public String pythonInterpreterPath()
      Get the path to the Python interpreter.
      Returns:
      the pythonInterpreterPath value
    • withPythonInterpreterPath

      public PyTorchSettings withPythonInterpreterPath(String pythonInterpreterPath)
      Set the path to the Python interpreter.
      Parameters:
      pythonInterpreterPath - the pythonInterpreterPath value to set
      Returns:
      the PyTorchSettings object itself.
    • commandLineArgs

      public String commandLineArgs()
      Get command line arguments that need to be passed to the python script.
      Returns:
      the commandLineArgs value
    • withCommandLineArgs

      public PyTorchSettings withCommandLineArgs(String commandLineArgs)
      Set command line arguments that need to be passed to the python script.
      Parameters:
      commandLineArgs - the commandLineArgs value to set
      Returns:
      the PyTorchSettings object itself.
    • processCount

      public Integer processCount()
      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
    • withProcessCount

      public PyTorchSettings withProcessCount(Integer processCount)
      Set number of processes to launch for the job execution. The default value for this property is equal to nodeCount property.
      Parameters:
      processCount - the processCount value to set
      Returns:
      the PyTorchSettings object itself.
    • communicationBackend

      public String communicationBackend()
      Get type of the communication backend for distributed jobs. Valid values are 'TCP', 'Gloo' or 'MPI'. Not required for non-distributed jobs.
      Returns:
      the communicationBackend value
    • withCommunicationBackend

      public PyTorchSettings withCommunicationBackend(String communicationBackend)
      Set type of the communication backend for distributed jobs. Valid values are 'TCP', 'Gloo' or 'MPI'. Not required for non-distributed jobs.
      Parameters:
      communicationBackend - the communicationBackend value to set
      Returns:
      the PyTorchSettings object itself.