class Azure::BatchAI::Mgmt::V2018_03_01::Models::PyTorchSettings

Specifies the settings for pyTorch job.

Attributes

command_line_args[RW]

@return [String] Specifies the command line arguments for the master task.

communication_backend[RW]

@return [String] 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] 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] The path to python interpreter.

python_script_file_path[RW]

@return [String] The path and file name of the python script to execute the job.

Public Class Methods

mapper() click to toggle source

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

# File lib/2018-03-01/generated/azure_mgmt_batchai/models/py_torch_settings.rb, line 40
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