forward method
Flattens multi-channel 2D feature maps into a 1D vector
Implementation
ValueVector forward(List<Matrix2d> input) {
List<Value> flatValues = [];
// Iterate through all channels and flatten each matrix
for (var channel in input) {
flatValues.addAll(channel.data!.values);
}
return ValueVector(flatValues);
}