다음을 통해 공유


AutoFormerV2 생성자

정의

AutoFormerV2 클래스의 새 인스턴스를 초기화합니다.

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)

매개 변수

numClasses
Int32

개체 범주의 수입니다.

embedChannels
List<Int32>

모델 규모를 제어하는 포함 채널입니다.

depths
List<Int32>

모델의 배율을 제어하는 블록 수입니다.

numHeads
List<Int32>

모델의 배율을 제어하는 헤드 수입니다.

device
TorchSharp.torch.Device

모델이 유추되는 디바이스입니다.

적용 대상