This commit is contained in:
2025-09-04 14:09:19 +08:00
parent 120b8c2671
commit 5833fdc354

View File

@@ -0,0 +1,24 @@
package org.dromara.easyai.transFormer.seflAttention;
import org.dromara.easyai.matrixTools.Matrix;
public class AttentionError {
private Matrix nextFeatureError;//下一层误差
private Matrix lastEncoderError;//编码器最后一层误差
public Matrix getNextFeatureError() {
return nextFeatureError;
}
public void setNextFeatureError(Matrix nextFeatureError) {
this.nextFeatureError = nextFeatureError;
}
public Matrix getLastEncoderError() {
return lastEncoderError;
}
public void setLastEncoderError(Matrix lastEncoderError) {
this.lastEncoderError = lastEncoderError;
}
}