From 5833fdc35414586fc1bdc989530f6cfcc1a6c415 Mon Sep 17 00:00:00 2001 From: inter Date: Thu, 4 Sep 2025 14:09:19 +0800 Subject: [PATCH] Add File --- .../seflAttention/AttentionError.java | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/main/java/org/dromara/easyai/transFormer/seflAttention/AttentionError.java diff --git a/src/main/java/org/dromara/easyai/transFormer/seflAttention/AttentionError.java b/src/main/java/org/dromara/easyai/transFormer/seflAttention/AttentionError.java new file mode 100644 index 0000000..03530ca --- /dev/null +++ b/src/main/java/org/dromara/easyai/transFormer/seflAttention/AttentionError.java @@ -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; + } +}