SwinTransformer class

The full Swin Transformer model for computer vision tasks.

Inheritance

Constructors

SwinTransformer({required int imageSize, required int patchSize, required int inChannels, required List<int> embedDims, required List<int> depths, required List<int> numHeads, required int windowSize, required int numClasses})

Properties

finalNorm LayerNorm
final
hashCode int
The hash code for this object.
no setterinherited
patchEmbedding PatchEmbedding
final
patchSize int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stages List<SwinStage>
final

Methods

forward(List<ValueVector> imageFlatPatches, int H_img, int W_img) List<ValueVector>
Forward pass for the Swin Transformer.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parameters() List<Value>
override
toString() String
A string representation of this object.
inherited
zeroGrad() → void
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited