Attention(Int32, Int32, Int32, Int32, List<Int32>) Konstruktor
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Initialisiert eine neue Instanz der Attention-Klasse.
public Attention(int inChannels, int keyChannels, int numHeads = 8, int attnRatio = 4, System.Collections.Generic.List<int> windowResolution = default);
new Microsoft.ML.TorchSharp.AutoFormerV2.Attention : int * int * int * int * System.Collections.Generic.List<int> -> Microsoft.ML.TorchSharp.AutoFormerV2.Attention
Public Sub New (inChannels As Integer, keyChannels As Integer, Optional numHeads As Integer = 8, Optional attnRatio As Integer = 4, Optional windowResolution As List(Of Integer) = Nothing)
Parameter
- inChannels
- Int32
Die Eingabekanäle.
- keyChannels
- Int32
Die wichtigsten Kanäle.
- numHeads
- Int32
Die Anzahl der Blöcke.
- attnRatio
- Int32
Das Verhältnis der Aufmerksamkeit.