다음을 통해 공유


Attention(Int32, Int32, Int32, Int32, List<Int32>) 생성자

정의

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)

매개 변수

inChannels
Int32

입력 채널입니다.

keyChannels
Int32

키 채널입니다.

numHeads
Int32

블록 수입니다.

attnRatio
Int32

관심의 비율입니다.

windowResolution
List<Int32>

창의 해상도입니다.

적용 대상