Compartilhar via


Attention(Int32, Int32, Int32, Int32, List<Int32>) Construtor

Definição

Inicializa uma nova instância da classe Attention.

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)

Parâmetros

inChannels
Int32

Os canais de entrada.

keyChannels
Int32

Os principais canais.

numHeads
Int32

O número de blocos.

attnRatio
Int32

A taxa de atenção.

windowResolution
List<Int32>

A resolução da janela.

Aplica-se a