PatchEmbedding class

Converts an image into a sequence of patch embeddings.

Inheritance

Constructors

PatchEmbedding({required int patchSize, required int inChannels, required int embedDim})

Properties

embedDim int
final
hashCode int
The hash code for this object.
no setterinherited
inChannels int
final
norm LayerNorm
final
patchSize int
final
projection Layer
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

forward(List<ValueVector> imagePatches) List<ValueVector>
Forward pass for PatchEmbedding.
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