class Azure::BatchAI::Mgmt::V2018_05_01::Models::PyTorchSettings

pyTorch job settings.

Attributes

command_line_args[RW]

@return [String] Command line arguments. Command line arguments that need to be passed to the python script.

communication_backend[RW]

@return [String] Communication backend. Type of the communication backend for distributed jobs. Valid values are 'TCP', 'Gloo' or 'MPI'. Not required for non-distributed jobs.

process_count[RW]

@return [Integer] Process count. Number of processes to launch for the job execution. The default value for this property is equal to nodeCount property

python_interpreter_path[RW]

@return [String] Python interpreter path. The path to the Python interpreter.

python_script_file_path[RW]

@return [String] Python script file path. The python script to execute.

Private Class Methods

mapper() click to toggle source

Mapper for PyTorchSettings class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/2018-05-01/generated/azure_mgmt_batchai/models/py_torch_settings.rb, line 41
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'PyTorchSettings',
    type: {
      name: 'Composite',
      class_name: 'PyTorchSettings',
      model_properties: {
        python_script_file_path: {
          client_side_validation: true,
          required: true,
          serialized_name: 'pythonScriptFilePath',
          type: {
            name: 'String'
          }
        },
        python_interpreter_path: {
          client_side_validation: true,
          required: false,
          serialized_name: 'pythonInterpreterPath',
          type: {
            name: 'String'
          }
        },
        command_line_args: {
          client_side_validation: true,
          required: false,
          serialized_name: 'commandLineArgs',
          type: {
            name: 'String'
          }
        },
        process_count: {
          client_side_validation: true,
          required: false,
          serialized_name: 'processCount',
          type: {
            name: 'Number'
          }
        },
        communication_backend: {
          client_side_validation: true,
          required: false,
          serialized_name: 'communicationBackend',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end