"...git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "230f787da1c193725a9a1aefcd0c87a8f445607e"
Unverified Commit ddbba2b1 authored by zhoujun's avatar zhoujun Committed by GitHub
Browse files

Merge pull request #2228 from WenmuZhou/fix_attn_export

fix attn export
parents f687e092 592c4187
......@@ -38,7 +38,7 @@ class AttentionHead(nn.Layer):
return input_ont_hot
def forward(self, inputs, targets=None, batch_max_length=25):
batch_size = inputs.shape[0]
batch_size = paddle.shape(inputs)[0]
num_steps = batch_max_length
hidden = paddle.zeros((batch_size, self.hidden_size))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment