Delen via


PyTorch Class

Definition

PyTorch distribution configuration.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MachineLearningServices.Models.Api20240401.PyTorchTypeConverter))]
public class PyTorch : Microsoft.Azure.PowerShell.Cmdlets.MachineLearningServices.Models.Api20240401.IPyTorch, Microsoft.Azure.PowerShell.Cmdlets.MachineLearningServices.Runtime.IValidates
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MachineLearningServices.Models.Api20240401.PyTorchTypeConverter))>]
type PyTorch = class
    interface IPyTorch
    interface IJsonSerializable
    interface IDistributionConfiguration
    interface IValidates
Public Class PyTorch
Implements IPyTorch, IValidates
Inheritance
PyTorch
Attributes
Implements

Constructors

PyTorch()

Creates an new PyTorch instance.

Properties

DistributionType

[Required] Specifies the type of distribution framework.

ProcessCountPerInstance

Number of processes per node.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of PyTorch.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of PyTorch.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.MachineLearningServices.Models.Api20240401.IPyTorch.

FromJsonString(String)

Creates a new instance of PyTorch, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of PyTorch into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()
Validate(IEventListener)

Validates that this object meets the validation criteria.

Applies to