Freigeben über


AutoFormerV2 Konstruktor

Definition

Initialisiert eine neue Instanz der AutoFormerV2-Klasse.

public AutoFormerV2(int numClasses, System.Collections.Generic.List<int> embedChannels, System.Collections.Generic.List<int> depths, System.Collections.Generic.List<int> numHeads, TorchSharp.torch.Device device = default);
new Microsoft.ML.TorchSharp.AutoFormerV2.AutoFormerV2 : int * System.Collections.Generic.List<int> * System.Collections.Generic.List<int> * System.Collections.Generic.List<int> * TorchSharp.torch.Device -> Microsoft.ML.TorchSharp.AutoFormerV2.AutoFormerV2
Public Sub New (numClasses As Integer, embedChannels As List(Of Integer), depths As List(Of Integer), numHeads As List(Of Integer), Optional device As torch.Device = Nothing)

Parameter

numClasses
Int32

Die Anzahl der Objektkategorien.

embedChannels
List<Int32>

Die Einbettungskanäle, die die Modellskala steuern.

depths
List<Int32>

Die Anzahl der Blöcke, die die Modellskala steuern.

numHeads
List<Int32>

Die Anzahl der Köpfe, die die Modellskala steuern.

device
TorchSharp.torch.Device

Das Gerät, auf dem der Modellrückschluss erfolgt.

Gilt für: